Raised This Month: $ Target: $400
 0% 

What's the best way to detect entity type?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-22-2006 , 05:37   Re: What's the best way to detect entity type?
Reply With Quote #1

Well, i want to detect weapon type. Classnames are the same.

I did some research. modelindex is VERY unreliable & changes from state to state (when attached to player - it's zero; when trhowen - it can be very large). The only way is detection by model

The only optimization i see is to enchance equal() function to add one more argument which means what symbol index to start compare, because each model string starts with "moldes/".
Simon Logic is offline
Send a message via Skype™ to Simon Logic
The Specialist
BANNED
Join Date: Nov 2006
Old 12-22-2006 , 05:40   Re: What's the best way to detect entity type?
Reply With Quote #2

What exactly are you trying to do ?
The Specialist is offline
Send a message via AIM to The Specialist
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 22:29.


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