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

Create a new ConVar to control mp_forcecamera separately #260

Closed
Tiagoquix opened this issue Jan 30, 2024 · 2 comments
Closed

Create a new ConVar to control mp_forcecamera separately #260

Tiagoquix opened this issue Jan 30, 2024 · 2 comments
Assignees

Comments

@Tiagoquix
Copy link
Contributor

Tiagoquix commented Jan 30, 2024

Describe your enhancement to the gamemode

File: https://github.com/gemidyne/microtf2/blob/master/src/scripting/ConVars.sp

Currently, the plugin sets mp_forcecamera 0. I would like to have a ConVar so I would be able to dictate what the plugin does to this specific ConVar.

Something like: mtf2_forcecamera_setting <0/1/2>, with the default being the current value (0).
As far as I know, mp_forcecamera 2 fades the death cam to black. I don't know if mp_fadetoblack 1 is needed for it to work.

Describe alternatives you've considered

Do not force the value to 0 and let server operators decide. (But I prefer my original suggestion.)

Additional context

Target IDs do not work with mp_forcecamera 0 for enemies and I think this is not nice.

@safalin1
Copy link
Collaborator

Similar to #259, this is probably an oversight from 2014 when we first remade the gamemode. We'll look to get this removed from the plugin and released before v6

@safalin1 safalin1 self-assigned this Jan 31, 2024
@safalin1
Copy link
Collaborator

safalin1 commented Feb 1, 2024

This has been removed in v5.2.10 - https://github.com/gemidyne/microtf2/releases/tag/v5.2.10

mp_forcecamera will no longer be set by the plugin. However if you still want to set it to a specific value just for this gamemode, I recommend using map specific cfg files instead as you can also set other convars without needing to rebuild the plugin

@safalin1 safalin1 closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants