How to make all Towns available on player respawn

How to make all Towns available on player respawn

« posted: May 08, 2018, 10:22 PM »
I know Wasteland is designed to only allow respawning in towns with team mates.
We have a server setup for PVE purpose and would like all towns available at repawn.
Any help would be greatly appreciated.
  • Offline soulkobk
  • Hardened
  • ****
  • Posts: 100
  • soulkobk.blogspot.com.au

Re: How to make all Towns available on player respawn

« Reply #1 posted: May 16, 2018, 02:48 PM »
From a quick look, see...

https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L424-L434

Replace with...
Code: [Select]
_towns = [];
{
_town = _x select 0;
_town call _setPlayersInfo;
_towns pushBack _town;
} forEach (call cityList);

and see...

https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/blob/dev/client/systems/playerMenu/dialog/loadRespawnDialog.sqf#L452-L459

Replace with...
Code: [Select]
_locations = if (showBeacons) then
{
[_beacons, [], {_x call _getPlayerThreshold}, "DESCEND", {alive _x}] call BIS_fnc_sortBy
}
else
{
[_towns, [], 0, "DESCEND"] call BIS_fnc_sortBy
};

That's a push in the right direction, the rest is up to you, but loadRespawnDialog.sqf is the file you should be looking at.

-soul.