Raised This Month: $32 Target: $400
 8% 

Setting spectator index


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jedyny
Member
Join Date: Aug 2016
Old 11-25-2021 , 15:45   Setting spectator index
Reply With Quote #1

Hello,

Is there any way to set spectator index/observer slot for a given player in CS:GO?

Last edited by jedyny; 11-25-2021 at 15:47.
jedyny is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-27-2021 , 00:16   Re: Setting spectator index
Reply With Quote #2

...server create first 64 index as player entity.

Player can join in 4 different team index.
0 unknown
1 spectator
2 terrorist
3 counter-terrorist

So do you mean team change ?

- There are not like observer slot. Unless you create yourself that kind system with plugin.
- Then there is SourceTV relay, but it is "whole different server".
Bacardi is offline
BeepIsla
Member
Join Date: Mar 2020
Location: Germany
Old 11-27-2021 , 11:59   Re: Setting spectator index
Reply With Quote #3

Code:
// Force client to spectate target
SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", target);
You may have to force "m_iObserverMode" as well because it defines if the client is in first person, third person, or free cam.
BeepIsla 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 07:25.


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