OpenWorldGames Server ONE

Video games => Far Cry 2 => Far Cry series => Single player modding => Topic started by: OWGKID on December 26, 2014, 03:44:11 AM

Title: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 26, 2014, 03:44:11 AM
So I asked PZ in one of his youtube videos if it was possible to increase the scope zoom of the snipers in Far Cry 2. In Far Cry 3, I found two lines called "fnearIronSightFOVdegrees"/ "fIronSightFOVdegrees". Those lines defines scope zoom and they are both set to "30" and "11". To increase my zoom level for the scopes in FC3, I sat both of them to "15" and "6". Is there any similar line in FC2's weapon files for the snipers?
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: Art Blade on December 26, 2014, 07:14:53 AM
sorry, no idea  :(
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 26, 2014, 09:03:10 AM
Better look through the coding then...  ;)
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: PZ on December 26, 2014, 10:49:38 AM
Same here - I don't know for sure, but variable scope distances do not ring a bell when I was doing the AS50.  Would be cool to make it w@&k
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 26, 2014, 12:42:53 PM
Quote from: PZ on December 26, 2014, 10:49:38 AM
Same here - I don't know for sure, but variable scope distances do not ring a bell when I was doing the AS50.  Would be cool to make it w@&k

I suggest that you could open the AS50 weapon file and use Ctrl+F to search for a section called "IronSight". Hopefully there may be some useful lines in that file :-()
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: nexor on December 27, 2014, 12:50:17 PM
I found the following line in 41_WeaponProperties.xml

type="String">pickups.Weapons.AS50_new.Dropped</value>
            <value name="fShootingAngle" type="Float">45</value>
            <value name="fShootingIronsightAngle" type="Float">60</value>

I don't know if this is what you looking for
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 28, 2014, 05:59:23 AM
I searched for "ironsightFOVdegrees" and found nothing. What happens if you edit those numbers? Could be nice to try that  ;)
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: PZ on December 28, 2014, 06:33:51 PM
It would have been nice for Ubisoft to have released what all the parameters did.  They lose absolutely nothing, and it sure would make modding much more fun because you would not need to guess and experiment so much.
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: nexor on December 29, 2014, 02:17:17 AM
I haven't tried it yet, would be interesting to see if it does make a difference
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 29, 2014, 05:23:55 AM
Quote from: PZ on December 28, 2014, 06:33:51 PM
It would have been nice for Ubisoft to have released what all the parameters did.  They lose absolutely nothing, and it sure would make modding much more fun because you would not need to guess and experiment so much.

Yeah, but I guess Ubisoft doesn't care so much for Far Cry 2 now, given that Far Cry 4 is out. FC2 is about 6 years old now, but it would be nice if they could.
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: wobatt on December 30, 2014, 08:03:52 PM
Ironsights FOV is in the WeaponProperties.xml
Search for hash FB4ADD00

The value is a little endian floating point number, so you will need to convert to and from hexadecimal using this tool... http://babbage.cs.qc.cuny.edu/IEEE-754/ (http://babbage.cs.qc.cuny.edu/IEEE-754/)

For example, the Dragunov has the FOV value in hash FB4ADD00 as 3E8F5C29, which converts to 0.28.
Smaller is more zoomed in. I think the scoped FOV is the normal FOV multiplied by this number.

I got this info from a post by Knightmare (http://www.openworldgames.org/owg/forums/index.php?topic=2709.msg51956#msg51956).
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: OWGKID on December 31, 2014, 02:13:26 AM



Nice find, thanks  ;) It was much easier in FC3 to mod that  :D
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: Art Blade on December 31, 2014, 05:30:41 AM
+1 :-X :) nice one.
Title: Re: Far Cry 2 Scope zoom levels? Possible to create a varable zoom script?
Post by: PZ on December 31, 2014, 10:22:51 AM
Man, I forget some of the gems that members have posted!