Ins't Bug help me

Report bugs to be fixed
Post Reply
alei
Member
Member
China
Posts: 6
Joined: 3 years ago
Contact:

help me

#1

Post by alei » 2 years ago

zombie_escape.cfg

ze_freeze_damage 1

My settings are like this.
But when zombies are frozen by ice mines.
But humans can't do damage when attacking zombies.
trigger_hurt Can't kill zombies.

Please help me.thanks

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2213
Joined: 7 years ago
Contact:

#2

Post by Raheem » 2 years ago

Generally, this CVAR is working well, however, I doubt you are using Block Damage plugin. You can edit the block damage plugin to be:
    1. #include <zombie_escape>
    2.  
    3. new bool:g_bBlockDamage
    4.  
    5. public plugin_init ()
    6. {
    7.     register_plugin("Block Damage", "1.0", "Raheem")
    8.    
    9.     RegisterHam(Ham_TakeDamage, "player", "Fw_TakeDamage_Pre", 0)
    10. }
    11.  
    12. public ze_zombie_appear()
    13. {
    14.     g_bBlockDamage = true
    15. }
    16.  
    17. public ze_zombie_release()
    18. {
    19.     g_bBlockDamage = false
    20. }
    21.  
    22. public ze_fire_pre(id)
    23. {
    24.     if (g_bBlockDamage)
    25.         return 1;
    26.    
    27.     return 0;
    28. }
    29.  
    30. public Fw_TakeDamage_Pre(iVictim, iInflictor, iAttacker, Float:flDamage, bitsDamage)
    31. {
    32.     if (is_user_alive(iVictim))
    33.     {
    34.         if (ze_is_user_zombie(iVictim))
    35.         {
    36.             if (ze_zombie_in_madness(iVictim) || g_bBlockDamage/* || ze_zombie_in_forst(iVictim)*/)
    37.             {
    38.                 return HAM_SUPERCEDE
    39.             }
    40.         }
    41.     }
    42.    
    43.     return HAM_IGNORED
    44. }
In such a way, zombies will take damage during being frozen.
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests