Raised This Month: $ Target: $400
 0% 

FM_AddToFullPack player invisible (and SOLID) for certain player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-21-2021 , 11:07   Re: FM_AddToFullPack player invisible for certain player
Reply With Quote #1

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
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-21-2021 at 11:15.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 12-26-2021 , 13:24   Re: FM_AddToFullPack player invisible for certain player
Reply With Quote #2

Quote:
Originally Posted by Natsheh View Post
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
Yes, I store players in teamOne and teamTwo that are sorted by frags and then I use it to make a pair.

Quote:
Originally Posted by CrazY. View Post
What is wrong with the code you provided?
You shouldn't do any loop or anything expensive in addToFullPack.
My goal is to make each player got his own opponent and the rest is non-solid; transparent for them.

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

So I've stuck here.
joseph9 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 11:29.


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