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

[TF2] How to check for "special" assist?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KorDen
Member
Join Date: Sep 2012
Old 04-04-2014 , 14:59   [TF2] How to check for "special" assist?
Reply With Quote #1

Hello. I want to check in player_death event two things:
- if the assister got his assist for healing killer;
- if the assister got his assist for repairing friendly turret that killed victim.
Second isn't very important, the main idea based on first situation..

For first situation I can check if the assister is medic (through TF2_GetPlayerClass) and if he is healing killer (by checking m_hHealingTarget).
Question: maybe I can make it through some more optimized check? E.g. maybe here are some flags in player_death event that already shows that assister=healer of the killer or something like that?

But for second... I have no idea how to check if assister currently repairing killer turret...
KorDen 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 03:15.


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