mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-10 10:12:54 +03:00
v0.5
Removed bandit/hero switching. Combining of Steel Bolts and added reload anmiation to 4 and 8 pack crossbow bolts after fired and changed to longer reload time.
This commit is contained in:
@@ -21,9 +21,9 @@ if (_isFemale) exitWith {cutText ["Currently Female Characters cannot change to
|
||||
|
||||
private["_itemNew","_myModel","_humanity","_isBandit","_isHero"];
|
||||
_myModel = (typeOf player);
|
||||
_humanity = player getVariable ["humanity",0];
|
||||
_isBandit = _humanity < -2000;
|
||||
_isHero = _humanity > 5000;
|
||||
//_humanity = player getVariable ["humanity",0];
|
||||
//_isBandit = _humanity < -2000;
|
||||
//_isHero = _humanity > 5000;
|
||||
_itemNew = "Skin_" + _myModel;
|
||||
|
||||
if ( !(isClass(_config >> _itemNew)) ) then {
|
||||
|
||||
@@ -43,6 +43,14 @@ if (_ammo isKindOf "SmokeShell") then {
|
||||
//Check if need to place arrow
|
||||
if (_ammo isKindOf "Bolt") then {
|
||||
_id = _this spawn player_crossbowBolt;
|
||||
|
||||
// Reload animation if more that 1 in mag/pack
|
||||
_count = player ammo _weapon;
|
||||
if(_count >= 1) then {
|
||||
_unit playActionNow "reloadMagazine";
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
if (_ammo isKindOf "GrenadeHand") then {
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ while {true} do {
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
if (_humanity < -2000 and !_isBandit) then {
|
||||
_isBandit = true;
|
||||
_model = typeOf player;
|
||||
@@ -101,7 +102,8 @@ while {true} do {
|
||||
[dayz_playerUID,dayz_characterID,"Survivor3_DZ"] spawn player_humanityMorph;
|
||||
};
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
//Has infection?
|
||||
if (r_player_infected) then {
|
||||
[player,"cough",8,false] call dayz_zombieSpeak;
|
||||
@@ -199,7 +201,7 @@ while {true} do {
|
||||
};
|
||||
};
|
||||
|
||||
//Record low bloow
|
||||
//Record low blood
|
||||
_lowBlood = player getVariable ["USEC_lowBlood", false];
|
||||
if ((r_player_blood < r_player_bloodTotal) and !_lowBlood) then {
|
||||
player setVariable["USEC_lowBlood",true,true];
|
||||
|
||||
Reference in New Issue
Block a user