Raised This Month: $32 Target: $400
 8% 

Does IgniteEntity Do Damage?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-04-2007 , 12:50   Does IgniteEntity Do Damage?
Reply With Quote #1

I'm using IgniteEntity in a plugin and while it seems to be doing damage to myself while I'm on fire, it doesn't seem to be doing damage to bots for the duration they're on fire. Is it just me or is there something else going on that I'm not aware of?

Code:
public OnPluginStart()
{

    HookEvent("player_hurt", HookPlayerHurt);

}

public HookPlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{

    new userid = GetEventInt(event,"userid");

    new victim = GetClientOfUserId(userid);

    new String:attackerWeapon[30];
    GetEventString(event, "weapon", attackerWeapon, 29);

    if(StrEqual(attackerWeapon,"hegrenade"))
    {

    new Float:burn_time = GetRandomFloat(7.0,15.0);
    IgniteEntity(victim,burn_time);

    }

}

Last edited by SamuraiBarbi; 09-04-2007 at 12:52.
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
spelworm
Senior Member
Join Date: Mar 2007
Old 09-04-2007 , 13:01   Re: Does IgniteEntity Do Damage?
Reply With Quote #2

make sure that the bots have no armor atleast mani burn first killed the armor then the life other i cant help you
spelworm is offline
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-04-2007 , 13:38   Re: Does IgniteEntity Do Damage?
Reply With Quote #3

thanks, i'll give that a try.
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
Saul
Junior Member
Join Date: Jun 2007
Old 09-04-2007 , 14:48   Re: Does IgniteEntity Do Damage?
Reply With Quote #4

Burning burns off your armour 1 unit every second I think, but slows you down and makes a hurt noise.
Saul is offline
Send a message via MSN to Saul
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-04-2007 , 16:36   Re: Does IgniteEntity Do Damage?
Reply With Quote #5

when a player is burning and they have armor on it makes that metal clinking sound right?
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
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 21:41.


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