Raised This Month: $ Target: $400
 0% 

[SNIPPET] [TF2] Ignoring fake mackerel player_death events


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 10-01-2010 , 15:41   [SNIPPET] [TF2] Ignoring fake mackerel player_death events
Reply With Quote #1

The Holy Mackerel weapon in TF2 fires the player_death event for every hit instead of only on death. To detect:
Code:
if (GetEventInt(event, "weaponid") == TF_WEAPON_BAT_FISH && GetEventInt(event, "customkill") != TF_CUSTOM_FISH_KILL)     // this isn't a kill


TF_WEAPON_BAT_FISH and TF_CUSTOM_FISH_KILL are defined in the latest tf2_stocks.inc. If they are not in your copy, you can update it with one from a recent snapshot or directly here, http://hg.alliedmods.net/sourcemod-c...tf2_stocks.inc
psychonic 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 18:46.


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