Raised This Month: $ Target: $400
 0% 

Insolid players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
_Master_
Senior Member
Join Date: Dec 2006
Old 05-12-2007 , 02:27   Re: Insolid players
Reply With Quote #7

I don't think that will work teame06.
Player A is "close" to player B and C. Player B and C are NOT "close". If fm_playerprethink() is called for Player A, your code will set SOLID_NOT ONLY to Player B, but not to Player C.

With that in mind I would suggest this in fm_playerprethink(id):
1) If <id> is solid then test if all other players are within range. If found at least one player then set <id> to be insolid.
2) If <id> is insolid then test if all other players are outside range. If found at least one player then set <id> to be solid.

This will solve the problem for <id> only, while the remaining players are not affected. This is not an issue as fm_playerprethink() will be called on them as well. The two suggestions stand true as, to some degree, distance(A, B)=distance(B, A).

Last edited by _Master_; 05-12-2007 at 02:39.
_Master_ 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 06:35.


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