Raised This Month: $ Target: $400
 0% 

[SNIPPET] TF2 deathflags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
psychonic

BAFFLED
Join Date: May 2008
Old 06-06-2009 , 12:38   Re: [SNIPPET] TF2 deathflags
Reply With Quote #2

Why all the extra math instead of just checking the bits?
Code:
#define killerdomination (1 << 0)
#define assisterdomination (1 << 1)
#define killerrevenge (1 << 2)
#define assisterrevenge (1 << 3)
#define firstblood (1 << 4)
#define feigndeath (1 << 5)

Ex.
if (deathflags & firstblood) {
    //firstblood
}

Last edited by psychonic; 06-18-2009 at 12:10.
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:13.


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