Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewmodel FOV #3

Open
ghost opened this issue Sep 1, 2016 · 5 comments
Open

Viewmodel FOV #3

ghost opened this issue Sep 1, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 2016

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
Copy link
Owner

marvinlehmann commented Sep 1, 2016

Sorry. I don't think there is a good solution. You could try changing the "cg_gun_.." 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
Copy link
Author

ghost commented Sep 1, 2016

@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
Copy link
Owner

marvinlehmann commented Sep 1, 2016

Yea, that's what I meant.

@ghost
Copy link
Author

ghost commented Aug 29, 2017

@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
Copy link
Owner

@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.

@marvinlehmann marvinlehmann reopened this Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant