Tweaked mobile respawn getter
This commit is contained in:
parent
556984bf99
commit
808e1640b2
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue