Tommy228 / TTT_Spectator_Deathmatch

Spectator Deathmatch for Trouble in Terrorist Town (a Garry's Mod gamemode)
GNU General Public License v3.0
25 stars 28 forks source link

Spectate Players in Specdm #84

Open derekstephen opened 5 years ago

derekstephen commented 5 years ago

Is there any way to spectate players in first person or third person that are in specdm?

We've been having hackers recently use cheats while in specdm, but sometimes it isn't easy to tell by joining specdm.

MinIsMin commented 5 years ago

Currently there's no way to spectate a ghost.

But you can add the following code before sv_specdm_overrides.lua#L209: meta.oldSpectate = meta.Spectate Then you can change your spectating code (for ULX here) from :Spectate(mode) to :oldSpectate(mode). The modes are listed here: https://wiki.garrysmod.com/page/Enums/OBS_MODE

I'm looking into a proper way to do this.

(There needs to be a overwrite as otherwise bots are 'floating' through the air in SpecDM)