Raised This Month: $ Target: $400
 0% 

2 questions.. pfn_touch and model sequences


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-05-2005 , 14:30  
Reply With Quote #1

About your code, Hawk. Firstly, if a server's max slots is 8, then a non-player entity could have an index of 9, so the > 32 check is useless. Secondly, is_user_alive already checks if the player is connected, so you can just remove the < 1 and > 32 checks entirely and leave is_user_alive in there. Thirdly, why do you check to see if the other entity's index is > 1 and then use is_valid_ent? Scrap the > 1 check and just use is_valid_ent, it won't explode of the entity is 0.
XxAvalanchexX 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:45.


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