AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Working with spectators? (https://forums.alliedmods.net/showthread.php?t=307325)

KillMan 05-05-2018 09:26

[CSGO] Working with spectators?
 
Is there any way to hide a player for the Observers? Tried to change a "ObserverTarget". It's possible to spectate using a space btn flood. Hope i can remove a players (only one team) for the spectators. I saw that once.

pride95 05-05-2018 13:26

Re: [CSGO] Working with spectators?
 
PHP Code:

m_hObserverTarget 

use a timer and try to send another target if observertarget == x?

KillMan 05-06-2018 08:19

Re: [CSGO] Working with spectators?
 
Quote:

Originally Posted by pride95 (Post 2590847)
PHP Code:

m_hObserverTarget 

use a timer and try to send another target if observertarget == x?

As i said:
Quote:

Originally Posted by KillMan (Post 2590807)
Tried to change a "ObserverTarget". It's possible to spectate using a space btn flood.

And another problem: you can fly around and found a player.

Dr!fter 05-06-2018 08:39

Re: [CSGO] Working with spectators?
 
Look at

https://forums.alliedmods.net/showthread.php?p=1685318

you can force the camera and in the hook check if its a valid client

KillMan 05-06-2018 09:38

Re: [CSGO] Working with spectators?
 
Quote:

Originally Posted by Dr!fter (Post 2590925)
Look at

https://forums.alliedmods.net/showthread.php?p=1685318

you can force the camera and in the hook check if its a valid client

Already did it. Written by myself from tutorials, cuz i dont understand how to use DHooks. It works now, but i need to remove players for the Spectators. But i have another requestion: disable spectator-xray. I dont why, but this is working as default... For all players.

Papero 05-07-2018 17:05

Re: [CSGO] Working with spectators?
 
Quote:

Originally Posted by KillMan (Post 2590936)
Already did it. Written by myself from tutorials, cuz i dont understand how to use DHooks. It works now, but i need to remove players for the Spectators. But i have another requestion: disable spectator-xray. I dont why, but this is working as default... For all players.

Try to set the cvar sv_competitive_official_5v5 to 0

KillMan 05-08-2018 06:54

Re: [CSGO] Working with spectators?
 
Quote:

Originally Posted by Papero (Post 2591187)
Try to set the cvar sv_competitive_official_5v5 to 0

Thanks, but this is my default CVar. mp_teammates_are_enemies doing the same. Just red glow effect.


All times are GMT -4. The time now is 07:23.

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