gemidyne / microtf2

A custom gamemode for Team Fortress 2 - Players compete against each other to get the most points by playing a series of rapid fire microgames in order to win the round!
https://www.gemidyne.com/projects/microtf2
GNU General Public License v2.0
30 stars 16 forks source link

Create a new ConVar to control mp_forcecamera separately #260

Closed Tiagoquix closed 5 months ago

Tiagoquix commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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