PDA

View Full Version : [CS:GO] Spectate Terrorist Team While Alive


BloodBird
06-24-2016, 11:29
I don't know if this would be possible or how difficult it would be to do, but what I am looking for is a plugin where while still alive, the Counter-Terrorist team can spectate the Terrorist team. How it would work ideally is that if the CT team presses the prompt for this plugin which is the key assigned to activite it, than in the top right corner of their screen a window small window would pop up that would give them the first person viewpoint of one of the T's. The window would stay there once the key has been pressed and if there is more than 1 Terrorist player, than pressing the key again would change the view to the next T. To turn off the window the CT player would press the key prompt until it has cycled through all the T players and than instead of cycling back pressing the prompt again closes the window. Than it would reset if activated again.

This idea is very much like how it worked in the Portal 2 Co-op, player 1 could press tab I beleive and it would give them a small window with first person view of Player 2 in the top right.

Can anyone tell me if this plugin idea is possible, and if so how difficult would it be, and lastly is there anyone who can try and make a plugin like this?

Mitchell
06-24-2016, 13:18
Currently the only way to do this is with SetClientViewEntity (https://sm.alliedmods.net/new-api/sdktools_engine/SetClientViewEntity). I have no idea what this will do if it was set on another client. However, if you kill the entity while a client is still viewing through it the server will crash.*

* Last tried back in 2012 on a CS:S server.

BloodBird
06-24-2016, 14:53
What if someone was to have a bot sit in the server under spectate, and have the bot spectate only the Terrorist team, with it's view shifting from T to T in regular intervals, and similar to an hltv allow a player to view the bot's viewpoint through the server instead of through the player, so like the server runs the bot's viewpoint like a broadcast that can be player-side turned on when prompted?

Mitchell
06-24-2016, 15:32
What if someone was to have a bot sit in the server under spectate, and have the bot spectate only the Terrorist team, with it's view shifting from T to T in regular intervals, and similar to an hltv allow a player to view the bot's viewpoint through the server instead of through the player, so like the server runs the bot's viewpoint like a broadcast that can be player-side turned on when prompted?

I'd have to play with it but I would think that would result in the same thing, because the player isn't actually in spectator mode it wouldn't try rendering the weapon models. Either which way if you're okay with not seeing the models it should be doable, just a semi larger project to prevent any crashing or glitches.

BloodBird
06-24-2016, 15:45
Well what I'm looking for is something like this: http://imgur.com/Ltwfrna

This video shows an example of it: https://www.youtube.com/watch?v=P8_rec--B6o

I need it to be disabled on the server until a player hits the prompt key for it, than when they hit it again it disables again, and the top right corner of the screen instead of bottom left.

Mitchell
06-24-2016, 15:59
Well what I'm looking for is something like this: http://imgur.com/Ltwfrna

This video shows an example of it: https://www.youtube.com/watch?v=P8_rec--B6o

I need it to be disabled on the server until a player hits the prompt key for it, than when they hit it again it disables again, and the top right corner of the screen instead of bottom left.

Well it wouldn't exactly be a box on the screen... It would change the client's entire view, what you are asking just isn't possible in csgo.

BloodBird
06-24-2016, 16:40
that's what I figured, alright thanks for the help.

VerMon
06-23-2023, 07:41
https://forums.alliedmods.net/showthread.php?t=342233