Raised This Month: $ Target: $400
 0% 

Regeneration not stacking (How?)


Post New Thread Reply   
 
Thread Tools Display Modes
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 08:03   Re: Regeneration not stacking (How?)
Reply With Quote #11

Lol. I read it like you wanted them to stack.

G-Dog just don't use a switch, but an if condition to check what the mode is.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 11-02-2010 , 08:09   Re: Regeneration not stacking (How?)
Reply With Quote #12

So, how would I use it with a switch instead of a condition?
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 08:32   Re: Regeneration not stacking (How?)
Reply With Quote #13

switch(mode)
{
case SH_HERO_ADD:
{

......... You should know that by now.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 11-02-2010 , 09:08   Re: Regeneration not stacking (How?)
Reply With Quote #14

No, not that. How would I insert G-Dogs code into a switch? I tried, but I can't find a way that makes sense.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 09:46   Re: Regeneration not stacking (How?)
Reply With Quote #15

PHP Code:
switch(mode)
{
    case 
SH_HERO_ADD:
    {
        
gHasRegen[id] = true
        set_task
(1.0"taskRegen"id)
    }
    
    case 
SH_HERO_DROP:
    {
        
gHasRegen[id] = false
        remove_task
(id)
    }

Was that hard?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 11-02-2010 , 09:54   Re: Regeneration not stacking (How?)
Reply With Quote #16

What the hell are you on about? I have already done that, and the code in the OP is mine. I asked how to do so the healing doesn't stack with other heroes.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 11-02-2010 , 10:40   Re: Regeneration not stacking (How?)
Reply With Quote #17

Make a check if has hero in either one of all the healing heroes you have.
__________________
The Art of War is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-02-2010 , 10:47   Re: Regeneration not stacking (How?)
Reply With Quote #18

Just so you guys know, it's better to use if() than switch() here.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 11-02-2010 , 12:57   Re: Regeneration not stacking (How?)
Reply With Quote #19

So uhm, exactly HOW do I do it?
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 14:43   Re: Regeneration not stacking (How?)
Reply With Quote #20

Quote:
Originally Posted by Exploited View Post
So, how would I use it with a switch instead of a condition?
You ask how to use a switch instead of an if condition. So that is what I tell you.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
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 22:56.


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