Posted by: Raptor Dan
« on: September 12, 2018, 08:09:24 PM »So you just import a model and then use another weapon's animation? This works for other models too like character models?
If the models have the same kind of bones, then probably! These can be defined in the def/actors/weapons.txt
I had to modify the pistol animation and save it as a separate file to incorporate a new bullet particle, since it looks like OP wanted the gun to have unique sounds.
Code: [Select]
Tommy kActor_Wpn_Tommy
{
className "kexPlayerWeapon"
initialScale "0.2 0.2 0.2"
Begin_Component "kexRenderMeshComponent"
mesh "char/tommyturok64.skinnedmesh"
anim "anims/Weapon_BloodTommy.anim"
bRenderAsWeapon TRUE
End_Component
Begin_Component "kexAnimTrackComponent"
End_Component
Begin_Component "kexScriptComponent"
scriptClass "Tommy"
End_Component
}