From 899f8c93e1d07f51435cc9560270f3e3243a7c88 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 8 Jun 2014 13:57:22 -0500 Subject: [PATCH 01/12] fixed us53 --- .../Configs/CfgVehicles/AIR/CH53.hpp | 32 +++---------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp b/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp index 51138b7bb..5f2090df3 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp @@ -1,16 +1,6 @@ -#include "\usec_ch53\config.cpp" - -class CH53_base: USEC_ch53_E { - class Turrets: Turrets { - class MainTurret: MainTurret { - class ViewOptics: ViewOptics {}; - class Turrets: Turrets {}; - }; - }; -}; - -class CH53_DZ: CH53_base { - displayname = "USEC CH53E"; +class USEC_ch53_E; +class CH53_DZ : USEC_ch53_E { + displayname = "USEC CH53E DZ"; displaynameshort = "CH53_DZ"; enablemanualfire = 0; scope = 2; @@ -27,18 +17,4 @@ class CH53_DZ: CH53_base { transportMaxWeapons = 25; transportMaxMagazines = 80; transportmaxbackpacks = 15; - - class Turrets : Turrets { - class MainTurret : MainTurret { - magazines[] = {"2000Rnd_762x51_M134"}; - }; - }; -}; -class CH53_DZE: CH53_DZ { - displaynameshort = "CH53_DZE"; - class Turrets : Turrets { - class MainTurret : MainTurret { - magazines[] = {}; - }; - }; -}; +}; \ No newline at end of file From 2215c3040ee603c3c691d6181299eab9dc81a85a Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 8 Jun 2014 13:58:04 -0500 Subject: [PATCH 02/12] use dze instead --- SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp b/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp index 5f2090df3..3103a97a5 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/AIR/CH53.hpp @@ -1,5 +1,5 @@ class USEC_ch53_E; -class CH53_DZ : USEC_ch53_E { +class CH53_DZE : USEC_ch53_E { displayname = "USEC CH53E DZ"; displaynameshort = "CH53_DZ"; enablemanualfire = 0; From f886cea45ae06407042127dc040c4461839f8b70 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 8 Jun 2014 14:37:14 -0500 Subject: [PATCH 03/12] fixed #1297 --- .../Configs/CfgLoot/CfgBuildingLoot.hpp | 48 +++++++++---------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgLoot/CfgBuildingLoot.hpp b/SQF/dayz_code/Configs/CfgLoot/CfgBuildingLoot.hpp index 7db1937fb..8e6efae96 100644 --- a/SQF/dayz_code/Configs/CfgLoot/CfgBuildingLoot.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/CfgBuildingLoot.hpp @@ -366,17 +366,15 @@ class CfgBuildingLoot { { "machineguns", "cfglootweapon", 0.03 } }; lootTypeSmall[] = { - { "pistols","cfglootweapon",0.15 }, - { "Binocular","weapon",0.02 }, - { "ItemFlashlightRed","weapon",0.03 }, - { "ItemKnife","weapon",0.04 }, - { "ItemGPS","weapon",0.02 }, - { "ItemMap","weapon",0.02 }, - { "","medical",0.09 }, - { "","generic",0.34 }, - { "","military",0.26 }, - { "submachinegun","cfglootweapon",0.02 }, - { "ItemEtool","weapon",0.01 } + { "pistols", "cfglootweapon", 0.14 }, + { "Binocular", "weapon", 0.05 }, + { "ItemFlashlightRed", "weapon", 0.03 }, + { "ItemKnife", "weapon", 0.04 }, + { "ItemGPS", "weapon", 0.02 }, + { "", "medical", 0.12 }, + { "", "generic", 0.22 }, + { "", "military", 0.35 }, + { "ItemEtool", "weapon", 0.03 } }; }; class MilitaryIndustrial: Default { @@ -412,16 +410,15 @@ class CfgBuildingLoot { { "machineguns", "cfglootweapon", 0.01 } }; lootTypeSmall[] = { - { "pistols","cfglootweapon",0.12 }, - { "Binocular","weapon",0.05 }, - { "ItemFlashlightRed","weapon",0.03 }, - { "ItemKnife","weapon",0.04 }, - { "ItemGPS","weapon",0.02 }, - { "","medical",0.02 }, - { "","generic",0.09 }, - { "","military",0.34 }, - { "submachinegun","cfglootweapon",0.26 }, - { "ItemEtool","weapon",0.03 } + { "pistols", "cfglootweapon", 0.14 }, + { "Binocular", "weapon", 0.05 }, + { "ItemFlashlightRed", "weapon", 0.03 }, + { "ItemKnife", "weapon", 0.04 }, + { "ItemGPS", "weapon", 0.02 }, + { "", "medical", 0.12 }, + { "", "generic", 0.22 }, + { "", "military", 0.35 }, + { "ItemEtool", "weapon", 0.03 } }; }; class IndustrialMilitary: Default { @@ -462,15 +459,14 @@ class CfgBuildingLoot { { "machineguns", "cfglootweapon", 0.01 } }; lootTypeSmall[] = { - { "pistols", "cfglootweapon", 0.12 }, + { "pistols", "cfglootweapon", 0.14 }, { "Binocular", "weapon", 0.05 }, { "ItemFlashlightRed", "weapon", 0.03 }, { "ItemKnife", "weapon", 0.04 }, { "ItemGPS", "weapon", 0.02 }, - { "", "medical", 0.02 }, - { "", "generic", 0.09 }, - { "", "military", 0.34 }, - { "submachinegun", "cfglootweapon", 0.26 }, + { "", "medical", 0.12 }, + { "", "generic", 0.22 }, + { "", "military", 0.35 }, { "ItemEtool", "weapon", 0.03 } }; }; From 87a914ca9e9da4ea204fbd08291799422a3afd11 Mon Sep 17 00:00:00 2001 From: Namindu Date: Sun, 8 Jun 2014 13:39:41 -0700 Subject: [PATCH 04/12] apply "false" to the variable "_abort" --- SQF/dayz_code/actions/fill_nearestVehicle.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/fill_nearestVehicle.sqf b/SQF/dayz_code/actions/fill_nearestVehicle.sqf index 1fa14766f..821215fda 100644 --- a/SQF/dayz_code/actions/fill_nearestVehicle.sqf +++ b/SQF/dayz_code/actions/fill_nearestVehicle.sqf @@ -7,6 +7,8 @@ _isVehicle = false; _vehicleSrc = _this select 3; +_abort = false + if(!(isNull _vehicleSrc)) then { _isVehicle = ((_vehicleSrc isKindOf "AllVehicles") && !(_vehicleSrc isKindOf "Man")); @@ -147,4 +149,4 @@ if(_IsNearVehicle >= 1) then { } else { cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"]; }; -DZE_ActionInProgress = false; \ No newline at end of file +DZE_ActionInProgress = false; From 98b00ed2cd941f566bb8a49ca122ae964f30dfa7 Mon Sep 17 00:00:00 2001 From: Namindu Date: Sun, 8 Jun 2014 21:39:31 -0700 Subject: [PATCH 05/12] I forgot a ";" --- SQF/dayz_code/actions/fill_nearestVehicle.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/fill_nearestVehicle.sqf b/SQF/dayz_code/actions/fill_nearestVehicle.sqf index 821215fda..f7d51061c 100644 --- a/SQF/dayz_code/actions/fill_nearestVehicle.sqf +++ b/SQF/dayz_code/actions/fill_nearestVehicle.sqf @@ -7,7 +7,7 @@ _isVehicle = false; _vehicleSrc = _this select 3; -_abort = false +_abort = false; if(!(isNull _vehicleSrc)) then { From a8f3fc3b309c0b0a9ca223a34edd4443b05e1390 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 9 Jun 2014 12:56:18 -0400 Subject: [PATCH 06/12] Undefined Vars --- SQF/dayz_code/init/variables.sqf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 5c8b0eebd..8f18a4a27 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -605,7 +605,15 @@ if(isServer) then { if(isNil "DZE_CleanNull") then { DZE_CleanNull = false; }; - + if (isNil "DZE_DeathMsgGlobal") then { + DZE_DeathMsgGlobal = false; + }; + if (isNil "DZE_DeathMsgSide") then { + DZE_DeathMsgSide = false; + }; + if (isNil "DZE_DeathMsgTitleText") then { + DZE_DeathMsgTitleText = false; + }; DZE_safeVehicle = ["ParachuteWest","ParachuteC"]; }; From 92b942757d91eb78fb7448c6223d0bffa81a9658 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 9 Jun 2014 12:58:00 -0400 Subject: [PATCH 07/12] This causes errors --- SQF/dayz_code/compile/player_death.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/player_death.sqf b/SQF/dayz_code/compile/player_death.sqf index c9596d097..00b053854 100644 --- a/SQF/dayz_code/compile/player_death.sqf +++ b/SQF/dayz_code/compile/player_death.sqf @@ -91,9 +91,9 @@ addSwitchableUnit dayz_originalPlayer; setPlayable dayz_originalPlayer; selectPlayer dayz_originalPlayer; -_myGroup = group _body; -[_body] joinSilent dayz_firstGroup; -deleteGroup _myGroup; +//_myGroup = group _body; +//[_body] joinSilent dayz_firstGroup; +//deleteGroup _myGroup; 3 cutRsc ["default", "PLAIN",3]; 4 cutRsc ["default", "PLAIN",3]; From b144c7dce639a170997a8a0605af061e9c1beedd Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 9 Jun 2014 13:01:56 -0400 Subject: [PATCH 08/12] Fix death messages --- SQF/dayz_code/compile/player_death.sqf | 2 +- SQF/dayz_code/init/variables.sqf | 2 +- SQF/dayz_server/compile/fnc_plyrHit.sqf | 4 +++- SQF/dayz_server/compile/server_playerDied.sqf | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/compile/player_death.sqf b/SQF/dayz_code/compile/player_death.sqf index 00b053854..1a0ef2984 100644 --- a/SQF/dayz_code/compile/player_death.sqf +++ b/SQF/dayz_code/compile/player_death.sqf @@ -22,7 +22,7 @@ _infected = 0; if (r_player_infected && DZE_PlayerZed) then { _infected = 1; }; -PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected]; +PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName]; publicVariableServer "PVDZE_plr_Died"; _id = [player,20,true,getPosATL player] call player_alertZombies; diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 8f18a4a27..22e9b9737 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -671,7 +671,7 @@ if(!isDedicated) then { dayz_guiHumanity = -90000; dayz_firstGroup = group player; dayz_originalPlayer = player; - dayz_playerName = "Unknown"; + dayz_playerName = name player; dayz_sourceBleeding = objNull; dayz_clientPreload = false; dayz_authed = false; diff --git a/SQF/dayz_server/compile/fnc_plyrHit.sqf b/SQF/dayz_server/compile/fnc_plyrHit.sqf index 6fa4d8706..35843aa71 100644 --- a/SQF/dayz_server/compile/fnc_plyrHit.sqf +++ b/SQF/dayz_server/compile/fnc_plyrHit.sqf @@ -4,7 +4,9 @@ _attacker = _this select 1; _damage = _this select 2; if (!isPlayer _victim || !isPlayer _attacker) exitWith {}; -if ((owner _victim) == (owner _attacker)) exitWith {}; +if ((owner _victim) == (owner _attacker)) exitWith { + _victim setVariable["AttackedBy", _victim, true]; +}; _weapon = weaponState _attacker; if (_weapon select 0 == "Throw") then diff --git a/SQF/dayz_server/compile/server_playerDied.sqf b/SQF/dayz_server/compile/server_playerDied.sqf index 1ca812c00..ecddabe73 100644 --- a/SQF/dayz_server/compile/server_playerDied.sqf +++ b/SQF/dayz_server/compile/server_playerDied.sqf @@ -5,7 +5,7 @@ _minutes = _this select 1; _newObject = _this select 2; _playerID = _this select 3; _infected = _this select 4; -_victimName = name _newObject; +_victimName = _this select 5; _victim = _newObject; _newObject setVariable ["bodyName", _victimName, true]; @@ -15,12 +15,12 @@ _killerName = _victim getVariable["AttackedByName", "nil"]; // when a zombie kills a player _killer, _killerName && _weapon will be "nil" // we can use this to determine a zombie kill && send a customized message for that. right now no killmsg means it was a zombie. -if (_killerName != "nil") then +if ((typeName _killer) != "STRING") then { _weapon = _victim getVariable["AttackedByWeapon", "nil"]; _distance = _victim getVariable["AttackedFromDistance", "nil"]; - if (_victimName == _killerName) then + if ((owner _victim) == (owner _killer)) then { _message = format["%1 killed himself",_victimName]; _loc_message = format["PKILL: %1 killed himself", _victimName]; From 67574298786cce288f6f290e1a11a84876e39cbf Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Jun 2014 11:51:00 -0500 Subject: [PATCH 09/12] fixed #1317 --- SQF/dayz_code/system/BIS_Effects/secondaries.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/system/BIS_Effects/secondaries.sqf b/SQF/dayz_code/system/BIS_Effects/secondaries.sqf index fe3f98665..4cfd810e1 100644 --- a/SQF/dayz_code/system/BIS_Effects/secondaries.sqf +++ b/SQF/dayz_code/system/BIS_Effects/secondaries.sqf @@ -24,4 +24,4 @@ while {_int>1} do sleep _x; if((_lifecheck&&(alive _v))||(isnull _v)||(((getposASL _v)select 2)<0))exitwith{}; createVehicle ["SmallSecondary", (_v modelToWorld _effect2pos), [], 0, "CAN_COLLIDE"]; -}count(_list); \ No newline at end of file +}forEach(_list); \ No newline at end of file From ad6530c579a7c34aeb8a7bf922dedbf1e09e9c67 Mon Sep 17 00:00:00 2001 From: icomrade Date: Tue, 10 Jun 2014 13:03:37 -0400 Subject: [PATCH 10/12] Little thing --- SQF/dayz_code/actions/maintain_area.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/maintain_area.sqf b/SQF/dayz_code/actions/maintain_area.sqf index c7125f783..6dc3f15d5 100644 --- a/SQF/dayz_code/actions/maintain_area.sqf +++ b/SQF/dayz_code/actions/maintain_area.sqf @@ -115,7 +115,7 @@ switch _option do { _countIn = _x select 1; _itemText = getText(configFile >> "CfgMagazines" >> _itemIn >> "displayName"); if (_cost != "") then { - _cost = _cost + " && "; + _cost = _cost + " and "; }; _cost = _cost + (str(_countIn) + " of " + _itemText); } count _requirements; From 5ef386e5f4c5ec5d5fed6939c3326eaa179c0fab Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Jun 2014 12:18:44 -0500 Subject: [PATCH 11/12] fixed #1312 --- SQF/dayz_server/init/server_functions.sqf | 31 +++++++++++++---------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/SQF/dayz_server/init/server_functions.sqf b/SQF/dayz_server/init/server_functions.sqf index de564d76c..a0f696983 100644 --- a/SQF/dayz_server/init/server_functions.sqf +++ b/SQF/dayz_server/init/server_functions.sqf @@ -833,20 +833,23 @@ server_spawnCleanLoot = { _delQty = 0; _dateNow = (DateToNumber date); { - _keep = _x getVariable ["permaLoot",false]; - if (!_keep) then { - _created = _x getVariable ["created",-0.1]; - if (_created == -0.1) then { - _x setVariable ["created",_dateNow,false]; - _created = _dateNow; - } else { - _age = (_dateNow - _created) * 525948; - if (_age > 20) then { - _nearby = {(isPlayer _x) && (alive _x)} count (_x nearEntities [["CAManBase","AllVehicles"], 130]); - if (_nearby==0) then { - deleteVehicle _x; - sleep 0.025; - _delQty = _delQty + 1; + if (!isNull _x) then { + _keep = _x getVariable["permaLoot", false]; + if (!_keep) then { + _created = _x getVariable["created", -0.1]; + if (_created == -0.1) then{ + _x setVariable["created", _dateNow, false]; + _created = _dateNow; + } + else { + _age = (_dateNow - _created) * 525948; + if (_age > 20) then{ + _nearby = { (isPlayer _x) && (alive _x) } count(_x nearEntities[["CAManBase", "AllVehicles"], 130]); + if (_nearby == 0) then{ + deleteVehicle _x; + sleep 0.025; + _delQty = _delQty + 1; + }; }; }; }; From 32146dd0792dfbd6228ee74039a24ca3736abdf1 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Jun 2014 12:22:21 -0500 Subject: [PATCH 12/12] another little thing --- SQF/dayz_server/system/server_monitor.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_server/system/server_monitor.sqf b/SQF/dayz_server/system/server_monitor.sqf index 8b24742c3..6e3d1a122 100644 --- a/SQF/dayz_server/system/server_monitor.sqf +++ b/SQF/dayz_server/system/server_monitor.sqf @@ -80,7 +80,7 @@ if (isServer && isNil "sm_done") then { _vQty = _vQty + 1; }; }; - diag_log ("HIVE: got " + str(_bQty) + " Epoch Objects && " + str(_vQty) + " Vehicles"); + diag_log ("HIVE: got " + str(_bQty) + " Epoch Objects and " + str(_vQty) + " Vehicles"); }; // # NOW SPAWN OBJECTS #