Raised This Month: $32 Target: $400
 8% 

Hero: Harry Potter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jtpizzalover
Senior Member
Join Date: Dec 2005
Location: Left
Old 02-04-2009 , 17:09   Hero: Harry Potter
Reply With Quote #1

Harry Potter

Description
Shoot spells at enemies!



In conclusion, it is quite clear that Harry Potter is a mentally unstable, ungrateful and idiotic Squib who is a general nuisance and little more than a twit running around with a stick, shouting "EXPELLIARMUS!" and wondering why no geniuses come rushing to his rescue. It is strongly recommended that the general public stay away from him, as they may find the weapons with which they have approached him mercilessly tossed away, or else they may be attacked by an afro-haired girl or a redhead. If you see any of these three people in the street, dial 1800-VOLDEMORT. Someone will come to your aid immediately.

shconfig.cfg CVARS
Code:
//Harry Potter
harry_level 0            // This is the default level he is a available at
harry_cooldown 0.2        // Cooldown between shots. THIS IS FOR ALL SPELLS
harry_stupify_ammo 10    // Amount of stunning spells
harry_exp_ammo 8        // Amount of disarming spells
harry_ava_ammo 1        // Amount of killing curses
harry_multishot 0.2        // Delay for multishots on holding key down
harry_stuntime 3        // # of seconds stunning spell lasts
harry_stunspeed 200        // Speed of stunned players
Spells:
Stupify - Spell used to stun your opponent.
Expelliamus - Spell used to take your opponent's wand.
Avada Kadavra - The killing curse *Admin Only*

If you want to edit the amount of damage done by each spell open it up and go to "Damage Variables" right under the cvars. Should be self-explanatory (Will require re-compiling)


Credits: Code used from Cyclops and Hulk and with a good bit of info from Vittu
I don't have a live server atm, so any feedback is great. Also, feel free to suggest more spells.
Attached Files
File Type: sma Get Plugin or Get Source (harrypotter.sma - 1277 views - 18.0 KB)
__________________

Last edited by jtpizzalover; 02-04-2009 at 17:22. Reason: adding spell list
jtpizzalover is offline
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 02-05-2009 , 05:36   Re: Hero: Harry Potter
Reply With Quote #2

I havent tested it yet, but if it works, nicely done ^^. Also a suggestion for another spell: "Expecto Patronum" which Harry uses in part 3 of the HP series to repel dementors.
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)
Xel0z is offline
Send a message via MSN to Xel0z
jtpizzalover
Senior Member
Join Date: Dec 2005
Location: Left
Old 02-05-2009 , 10:07   Re: Hero: Harry Potter
Reply With Quote #3

Quote:
Originally Posted by Xel0z View Post
I havent tested it yet, but if it works, nicely done ^^. Also a suggestion for another spell: "Expecto Patronum" which Harry uses in part 3 of the HP series to repel dementors.
Like cast it and blast everyone in x radius of harry back? I don't think their are too many patronum sprites around.....

And thanks
__________________
jtpizzalover is offline
Z0qX
Junior Member
Join Date: Jun 2008
Old 02-21-2009 , 17:23   Re: Hero: Harry Potter
Reply With Quote #4

That is quite a useless comment, jtpizzalover asked for suggestions, not people that tell him to add more magic.
__________________
Hero in progress: Diver [==========] [30%]
Spartans!
Z0qX is offline
j3shu4
Junior Member
Join Date: Aug 2007
Old 02-21-2009 , 17:37   Re: Hero: Harry Potter
Reply With Quote #5

Quote:
Originally Posted by Z0qX View Post
That is quite a useless comment, jtpizzalover asked for suggestions, not people that tell him to add more magic.
Off topic: @Z0qX That would also be a useless comment since it has nothing to do with the hero. Completely off topic.

On topic: Should make a cvar on what flag would be needed to use the admin only spell.
j3shu4 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 02-22-2009 , 06:16   Re: Hero: Harry Potter
Reply With Quote #6

It's not so hard to change, making a cvar just for it is useless. Just find this line:
PHP Code:
    menu_additem(menu"\wAvada Kadavra""3"ADMIN_ADMIN
and change ADMIN_ADMIN to whatever you want.

He could make a define for it, though. So that you can easily change it at the top.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Chp91
New Member
Join Date: May 2007
Old 02-24-2009 , 16:19   Re: Hero: Harry Potter
Reply With Quote #7

Quote:
Originally Posted by jtpizzalover View Post
I don't think their are too many patronum sprites around.....
You could do without sprite, yes? I love teh heroe btw.
Chp91 is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 04-21-2009 , 14:27   Re: Hero: Harry Potter
Reply With Quote #8

[IMG]http://img260.**************/img260/8870/sanstitrey.png[/IMG]
my serv work on superhero mod 1.2.0.10
when i fix errors myself the plugin compile fine :

Code:
sh_set_hero_bind(gHeroID, true)
by
Code:
sh_set_hero_bind(gHeroID)
Code:
 
register_cvar("harry_level", "0")
sh_create_hero(gHeroName, "harry_level")
by
Code:
 
new pcvarLevel = register_cvar("harry_level", "0")
sh_create_hero(gHeroName, pcvarLevel)
but ingame it's not working
the menu appear, you can select spells
when you use one spells that always said : you are too tired to cast [...]
But i can't select Avada Kadavra and i'm an admin on my lan serv (new game)

and i have error log :

L 04/22/2009 - 00:21:01: [AMXX] [0] harrypotter.sma::harry_init (line 139)
L 04/22/2009 - 00:21:01: Invalid CVAR pointer
L 04/22/2009 - 00:21:01: [AMXX] Displaying debug trace (plugin "harrypotter.amxx")
L 04/22/2009 - 00:21:01: [AMXX] Run time error 10: native error (native "get_pcvar_num")

L 04/22/2009 - 00:213: [AMXX] [0] harrypotter.sma::new_spawn (line 157)
L 04/22/2009 - 00:219: Invalid menu id 0(1)
L 04/22/2009 - 00:219: [AMXX] Displaying debug trace (plugin "harrypotter.amxx")
L 04/22/2009 - 00:219: [AMXX] Run time error 10: native error (native "menu_destroy")
L 04/22/2009 - 00:219: [AMXX] [0] harrypotter.sma::menu_handler (line 293)

Last edited by Fr33m@n; 04-21-2009 at 18:34.
Fr33m@n 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 03:48.


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