[TF2] Player Pitch v1.1.1
Description
This is a very simple plugin that enables you to change the pitch of voice commands. It's ideal for a rank like Donor/VIP, as it offers two low/high commands which changes the pitch to a configurable low/high value.
It also has a command for setting a custom value, this one is root only by default. The ability to target other players is controlled by an override, which allows it to be customizable.
ConVars- sm_playerpitch_low (Min: 30, Max: 100, Default: 50) - The value for the sm_lowpitch command.
- sm_playerpitch_high (Min: 100, Max: 250, Default: 200) - The value for the sm_highpitch command.
Commands- sm_lowpitch (Generic Admin) - Sets the pitch to the value of sm_playerpitch_low.
- sm_highpitch (Generic Admin) - Sets the pitch to the value of sm_playerpitch_high.
- sm_pitch (Root Admin) - Sets the pitch to a custom value.
- sm_resetpitch (Generic Admin) - Resets the pitch back to normal.
Overrides- sm_playerpitch_target (Generic Admin) - The required flag(s) to target other players.
When a user has the flag(s) specified in sm_playerpitch_target, the above commands will also require a target.
Changelog
Quote:
2018-04-18 (v1.1.1)
* Added a color to the [SM] prefix.
* Changed a bit of the code to satisfy my code OCD.
2018-04-12 (v1.1)
* Replaced the sm_playerpitch_target_flags convar with the sm_playerpitch_target override.
2018-04-11 (v1.0)
* Initial release.
|
Installation- Use "Get Plugin" below and put it in your /addons/sourcemod/plugins folder.
- (Optional) Change the convars in the autogenerated /cfg/sourcemod/plugin.playerpitch.cfg file.
- (Optional) Add the sm_playerpitch_target override to the /cfg/sourcemod/configs/admin_overrides.cfg file.
Note: This is my first plugin! I am an experienced C# developer, but SourcePawn is still fairly new to me.