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

Hero: Highlander


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kennyke12
Junior Member
Join Date: Mar 2011
Location: Hungary
Old 03-20-2011 , 14:22   Hero: Highlander
Reply With Quote #1

Description
You can killable only with headshots.
You will respawn until you get a headshot!


Bio

Simple script. A bit overpowered, but ain't bad i think
Attached Files
File Type: sma Get Plugin or Get Source (sh_highlander.sma - 1041 views - 1.5 KB)

Last edited by kennyke12; 03-21-2011 at 09:40.
kennyke12 is offline
Send a message via MSN to kennyke12
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 03-20-2011 , 14:35   Re: Hero: Highlander
Reply With Quote #2

I think there might be a hero which does the same thing, though I'm not sure.
Also,

PHP Code:
sh_set_hero_info(gHeroID"You can killable only with headshots.""Restores health if the shot which you got isn't a headshot"
>>

PHP Code:
sh_set_hero_info(gHeroID"OnlyHS""You can only be damaged by headshots."
Fixed grammar for you. No offense.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
kennyke12
Junior Member
Join Date: Mar 2011
Location: Hungary
Old 03-20-2011 , 14:44   Re: Hero: Highlander
Reply With Quote #3

Hm, i didn't see this.
But maybe isn't the same.
kennyke12 is offline
Send a message via MSN to kennyke12
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 03-20-2011 , 16:43   Re: Hero: Highlander
Reply With Quote #4

There is one, but I dont think its public.
__________________
The Art of War is offline
kennyke12
Junior Member
Join Date: Mar 2011
Location: Hungary
Old 03-20-2011 , 17:11   Re: Hero: Highlander
Reply With Quote #5

Quote:
Originally Posted by The Art of War View Post
There is one, but I dont think its public.
ofc, I can't find it anywhere.
kennyke12 is offline
Send a message via MSN to kennyke12
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 03-20-2011 , 17:14   Re: Hero: Highlander
Reply With Quote #6

if ( gHasHighlanderPower[victim] && !headshot == 1 )

>>>

if ( gHasHighlanderPower[victim] && !headshot )

Also, have you even tested this? sh_client_death() is only called after someone is dead, not right before someone dies, so you are actually just setting start health on a guy who is dead, and no, he wont be revived by that and the attacker still gets XP for killing the victim.

Also you write "Restores health if the shot which you got isn't a headshot" in the info. This is not what the hero does at all, nor is it intended for the one who has this hero, to get more HP if you are not hit by a headshot.

You need to use client_damage() forward for that, and then make a check to see if the hit was a headshot. If it wasn't, then heal a bit. That is just way too overpowered in my mind.

As it is now, this hero basically does not do ANYTHING at all, it is just a waste of space.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
kennyke12
Junior Member
Join Date: Mar 2011
Location: Hungary
Old 03-20-2011 , 17:22   Re: Hero: Highlander
Reply With Quote #7

Damn, I`ll update the script, thanks.
kennyke12 is offline
Send a message via MSN to kennyke12
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 03-20-2011 , 21:00   Re: Hero: Highlander
Reply With Quote #8

Quote:
Originally Posted by Exploited View Post
PHP Code:
sh_set_hero_info(gHeroID"OnlyHS""You can only be damaged by headshots."
>>
PHP Code:
sh_set_hero_info(gHeroID"OnlyHS""You can only be killed by headshots."
fixed description for you, no offense.

p.s. does setting health right when a player dies really work like he intends? Can't remember if it did or not. Oh and may want to add a note for the really dumb server ops out there not to have this with crimson chin on their server.

edit: ya setting health after death doesn't work instead hook HamDamage and check for a fatal hit there and supercede it.
__________________
If at first you don't succeed, then skydiving isn't for you.

Last edited by G-Dog; 03-20-2011 at 21:02.
G-Dog is offline
Send a message via AIM to G-Dog
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 03-21-2011 , 02:43   Re: Hero: Highlander
Reply With Quote #9

Quote:
Originally Posted by G-Dog View Post
fixed description for you, no offense
Thank you. At the moment the hero does nothing so we never know if he does so you can only be damaged by headshots or if you can only be knocked out with a headshot, I obviously guessed the first alternative.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 03-21-2011 , 06:37   Re: Hero: Highlander
Reply With Quote #10

The fact is that the player is already dead when sh_client_death is called. Adding health at this moment certainly doesn't work and may be buggy. the best way to do that is to use Ham_TraceAttack and block the call correctly. But it's clearly not your level, so forget.

Last edited by Fr33m@n; 03-21-2011 at 06:40.
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:18.


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