Mikusch / ChaosModTF2

Chaos Mod for Team Fortress 2, powered by SourceMod and VScript
GNU General Public License v3.0
15 stars 5 forks source link

Blockage of certain commands during the third-person effect #12

Open Tiagoquix opened 10 months ago

Tiagoquix commented 10 months ago

Many community servers have a third-person plugin, which allows the players to easily switch between first-person and third-person.

Because of this, the third-person effect from Chaos Mod is easily removed using such commands.

I would suggest blocking the following commands (SourceMod commands and TF2's console commands) and SourceMod chat-triggers for the duration of the third-person effect:

firstperson (console command; does not require sv_cheats)
thirdperson (console command; requires sv_cheats, so maybe it's not necessary to block)
sm_fp
sm_tp
sm_firstperson
sm_thirdperson
sm_view
fp (chat-trigger)
tp (chat-trigger)
firstperson (chat-trigger)
thirdperson (chat-trigger)
view (chat-trigger)

Perhaps it would also be interesting to temporarily block the use of larger FOVs, but I don't see this as necessary as the aforementioned problem.

Thank you for your attention.

Mikusch commented 8 months ago

Tried looking into this, not a good way to do this as the commands are entirely clientside and cannot be detected from a plugin. The only real "solution" is to re-apply the thirdperson camera every few seconds.