Half-Life 2

Half-Life 2

View Stats:
Weapon viewmodel problem in HL2.
I am trying to change viewmodel of weapons from 54 to 70. I type it in autoexec.cfg, but it still resets to 54 when i load save. Is there any solution?
Originally posted by Tackro:
Solution 1: put sv_cheats 1 into autoexec, never set sv_cheats to 0 and never use the chapter selection to load into a chapter.
(you won't get achievements that way and typing sv_cheats 0 resets viewmodel_fov to 54)

Solution 2: put this into your autoexec:
alias loadstuff "wait 100; viewmodel_fov 70" loadstuff
You have to use an alias and execute that alias, it won't work otherwise.
(if it doesn't work, try a higher wait value, maybe your computer is too slow)

Explanation:
Look into the console and see what it says:

Can't use cheat cvar viewmodel_fov in multiplayer, unless the server has sv_cheats set to 1.

Despite being a single-player game, hl2 thinks you're on multiplayer at any time.
That's until you load into any map, which will let you use viewmodel_fov,
even without sv_cheats 1.
Since the title screen normally loads a background map, you can set the fov to 70 in the title screen no problem.
But the autoexec executes before you load into the background map, so your command will be ignored.
You can either put sv_cheats 1 into your autoexec OR make the game wait a certain amount of time and then set the fov after the background map has loaded.

A lot of commands, like viewmodel_fov, are reset when sv_cheats is set to 0.
The game normally sets sv_cheats to 0 when you select a chapter in "New game"
As long as you're on a map and sv_cheats is never set from 1 to 0, it should carry over to maps and saves.
< >
Showing 1-3 of 3 comments
Tunnel May 17 @ 1:37pm 
I've tried to make it auto correct before, but I think it's hardcoded into the game or something.
The author of this thread has indicated that this post answers the original topic.
Tackro May 18 @ 6:22am 
Solution 1: put sv_cheats 1 into autoexec, never set sv_cheats to 0 and never use the chapter selection to load into a chapter.
(you won't get achievements that way and typing sv_cheats 0 resets viewmodel_fov to 54)

Solution 2: put this into your autoexec:
alias loadstuff "wait 100; viewmodel_fov 70" loadstuff
You have to use an alias and execute that alias, it won't work otherwise.
(if it doesn't work, try a higher wait value, maybe your computer is too slow)

Explanation:
Look into the console and see what it says:

Can't use cheat cvar viewmodel_fov in multiplayer, unless the server has sv_cheats set to 1.

Despite being a single-player game, hl2 thinks you're on multiplayer at any time.
That's until you load into any map, which will let you use viewmodel_fov,
even without sv_cheats 1.
Since the title screen normally loads a background map, you can set the fov to 70 in the title screen no problem.
But the autoexec executes before you load into the background map, so your command will be ignored.
You can either put sv_cheats 1 into your autoexec OR make the game wait a certain amount of time and then set the fov after the background map has loaded.

A lot of commands, like viewmodel_fov, are reset when sv_cheats is set to 0.
The game normally sets sv_cheats to 0 when you select a chapter in "New game"
As long as you're on a map and sv_cheats is never set from 1 to 0, it should carry over to maps and saves.
Originally posted by Tackro:
Solution 1: put sv_cheats 1 into autoexec, never set sv_cheats to 0 and never use the chapter selection to load into a chapter.
(you won't get achievements that way and typing sv_cheats 0 resets viewmodel_fov to 54)

Solution 2: put this into your autoexec:
alias loadstuff "wait 100; viewmodel_fov 70" loadstuff
You have to use an alias and execute that alias, it won't work otherwise.
(if it doesn't work, try a higher wait value, maybe your computer is too slow)

Explanation:
Look into the console and see what it says:

Can't use cheat cvar viewmodel_fov in multiplayer, unless the server has sv_cheats set to 1.

Despite being a single-player game, hl2 thinks you're on multiplayer at any time.
That's until you load into any map, which will let you use viewmodel_fov,
even without sv_cheats 1.
Since the title screen normally loads a background map, you can set the fov to 70 in the title screen no problem.
But the autoexec executes before you load into the background map, so your command will be ignored.
You can either put sv_cheats 1 into your autoexec OR make the game wait a certain amount of time and then set the fov after the background map has loaded.

A lot of commands, like viewmodel_fov, are reset when sv_cheats is set to 0.
The game normally sets sv_cheats to 0 when you select a chapter in "New game"
As long as you're on a map and sv_cheats is never set from 1 to 0, it should carry over to maps and saves.
Thanks!
< >
Showing 1-3 of 3 comments
Per page: 1530 50