Player animation
Posted: Mon Apr 10, 2006 4:30 pm
What controls how long the player reload animation is . I am helping out some one get a weapon into the game . I tried to do it as a new weapon but that didn't work out so I am replaceing the p38 . I got it all to work only the reload animation for the gun lasts longer than the players reload animation even though they are the same length . I tried to edit the models\player\base\anims_pistol.txt
I tried to get the player to do the whole animation I designed for him but he only does part of it then stops long before frame 79 his animation is 100 frames . When I tried to do a new weapon it didn't show up but I had an invisible weapon up untill the reload and kept getting an error from the global/weapons.scr and after the reload was suppose to happen I had no weapon at all not even an invisible one . What am I missing ? The animation loads into lightray ok and plays the whole length .p38_reload viewmodel/pistol/reload_p38.skc crossblend 0.3
{
server
{
first reloadweapon // tell the weapon that we're reloading
//0 attachmodel models/ammo/p38_clip.tik tag_weapon_left // put the ammo clip in the left hand
79 weaponcommand mainhand clip_fill //25 weaponcommand mainhand clip_fill // put the clip ammo into the gun
//40 removeattachedmodel tag_weapon_left 0 models/ammo/p38_clip.tik // remove the clip model from the left hand
}
}