Regeneration not stacking (How?)
Hey,
So, I want to create a hero that heals 30hp and 30ap per second, but doesn't stack with other heroes, for example Wolverine or Iron Man. Jelle said he'd help me out with this one, but I wont be able to access Steam for another 9000 years so I might aswell ask here. I am also unable to access a compiler except for the online one, so I'm not sure if the errors are get are caused by the compiler or by the code, but when I try to compile it there it says every single line is too long, wich I have no idea how to fix, if it really is the code. Like I said, what I wonder how to do is how to do so it doesn't stack with other heroes. The heroes I have that regens.. at the moment is: Hp: Wolverine Darth Maul Riddick Ap: Iron Man Spy Armor Pack And heres the code I have so far wich hopefully compiles on a normal compiler.. As I said, the only errors I get are from too long lines. PHP Code:
Any help is appreciated, Exploited |
Re: Regeneration not stacking (How?)
set_task(1.0, "taskRegen", id)
public taskRegen(index, id) wat |
Re: Regeneration not stacking (How?)
wat, you're the one who taught me how to use tasks with the Darth Maul you sent me. Should I replace index with id in the hphealing thing and remove index from the parantheseline? Damn, I suck at explaining things, but I mean like this:
PHP Code:
|
Re: Regeneration not stacking (How?)
Quote:
|
Re: Regeneration not stacking (How?)
Alright, I thought so. Anyways, do you know how to do so the regen doesn't stack?
Edit: I found this post by G-Dog, but I am not sure how to do it with multiple heroes, nor do I know how to do it if a forward is run in sh_hero_init, as it isn't in the example he gave. Any ideas? |
Re: Regeneration not stacking (How?)
Look at the hero wolverine...
|
Re: Regeneration not stacking (How?)
Quote:
Quote:
|
Re: Regeneration not stacking (How?)
Wolverines regen stacks. I forgot to link G-DOgs post in my previous post, but here it is: http://forums.alliedmods.net/showpos...2&postcount=13
|
Re: Regeneration not stacking (How?)
2 methods :
- use g-Dog method. - combine 3 hero in one plugin. |
Re: Regeneration not stacking (How?)
How would I use G-Dogs method in my code? I tried to insert it but it just looked weird and I had no idea where to put certain things as his sh_hero_init looks different to mine as he doesnt run any forwards in it.
|
All times are GMT -4. The time now is 17:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.