View Single Post
Author Message
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-19-2013 , 23:27   [ANY] Unrestricted FOV
Reply With Quote #1

[ANY] Unrestricted FOV

v1.2.0

Description:
Allows players to choose their own FOV settings, even if their desired FOV is outside of the game's normal bounds. FOV settings are stored in Clientprefs.

Players can choose their FOV setting by typing !fov <number>. To reset to their client's FOV setting, players should just type !fov.

This is only tested in TF2 but should work in all games.

Warning: This plugin is capable of modifying a player's field of view (FOV) beyond the normal limits that the game sets. While this plugin will not trigger a VAC ban, third-party anti-cheat solutions may mistakenly ban players who use this plugin to set their FOV. I was unable to trigger a SMAC ban using this plugin, but you may want to test it yourself prior to installing it.

Cvars:
  • ufov_version - plugin version
  • ufov_auto_update - enables automatic updating (has no effect if Updater is not installed), defaults to 1
  • ufov_min - minimum value a player can choose for their FOV, defaults to 20
  • ufov_max - maximum value a player can choose for their FOV, defaults to 130

Installation:
Put unrestricted_fov.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load unrestricted_fov" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (5/29/13)
    • Custom FOV is no longer reset after teleporting.
  • v1.1.0 (5/12/13)
    • Players' FOVs are no longer reset when exiting a sniper scope
  • v1.0.0 (4/19/13)
    • Initial release

Download Plugin (unrestricted_fov.smx)
View Source (unrestricted_fov.sp)


Requires updater.inc, mckayupdater.sp, and easy_commands.inc to compile.
__________________

Last edited by Dr. McKay; 07-14-2020 at 04:34.
Dr. McKay is offline