0.981 + 1.7.6.1 CE

+ Increased raise horde distance to 65m.
+ decreased raise horde action timer to 7 seconds.
+ sync with 1.7.6.1 CE
This commit is contained in:
vbawol
2013-02-26 20:05:35 -06:00
parent 52461f4a52
commit 3c9df28ead
319 changed files with 5267 additions and 1695 deletions

View File

@@ -29,7 +29,8 @@ if (!isNull _object) then {
{ [_x,"gear"] call server_updateObject } foreach
(nearestObjects [getPosATL _object, ["Car", "Helicopter", "Motorcycle", "Ship", "TentStorage", "VaultStorage"], 10]);
if (alive _object) then {
[_object,(magazines _object),true,(unitBackpack _object)] call server_playerSync;
//[_object,(magazines _object),true,(unitBackpack _object)] call server_playerSync;
[_object,[],true] call server_playerSync;
_myGroup = group _object;
deleteVehicle _object;
deleteGroup _myGroup;

View File

@@ -65,6 +65,7 @@ if (typeName _minutes == "STRING") then
if (_characterID != "0") then
{
_key = format["CHILD:202:%1:%2:%3:",_characterID,_minutes,_infected];
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
}
else

View File

@@ -120,7 +120,9 @@ if (count _medical > 0) then {
//Add Wounds
{
_playerObj setVariable[_x,true,true];
["usecBleed",[_playerObj,_x,_hit]] call broadcastRpcCallAll;
//["usecBleed",[_playerObj,_x,_hit]] call broadcastRpcCallAll;
usecBleed = [_playerObj,_x,_hit];
publicVariable "usecBleed";
} forEach (_medical select 8);
//Add fractures

View File

@@ -97,6 +97,7 @@ if (_characterID != "0") then {
if (_isNewGear) then {
//diag_log ("gear..."); sleep 0.05;
_playerGear = [weapons _character,_magazines];
//diag_log ("playerGear: " +str(_playerGear));
_backpack = unitBackpack _character;
_playerBackp = [typeOf _backpack,getWeaponCargo _backpack,getMagazineCargo _backpack];
};
@@ -198,7 +199,11 @@ if (_characterID != "0") then {
// If player is in a vehicle, keep its position updated
if (vehicle _character != _character) then {
[vehicle _character, "position"] call server_updateObject;
// [vehicle _character, "position"] call server_updateObject;
if (!(vehicle _character in needUpdate_objects)) then {
//diag_log format["DEBUG: Added to NeedUpdate=%1",_object];
needUpdate_objects set [count needUpdate_objects, vehicle _character];
};
};
// Force gear updates for nearby vehicles/tents

View File

@@ -24,6 +24,12 @@ while {true} do {
//Adding some Random systems
_crashModel = ["UH60Wreck_DZ","UH1Wreck_DZ"] call BIS_fnc_selectRandom;
//Crash loot just uncomment the one you wish to use by default with 50cals is enabled.
//Table including 50 cals
_lootTable = ["Military","HeliCrash","MilitarySpecial"] call BIS_fnc_selectRandom;
//Table without 50 cals
//_lootTable = ["Military","HeliCrash_No50s","MilitarySpecial"] call BIS_fnc_selectRandom;
_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName");
diag_log(format["CRASHSPAWNER: %1%2 chance to spawn '%3' with loot table '%4' at %5", round(_spawnChance * 100), '%', _crashName, _lootTable, _timeToSpawn]);
@@ -69,13 +75,15 @@ while {true} do {
_crash setVariable ["ObjectID",1,true];
if (_spawnFire) then {
["dayzFire",[_crash,2,time,false,_fadeFire]] call broadcastRpcCallAll;
//["dayzFire",[_crash,2,time,false,_fadeFire]] call broadcastRpcCallAll;
dayzFire = [_crash,2,time,false,_fadeFire];
publicVariable "dayzFire";
_crash setvariable ["fadeFire",_fadeFire,true];
};
_num = round(random _randomizedLoot) + _guaranteedLoot;
_config = configFile >> "CfgBuildingLoot" >> "HeliCrash";
_config = configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes = [] + getArray (_config >> "itemType");
_index = dayz_CBLBase find "HeliCrash";
_weights = dayz_CBLChances select _index;

View File

@@ -84,6 +84,7 @@ _object_damage = {
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_object setHit ["_selection", _hit]
} forEach _hitpoints;
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
@@ -125,6 +126,7 @@ _object_repair = {
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_object setHit ["_selection", _hit]
} forEach _hitpoints;
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
@@ -140,18 +142,20 @@ switch (_type) do {
call _object_damage;
};
case "position": {
call _object_position;
if (!(_object in needUpdate_objects)) then {
diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
needUpdate_objects set [count needUpdate_objects, _object];
};
};
case "gear": {
call _object_inventory;
};
case "damage": {
diag_log ("Damaged Called");
if ( (time - _lastUpdate) > 5) then {
call _object_damage;
} else {
if(!_needUpdate)then {
diag_log format["DEBUG: Added to NeedUpdate=%1",_object];
if (!(_object in needUpdate_objects)) then {
diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
needUpdate_objects set [count needUpdate_objects, _object];
};
};