+ Corrected conversion rate for silver to gold when selling bulk supply
crates.
+ Added sleep within spawn {} for fetching vehicle ID, should reduce db
spam.
+ Switched normal wire to fortrazor_wire and added as builtitems
+ Potential fix for wild spawning helicopters in forests.
+ Player zombies should now be able to break the legs of other players.
+ Purchased vehicles now spawn on the closestHeliHCivil within 200m.
This commit is contained in:
vbawol
2013-02-17 09:14:52 -06:00
parent c6b90e46b0
commit 9ca20ad439
10 changed files with 589 additions and 92 deletions

View File

@@ -19,16 +19,7 @@ _isZombie = _ent isKindOf "zZombie_base";
if (_ent isKindOf "Animal" or _isZombie) then {
_ent setDamage 1;
} else {
// TODO TEST AND Improve
_cnt = count (DAYZ_woundHit select 1);
_index = floor (random _cnt);
_index = (DAYZ_woundHit select 1) select _index;
_wound = (DAYZ_woundHit select 0) select _index;
_damage = 0.1 + random (1.2);
[_item, _wound, _damage, player,"zombie"] call fnc_usec_damageHandler;
["usecBreakLegs",[_unit,player]] call broadcastRpcCallAll;
};