Raised This Month: $ Target: $400
 0% 

[TF2] Getting a weapon's index during player_hurt


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-28-2013 , 03:44   Re: [TF2] Getting a weapon's index during player_hurt
Reply With Quote #11

Quote:
Originally Posted by Chdata View Post
Well, the default VSH mod actually does some really weird stuff with telefrags in OnTakeDamage.

It'll set your damage to 15 if hale's hp is > 9001 and set it to Hale's hp + 80 if it's less than 9001.
Complain to FlaminSarge about it... in Freak Fortress 2, it's always been
Code:
damage=(BossHealth[index]>9001 ? 9001.0 : float(GetEntProp(Boss[index], Prop_Send, "m_iHealth"))+90.0);
In other words, it's supposed to do 9001 damage, not 15. Telefrags are so infrequent that likely no one has noticed anything out of the ordinary with its damage.

Anyway, rswallen has already addressed the other issue... weaponid 65 is a Direct Hit rocket apparently.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 11-28-2013 , 03:59   Re: [TF2] Getting a weapon's index during player_hurt
Reply With Quote #12

Yeah, in VSH it works fine despite the 15 damage thing, but only because of that seteventint in player_hurt.

I suppose your telefrags can gain minicrits though, if you don't have that "fix" in ff2.

Anyway, there's no unique weaponid for the sydney sleeper in tf2_stocks, which poses a problem.

Edit: Oh well, it's an annoying mystery, we'll never figure it out. I went ahead and reduced Hale's rage in OnTakeDamage.

Though... that PLASMA.
__________________

Last edited by Chdata; 11-28-2013 at 04:46.
Chdata is offline
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 13:23.


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