Far Cry 2 Modding: Weapon/Gadget Position: Z-axis

Started by Rico Heart, August 26, 2024, 03:05:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rico Heart

Hello everyone, I'm new here. Registered to find people to discuss Far Cry 2 modding.

I'm working on a mod for myself that is based on Scubrah's Patch 2024-06-12 and has parts of Tom's Chill+ Realistic Combat 2024-04-21, merged, tweaked and expanded by me. (As you can see from the dates FC2 modding is not dead.)

I disabled iron sight zoom for all non-scoped weapons for my FOV. <value name="fIronsightFOV" type="Float">1.447</value> (in 21_WeaponProperties.xml in the unpacked \generated\entitylibrarypatchoverride.fcb).

After loading a savegame we have to switch away and back to see the new fIronsightFOV.

But now the weapons are too far when aiming, as if the character would be holding the gun away from himself in front of his chest, instead of the stock touching his shoulder.

Within 22_weapons.xml there is a section that looked promising:
<skeleton name="AK47_Gold" pos="0,0,0" rot="1,-0,-0,-0">
  <bone name="FRAME" pos="0.000171,-0.112569,-0.015195" rot="1,0,0,0" />
  <bone name="CLIP" pos="0.000171,0.142812,0.067331" rot="1,0,0,0" />
  <bone name="SLIDE" pos="-0.018291,0.205517,0.097064" rot="1,0,0,0" />
  <bone name="HAND_PLACEMENT" pos="0.076788,0.317668,0.047562" rot="0.5,-0.5,0.5,0.5" />
  <bone name="FX_FIRE" pos="0.000212,0.606045,0.085006" rot="1,0,0,0" />
  <bone name="FX_CASING" pos="9.7e-005,0.177697,0.115725" rot="0.653281,0.270598,0.270598,0.653281" />
  <bone name="ACCESSORY" pos="0.000228,0.207736,0.103244" rot="1,0,0,0" />
  <bone name="Weapon_Break" pos="-0,0,0" rot="1,0,0,0" />
</skeleton>

I thought pos="0,0,0" is X, Y and Z axis. I tried name="AK47_Gold" pos="0,0,-0.5" and various other numbers but the gun looked the same.

I also tried name="FRAME" pos="0.000171,-0.112569,-0.115195" changing the 3rd value but no effect.

This section would affect the position both when non-aiming and aiming I hoped.

I also want the monocular to be much closer, actually looking into it like with the scoped weapons.
Changing the fFOV value in 02_gadgets.xml to a smaller number to achieve this makes the zoom too much.

So basically I'd like to move the items closer without changing the FOV.

Any ideas, pointers, experience with this?

Dweller_Benthos

Low Poly, a member here who sometimes drops by would be the person to perhaps help with this. I have no experience modding any of the Far Cry games except for using them. Low Poly has contributed to the Far Cry mods on https://fcmodding.com/ I see there is no section for FC2 mods there, there may be a reason for that or not, I don't know. But they also have a discord where you may find more help as well.
"You've read it, you can't un-read it."
D_B

Rico Heart

Thank you Dweller_Benthos,

I have found the Far Cry modding Discord which has a FC2 modding room. I've asked my question there also.

Dweller_Benthos

"You've read it, you can't un-read it."
D_B

PZ

Welcome, Rico  O0

It has been a lone time since I did any FC2 modding. It sure is fun to do so because FC2 was kind of a crude game with many failings (eg. if one merc sees you, then they all instantly know where you are.

Modding gives the game a new life. Your question is a good one. I unfortunately do know have any experience specifically with what you are trying to do.

Be sure to post your results even if they are not exactly what you want. FC2 is still my all-time favorite because that is the game that brought me back in to video games a long time ago.

I think you probably already know that D_B's FC2 maps are available here, and are still the best in my opinion

Tags:
🡱 🡳

Similar topics (5)