Cleanup variables.sqf

Epoch variables are grouped together now for easy comparison with
vanilla.
This commit is contained in:
ebaydayz
2016-03-19 19:58:37 -04:00
parent 4bd9a9aa0b
commit 9ce5a20417
14 changed files with 316 additions and 883 deletions

View File

@@ -264,7 +264,7 @@ if (isNil "keyboard_keys") then {
} else {
_nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
if (count _nearbyObjects > 0) then {
if((diag_tickTime - dayz_lastCheckBit > 4)) then {
if ((diag_tickTime - dayz_lastCheckBit > 4)) then {
[objNull, player, rSwitchMove,"GetOver"] call RE;
player playActionNow "GetOver";
dayz_lastCheckBit = diag_tickTime;

View File

@@ -16,17 +16,13 @@ _anim4 = toArray _anim;
_anim4 resize 4;
_anim4 = toString _anim4;
dayz_isKneeling = false;
dayz_isCrawling = false;
if (["pknl",_anim] call fnc_inString) then {
_scaleMvmt = 0.2; //0.1;
_scalePose = 0.6; //0.4
dayz_isKneeling = true;
} else {
if (["ppne",_anim] call fnc_inString) then {
_scaleMvmt = 0.3;
_scalePose = 0.14;
dayz_isCrawling = true;
};
};

View File

@@ -101,10 +101,7 @@ if ("ItemMap_Debug" in items player) then {
_markerstr3 setMarkerBrushLocal "Border";
_markerstr3 setMarkerSizeLocal [120, 120];
diag_log ("SpawnWait: " +str(time - dayz_spawnWait));
diag_log ("LocalZombies: " +str(dayz_spawnZombies) + "/" +str(dayz_maxLocalZombies));
diag_log ("GlobalZombies: " +str(dayz_CurrentZombies) + "/" +str(dayz_maxGlobalZombies));
diag_log ("dayz_maxCurrentZeds: " +str(dayz_maxCurrentZeds) + "/" +str(dayz_maxZeds));
};
//Spawn Zeds & loot in buildings

View File

@@ -57,7 +57,6 @@ _muzzles = getArray(configFile >> "cfgWeapons" >> _currentWpn >> "muzzles");
if (count _muzzles > 1) then {
_currentWpn = currentMuzzle player;
};
player setPosATL dayz_spawnPos;
//Debug Message
// diag_log "Attempting to switch model";
@@ -227,5 +226,5 @@ if (!isNil "_newBackpackType") then {
call dayz_meleeMagazineCheck;
//reveal all near objects.
{player reveal _x} count (nearestObjects [getPosATL player, dayz_reveal, 50]);
{player reveal _x} count (nearestObjects [getPosATL player,["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"],75]);
//All is arbitrary and will need to be changed to ["AllVehicles","WeaponHolder","Land_A_tent"] ++ others (stashes etc.)