Raised This Month: $ Target: $400
 0% 

origin, angles and touch optimisation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-01-2010 , 10:08   Re: origin, angles and touch optimisation
Reply With Quote #6

Quote:
Ok, tnx. I have 2 more q, is sound emitted with client_cmd( id , spk...) heard by everyone or just that player, and is it ok to remove is_valid_ent check if i change
Just by that player, since you provide his index.

Better to use register_touch() when you can ( called only on the classname provided, and the check is done internally so more efficient ). About the check, the entity should be always checked (quad). Id should be checked ( or not ) depending your need. (alive, connected, etc. )
__________________

Last edited by Arkshine; 01-01-2010 at 10:19.
Arkshine 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 04:16.


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