mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
1.0.7 Updates - variables.sqf, compiles.sqf, and publicEH.sqf (#2041)
* Move PVCDZ_OpenTarget_Reset to client only * Move some functions to client only fnc_usec_damageHandler, dayz_inflame_showMenu, dayz_inflame_showMenu_other, DZ_KeyDown_EH, dayz_EjectPlayer compiled on client only. * Upload the reorganized variables.sqf * Update Changelog
This commit is contained in:
@@ -32,5 +32,8 @@
|
|||||||
[UPDATED] Added night vision mode back to DMR_DZ and M4SPR_DZE after it was removed with the 2018-04-05 A2OA CorePatch (d6cf707) @ebayShopper
|
[UPDATED] Added night vision mode back to DMR_DZ and M4SPR_DZE after it was removed with the 2018-04-05 A2OA CorePatch (d6cf707) @ebayShopper
|
||||||
[UPDATED] All M32 grenades using one inventroy slot now. (cc85067) @AirwavesMan
|
[UPDATED] All M32 grenades using one inventroy slot now. (cc85067) @AirwavesMan
|
||||||
[UPDATED] The Czech Vest Pouch can carry one weapon now. This was changed to be more intuitive and to avoid disappearing weapons. (f7ea9cb) @AirwavesMan
|
[UPDATED] The Czech Vest Pouch can carry one weapon now. This was changed to be more intuitive and to avoid disappearing weapons. (f7ea9cb) @AirwavesMan
|
||||||
|
[UPDATED] Old/unused variables removed from variables.sqf. Entire file reorganized. (4accdee) @worldwidesorrow
|
||||||
|
[UPDATED] Functions fnc_usec_damageHandler, dayz_inflame_showMenu, dayz_inflame_showMenu_other, DZ_KeyDown_EH, dayz_EjectPlayer compiled on client only - compiles.sqf. (7613e3a) @worldwidesorrow
|
||||||
|
[UPDATED] "PVCDZ_OpenTarget_Reset" moved to client only - publicEH.sqf. (58a98b7) @worldwidesorrow
|
||||||
|
|
||||||
[INFO] Synced with DayZMod upstream up to commit fe063a8
|
[INFO] Synced with DayZMod upstream up to commit fe063a8
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ if (!isDedicated) then {
|
|||||||
player_manageDoor = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\doorManagement\initDoorManagement.sqf";
|
player_manageDoor = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\doorManagement\initDoorManagement.sqf";
|
||||||
player_enterCode = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\doorManagement\player_enterCode.sqf";
|
player_enterCode = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\doorManagement\player_enterCode.sqf";
|
||||||
FNC_check_access = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_check_access.sqf";
|
FNC_check_access = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_check_access.sqf";
|
||||||
|
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage
|
||||||
|
|
||||||
// Advanced trading default inits for maintaining, Advanced Trading and custom scripts to utilize gem based currency.
|
// Advanced trading default inits for maintaining, Advanced Trading and custom scripts to utilize gem based currency.
|
||||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\AdvancedTrading\defaultInit.sqf";
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\AdvancedTrading\defaultInit.sqf";
|
||||||
@@ -613,6 +614,80 @@ if (!isDedicated) then {
|
|||||||
if (!DZE_ConfigTrader) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_hiveTrading.sqf";};
|
if (!DZE_ConfigTrader) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_hiveTrading.sqf";};
|
||||||
// recent murders menu
|
// recent murders menu
|
||||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_murderBoard.sqf";
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_murderBoard.sqf";
|
||||||
|
|
||||||
|
dayz_inflame_showMenu = {
|
||||||
|
private ["_object","_ret","_flame","_islit","_hasTool","_whatIwant"];
|
||||||
|
|
||||||
|
_object = _this select 0;
|
||||||
|
_whatIwant = _this select 1;
|
||||||
|
_ret = false;
|
||||||
|
|
||||||
|
_islit = (inflamed _object);
|
||||||
|
|
||||||
|
_hasTool = false;
|
||||||
|
if (!_islit) then {
|
||||||
|
{
|
||||||
|
if (_x in items player) exitWith { _hasTool = true; };
|
||||||
|
} count DayZ_Ignitors;
|
||||||
|
};
|
||||||
|
_ret = (_whatIwant && !_islit && _hasTool) or (!_whatIwant && _isLit);
|
||||||
|
|
||||||
|
_ret
|
||||||
|
};
|
||||||
|
|
||||||
|
dayz_reduceItems = {
|
||||||
|
private ["_item","_class","_amount","_qtyRemaining"];
|
||||||
|
|
||||||
|
_item = _this select 0; //Item in current inventory.
|
||||||
|
_class = _this select 1; //Class type to use.
|
||||||
|
|
||||||
|
//Does player have the original item? (Not Really needed player_useMeds checks)
|
||||||
|
if (_item in magazines player) exitWith {
|
||||||
|
//Amount in current box (will be -1 for a random chance to start the reducing)
|
||||||
|
_amount = getNumber(configfile >> "CfgMagazines" >> _item >> _class >> "amount");
|
||||||
|
|
||||||
|
//Item to move too if there is some left
|
||||||
|
_qtyRemaining = getText(configfile >> "CfgMagazines" >> _item >> _class >> "qtyRemaining");
|
||||||
|
|
||||||
|
//Only run for the random amount.
|
||||||
|
if (_amount == -1) then {
|
||||||
|
//Chance to start the reduction
|
||||||
|
if ([getNumber(configfile >> "CfgMagazines" >> _item >> _class >> "chance")] call fn_chance) then {
|
||||||
|
player removeMagazine _item;
|
||||||
|
player addMagazine _qtyRemaining;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
player removeMagazine _item;
|
||||||
|
player addMagazine _qtyRemaining;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
true
|
||||||
|
};
|
||||||
|
|
||||||
|
dayz_inflame_showMenu_other = {
|
||||||
|
private ["_fireplace","_ret","_flame","_islit","_hasTool","_whatIwant"];
|
||||||
|
|
||||||
|
_fireplace = _this select 0;
|
||||||
|
_whatIwant = _this select 1;
|
||||||
|
_ret = false;
|
||||||
|
// return a boolean. true <=> player can put out the lit fire, can light a fire with match
|
||||||
|
_flame = nearestObjects [_fireplace, ["flamable_DZ"], 1];
|
||||||
|
_flame = if (count _flame > 0) then { _flame select 0 } else { objNull };
|
||||||
|
_islit = !(isNull _flame) && {(inflamed _flame)};
|
||||||
|
_hasTool = false;
|
||||||
|
if (!_islit) then {
|
||||||
|
{
|
||||||
|
if (_x in items player) exitWith { _hasTool = true; };
|
||||||
|
} count DayZ_Ignitors;
|
||||||
|
};
|
||||||
|
_ret = (_whatIwant && !_islit && _hasTool) or (!_whatIwant && _isLit);
|
||||||
|
//systemChat str [_flame, _hasTool, _islit, _ret];
|
||||||
|
|
||||||
|
_ret
|
||||||
|
};
|
||||||
|
|
||||||
|
DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf";
|
||||||
|
dayz_EjectPlayer = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\dze_ejectPlayer.sqf";
|
||||||
};
|
};
|
||||||
|
|
||||||
//Both
|
//Both
|
||||||
@@ -629,7 +704,6 @@ object_getHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\o
|
|||||||
object_setHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_setHit.sqf"; //process the hit as a NORMAL damage (useful for persistent vehicles)
|
object_setHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_setHit.sqf"; //process the hit as a NORMAL damage (useful for persistent vehicles)
|
||||||
object_processHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_processHit.sqf"; //process the hit in the REVO damage system (records and sets hit)
|
object_processHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_processHit.sqf"; //process the hit in the REVO damage system (records and sets hit)
|
||||||
//object_cargoCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_cargoCheck.sqf"; //Run by the player or server to monitor changes in cargo contents
|
//object_cargoCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_cargoCheck.sqf"; //Run by the player or server to monitor changes in cargo contents
|
||||||
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage
|
|
||||||
// Vehicle damage fix
|
// Vehicle damage fix
|
||||||
fnc_veh_handleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleDam.sqf";
|
fnc_veh_handleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleDam.sqf";
|
||||||
fnc_veh_handleKilled = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleKilled.sqf";
|
fnc_veh_handleKilled = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleKilled.sqf";
|
||||||
@@ -663,10 +737,10 @@ fn_getModelName = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile
|
|||||||
fn_niceSpot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_niceSpot.sqf";
|
fn_niceSpot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_niceSpot.sqf";
|
||||||
fnc_Obj_FenceHandleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fence_handleDam.sqf";
|
fnc_Obj_FenceHandleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fence_handleDam.sqf";
|
||||||
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
||||||
DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf";
|
|
||||||
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
||||||
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
||||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf";
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf";
|
||||||
|
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\achievements_init.sqf"; //start achievements_init
|
||||||
|
|
||||||
if (dayz_townGenerator) then {
|
if (dayz_townGenerator) then {
|
||||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // pseudo random for plantSpanwer
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // pseudo random for plantSpanwer
|
||||||
@@ -682,7 +756,6 @@ BIS_fnc_numberDigits = compile preprocessFileLineNumbers "\z\addons\dayz_code\co
|
|||||||
BIS_fnc_numberText = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_numberText.sqf";
|
BIS_fnc_numberText = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_numberText.sqf";
|
||||||
local_lockUnlock = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf"; //When vehicle is local to unit perform locking vehicle
|
local_lockUnlock = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf"; //When vehicle is local to unit perform locking vehicle
|
||||||
FNC_GetSetPos = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fnc_getSetPos.sqf";
|
FNC_GetSetPos = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fnc_getSetPos.sqf";
|
||||||
dayz_EjectPlayer = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\dze_ejectPlayer.sqf";
|
|
||||||
dayz_groupInvite = compile preprocessFileLineNumbers "\z\addons\dayz_code\groups\handleInvite.sqf";
|
dayz_groupInvite = compile preprocessFileLineNumbers "\z\addons\dayz_code\groups\handleInvite.sqf";
|
||||||
|
|
||||||
player_sumMedical = {
|
player_sumMedical = {
|
||||||
@@ -719,35 +792,6 @@ player_sumMedical = {
|
|||||||
_medical
|
_medical
|
||||||
};
|
};
|
||||||
|
|
||||||
dayz_reduceItems = {
|
|
||||||
private ["_item","_class","_amount","_qtyRemaining"];
|
|
||||||
|
|
||||||
_item = _this select 0; //Item in current inventory.
|
|
||||||
_class = _this select 1; //Class type to use.
|
|
||||||
|
|
||||||
//Does player have the original item? (Not Really needed player_useMeds checks)
|
|
||||||
if (_item in magazines player) exitWith {
|
|
||||||
//Amount in current box (will be -1 for a random chance to start the reducing)
|
|
||||||
_amount = getNumber(configfile >> "CfgMagazines" >> _item >> _class >> "amount");
|
|
||||||
|
|
||||||
//Item to move too if there is some left
|
|
||||||
_qtyRemaining = getText(configfile >> "CfgMagazines" >> _item >> _class >> "qtyRemaining");
|
|
||||||
|
|
||||||
//Only run for the random amount.
|
|
||||||
if (_amount == -1) then {
|
|
||||||
//Chance to start the reduction
|
|
||||||
if ([getNumber(configfile >> "CfgMagazines" >> _item >> _class >> "chance")] call fn_chance) then {
|
|
||||||
player removeMagazine _item;
|
|
||||||
player addMagazine _qtyRemaining;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
player removeMagazine _item;
|
|
||||||
player addMagazine _qtyRemaining;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
true
|
|
||||||
};
|
|
||||||
|
|
||||||
dayz_inflame = {
|
dayz_inflame = {
|
||||||
private "_object";
|
private "_object";
|
||||||
_object = _this select 0;
|
_object = _this select 0;
|
||||||
@@ -759,26 +803,6 @@ dayz_inflame = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dayz_inflame_showMenu = {
|
|
||||||
private ["_object","_ret","_flame","_islit","_hasTool","_whatIwant"];
|
|
||||||
|
|
||||||
_object = _this select 0;
|
|
||||||
_whatIwant = _this select 1;
|
|
||||||
_ret = false;
|
|
||||||
|
|
||||||
_islit = (inflamed _object);
|
|
||||||
|
|
||||||
_hasTool = false;
|
|
||||||
if (!_islit) then {
|
|
||||||
{
|
|
||||||
if (_x in items player) exitWith { _hasTool = true; };
|
|
||||||
} count DayZ_Ignitors;
|
|
||||||
};
|
|
||||||
_ret = (_whatIwant && !_islit && _hasTool) or (!_whatIwant && _isLit);
|
|
||||||
|
|
||||||
_ret
|
|
||||||
};
|
|
||||||
|
|
||||||
dayz_inflame_other = {
|
dayz_inflame_other = {
|
||||||
private ["_fireplace","_ret","_flame","_islit","_isLit","_pos"];
|
private ["_fireplace","_ret","_flame","_islit","_isLit","_pos"];
|
||||||
|
|
||||||
@@ -806,28 +830,6 @@ dayz_inflame_other = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dayz_inflame_showMenu_other = {
|
|
||||||
private ["_fireplace","_ret","_flame","_islit","_hasTool","_whatIwant"];
|
|
||||||
|
|
||||||
_fireplace = _this select 0;
|
|
||||||
_whatIwant = _this select 1;
|
|
||||||
_ret = false;
|
|
||||||
// return a boolean. true <=> player can put out the lit fire, can light a fire with match
|
|
||||||
_flame = nearestObjects [_fireplace, ["flamable_DZ"], 1];
|
|
||||||
_flame = if (count _flame > 0) then { _flame select 0 } else { objNull };
|
|
||||||
_islit = !(isNull _flame) && {(inflamed _flame)};
|
|
||||||
_hasTool = false;
|
|
||||||
if (!_islit) then {
|
|
||||||
{
|
|
||||||
if (_x in items player) exitWith { _hasTool = true; };
|
|
||||||
} count DayZ_Ignitors;
|
|
||||||
};
|
|
||||||
_ret = (_whatIwant && !_islit && _hasTool) or (!_whatIwant && _isLit);
|
|
||||||
//systemChat str [_flame, _hasTool, _islit, _ret];
|
|
||||||
|
|
||||||
_ret
|
|
||||||
};
|
|
||||||
|
|
||||||
isInflamed = {
|
isInflamed = {
|
||||||
private "_flame";
|
private "_flame";
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
"PVCDZ_obj_GutBody" addPublicVariableEventHandler {(_this select 1) spawn local_gutObject};
|
"PVCDZ_obj_GutBody" addPublicVariableEventHandler {(_this select 1) spawn local_gutObject};
|
||||||
"PVCDZ_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel};
|
"PVCDZ_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel};
|
||||||
"PVCDZ_veh_engineSwitch" addPublicVariableEventHandler {(_this select 1) spawn dayz_engineSwitch};
|
"PVCDZ_veh_engineSwitch" addPublicVariableEventHandler {(_this select 1) spawn dayz_engineSwitch};
|
||||||
"PVCDZ_OpenTarget_Reset" addPublicVariableEventHandler { OpenTarget_Time = diag_tickTime; }; //reset OpenTarget timer
|
|
||||||
|
|
||||||
// EPOCH ADDITIONS
|
// EPOCH ADDITIONS
|
||||||
"PVDZE_veh_Lock" addPublicVariableEventHandler {(_this select 1) call local_lockUnlock};
|
"PVDZE_veh_Lock" addPublicVariableEventHandler {(_this select 1) call local_lockUnlock};
|
||||||
@@ -268,6 +267,7 @@ if (!isDedicated) then {
|
|||||||
"PVCDZ_hlt_Transfuse_completed" addPublicVariableEventHandler {player setVariable["TransfusionCompleted",true]; };
|
"PVCDZ_hlt_Transfuse_completed" addPublicVariableEventHandler {player setVariable["TransfusionCompleted",true]; };
|
||||||
"PVCDZ_hlt_PainK" addPublicVariableEventHandler {(_this select 1) call player_medPainkiller};
|
"PVCDZ_hlt_PainK" addPublicVariableEventHandler {(_this select 1) call player_medPainkiller};
|
||||||
"PVCDZ_hlt_AntiB" addPublicVariableEventHandler {(_this select 1) call player_medAntiBiotics};
|
"PVCDZ_hlt_AntiB" addPublicVariableEventHandler {(_this select 1) call player_medAntiBiotics};
|
||||||
|
"PVCDZ_OpenTarget_Reset" addPublicVariableEventHandler { OpenTarget_Time = diag_tickTime; }; //reset OpenTarget timer
|
||||||
|
|
||||||
"PVCDZ_plr_Legs" addPublicVariableEventHandler {
|
"PVCDZ_plr_Legs" addPublicVariableEventHandler {
|
||||||
_entity = (_this select 1) select 0;
|
_entity = (_this select 1) select 0;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user