|
Author
|
Message
|
|
Junior Member
|

01-25-2019
, 11:27
problem with a zombie plague level sma mod
|
#1
|
hi all,im having a problem with scripting a ultimate level mod for zombie plague and the problem is,the damage,when i put 9999 for test,the bot damages me with that amount,it works,but when i damage the bots,its just a normal damage and no bonus boost,can someone please fix it somehow,anyone can test it and see what i mean if you put 9999 damage,someone please fix it to work on bots to be damaged too,the damage amount is changeable via the cfg included
ps: i belive its this code here
public TakeDamage(victim, inflictor, attacker, Float:damage, damage_bits)
{
if (get_pcvar_num(cvar_statsmode) == 1 || get_pcvar_num(cvar_statsmode) == 3)
{
if (!zp_get_user_zombie(attacker))
{
if (is_user_alive(attacker))
{
SetHamParamFloat(4, damage + PlayerHmDmg[attacker])
}
g_damagedealt[attacker] += floatround(damage)
while (g_damagedealt[attacker] > get_pcvar_num(cvar_dmg_for_xp))
{
PlayerXP[attacker] += get_pcvar_num(cvar_xp_for_dmg)
g_damagedealt[attacker] -= get_pcvar_num(cvar_dmg_for_xp)
}
}
if (zp_get_user_zombie(attacker) && is_user_alive(attacker))
{
SetHamParamFloat(4, damage + PlayerZmDmg[attacker])
}
CheckLevel(attacker)
return PLUGIN_CONTINUE
}
return PLUGIN_HANDLED
}
someone just need to add bot damage taken tag or something
Last edited by pianicata4; 01-25-2019 at 11:32.
|
|
|
|