+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: [RELEASE] (Multi) Exit Point Controller

  1. #1
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,454

    Default [RELEASE] (Multi) Exit Point Controller

    The (Multi) Exit Point Controller
    This lets you change the exit point of vehicles easily using either (per vehicle) localized positions or a common global position.
    It has an array input, and that means my Adv Entity marker is EXTREMELY useful for this. So I suggest getting both.

    To use it, simply get an array of all the vehicles you want to use and wire Position to something. Remember that Global determines if it's a local or a global position. If you wire Global to 0 (or leave it unwired) it will use the position localized to the vehicle.

    Since this could be abused A LOT: Get an E2 that finds all the vehicles on the entire map and outputs them to the exit point controller. With this you could (if I hadn't prevented this) teleport any exiting player to a position of your choice. For example into an anti noclipped box.
    Because of this, I added some checks which use CPPI (So remember! If you don't have CPPI, people _WILL_ be able to abuse this).

    (CPPI is what most prop protections use, according to Feha. I've not confirmed it, but I trust him. I do know that SPP uses it.)

    The allowance check works like this. Any one of these conditions must be met for the player to be teleported.
    ---- If the server has CPPI
    - if the owner of the vehicle is equal to the owner of the exit point
    - if the exiting player has the owner of the exit point in PP Friends
    - if the owner of the vehicle has the owner of the exit point in PP Friends
    ---- If the server does not have CPPI
    - if the distance between the exit point and the vehicle is less than 1000

    Video
    http://www.xfire.com/video/256492/

    Download
    You need to use SVN to download this. Use the SVN tutorial in my signature if you need to.
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Or direct link:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/Exit%20Point%20Controller
    
    Last edited by Divran; 03-22-2010 at 02:18 AM.
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!

  2. #2
    Wire Sofaking Donkie is on a distinguished road Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,181

    Default Re: [RELEASE] (Multi) Exit Point Controller

    You make to much useful stuff, not much left to make. Lol.
    Great job!
    Hurr

  3. #3
    Wire Sofaking ShadowBrain will become famous soon enough ShadowBrain's Avatar
    Join Date
    Oct 2008
    Location
    Where you live.
    Posts
    669

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Can't you just make it so that you can only edit the exit point of your own vehicles? would make the spp thing unneeded since its the players choice to get in the vehicle then.

  4. #4
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,454

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Quote Originally Posted by ShadowBrain View Post
    Can't you just make it so that you can only edit the exit point of your own vehicles? would make the spp thing unneeded since its the players choice to get in the vehicle then.
    I'm going to take ShadowBrain's suggestion and remake the owner check so it's that way instead.
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!

  5. #5
    Wire Sofaking feha has a spectacular aura about feha has a spectacular aura about feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    891

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Check if there is cppi on srv, and if not, use shadowbrains suggestion

  6. #6
    goluch
    Guest goluch's Avatar

    Default Re: [RELEASE] (Multi) Exit Point Controller

    How about exit point has to be with in a limited distance of the pod?

  7. #7
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,454

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Quote Originally Posted by feha View Post
    Check if there is cppi on srv, and if not, use shadowbrains suggestion
    I'm already checking for SPP, and if there is no SPP, I can't use any owner-related thing without making my own getowner function first. And I just can't be arsed do to that.

    Quote Originally Posted by goluch View Post
    How about exit point has to be with in a limited distance of the pod?
    And how far would that be?
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!

  8. #8
    Wire Sofaking mattwd0526 will become famous soon enough mattwd0526 will become famous soon enough mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Outside the wall
    Posts
    1,713

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Close enough so that it isn't used to cross map teleport
    Quote Originally Posted by Super_Toaster View Post
    I Would pick up small children with my physgun and take their pants off

  9. #9
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,454

    Default Re: [RELEASE] (Multi) Exit Point Controller

    SVN UPDATE!
    - Edited the allow teleport check.

    It now works like this. Any one of these conditions must be met for the player to be teleported.
    ---- If the server has SPP
    - if the owner of the vehicle is equal to the owner of the exit point
    - if the exiting player has the owner of the exit point in SPP Friends
    - if the owner of the vehicle has the owner of the exit point in SPP Friends
    ---- If the server does not have SPP
    - if the distance between the exit point and the vehicle is less than 1000
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!

  10. #10
    Wire Sofaking feha has a spectacular aura about feha has a spectacular aura about feha's Avatar
    Join Date
    Sep 2009
    Location
    Here
    Posts
    891

    Default Re: [RELEASE] (Multi) Exit Point Controller

    Dont use spp, use cppi.

    spp will still work, cppi is just a standard so your stuff works with every pp addon ppl make.

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots