Skip to content

Commit 026925a

Browse files
authored
3.3.1 changes (#147)
1 parent 2abf0c5 commit 026925a

File tree

5 files changed

+365
-24
lines changed

5 files changed

+365
-24
lines changed

Olympus.Stratis/description.ext

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ respawnDialog = 0;
2828

2929
// AI & debug
3030
disabledAI = 1; // Disables AI for Playable Units
31-
enableDebugConsole[] = {"76561198048995566", "76561198085500182"}; // Enables Debug Console for players with specified UIDs (Jonpas and Tyrone) and Host/Admin
31+
enableDebugConsole[] = {"76561198048995566", "76561198085500182", "76561198040879834"}; // Enables Debug Console for players with specified UIDs (Jonpas, Tyrone and Joram) and Host/Admin
3232
enableTargetDebug = 1;
3333

3434
// Other settings

Olympus.Stratis/functions/fn_vehicleSpawner.sqf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ private _removeAction = [
114114
(_this select 2) params ["_controller"];
115115

116116
private _spawnedVehicles = GVAR(spawnedVehiclesNamespace) getVariable [QGVAR(spawnedVehicles), []];
117+
_spawnedVehicles = _spawnedVehicles select {!isNull (_x select 0)};
118+
GVAR(spawnedVehiclesNamespace) setVariable [QGVAR(spawnedVehicles), _spawnedvehicles, true];
119+
117120
!(_spawnedVehicles isEqualTo [])
118121
},
119122
{
@@ -133,7 +136,7 @@ private _removeAction = [
133136
{
134137
(_this select 2) params ["_controller", "_vehicle", "_playerName"];
135138

136-
if ((crew _vehicle) isEqualTo []) then {
139+
if ((fullCrew _vehicle) select {alive (_x select 0)} isEqualTo []) then {
137140
deleteVehicle _vehicle;
138141
private _spawnedvehicles = GVAR(spawnedVehiclesNamespace) getVariable [QGVAR(spawnedVehicles), []];
139142
_spawnedvehicles deleteAt (_spawnedVehicles find [_vehicle, _playerName]);

0 commit comments

Comments
 (0)