From 9e7cc6843d45a75a225e6698548d91603d2a24fd Mon Sep 17 00:00:00 2001 From: vbawol Date: Fri, 29 Sep 2017 11:29:20 -0500 Subject: [PATCH] private arrays --- Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf | 2 +- Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf | 2 +- .../epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf b/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf index 81e6f040..a05426c0 100644 --- a/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf +++ b/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf @@ -13,7 +13,7 @@ https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf */ //[[[cog import generate_private_arrays ]]] -private ["_index","_playerSpawnArray","_playerSpawnArrayKey"]; +private ["_index","_playerSpawnArray","_playerSpawnArrayKeyFinal"]; //[[[end]]] params ["_spawnName", ["_decrease",1]]; _index = EPOCH_spawnIndex find _spawnName; diff --git a/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf b/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf index 96c64c1e..0a10858b 100644 --- a/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf +++ b/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf @@ -13,7 +13,7 @@ https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf */ //[[[cog import generate_private_arrays ]]] -private ["_index","_playerSpawnArray","_playerSpawnArrayKey"]; +private ["_index","_playerSpawnArray","_playerSpawnArrayKeyFinal"]; //[[[end]]] params ["_spawnName", ["_increase",1]]; _index = EPOCH_spawnIndex find _spawnName; diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf index 13f70fae..6ffcd511 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf @@ -28,7 +28,7 @@ NOTHING */ //[[[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]]] params ["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile"]; EPOCH_lastFiredLocation = getPosATL player; @@ -118,7 +118,7 @@ switch true do { _nuisanceLevel = _nuisanceLevel / 2; }; // 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"; if !(isNil "_playerNuisanceKey") then {_playerNuisanceKeyFinal = _playerNuisanceKey}; [_playerNuisanceKeyFinal,_nuisanceLevel,_playerLimitMax,_playerLimitMin] call EPOCH_fnc_setVariableLimited;