Custom FOV
1 Attachment(s)
Just a quick and simple plugin to allow clients to change their FOV. I couldn't find another so I made my own. CS has FOV locked to 90 by default, which is not ideal for modern monitors, especially since the GoldSrc engine is Vert-. Plugin is for CS, but should work in other mods, or should be easy to adapt to work.
To use, open console and type fov 105 which would be good for most modern monitors, or whatever value you wish between 90 and 180. You have to do that after each map change, so it might be best to bind it to a key like bind p "fov 105" for easy access. Code is based on this plugin from ConnorMcLeod : default_fov . What I changed was to make it possible for each client to set his FOV individually, the original plugin had it as a global server-side setting, which didn't take into account that different players have different monitors. |
Re: Custom FOV
I see, you check if fov != 90 (default).
Enjoy the bug with weapons with the scope. |
Re: Custom FOV
What bug? Scopes seem to work just fine, and it goes back to the new fov after unscoping?
|
Re: Custom FOV
OMG... I thought about it as a "true" condition. Nevermind. It's not good to look at the code when you are tired.
|
Re: Custom FOV
1 Attachment(s)
Small update, blocking the ability to change FOV while zooming with a scoped weapon, as that could be used as a cheat
|
Re: Custom FOV
Quote:
I want something like this : Code:
public plugin_init() { |
Re: Custom FOV
I looked at the code. Here is code I made about half a decade ago. Welcome to it.
Code:
|
Re: Custom FOV
cool
|
| All times are GMT -4. The time now is 06:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.