Skip to content

Commit

Permalink
Fix overwritten damage var
Browse files Browse the repository at this point in the history
  • Loading branch information
AirwavesMan committed Jul 4, 2021
1 parent 433b170 commit a43438c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DayZ_Epoch_11.Chernarus/init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "\z\addons\dayz_code\configVariables.sqf" // Don't remove this line
#include "dayz_code\configVariables.sqf" // Don't remove this line

diag_log "Loading Server with Salivals Mod Pack Version: 1.00.04";
diag_log "Loading Server with Salivals Mod Pack Version: 1.00.05";

//DefaultMagazines = ["HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
//DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
Expand Down
6 changes: 3 additions & 3 deletions dayz_server/compile/garage/server_storeVehicle.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
private ["_damage","_VGobjID","_array","_backPack","_backPackCount","_charID","_class","_clientID","_colour","_colour2","_damage","_displayName","_fnc_sanitizeInput","_fuel","_gearCount","_hit","_hitpoints","_index","_inventory","_inventoryCount","_key","_magazine","_magazineCount","_message","_name","_objectID","_objectUID","_player","_playerUID","_selection","_vehicle","_weapons","_weaponsCount","_woGear"];
private ["_damageVeh","_VGobjID","_array","_backPack","_backPackCount","_charID","_class","_clientID","_colour","_colour2","_damage","_displayName","_fnc_sanitizeInput","_fuel","_gearCount","_hit","_hitpoints","_index","_inventory","_inventoryCount","_key","_magazine","_magazineCount","_message","_name","_objectID","_objectUID","_player","_playerUID","_selection","_vehicle","_weapons","_weaponsCount","_woGear"];

_vehicle = _this select 0;
_player = _this select 1;
Expand Down Expand Up @@ -46,7 +46,7 @@ if (_VGobjID == "0") then {
diag_log format["VG Error: Could not find vehicle with VGobjUID = %1 in vg_alreadySpawned array (server_storeVehicle.sqf) - possible duplicate vehicle being stored. PlayerUID: %2", _VGobjID, (getPlayerUID _player)];
};
};
_damage = damage _vehicle;
_damageVeh = damage _vehicle;
_fuel = fuel _vehicle;
_colour = _vehicle getVariable ["Colour","0"];
_colour2 = _vehicle getVariable ["Colour2","0"];
Expand Down Expand Up @@ -78,7 +78,7 @@ if (!_woGear) then {
_inventoryCount = [_weaponsCount, _magazineCount, _backPackCount];
};

_key = str formatText["CHILD:802:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:",_playerUID,_name,_displayName,_class,_charID,_inventory,_array,_fuel,_damage,_colour,_colour2,vg_serverKey,_VGobjID,_inventoryCount];
_key = str formatText["CHILD:802:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:",_playerUID,_name,_displayName,_class,_charID,_inventory,_array,_fuel,_damageVeh,_colour,_colour2,vg_serverKey,_VGobjID,_inventoryCount];
_key call server_hiveWrite;

PVDZE_storeVehicleResult = true;
Expand Down

0 comments on commit a43438c

Please sign in to comment.