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

Napalm Grenades!


Post New Thread Reply   
 
Thread Tools Display Modes
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-22-2007 , 15:30   Re: Napalm Grenades!
Reply With Quote #11

Code:
		if(DmgDone <= 30)
		{
			if(DmgDone >= 71)
			{
				IgniteEntity(client,12.0);
			}
			else if(DmgDone >= 51)
			{
				IgniteEntity(client,9.0);
			}
			else if(DmgDone >= 31)
			{
				IgniteEntity(client,6.0);
			}
		}
		else
		{
			IgniteEntity(client,3.0);
		}
Updated.

Last edited by DataMatrix; 08-22-2007 at 18:12.
DataMatrix is offline
Send a message via MSN to DataMatrix
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-22-2007 , 18:16   Re: Napalm Grenades!
Reply With Quote #12

Cool!
Now if the player takes exactly 30 damage nothing will happen!

And again I suggest:
IgniteEntity(client, ( float(DmgDone) / 100.0 ) * 12.0);

EDIT:
OH, sorry, my bad...
DataMatrix code will only work when players take more than 30 damage, and they will be ignite for 3 seconds!
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 08-22-2007 at 18:25.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-22-2007 , 18:27   Re: Napalm Grenades!
Reply With Quote #13

I know, I have just changed it a few seconds ago. I realised what I did, try that one now.
DataMatrix is offline
Send a message via MSN to DataMatrix
dalto
Veteran Member
Join Date: Jul 2007
Old 08-22-2007 , 18:28   Re: Napalm Grenades!
Reply With Quote #14

Quote:
Originally Posted by DataMatrix View Post
Code:
        if(DmgDone <= 30)
        {
            if(DmgDone >= 71)
            {
                IgniteEntity(client,12.0);
            }
            else if(DmgDone >= 51)
            {
                IgniteEntity(client,9.0);
            }
            else if(DmgDone >= 31)
            {
                IgniteEntity(client,6.0);
            }
        }
        else
        {
            IgniteEntity(client,3.0);
        }
Updated.
You definitely don't want to do that.
dalto is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-22-2007 , 18:33   Re: Napalm Grenades!
Reply With Quote #15

Code:
		if(DmgDone > 30)
		{
			if(DmgDone >= 71)
			{
				IgniteEntity(client,12.0);
			}
			else if(DmgDone >= 51)
			{
				IgniteEntity(client,9.0);
			}
			else if(DmgDone >= 31)
			{
				IgniteEntity(client,6.0);
			}
		}
		else
		{
			IgniteEntity(client,3.0);
		}
Try that.

Last edited by DataMatrix; 08-22-2007 at 18:35.
DataMatrix is offline
Send a message via MSN to DataMatrix
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-22-2007 , 18:36   Re: Napalm Grenades!
Reply With Quote #16

Of let's make some exemples...

Player takes 50 damage...
Than this would happen:
if(50 <= 30) ... this is false, go to else
player takes 3 sec ignite

Now if player takes 20 damage...
if(20 <= 30) ... this is true, go inside
Nothing inside will work..

without saying it extremely inefficient...


EDIT: Now that you edit your post, that would work, but it still extremely inefficient
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 08-22-2007 at 18:39.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-22-2007 , 18:39   Re: Napalm Grenades!
Reply With Quote #17

Quote:
Originally Posted by Nican View Post
Ok... two new bugs:
1.Have you noticed the less damage the player takes, the longer he stays on fire...
-- if he takes > 71, he stays lit for 6 seconds
-- if he takes > 51, he stays lit for 9 seconds
-- if he takes > 31, he stays lit for 12 seconds

2. If the player takes exactly 31 damage, nothing happens...

ok fixed that , 0.5 uplaoded , thx again
Peoples Army is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-22-2007 , 19:55   Re: Napalm Grenades!
Reply With Quote #18

Code:
		if(DmgDone <= 30)
		{
			IgniteEntity(client,12.0);
		}else if(DmgDone > 71)
		{
			IgniteEntity(client,9.0);
		}else if(DmgDone > 51)
		{
			IgniteEntity(client,6.0);
		}else if (DmgDone >= 31)
		{
			IgniteEntity(client,3.0);
		}
Still wont work.

DmgDone <= 30

That says, if the damage is lower than or equal to 30 then do this IgniteEntity(client,12.0);
DataMatrix is offline
Send a message via MSN to DataMatrix
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-22-2007 , 21:55   Re: Napalm Grenades!
Reply With Quote #19

and how does that not work ?
Peoples Army is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-22-2007 , 23:00   Re: Napalm Grenades!
Reply With Quote #20

Idk...
I think he is talking about the lower you take damage... the longer you stay on fire..
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
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 04:29.


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