AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Submissions (https://forums.alliedmods.net/forumdisplay.php?f=35)
-   -   head shooter and stun gun (https://forums.alliedmods.net/showthread.php?t=123428)

timian 04-05-2010 10:20

head shooter and stun gun
 
2 Attachment(s)
head shooter:
kill with hs will return your life to start hp (got some problems with superman because he don't give hp on spawn)

stun gun:
will slow down a player hit by you for 100 speed in 1 sec.
after that 10 sec cooldown

DarkGod 04-05-2010 10:30

Re: head shooter and stun gun
 
Yeah..... no.

You never set it as they actually have the heroes, but you still check if they have it in the stun gun one.

You don't even check if they have the power in the head shooter one so it works for everyone.

Also, the CVars in the comments on top are so wrong....
You never define the pCVar in head shooter.

Head shooter doesn't compile, and stun gun gets two warnings.



Did you look through and compile these at all before you decided to release?

timian 04-05-2010 10:47

Re: head shooter and stun gun
 
haha lol then this is bad! just get happy when it worked! i think! XD thanks i'll try to fix it

DruGzOG 04-05-2010 10:51

Re: head shooter and stun gun
 
Quote:

Originally Posted by timian (Post 1140184)
haha lol then this is bad! just get happy when it worked! i think!

No.

timian 04-05-2010 11:05

Re: head shooter and stun gun
 
i can see now! :P my first heroes, jsut trying and seee that it worked in the game :P but not perfectly yet ^^

kanatzu 04-05-2010 11:48

Re: head shooter and stun gun
 
Found in "sh_head-Shooter"


PHP Code:

    new pcvarLevel register_cvar("flash_level""0"


timian 04-05-2010 12:12

Re: head shooter and stun gun
 
that's me ^^ well done :P

DarkGod 04-05-2010 13:20

Re: head shooter and stun gun
 
Quote:

Originally Posted by kanatzu (Post 1140230)
Found in "sh_head-Shooter"


PHP Code:

    new pcvarLevel register_cvar("flash_level""0"


Not sure if you mean the fact that it says "flash" or that I said it wasn't defined.

It's not a global and thus it will not work if he tries to retrieve the value in his code.

Jelle 04-05-2010 14:43

Re: head shooter and stun gun
 
It would be some nice ideas to work on. They should have been posted in scripting help.

The Art of War 04-06-2010 02:30

Re: head shooter and stun gun
 
DG, with "flash_level" we all see that he ripped it off the hero Flash... So, please do not post heroes that are not finished and untested here, and I dont really get what they has to do with superheroes. Though I dont mind if they are not. Still some nice ideas.

EDIT: Woa, woa, woa..... I checked them, and (lol)stun_gun got no hero init...


All times are GMT -4. The time now is 11:00.

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