Raised This Month: $52 Target: $400
 13% 

Superhero Hp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-={OrC}=-BaZaR
Junior Member
Join Date: Dec 2004
Location: Denmark
Old 12-07-2004 , 12:03   Superhero Hp
Reply With Quote #1

What do i have to write if i wanna make Hulk to Regenerate 8 hp pr. sec.?

I was searching for it and Found this:

stock shRegMaxHealth(heroName[], healthFunction[] )
{
server_cmd("sh_regMaxHealth ^"%s^" ^"%s^"", heroName, healthFunction)

Is it that i have to use?...
-={OrC}=-BaZaR is offline
Send a message via MSN to -={OrC}=-BaZaR
TheRaven
Member
Join Date: Dec 2004
Old 12-07-2004 , 12:23  
Reply With Quote #2

Look at "Wolverine". It's in there, I promise. ;)
If you need more direction, then ask again but only
after you tried figuring it out. You know, by try and
error you learn the most about this scripting stuff.
TheRaven is offline
-={OrC}=-BaZaR
Junior Member
Join Date: Dec 2004
Location: Denmark
Old 12-07-2004 , 12:46  
Reply With Quote #3

Yea...

Thx Raven
-={OrC}=-BaZaR is offline
Send a message via MSN to -={OrC}=-BaZaR
-={OrC}=-BaZaR
Junior Member
Join Date: Dec 2004
Location: Denmark
Old 12-07-2004 , 12:51  
Reply With Quote #4

Look at Wolwerine??...

I only got sh_wolwerine.amx and sh_wolwerine.sma
-={OrC}=-BaZaR is offline
Send a message via MSN to -={OrC}=-BaZaR
TheRaven
Member
Join Date: Dec 2004
Old 12-07-2004 , 13:08  
Reply With Quote #5

The sma are the scripts. Ok, looks like you are very new to this because otherwise you would have figured it out by now. Anyway, in this case I friendly point you to the following thread:

http://forums.alliedmods.net/showthread.php?t=30191

Tell you what, the regenerating routine is in the tutorial as well. You only need to read it, do some copy/paste and voilĂ*, there you go. And remember, the path to your first hero is full of sticks and stones. But the harder the way, the more you learn.
TheRaven is offline
-={OrC}=-BaZaR
Junior Member
Join Date: Dec 2004
Location: Denmark
Old 12-07-2004 , 13:14  
Reply With Quote #6

Very Much Thx TheRaven

I Will Take Learn.
-={OrC}=-BaZaR is offline
Send a message via MSN to -={OrC}=-BaZaR
TheRaven
Member
Join Date: Dec 2004
Old 12-07-2004 , 13:24  
Reply With Quote #7

And don't be afraid to ask if you have serious troubles. But at least try first, ask later.
TheRaven is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 12-07-2004 , 16:41  
Reply With Quote #8

If you want Wolverine to heal with 8 instead of 3, simply edit the .sma file.
Find the line that says:

register_cvar("wolv_healpoints", "3" )

and edit it with:

register_cvar("wolv_healpoints", "8" )

- And at the end you have to recompile it.
__________________
//ShadowLeader - 123
123 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 12-07-2004 , 16:45  
Reply With Quote #9

no just change the cvar in shconfig wolv_healpoints to 8.

but thats not what he wants to do... he wants to edit hulk to make hulk have regen power of 8hp per sec...
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 12-07-2004 , 16:57  
Reply With Quote #10

Oh.! My bad.
Well, that can't be that hard, I have made my own hero once that also could heal.

You can in fact take the code dirrectly from Wolverine and put it into Hulk (Just remember to give some credit to {HOJ} Batman)

- If you want I can make it for you, but I'm kind of busy today so it will first be tomorrow...
__________________
//ShadowLeader - 123
123 is offline
Reply


Thread Tools
Display Modes

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:31.


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