Product Chat / zombies dont attack well

Author
Message
themegapolice 96
11
Years of Service
User Offline
Joined: 17th Oct 2013
Location:
Posted: 5th Feb 2019 00:03
I have a problem with the zombies stock of characters. The problem is that the damage they do is little. I was editing the combatmelee and the combatcore both (module) but I do not see change. The only change I see is that if I get too close to the zombie it takes me 100 lives, but if it attacks me normal it takes me 20 lives or less. I would like him to take away those 100 lives when I get close to him. And when I mean close to him, it's when you walk towards him and you stand in front of him, there he gets 100 of life. but if you stop normal without getting too close to him and he gives you a blow, then he takes you out 20.
With the other zombies of the '' classic '' edit the hurtplayer and put it to 8 since it was in 1 and now the zombie instead of taking 10 life of a hit, takes 80 life in a single hit to do more survival
The problem would be that, that the stock zombies of characters do not attack strongly.
?
PM
sbegley001
8
Years of Service
User Offline
Joined: 24th Jun 2016
Location: Southern Oregon, USA
Posted: 5th Feb 2019 02:23
I usually just lower the health of the player
themegapolice 96
11
Years of Service
User Offline
Joined: 17th Oct 2013
Location:
Posted: 5th Feb 2019 11:47
yeah, but i need to put some heal items in the map. i need the zombie hurt the player 50 of life...
?
PM
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 5th Feb 2019 14:37
Can you show us the lines you changed? Maybe there is the problem...
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download
PM
themegapolice 96
11
Years of Service
User Offline
Joined: 17th Oct 2013
Location:
Posted: 5th Feb 2019 21:13
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?
?
PM
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 5th Feb 2019 22:40
If you want to have always 100 damage, why you use the math.random function?
just use:
HurtPlayer(e,100)

also this line makes no sense at all:
if math.random(5,5) == 1 then
this line is never true, because math.random(5,5) is always 5 and not 1
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download
PM
themegapolice 96
11
Years of Service
User Offline
Joined: 17th Oct 2013
Location:
Posted: 6th Feb 2019 11:16
the 1 ten is the damage or what? im bad in english. i soppuse the math. random is the damage or someting like that.
the hurtplayer(e,100) is not in that text. is in the apocalypse text. how to modify to have 100 damage all time?
?
PM

Login to post a reply

Server time is: 2024-11-24 02:35:55
Your offset time is: 2024-11-24 02:35:55