mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Settings changes. createVehicleLocal derp.
This commit is contained in:
parent
c438d9e790
commit
852b4df61d
@ -73,11 +73,18 @@ class ACE_Settings {
|
|||||||
};
|
};
|
||||||
class GVAR(allowLitterCreation) {
|
class GVAR(allowLitterCreation) {
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
value = true;
|
value = 1;
|
||||||
|
};
|
||||||
|
class GVAR(litterSimulationDetail) {
|
||||||
|
displayName = "$STR_ACE_Medical_litterSimulationDetail";
|
||||||
|
description = "$STR_ACE_Medical_litterSimulationDetail_Desc";
|
||||||
|
typeName = "SCALAR";
|
||||||
|
value = 500;
|
||||||
|
isClientSettable = 1;
|
||||||
};
|
};
|
||||||
class GVAR(litterCleanUpDelay) {
|
class GVAR(litterCleanUpDelay) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 1800;
|
value = -1;
|
||||||
};
|
};
|
||||||
class GVAR(medicSetting_PAK) {
|
class GVAR(medicSetting_PAK) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
@ -124,12 +131,4 @@ class ACE_Settings {
|
|||||||
values[] = {"$STR_ACE_Medical_painEffect_Flash", "$STR_ACE_Medical_painEffect_Chroma"};
|
values[] = {"$STR_ACE_Medical_painEffect_Flash", "$STR_ACE_Medical_painEffect_Chroma"};
|
||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
class GVAR(litterSimulationDetail) {
|
|
||||||
displayName = "$STR_ACE_Medical_litterSimulationDetail";
|
|
||||||
description = "$STR_ACE_Medical_litterSimulationDetail_Desc";
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 500;
|
|
||||||
isClientSettable = 1;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
@ -2,15 +2,13 @@
|
|||||||
PARAMS_3(_litterClass,_position,_direction);
|
PARAMS_3(_litterClass,_position,_direction);
|
||||||
private["_litterObject"];
|
private["_litterObject"];
|
||||||
|
|
||||||
|
if (isNil QGVAR(allCreatedLitter)) then {
|
||||||
|
|
||||||
if (isnil QGVAR(allCreatedLitter)) then {
|
|
||||||
GVAR(allCreatedLitter) = [];
|
GVAR(allCreatedLitter) = [];
|
||||||
GVAR(litterPFHRunning) = false;
|
GVAR(litterPFHRunning) = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
if((count GVAR(allCreatedLitter)) <= GVAR(litterSimulationDetail) )then {
|
if((count GVAR(allCreatedLitter)) <= GVAR(litterSimulationDetail) ) then {
|
||||||
_litterObject = createVehicleLocal [_litterClass, _position, [], 0, "NONE"];
|
_litterObject = _litterClass createVehicleLocal _position;
|
||||||
_litterObject setDir _direction;
|
_litterObject setDir _direction;
|
||||||
} else {
|
} else {
|
||||||
// @TODO: We hit max litter items, remove a few of them to work with what we have.
|
// @TODO: We hit max litter items, remove a few of them to work with what we have.
|
||||||
|
Loading…
Reference in New Issue
Block a user