marvinlehmann / CoD-SCZ-FoV-Changer

A non-multiplayer field of view changer for various Call of Duty games which also works for online co-op.
MIT License
74 stars 10 forks source link

Viewmodel FOV #3

Open ghost opened 8 years ago

ghost commented 8 years ago

Modifying FOV also changes viewmodel FOV, giving the game somewhat odd look (reloading animation wasn't meant to be seen, the same clip is instantly put back to a gun when reloading). Happens when changing field of view using native methods too and also in other IW 4.0 engine COD games.

I wonder if maintaining original viewmodel FOV is possible?

iw4sp_2016_09_01_22_20_44_837

iw4sp_2016_09_01_23_08_09_438

106 FOV in MW2

marvinlehmann commented 8 years ago

Sorry. I don't think there is a good solution. You could try changing the "cggun.." dvars but it likely won't be good. :/ That's just how they coded it and that's maybe why they didn't include fov sliders.

ghost commented 8 years ago

@marvinl97 Are cg_gun dvars console commands? I found a list (for Black Ops):

cg_gun_move_f // Weapon movement forward due to player movement
cg_gun_move_minspeed // The minimum weapon movement rate
cg_gun_move_r // Weapon movement right due to player movement
cg_gun_move_rate // The base weapon movement rate
cg_gun_move_u // Weapon movement up due to player movement
cg_gun_ofs_f // Forward weapon offset when prone/ducked
cg_gun_ofs_r // Right weapon offset when prone/ducked
cg_gun_ofs_u // Up weapon offset when prone/ducked
**cg_gun_x // x position of the viewmodel
cg_gun_y // y position of the viewmodel
cg_gun_z // z position of the viewmodel**

Commands are poorly documented, likely I have to experiment myself.

marvinlehmann commented 8 years ago

Yea, that's what I meant.

ghost commented 7 years ago

@marvinlehmann Can you add support for the cg_gun variable? At least in Modern Warfare the weapon position can be easily modified and according to a comment the command works in World At War as well. Considering that clipping happens at higher FOV values and is constant with some weapons (as seen in the second screenshot), weapon position would be a great feature.

marvinlehmann commented 7 years ago

@07416 Sorry that didn't answer until now. I just can't get me to work on this project because there are many things I want to improve. I planned a bigger change on the internal structure, so it's more modular and dynamic but I just don't have the motivation for it. I also need to greatly improve my knowledge about assembler and memory editing which also needs a great amount of time which I'm using for other projects/gaming/university. Sorry for now but when I start working on it again, I won't forget about this feature.