mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 23:29:34 +03:00
Cleanup Compiles a bit
This commit is contained in:
1 parent
c284754ace
commit
61e86abe4c
5 files changed
+14
-40
No files matched your search
@@ -60,4 +60,3 @@ if (_canLoot) then {
|
||||
|
||||
dayz_buildingMonitor set [count dayz_buildingMonitor,_obj];
|
||||
};
|
||||
//["building_spawnZombies.sqf",(diag_tickTime - _t1)] call fnc_dump;
|
||||
@@ -1,5 +0,0 @@
|
||||
private["_qty","_vehicle"];
|
||||
_vehicle = _this select 0;
|
||||
_qty = _this select 1;
|
||||
|
||||
_vehicle setFuel _qty;
|
||||
@@ -152,4 +152,3 @@ if (_nearbyCount < 1) exitwith
|
||||
};
|
||||
};
|
||||
} forEach _nearby;
|
||||
// ["player_spawnCheck.sqf",(diag_tickTime - _t1)] call fnc_dump;
|
||||
@@ -1,8 +1,9 @@
|
||||
private ["_unit","_position"];
|
||||
_unit = _this select 0;
|
||||
if (isServer) then {
|
||||
if (isServer) exitWith {
|
||||
_unit addEventHandler ["local", {_this call zombie_findOwner}];
|
||||
} else {
|
||||
/*} else {
|
||||
_position = getPosATL _unit;
|
||||
_unit addEventHandler ["local", {_this call eh_zombieInit}];
|
||||
*/
|
||||
};
|
||||
@@ -146,6 +146,10 @@ if (!isDedicated) then {
|
||||
_b
|
||||
};
|
||||
|
||||
dayz_HungerThirst = {
|
||||
dayz_hunger = dayz_hunger + (_this select 0);
|
||||
dayz_thirst = dayz_thirst + (_this select 1);
|
||||
};
|
||||
|
||||
epoch_totalCurrency = {
|
||||
// total currency
|
||||
@@ -179,24 +183,6 @@ if (!isDedicated) then {
|
||||
epoch_returnChange = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\epoch_returnChange.sqf";
|
||||
// usage [["partinclassname",4]] call epoch_returnChange;
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
RunTime = 0;
|
||||
TotalRuns = 0;
|
||||
|
||||
fnc_dump = {
|
||||
private["_code","_benchmark","_averageRunTime"];
|
||||
_code = _this select 0;
|
||||
_benchmark = _this select 1;
|
||||
|
||||
RunTime = RunTime + _benchmark;
|
||||
TotalRuns = TotalRuns + 1;
|
||||
_averageRunTime = RunTime/TotalRuns;
|
||||
|
||||
diag_log format["%1 - %2 (%3 / %4)",_code,_benchmark,_averageRunTime,TotalRuns];
|
||||
};
|
||||
dayz_losChance = {
|
||||
private["_agent","_maxDis","_dis","_val","_maxExp","_myExp"];
|
||||
_agent = _this select 0;
|
||||
@@ -258,13 +244,6 @@ if (!isDedicated) then {
|
||||
_cantSee
|
||||
};
|
||||
|
||||
eh_zombieInit = {
|
||||
private["_unit","_pos"];
|
||||
//_unit = _this select 0;
|
||||
//_pos = getPosATL _unit;
|
||||
//_id = [_pos,_unit] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
|
||||
};
|
||||
|
||||
dayz_equipCheck = {
|
||||
private ["_empty", "_needed","_diff","_success"];
|
||||
_config = _this;
|
||||
@@ -496,15 +475,14 @@ if (!isDedicated) then {
|
||||
//fnc_vehicleEventHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\init\vehicle_init.sqf"; //Initialize vehicle
|
||||
fnc_inString = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_inString.sqf";
|
||||
fnc_isInsideBuilding = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_isInsideBuilding.sqf"; //_isInside = [_unit,_building] call fnc_isInsideBuilding;
|
||||
fnc_isInsideBuilding2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_isInsideBuilding2.sqf"; //_isInside = [_unit,_building] call fnc_isInsideBuilding;
|
||||
fnc_isInsideBuilding3 = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_isInsideBuilding3.sqf"; //_isInside = [_unit,_building] call fnc_isInsideBuilding;
|
||||
fnc_isInsideBuilding2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_isInsideBuilding2.sqf"; //_isInside = [_unit,_building] call fnc_isInsideBuilding2;
|
||||
fnc_isInsideBuilding3 = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_isInsideBuilding3.sqf"; //_isInside = [_unit,_building] call fnc_isInsideBuilding3;
|
||||
dayz_zombieSpeak = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_speak.sqf"; //Used to generate random speech for a unit
|
||||
vehicle_getHitpoints = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf";
|
||||
local_gutObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_gutObject.sqf"; //Generated on the server (or local to unit) when gutting an object
|
||||
local_lockUnlock = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf"; //When vehicle is local to unit perform locking vehicle
|
||||
local_gutObjectZ = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_gutObjectZ.sqf"; //Generated on the server (or local to unit) when gutting an object
|
||||
local_zombieDamage = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandlerZ.sqf"; //Generated by the client who created a zombie to track damage
|
||||
local_setFuel = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_setFuel.sqf"; //Generated when someone refuels a vehicle
|
||||
local_eventKill = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_eventKill.sqf"; //Generated when something is killed
|
||||
//player_weaponCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_weaponCheck.sqf"; //Run by the player or server to monitor whether they have picked up a new weapon
|
||||
curTimeStr = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_curTimeStr.sqf";
|
||||
@@ -520,9 +498,11 @@ if (!isDedicated) then {
|
||||
spawn_loot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\spawn_loot.sqf";
|
||||
// player_projectileNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_projectileNear.sqf";
|
||||
|
||||
dayz_HungerThirst = {
|
||||
dayz_hunger = dayz_hunger + (_this select 0);
|
||||
dayz_thirst = dayz_thirst + (_this select 1);
|
||||
local_setFuel = {
|
||||
private["_qty","_vehicle"];
|
||||
_vehicle = ;
|
||||
_qty = _this select 1;
|
||||
_vehicle setFuel _qty;
|
||||
};
|
||||
|
||||
// better item counting by maca134 - https://github.com/vbawol/DayZ-Epoch/issues/916
|
||||
|
||||
Reference in new issue
Block a user