Raised This Month: $ Target: $400
 0% 

Hero: LuckyBoy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
uxMal
Member
Join Date: Oct 2007
Old 10-22-2007 , 13:25   Hero: LuckyBoy
Reply With Quote #1

Hi @ All,

finally i finished my first hero and now i can post it here ;)
I wanted to make somethin new and not a rip-off of some old heroes....

LuckyBoy xD
You get random HP/AP/Gravity each Spawn,
Standard Cvars are HP/AP for 1 to 500 and Gravity from 0.4 to 1.6

I think its a hero for low lvls ^^

But i have one problem if you have eg superman you wont get below 200hp, is there a way to prevent that???
//EDIT: I know why you havent below 200 health im only looking for a was to stop that ;)

Code:
//Lucky Boy
lucky_level 5                 //Level you can Select the Hero
lucky_minhealth 1        //Minimum Health you can have (default is 1)
lucky_maxhealth 500        //Maximum Health you can have (default is 500)
lucky_minarmor 1        //Minimum Armor you can have (default is 1)
lucky_maxarmor 500        //Maximum Armor you can have (default is 500)
lucky_mingrav 0.4        //Minimum Gravity you can have (default is 0.4)
lucky_maxgrav 1.6        //Maximum Gravity you can have (default is 1.6)
PS: Maybe its not the cleanest code but you know its my first one
Attached Files
File Type: sma Get Plugin or Get Source (sh_lucky.sma - 1907 views - 3.8 KB)

Last edited by uxMal; 10-28-2007 at 11:47.
uxMal is offline
Archmage
Junior Member
Join Date: Jul 2005
Old 10-22-2007 , 17:25   Re: Hero: LuckyBoy
Reply With Quote #2

Definitely interesting.

I'll put it on my server today and see how it works.

Neat idea, though.
Archmage is offline
GFGLegendary
Senior Member
Join Date: Nov 2006
Old 10-25-2007 , 14:38   Re: Hero: LuckyBoy
Reply With Quote #3

Nice hero, I'll test it with superman and whatnot and attempt finding out why


Edit: Maybe because Superman spawns you with 200 health, or whatever you have it set to, and it won't replace the health from that hero.
__________________
I've been inactive for god even knows how long, but I'm back for now >.<

http://wiseguyscz.tk

Go there for info!
http://forums.alliedmods.net/showthr...566#post418566
GFGLegendary is offline
&|Spartan|{IV}-Leader-&
Junior Member
Join Date: Aug 2007
Location: Washington, Seatle
Old 10-28-2007 , 03:35   Re: Hero: LuckyBoy
Reply With Quote #4

LOL it is interesting in its own little way maybe you could try to make its health 200-500 to make it better
__________________
Help me = Good Karma I am 45% addicted to Counterstrike. What about you?
&|Spartan|{IV}-Leader-& is offline
uxMal
Member
Join Date: Oct 2007
Old 10-28-2007 , 11:42   Re: Hero: LuckyBoy
Reply With Quote #5

Hmm you can modify it by yourself...

Just change the CVARs in the shconfig.cfg

Code:
//Lucky Boy
lucky_level 5                 //Level you can Select the Hero
lucky_minhealth 1        //Minimum Health you can have (default is 1)
lucky_maxhealth 500        //Maximum Health you can have (default is 500)
lucky_minarmor 1        //Minimum Armor you can have (default is 1)
lucky_maxarmor 500        //Maximum Armor you can have (default is 500)
lucky_mingrav 0.4        //Minimum Gravity you can have (default is 0.4)
lucky_maxgrav 1.6        //Maximum Gravity you can have (default is 1.6)
Paste this in shconfig.cfg and you can edit the numbers eg. lucky_minhealth 200
then you would have 200-500 HP ;)
uxMal is offline
GFGLegendary
Senior Member
Join Date: Nov 2006
Old 10-28-2007 , 22:08   Re: Hero: LuckyBoy
Reply With Quote #6

lolz...lucky_minhealth 1..that would Blow.
__________________
I've been inactive for god even knows how long, but I'm back for now >.<

http://wiseguyscz.tk

Go there for info!
http://forums.alliedmods.net/showthr...566#post418566
GFGLegendary is offline
bordeaux
Senior Member
Join Date: May 2007
Old 11-29-2007 , 08:55   Re: Hero: LuckyBoy
Reply With Quote #7

haha i like it + karma
__________________
bordeaux is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 12-05-2007 , 09:38   Re: Hero: LuckyBoy
Reply With Quote #8

the reason for the superman glitch is that the shsethealth function automatically determines which hero has the most health that a user has and sets the hp to that, instead use the set_user_health function which isn't controlled by superhero
__________________
If at first you don't succeed, then skydiving isn't for you.

Last edited by G-Dog; 11-18-2008 at 19:27.
G-Dog is offline
Send a message via AIM to G-Dog
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 19:52.


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