Raised This Month: $51 Target: $400
 12% 

[ZP] Frozen zombie damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strangeguy
Senior Member
Join Date: Mar 2019
Old 08-15-2022 , 11:33   [ZP] Frozen zombie damage
Reply With Quote #1

Hello everyone!

Is there any way to make that the frozen zombies will take take damage from humans? I have ZP 4.3
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 84 views - 334.8 KB)
strangeguy is offline
menkisa
Junior Member
Join Date: Sep 2011
Old 08-15-2022 , 14:55   Re: [ZP] Frozen zombie damage
Reply With Quote #2

Also use the Search tool next time. Literally the first result is this: https://forums.alliedmods.net/showthread.php?t=142578
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 63 views - 334.8 KB)
menkisa is offline
strangeguy
Senior Member
Join Date: Mar 2019
Old 08-15-2022 , 18:03   Re: [ZP] Frozen zombie damage
Reply With Quote #3

All right, thank you for help!
strangeguy is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-15-2022 , 19:04   Re: [ZP] Frozen zombie damage
Reply With Quote #4

Sorry for the inconvenience, and for version 5.0, what would I have to touch?
Is the line:
Quote:
// Ham Take Damage Forward (needed to block explosion damage too)
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
// Non-player damage or self damage
if (victim == attacker || !is_user_alive(attacker))
return HAM_IGNORED;

// Block damage while frozen, as it makes killing zombies too easy
if (flag_get(g_IsFrozen, victim))
return HAM_SUPERCEDE;

return HAM_IGNORED;
}
Edit: I don't know if I have to edit the zp50_grenade_frost.sma
or the zp50_core.sma, because I can't get it to work
Attached Files
File Type: sma Get Plugin or Get Source (zp50_grenade_frost.sma - 50 views - 22.0 KB)
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 08-15-2022 at 19:20.
SoulWeaver16 is offline
menkisa
Junior Member
Join Date: Sep 2011
Old 08-16-2022 , 06:48   Re: [ZP] Frozen zombie damage
Reply With Quote #5

Quote:
Sorry for the inconvenience, and for version 5.0, what would I have to touch?
Is the line:
In zp50_grenade_frost.sma you have to remove the following lines:

In TraceAttack

PHP Code:
public fw_TraceAttack(victimattacker)
{
    
// Non-player damage or self damage
    
if (victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    
// Block damage while frozen, as it makes killing zombies too easy
    
if (flag_get(g_IsFrozenvictim))
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

--->

PHP Code:
public fw_TraceAttack(victimattacker)
{
    
// Non-player damage or self damage
    
if (victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    return 
HAM_IGNORED;

and in TakeDamage

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    
// Non-player damage or self damage
    
if (victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    
// Block damage while frozen, as it makes killing zombies too easy
    
if (flag_get(g_IsFrozenvictim))
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

--->

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    
// Non-player damage or self damage
    
if (victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    return 
HAM_IGNORED;


Last edited by menkisa; 08-16-2022 at 06:49.
menkisa is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-16-2022 , 08:31   Re: [ZP] Frozen zombie damage
Reply With Quote #6

Quote:
Originally Posted by menkisa View Post
Spoiler
Very thanks :)
Attached Files
File Type: sma Get Plugin or Get Source (zp50_grenade_frostTakeDamage.sma - 61 views - 21.8 KB)
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 08-16-2022 at 08:31.
SoulWeaver16 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode