Hollow

Random spawn positions for parachutespawn = 0

8 posts in this topic

Advertisement

ACD lets you add up to 5 custom spawn points :)

I don't mean spawn cities, If you turn off paraspawn each player spawns in the exact same place every time.

Share this post


Link to post
Share on other sites

+1 on this...

Disabling the parachute option "=0" still allows players to select what city to spawn in, except it spawns the player in the exact same position every time they select to spawn in that city.

For example:

If I select Pygros: my position is x:170 y:125(just to get the idea across)

Would like to see this randomized...spawn the player some where within a certain radius.

-Izz

  • Like 1

Share this post


Link to post
Share on other sites

Ok guys, you are gonna love this. After spending some time poking around in there I found where the mistake was. You need to go to the file "exile_server/code/ExileServer_object_player_createBambi.sqf" and at line 18 change 

_spawnAreaRadius = getNumber(configFile >> "CfgSpawnZone" >> "BambiSettings" >> "spawnZoneRadius");

to

_spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");

All the code and math was there to get the random positions but someone made a typo on the configFile reference. For the record parachute spawns were also not random but not as noticeable because of them being steerable and the wind factors. I messed around with this for about an hour until I finally hardcoded it all and it worked, then I realized that simple little typo. Anyways enjoy, hopefully I saved some people some headaches.

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.