Raised This Month: $ Target: $400
 0% 

Traceline


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-12-2005 , 18:33  
Reply With Quote #1

Quote:
Originally Posted by v3x
Could I do something like this to prevent it? Small:

if( (get_user_button(id)&IN_ATTACK) && g_iHits[iVictim] <= HITS_NOHELM )


You answered your self


But i would feel better checking it every frame with a bool.

Code:
// etc etc new bool:shouldCheck[33] ... ... public client_PreThink(id) {        if( (get_user_button(id)&IN_ATTACK) ) {                          shouldCheck[id] = true        }          else {                shouldCheck[id] = false               } }


Then just execute the code through one big if statement ^^
[/small]
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 23:42.


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