FM_AddToFullPack player invisible (and SOLID) for certain player
Hello, I need some help with it (if it's even possible)
Lets say I have 16 players per team. I would like each pair (taken by index) to see themselfes. PHP Code:
@EDIT Ok. I've made some changes to this code and added for loop inside (i think it's overkill for AddToFullPack, lol) and it's checking if teamOne is equal to id and teamTwo is equal to ent and vice-versa. If you have better ideas, please let me know! |
Re: FM_AddToFullPack player invisible for certain player
So you want to show people who are in the same team to each other?
You can create a global players variable that holds player team id |
Re: FM_AddToFullPack player invisible for certain player
What is wrong with the code you provided?
Quote:
|
Re: FM_AddToFullPack player invisible for certain player
Quote:
Quote:
I use SOLID_NOT to prevent colliding and set render mode to make them transparent then I use SOLID_SLIDEBOX to activate collision for that pair but it applies to everyone not for the pair like in render mode so everyone is stuck and able to kill everyone :stupid: So I've stuck here. |
Re: FM_AddToFullPack player invisible (and SOLID) for certain player
Use an array of bits to determine which player one can see.
Code:
Your would do something like this Code:
public client_AddToFullPack_P(es, e, ent, id, hostflags, player, pSet)Code:
|
Re: FM_AddToFullPack player invisible (and SOLID) for certain player
Quote:
what if you have an odd number of players ? You could create a player variable holds each player opponent for example PHP Code:
|
Re: FM_AddToFullPack player invisible (and SOLID) for certain player
Much thanks to you guys but how exacly can I achieve SOLID_SLIDEBOX for each pair so they are SOLID_NOT for other pairs?
|
Re: FM_AddToFullPack player invisible (and SOLID) for certain player
Just like you do with semiclip, but instead of checking people team, you'll check if the player is visible.
https://forums.alliedmods.net/showthread.php?t=69728 |
| All times are GMT -4. The time now is 11:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.