Weapon Rendering in Relation to FOV

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
Cybernetic pig
Illuminati
Posts: 2284
Joined: Thu Mar 08, 2012 3:21 am

Weapon Rendering in Relation to FOV

Post by Cybernetic pig »

It seems as though if FOV is anything but default then the weapon is not rendered. Fine for looking through scopes, but what about if we wanted to modify FOV for any other reason, like to lower it when drugged as the devs did, we don't want the weapon to stop rendering. I'm trying to find the root cause but am struggling to find it.
Cybernetic pig
Illuminati
Posts: 2284
Joined: Thu Mar 08, 2012 3:21 am

Re: Weapon Rendering in Relation to FOV

Post by Cybernetic pig »

Not sure how I missed this:

Code: Select all

if ( PlayerOwner.DesiredFOV != PlayerOwner.DefaultFOV )
			return;
But there you go...

Changing it to check for if (bZoomed) will likely be all that's required. Going to have a fiddle.
Post Reply