Insolid players
1 Attachment(s)
Hi! I have this plugin (Is not working properly).Basically is working like this:*When a "id" is in another player(s) range that "id" and that that "players" got insolid ; else if outside of range "they" are solid again!* :wink:
Thanks... |
Re: Insolid players
So it's like this:
1) Player A and player B are close to one another. fm_playerprethink() is called for player A, so player B becomes insolid. 2) Player B and player C are outside the range. fm_playerprethink() is called for player C, so player B becomes solid. Try and find a workaround for this, or use server_frame(), tho I wouldn't do that if I were you :) |
Re: Insolid players
hmm....server_frame() is very laggy...:| ! there must be another way to do it :P
|
Re: Insolid players
There is. A set_task() would do the job too.
|
Re: Insolid players
how man??:| i realy don't know...
|
Re: Insolid players
Code:
This is how I have my Kz plugin v0.09 no block code setup except for more distance checking. Ps.. Are you only trying to set the SOLID_NOT and SOLID_BBOX only on person? |
Re: Insolid players
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). |
Re: Insolid players
Quote:
P.S. PreThink is just not called on one person. It still can go from Prethink(player C) -> Player A, PreThink(Player A) -> Player B, and even PreThink(Player B) -> Gaben. It still goes full circle for each player. |
Re: Insolid players
Quote:
|
Re: Insolid players
Thanks teame06! So i want when a Player A is close to a Player B both are get insolid! If a Player A is close to Player and Player C all are get insolid, and also for more players...! :wink:
"id" = player who prethink "players" = others players remain Later Edit:Thanks teame ,is working...but if E.g : In team Ct remain 1 player and in T team are 2 players /*Alive*/, player on team Ct is solid and transparent (weird)...and players from T are get tucked when walk...:| |
| All times are GMT -4. The time now is 06:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.