if PlayerDist < 80 then
if combattype == ai_combattype_freezermelee then
if tFrame >= tStart+10 and tFrame <= tFinish-30 then
if math.random(5,5) == 1 then
HurtPlayer(e,math.random(5,5))
end
end
else
if combattype == ai_combattype_bashmelee then
if tFrame >= tStart+25 and tFrame <= tStart+35 then
HurtPlayer(e,math.random(5,5))
ForcePlayer ( g_Entity[e]['angley'], 2.0 )
end
else
if tFrame >= tStart+10 and tFrame <= tStart+15 then
HurtPlayer(e,math.random(5,5))
ForcePlayer ( g_Entity[e]['angley'], 2.0 )
end
in another ai script like zombie apocalypse:
if GetPlayerDistance(e)<attackdistance[e]+60 then
HurtPlayer(e,8)
i modify the hurtplayer to 8 to have more damage in zombies. and +60 to have more distance when the zombies hit me.
but in regular zombies i modify the math random and player dist. so when i approach to the enemy, they attack me and i have -20 of life. if i approach more close (very close to the zombie) they attack me again and i have -100. i need this -100 all time. not -20. you need a video?
?