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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
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.
404UserNotFound 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 14:14.


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