Porting Animations for Melee

So im trying to port in weapon animations for the Hammer from SRTT into SRIV, I noticed that all weapons that have theyr own special animations have a xtbl that has the anim file names in them but ther are no tabels that I can find for melee weapons, I looked through Melee.xtbl and Weapon_melee_attacks.xtbl and cant see any refrence to any anim files so im confused how I would go about it

I know that I have to preload the animations that I want but I need table to handle the animaions for my weapon im alright with replacing in game weapons, I was considering replacing a gun but as they have a diffrent layout like

<Action><ID>stand fire</ID> as its a gun

and the melee uses this <Action><ID>Hammer Smash</ID>

Im not sure how to work with that I know I would need to replace the file name later on for my ported animation file names but im stuck on the action id mainly

Any help would be greatly apreshated :)
 
The animation table for that weapon is the Weap_RHammer.xtbl It appears there are only two Actions in that table. "Hammer Prep" and "Hammer Smash", the animations are "rhammer_prep.animx" and "rhammer_smash.animx". These action tags may also need to exist in the "anim_actions.xtbl"

Just another thing to note here these are specific names and may not fire off as the may be hard-coded and called specifically so YMMV.
 
The animation table for that weapon is the Weap_RHammer.xtbl It appears there are only two Actions in that table. "Hammer Prep" and "Hammer Smash", the animations are "rhammer_prep.animx" and "rhammer_smash.animx". These action tags may also need to exist in the "anim_actions.xtbl"

Just another thing to note here these are specific names and may not fire off as the may be hard-coded and called specifically so YMMV.
I know that tha table for hammer is already in game to make use of that table could I create a new wepaon entry and name it the same as the weapon is named in the hammer table, what I was hoping to do was to replace the stun gun and have the hammer anim table used for that but as its called stun gun it wont refrence that file

Edit: would it be possible to make a new table say called weap_stungun.xtbl and add it into the misc tables vpp as ther is no asm to update and if so what other file would I need to add in the refrence weap_stungun.xtbl to force the weapon to act like a special case type and call its animation sets from that table
 
Last edited:
Special case stuff is usually driven from code. We don't just read anything in misc_tables.vpp, code has to specifically look for it. :(
 
Back
Top