Ludeon Forums

RimWorld => Mods => Topic started by: Comrade Corwin on October 28, 2019, 06:31:23 PM

Title: [Help] Editing Facial Stuff Hands/Feet Animations for Modded Weapons
Post by: Comrade Corwin on October 28, 2019, 06:31:23 PM
I've asked this before on the mod page and never got a helpful response, but how do you adjust the hands to use modded weapons? I'm not a Rimworld modder or have very much experience modding in general, so if I have to edit files outside of the ingame walk animation editor, I just need to be pointed into the right direction. Any help would be greatly appreciated.

If I can learn how to do this, I would be glad to share any edits for others to use. I'm happy to do the work, I just have no idea how to get started.
Title: Re: [Help] Editing Facial Stuff Hands/Feet Animations for Modded Weapons
Post by: Kirby23590 on October 29, 2019, 03:20:08 AM
Will help for you comrade. Just downloaded Facial stuff and found where you could modify and give the weapons animation for them to be used like real action firefights.

Though i'm a modder but i'm not very sure about modifying something that i don't understand. But Looking at the files and the folder of the Facial Stuff mod.

There should be something called the WeaponExtensionDefs. I'ma use the WeaponExtensionDef assault rilfe as it's template...
Quote
<Defs>
  <WeaponExtensionDef>
    <weapon>Gun_AssaultRifle</weapon>
    <attackAngleOffset IsNull="True" />
    <weaponPositionOffset>
      <x>0.081761</x>
      <y>0.2075472</y>
      <z>-0.1069182</z>
    </weaponPositionOffset>
    <aimedWeaponPositionOffset>
      <x>-0.1194969</x>
      <y>-0.03773585</y>
      <z>0.1132075</z>
    </aimedWeaponPositionOffset>
    <firstHandPosition>
      <x>-0.2748428</x>
      <y>0.005</y>
      <z>-0.05</z>
    </firstHandPosition>
    <secondHandPosition>
      <x>0.1179245</x>
      <y>-0.005</y>
      <z>-0.01855346</z>
    </secondHandPosition>
    <defName>WeaponExtensionDef_Gun_AssaultRifle</defName>
    <label>WeaponExtensionDef_Gun_AssaultRifle</label>
  </WeaponExtensionDef>
</Defs>
If i know X Y Z, You gotta use the XYZ axis.

Y is up and down, vertically, X is eastand west  and Z is north and south both X and Z are horizontal.

It's not easy to explain, that. But Obviously <weapon>Gun_AssaultRifle</weapon> could be replaced with Gun_AeyKayFourtySeven or Gun_ScarH. Including a different defName and label with the same Gun_AeyKayFourtySeven. Also it has to be the same defname of your custom or another mod's gun.

When tweaking the x, y, and z to be to your liking, you gotta need patience and trial and error to make it just right if you're satisfied for your custom animation for the weapon to a mod.

There's always the Unofficial rimworld discord where the modders could help you.
Title: Re: [Help] Editing Facial Stuff Hands/Feet Animations for Modded Weapons
Post by: Comrade Corwin on October 31, 2019, 03:38:46 AM
Thank you so much! If nothing else, this is an excellent starting point.
I've been trying to get help on this for a long time. I have even foregone using any mods (many of them great in their own right) that add weapons because they look strange in game when using hands and feet from the Facial Stuff mod.
I'll let you know how it works out.