Tweaked mobile respawn getter

This commit is contained in:
Wyqer 2019-08-05 23:13:42 +02:00
parent 556984bf99
commit 808e1640b2
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
2 changed files with 5 additions and 8 deletions

View File

@ -1,14 +1,10 @@
private [ "_respawn_trucks_unsorted", "_respawn_trucks_sorted" ];
_respawn_trucks_unsorted = vehicles select {
private _respawn_trucks_unsorted = vehicles select {
(typeof _x == Respawn_truck_typename || typeof _x == huron_typename ) &&
_x distance startbase > 500 &&
_x distance2d startbase > 500 &&
!surfaceIsWater (getpos _x) &&
((getpos _x) select 2) < 5 &&
isTouchingGround _x &&
alive _x &&
speed _x < 5
};
_respawn_trucks_sorted = [ _respawn_trucks_unsorted , [] , { (getpos _x) select 0 } , 'ASCEND' ] call BIS_fnc_sortBy;
_respawn_trucks_sorted
[_respawn_trucks_unsorted, [], {(getpos _x) select 0}, 'ASCEND'] call BIS_fnc_sortBy

View File

@ -190,6 +190,7 @@ class Missions
### Icebox content (will be moved into a possible next update)
* Updated: Russian localization. Thanks to [DjHaski](https://github.com/DjHaski)
* Tweaked: Initial FOB box doesn't have equipment in the inventory anmore.
* Tweaked: Height check for mobile respawn now relies on `isTouchingGround` instead of z value of position.
* Fixed: Potato 01 was created after server restart, even if there was one saved.
* Fixed: Missing variable `stats_blufor_teamkills_by_players`. Also no separation between by players or not by players for teamkills anymore.