mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
private arrays
This commit is contained in:
parent
8b2253bc69
commit
9e7cc6843d
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user