private arrays

This commit is contained in:
vbawol 2017-09-29 11:29:20 -05:00
parent 8b2253bc69
commit 9e7cc6843d
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf
*/ */
//[[[cog import generate_private_arrays ]]] //[[[cog import generate_private_arrays ]]]
private ["_index","_playerSpawnArray","_playerSpawnArrayKey"]; private ["_index","_playerSpawnArray","_playerSpawnArrayKeyFinal"];
//[[[end]]] //[[[end]]]
params ["_spawnName", ["_decrease",1]]; params ["_spawnName", ["_decrease",1]];
_index = EPOCH_spawnIndex find _spawnName; _index = EPOCH_spawnIndex find _spawnName;

View File

@ -13,7 +13,7 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
*/ */
//[[[cog import generate_private_arrays ]]] //[[[cog import generate_private_arrays ]]]
private ["_index","_playerSpawnArray","_playerSpawnArrayKey"]; private ["_index","_playerSpawnArray","_playerSpawnArrayKeyFinal"];
//[[[end]]] //[[[end]]]
params ["_spawnName", ["_increase",1]]; params ["_spawnName", ["_increase",1]];
_index = EPOCH_spawnIndex find _spawnName; _index = EPOCH_spawnIndex find _spawnName;

View File

@ -28,7 +28,7 @@
NOTHING NOTHING
*/ */
//[[[cog import generate_private_arrays ]]] //[[[cog import generate_private_arrays ]]]
private ["_ammoConfig","_attachments","_currentDMG","_currentHIT","_cursorTarget","_gesture","_heal","_highestDMG","_newDMG","_nuisanceLevel","_playerNuisanceKey","_repaired"]; private ["_ammoConfig","_attachments","_currentDMG","_currentHIT","_cursorTarget","_gesture","_heal","_highestDMG","_newDMG","_nuisanceLevel","_playerNuisanceKeyFinal","_repaired"];
//[[[end]]] //[[[end]]]
params ["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile"]; params ["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile"];
EPOCH_lastFiredLocation = getPosATL player; EPOCH_lastFiredLocation = getPosATL player;
@ -118,7 +118,7 @@ switch true do {
_nuisanceLevel = _nuisanceLevel / 2; _nuisanceLevel = _nuisanceLevel / 2;
}; };
// Nuisance System 0.1 // Nuisance System 0.1
(EPOCH_customVarLimits select (EPOCH_customVars find "Nuisance")) params [["_playerLimitMax",100],["_playerLimitMin",0]]; (EPOCH_customVarLimits select (EPOCH_customVars find "Nuisance")) params [["_playerLimitMax",100],["_playerLimitMin",0]];
_playerNuisanceKeyFinal = "EPOCH_playerNuisance"; _playerNuisanceKeyFinal = "EPOCH_playerNuisance";
if !(isNil "_playerNuisanceKey") then {_playerNuisanceKeyFinal = _playerNuisanceKey}; if !(isNil "_playerNuisanceKey") then {_playerNuisanceKeyFinal = _playerNuisanceKey};
[_playerNuisanceKeyFinal,_nuisanceLevel,_playerLimitMax,_playerLimitMin] call EPOCH_fnc_setVariableLimited; [_playerNuisanceKeyFinal,_nuisanceLevel,_playerLimitMax,_playerLimitMin] call EPOCH_fnc_setVariableLimited;