CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
All Players Field of View Modifier
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BullyWiiPlaza" data-source="post: 1002" data-attributes="member: 543"><p>Since the dvar [CODE]cg_fov[/CODE] is host only, we need a client-sided function to modify the field of view of other players. Luckily one exists so I made the following script:</p><p>[CODE]toggleExtendedFieldOfViewEveryone()</p><p>{</p><p> if(!isDefined(level.extendedFieldOfView))</p><p> {</p><p> level.extendedFieldOfView = true;</p><p> iPrintlnBold("Extended Field of View ^2ON");</p><p> thread extendedFieldOfViewEveryone();</p><p> }</p><p> else</p><p> {</p><p> level.extendedFieldOfView = undefined;</p><p> iPrintlnBold("Extended Field of View ^1OFF");</p><p> disableExtendingFieldOfViewEveryone();</p><p> }</p><p>}</p><p></p><p>extendedFieldOfViewEveryone()</p><p>{</p><p> level endon("stopExtendingEveryonsFieldOfView");</p><p></p><p> while(true)</p><p> {</p><p> foreach(player in level.players)</p><p> {</p><p> player setClientFov(90);</p><p> }</p><p> </p><p> wait 0.05;</p><p> }</p><p>}</p><p></p><p>disableExtendingFieldOfViewEveryone()</p><p>{</p><p> level notify("stopExtendingEveryonsFieldOfView");</p><p></p><p> foreach(player in level.players)</p><p> {</p><p> player setClientFov(65);</p><p> }</p><p>}[/CODE]</p><p>This can be used on Multiplayer and Zombies so enjoy it guys. Especially on consoles this comes in handy, not so much on PC. <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /></p><p></p><p><u>Note:</u></p><p>It is looped because it resets on respawn for example.</p><p></p><p>You can see it in action for example in the following video at minute 0:40:</p><p>[MEDIA=youtube]AVscuwar3jE[/MEDIA]</p></blockquote><p></p>
[QUOTE="BullyWiiPlaza, post: 1002, member: 543"] Since the dvar [CODE]cg_fov[/CODE] is host only, we need a client-sided function to modify the field of view of other players. Luckily one exists so I made the following script: [CODE]toggleExtendedFieldOfViewEveryone() { if(!isDefined(level.extendedFieldOfView)) { level.extendedFieldOfView = true; iPrintlnBold("Extended Field of View ^2ON"); thread extendedFieldOfViewEveryone(); } else { level.extendedFieldOfView = undefined; iPrintlnBold("Extended Field of View ^1OFF"); disableExtendingFieldOfViewEveryone(); } } extendedFieldOfViewEveryone() { level endon("stopExtendingEveryonsFieldOfView"); while(true) { foreach(player in level.players) { player setClientFov(90); } wait 0.05; } } disableExtendingFieldOfViewEveryone() { level notify("stopExtendingEveryonsFieldOfView"); foreach(player in level.players) { player setClientFov(65); } }[/CODE] This can be used on Multiplayer and Zombies so enjoy it guys. Especially on consoles this comes in handy, not so much on PC. :smile: [U]Note:[/U] It is looped because it resets on respawn for example. You can see it in action for example in the following video at minute 0:40: [MEDIA=youtube]AVscuwar3jE[/MEDIA] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
All Players Field of View Modifier
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top