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) {
|
||||
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) {
|
||||
typeName = "SCALAR";
|
||||
value = 1800;
|
||||
value = -1;
|
||||
};
|
||||
class GVAR(medicSetting_PAK) {
|
||||
typeName = "SCALAR";
|
||||
@ -124,12 +131,4 @@ class ACE_Settings {
|
||||
values[] = {"$STR_ACE_Medical_painEffect_Flash", "$STR_ACE_Medical_painEffect_Chroma"};
|
||||
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);
|
||||
private["_litterObject"];
|
||||
|
||||
|
||||
|
||||
if (isnil QGVAR(allCreatedLitter)) then {
|
||||
if (isNil QGVAR(allCreatedLitter)) then {
|
||||
GVAR(allCreatedLitter) = [];
|
||||
GVAR(litterPFHRunning) = false;
|
||||
};
|
||||
|
||||
if((count GVAR(allCreatedLitter)) <= GVAR(litterSimulationDetail) )then {
|
||||
_litterObject = createVehicleLocal [_litterClass, _position, [], 0, "NONE"];
|
||||
if((count GVAR(allCreatedLitter)) <= GVAR(litterSimulationDetail) ) then {
|
||||
_litterObject = _litterClass createVehicleLocal _position;
|
||||
_litterObject setDir _direction;
|
||||
} else {
|
||||
// @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