Raised This Month: $51 Target: $400
 12% 

Hero: Rogue (Cheat Death Version)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
1sh0t2killz
Senior Member
Join Date: Dec 2004
Old 10-31-2009 , 19:58   Hero: Rogue (Cheat Death Version)
Reply With Quote #1

Rogue (Cheat Death Version) version 1.0

Description
You have a chance to avoid/prevent damage that would cause you to die. Plays a nice sprite to show when players avoided death. set to 100 to completely avoid death and never die..

Code:
//Rogue
rogue_level 0
rogue_cheatdeathpct 75		//Chance to avoid damage that would cause death
Note
  • For some reason Ham_TakeDamage does not detect damage caused by beams, lasers and such, but still detects bullet damage, fall damage and such.
Attached Files
File Type: sma Get Plugin or Get Source (sh_rogue_cd.sma - 1325 views - 3.0 KB)
__________________
I ♥ ⌂ ♫

Last edited by 1sh0t2killz; 05-27-2010 at 20:26.
1sh0t2killz is offline
Sepehr
Senior Member
Join Date: Sep 2006
Location: www.aotclan.net
Old 10-31-2009 , 20:17   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #2

Looks like captain america? sorry if im wrong im just wondering.. it seems as if this hero is exactly like captain america.
__________________
Sepehr is offline
Send a message via MSN to Sepehr
1sh0t2killz
Senior Member
Join Date: Dec 2004
Old 10-31-2009 , 20:26   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #3

your wrong sorry.

this hero does not give you godmode...
instead, if you have 20 hp, and a bullet does 4 damage, you get dealt 4 damage.. if a bullet does 25 damage, you have a 75% chance (by default) to ignore the damage, kind of like the Cheat Death skill in WoW.

Edit: and I have no idea how you thought "godmode" and "cheat death" are the exact same thing.. and if you looked at the code, you would see how they are different
__________________
I ♥ ⌂ ♫

Last edited by 1sh0t2killz; 10-31-2009 at 20:30.
1sh0t2killz is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-01-2009 , 19:35   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #4

nicely done.

does it work with extra damage killing ?

example : victim have Rogue & 100 hp
we kill him.
we have morpheus :
one shot :
mp5 damage : 80
morpheus damage 23
total damage 103

victim is dead or not ?

Last edited by Fr33m@n; 11-01-2009 at 19:38.
Fr33m@n is offline
1sh0t2killz
Senior Member
Join Date: Dec 2004
Old 11-01-2009 , 19:59   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #5

theoretically you should be dead since heros like that use the extra damage function, but I tested it and you WILL NOT die from that.

and this is probably why
Quote:
public client_damage(attacker, victim, damage, wpnindex, hitplace)
{
if ( !sh_is_active() ) return
if ( !is_user_alive(victim) || !is_user_connected(attacker) ) return

if ( gHasMorpheus[attacker] && wpnindex == CSW_MP5NAVY ) {
new headshot = hitplace == 1 ? 1 : 0

// do extra damage
new extraDamage = floatround(damage * get_pcvar_float(pCvarMP5Mult) - damage)
if ( extraDamage > 0) sh_extra_damage(victim, attacker, extraDamage, "mp5navy", headshot)
}
}
since you ignored the initial damage, the extra damage is multiplied by 0 thus ignoring the damage anyway.
__________________
I ♥ ⌂ ♫
1sh0t2killz is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-01-2009 , 20:37   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #6

you don't understand what i mean.

The original damage don't kill the victim (remove only 80 hp).
But if you add the extra damage, the victim is now killed.


I think you can't avoid this.
Fr33m@n is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-01-2009 , 21:01   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #7

hero's that factor extra damage based on initial damage would receive the damage after it was changed to 0. i.e. what 1sh0t2killz said should be correct. It's only hero's that invoke extra damage directly that won't block properly.
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 11-28-2009 , 17:17   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #8

Who plays subtlety rouges nowadays anyways?

JK Nice concept and hero.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!
sytremelaker is offline
Send a message via AIM to sytremelaker
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 12-06-2009 , 08:05   Re: Hero: Rogue (Cheat Death Version)
Reply With Quote #9

Awesome Hero dude, thanks alot. Works great!
kanatzu is offline
Send a message via MSN to kanatzu
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 08:26.


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