Raised This Month: $68 Target: $400
 17% 

[TF2] player_death: Checking if the victim *was* on fire


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 01-12-2014 , 01:41   [TF2] player_death: Checking if the victim *was* on fire
Reply With Quote #1

Having trouble figuring out how to go about this. Tried using if (TF2_IsPlayerInCondition(victim, TFCond_OnFire)), but it just logs an error about worldspawn, and m_nCond not found:

Code:
L 01/11/2014 - 21:44:12: [SM] Native "GetEntProp" reported: Property "m_nPlayerCond" not found (entity 0/worldspawn)
L 01/11/2014 - 21:44:12: [SM] Displaying call stack trace for plugin "hlstatstracking.smx":
L 01/11/2014 - 21:44:12: [SM]   [0]  Line 480, C:\Coding\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_IsPlayerInCondition()
So yeah. Bit of a stumper. I'd really love to be able to run a check on if the player was on fire at the time of death, but I can't figure out how to do it.
__________________
Don't buy plugins from [G]amerX/_GamerX or FREAK (formerly Sourcemod.shop).
Most plugins they sell are either stolen from here outright, or similar ones can be found here for free.


404UNF 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 07:47.


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