Raised This Month: $ Target: $400
 0% 

register_touch toucher question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 02-02-2010 , 15:26   Re: register_touch toucher question
Reply With Quote #6

Something like that, but now my novice brain's got some questions:

Is there a value for the 1st parameter of register_touch that does the same thing as xPaw's code? (instead of "*" somethign like "*sametype_class")

If not, witch one of this versions has a better performance?
PHP Code:
register_touch"sametype_class1",   "player""sametype_touch" );
register_touch"sametype_class2",   "player""sametype_touch" );
register_touch"sametype_class3",   "player""sametype_touch" );
...
register_touch"sametype_class100",   "player""sametype_touch" ); 
or
PHP Code:
register_touch"*",   "player""sametype_touch" );
{
 
//filter stuff with xPaw's code using sametype_class substring

__________________
ehha 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 07:26.


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