Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tiagoquix opened this issue Nov 10, 2023 · 1 comment
Open

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

Tiagoquix opened this issue Nov 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Tiagoquix
Copy link

Tiagoquix commented Nov 10, 2023

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
Copy link
Owner

Mikusch commented Dec 20, 2023

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.

@Mikusch Mikusch added the enhancement New feature or request label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants