John Doe90
New Member
Hey guys,
I'm looking for a way to increase the damage zombies do. I've been digging around in the dayz_code and in the dayz_code>>compile>>fn_damagehandler i found a bit of code that looks like a way to increase the damage. My question is how do i increase the damage to say 3-4 hits kills a player and how do i implement it in the server. I have acces to the server.pbo (init.sqf, server_functions, and a set of compile files).
fn_damagehandler extract:
Thanx in advance
I'm looking for a way to increase the damage zombies do. I've been digging around in the dayz_code and in the dayz_code>>compile>>fn_damagehandler i found a bit of code that looks like a way to increase the damage. My question is how do i increase the damage to say 3-4 hits kills a player and how do i implement it in the server. I have acces to the server.pbo (init.sqf, server_functions, and a set of compile files).
fn_damagehandler extract:
Code:
/PVP Damage
_scale = 200;
if (_damage > 0.4) then {
if (_ammo != "zombie") then {
_scale = _scale + 50;
};
if (_isHeadHit) then {
_scale = _scale + 500;
};
if ((isPlayer _source) and !(player == _source)) then {
_scale = _scale + 800;
if (_isHeadHit) then {
_scale = _scale + 500;
};
};
switch (_type) do {
case 1: {_scale = _scale + 200};
case 2: {_scale = _scale + 200};
};
if (_unit == player) then {
//Cause blood loss
//Log Damage
//diag_log ("DAMAGE: player hit by " + typeOf _source + " in " + _hit + " with " + _ammo + " for " + str(_damage) + " scaled " + str(_damage * _scale));
r_player_blood = r_player_blood - (_damage * _scale);
};
};
Thanx in advance