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

Infect Effect Mod [BB]


Post New Thread Reply   
 
Thread Tools Display Modes
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-19-2014 , 08:41   Re: Infect Effect Mod [BB]
Reply With Quote #11

Can somebody make out of this is that this effect is reported to player was attacked by a zombie?
For example: If I am attacked by zombie class ALIEN,I can see that sprite effect. I do not think on infection,but when I lose my armor or hp.
Krtola is offline
Send a message via Skype™ to Krtola
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-19-2014 , 09:09   Re: Infect Effect Mod [BB]
Reply With Quote #12

Just try to change this for your request, Krtola:
PHP Code:
public zp_user_infected_post(idattacker)
{
    if(
is_user_alive(attacker))
    {
        
show_effect(id)
    }

-->
PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
victim == attacker || !is_user_alive(attacker) || !is_user_alive(victim))
        return
        
    if (
zp_get_user_zombie(attacker))
    {
        
show_effect(victim)
    }


Last edited by zmd94; 11-19-2014 at 09:12.
zmd94 is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 11-19-2014 , 09:13   Re: Infect Effect Mod [BB]
Reply With Quote #13

Quote:
Originally Posted by zmd94 View Post
Just try to change this for your request, Krtola:
PHP Code:
public zp_user_infected_post(idattacker)
{
    if(
is_user_alive(attacker))
    {
        
show_effect(id)
    }

-->
PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
victim == attacker || !is_user_alive(attacker) || !is_user_alive(victim))
        return
        
    if (
zp_get_user_zombie(attacker))
    {
        
show_effect(victim)
    }

PHP Code:
#include <basebuilder> 
and
PHP Code:
zp_get_user_zombie(attacker

PHP Code:
bb_is_user_zombie(attacker
__________________

Last edited by Eagle07; 11-19-2014 at 09:23.
Eagle07 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-19-2014 , 09:14   Re: Infect Effect Mod [BB]
Reply With Quote #14

Quote:
Originally Posted by zmd94 View Post
Just try to change this for your request, Krtola:
PHP Code:
public zp_user_infected_post(idattacker)
{
    if(
is_user_alive(attacker))
    {
        
show_effect(id)
    }

-->
PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
victim == attacker || !is_user_alive(attacker) || !is_user_alive(victim))
        return
        
    if (
zp_get_user_zombie(attacker))
    {
        
show_effect(victim)
    }

lol what? You must check nade damage and transfer player to t if is a ct. Basebuilder hasnt any include that you can use for know if user is zombie/human
__________________
Jhob94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-19-2014 , 09:27   Re: Infect Effect Mod [BB]
Reply With Quote #15

That example, if he (Krtola) want to use the effect in ZP.
zmd94 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-19-2014 , 10:37   Re: Infect Effect Mod [BB]
Reply With Quote #16

@zmd94 thank you-it works just fine!

And have just one problem:when throw any bomb (he,smoke...) you can see in the picture,I do not know how to explain this-bomb sprites/models are glued to the screen as happens with this effect. Also, when throw a gun that gun sprite/model stay on screen just like this effect. Maybe you know how to fix this problem?
This also happens when I use the original plugin.
Attached Files
File Type: zip smokeeeeeeeeeeeproblem.zip (388.9 KB, 44 views)

Last edited by Krtola; 11-19-2014 at 10:57.
Krtola is offline
Send a message via Skype™ to Krtola
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 23:39.


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