Hey guys iam working on a compatability patch for the Hand feature on guns coming from Facial Stuff.
These examples are added with VWE
Whip, i rotated the texture by 90° too.
Flintlock
Semi Automatic Rifle
Unfortunatley my approach is not working on every weapon and because of this iam asking here for help.
Musket
My approach is pretty simple as i do not have any expirience. I just tried to use my brain worked out a bit....
So what have i done.
I looked at both folders and in the Facial Stuff Files i found a folder Defs\WeaponExtensionDefs
For example you can find there this file
WeaponExtensionDef_Gun_BoltActionRifle.xml
What i have done now is just to copy this file, and rename it with the def name of a VWE Weapon.
In this example it was the Semi Automatic Rifle you can see above. Both weapons look pretty the same so the hand positions should fit somewhat.
This is the code for the SemiAutomatic Rifle. I just changed it at 3 spots. Pretty easy!
Unfortunatley i used the same idea to get hand positions on the musket you could also see above.
I created a WeaponExtensionDef_VWE_Gun_Musket.xml and added this code
Unfortunatley i see no hand positions ingame. The hands just on standby on the body.
So what am i doing wrong here!
Thanks <3
These examples are added with VWE
Whip, i rotated the texture by 90° too.
Flintlock
Semi Automatic Rifle
Unfortunatley my approach is not working on every weapon and because of this iam asking here for help.
Musket
My approach is pretty simple as i do not have any expirience. I just tried to use my brain worked out a bit....
So what have i done.
I looked at both folders and in the Facial Stuff Files i found a folder Defs\WeaponExtensionDefs
For example you can find there this file
WeaponExtensionDef_Gun_BoltActionRifle.xml
Code Select
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<WeaponExtensionDef>
<weapon>Gun_BoltActionRifle</weapon>
<attackAngleOffset IsNull="True" />
<weaponPositionOffset>
<x>0.1291824</x>
<y>0</y>
<z>-0.07402515</z>
</weaponPositionOffset>
<aimedWeaponPositionOffset>
<x>-0.1446541</x>
<y>0.1069182</y>
<z>0.1069182</z>
</aimedWeaponPositionOffset>
<firstHandPosition>
<x>-0.22</x>
<y>0.003</y>
<z>-0.11</z>
</firstHandPosition>
<secondHandPosition>
<x>0.07</x>
<y>-0.003</y>
<z>-0.02</z>
</secondHandPosition>
<defName>WeaponExtensionDef_Gun_BoltActionRifle</defName>
<label>WeaponExtensionDef_Gun_BoltActionRifle</label>
</WeaponExtensionDef>
</Defs>
What i have done now is just to copy this file, and rename it with the def name of a VWE Weapon.
In this example it was the Semi Automatic Rifle you can see above. Both weapons look pretty the same so the hand positions should fit somewhat.
This is the code for the SemiAutomatic Rifle. I just changed it at 3 spots. Pretty easy!
Code Select
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<WeaponExtensionDef>
<weapon>VWE_Gun_SemiAutomaticRifle</weapon>
<attackAngleOffset IsNull="True" />
<weaponPositionOffset>
<x>0.1291824</x>
<y>0</y>
<z>-0.07402515</z>
</weaponPositionOffset>
<aimedWeaponPositionOffset>
<x>-0.1446541</x>
<y>0.1069182</y>
<z>0.1069182</z>
</aimedWeaponPositionOffset>
<firstHandPosition>
<x>-0.22</x>
<y>0.003</y>
<z>-0.11</z>
</firstHandPosition>
<secondHandPosition>
<x>0.07</x>
<y>-0.003</y>
<z>-0.02</z>
</secondHandPosition>
<defName>WeaponExtensionDef_VWE_Gun_SemiAutomaticRifle</defName>
<label>WeaponExtensionDef_VWE_Gun_SemiAutomaticRifle</label>
</WeaponExtensionDef>
</Defs>
Unfortunatley i used the same idea to get hand positions on the musket you could also see above.
I created a WeaponExtensionDef_VWE_Gun_Musket.xml and added this code
Code Select
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<WeaponExtensionDef>
<weapon>VWE_Gun_Musket</weapon>
<attackAngleOffset IsNull="True" />
<weaponPositionOffset>
<x>0.1291824</x>
<y>0</y>
<z>-0.07402515</z>
</weaponPositionOffset>
<aimedWeaponPositionOffset>
<x>-0.1446541</x>
<y>0.1069182</y>
<z>0.1069182</z>
</aimedWeaponPositionOffset>
<firstHandPosition>
<x>-0.22</x>
<y>0.003</y>
<z>-0.11</z>
</firstHandPosition>
<secondHandPosition>
<x>0.07</x>
<y>-0.003</y>
<z>-0.02</z>
</secondHandPosition>
<defName>WeaponExtensionDef_VWE_Gun_Musket</defName>
<label>WeaponExtensionDef_VWE_Gun_Musket</label>
</WeaponExtensionDef>
</Defs>
Unfortunatley i see no hand positions ingame. The hands just on standby on the body.
So what am i doing wrong here!
Thanks <3