Page 1 of 1

Player animation

Posted: Mon Apr 10, 2006 4:30 pm
by bdbodger
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
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
}
}
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 .

Posted: Tue Apr 11, 2006 8:09 am
by jv_map
A player plays the entire animation, unless mike_torso.st tells it to play another anim or to stop any current anim (action { none }).

Posted: Tue Apr 11, 2006 10:35 am
by lizardkid
you can, however, speed up the anim though right? in the regular .tik for the weap? something like realodtime or dm_realodtime?

Posted: Tue Apr 11, 2006 12:24 pm
by Rookie One.pl
I don't think so. You must understand that the reload action and animation are two separate things. The animation would probably be interrupted.

Posted: Tue Apr 11, 2006 2:31 pm
by bdbodger
I don't know what I did right but got it to work . The only thing is if I change the name in the tik from "Walther P38" or "Colt 45" then the weapon won't show . If I change the name in spearhead the weapon will show and works ok but no bullets in the hud , hud is ok if I don't change the name but shows p38 or colt 45 as the name .

Posted: Tue Apr 11, 2006 3:33 pm
by bdbodger
Ok I got it I made some changes to the global/localization.txt

{ "Walther P38" "Colt Python" }
{ "Colt 45" "Colt Python" }