Raised This Month: $ Target: $400
 0% 

Check if a user is in a bombsite?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 17:50  
Reply With Quote #8

Quote:
Originally Posted by SweatyBanana
Quote:
Whatever, worst case scenario is that you have to search around the player for the bombsite. Just use find_ent_sphere every client frame or whatever, and check if there's a bomb entity around.
Checking every client frame causes lag... Ive been reading through the includes
No, it doesn't. You'd be surprised how much is done in client_PreThink on the game mod level. Very resource intensive stuff should be kept out of there, but I think this should cause no problems.

EDIT: You can even do it outside of client_PreThink. Just don't use a set_task, client_PreThink is actually less resource intensive.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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 16:21.


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