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

[TF2 MvM] Detect Upgrade Refund Usage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 10-03-2015 , 21:29   [TF2 MvM] Detect Upgrade Refund Usage
Reply With Quote #1

I need to write a native that gets called when a client uses an upgrade refund credit.

Given the following RELIABLE information:

- SDKHook_EndTouch gets fired when a client leaves the upgrades station.
- The client is sent back to some random info_player_teamspawn entity on the map (RED's spawn)
- This happens in a matter of 1-2 frames so assume it is impossible for a client to manually walk from the upgrades station to an info_player_teamspawn within that very tiny interval.

Is there a way to make sourcemod detect that an upgrade refund credit is used with this information?

Thanks!
Potato Uno is offline
 



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 02:54.


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