Does anybody know how to change the weapon animation clipset on a ped? When you change the player model to any random ped, reloading weapons don’t work.
This problem has been plaguing other devs too: RedM : Guns not Reloading
I’ve thought about streaming a custom cowboy.meta
as a WEAPON_ANIMATIONS_FILE
but it was to no avail. How can we know if it’s possible to stream these files in RedM?
Am I doing this right?
data_file 'WEAPON_ANIMATIONS_FILE' 'cowboy.meta'
I realize the name of the file doesn’t match the mount type. Is this bad? I also tried streaming an untouched weaponanimations.meta
file but RedM crashes instantly.
Update: after some research, I was able change the clipset by streaming a metapeds.ymt file. Inspired by this tutorial (How To Add a New Custom Horse), I created a new ped based on an original ped; in my case, it was cs_dutch. In the tag <WeaponAnimationsGroup>
, set it to player. If you’re using CodeX, it’ll look like so:
<WeaponAnimationsGroup>player</WeaponAnimationsGroup>
Or if using OpenIV:
<UNK_MEMBER_0x44F4F2CA>0x6F0783F5</UNK_MEMBER_0x44F4F2CA>
I haven’t tried replacing built-in peds rather than adding new working ones but RedM is having issues signing in at the moment. Anyways…
Happy modding!
2 Likes
I tried to apply the aforementioned fix for the original peds, but I couldn’t replace the original ped settings (metapeds.ymt
). Therefore, I created a duplicate of mp_u_f_m_bountytarget_001
and named it test_ped
. This worked, and the reload animation works perfectly!
However, another problem related to the character’s facial expression appeared, resulting in bulging eyes.
I tried adding the files expression_sets.xml
and facial_clipset_groups.xml
, but that didn’t help.
I am attaching an archive with my files. I hope someone can make further progress and fix the mentioned issue.
fix-npc-gun-reload.zip (1.4 MB)
Perfect! It works, thank you!
1 Like