Player animation

Post your skinning / modelling questions or answers here

Moderator: Moderators

Post Reply
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Player animation

Post 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 .
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 }).
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

you can, however, speed up the anim though right? in the regular .tik for the weap? something like realodtime or dm_realodtime?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Ok I got it I made some changes to the global/localization.txt

{ "Walther P38" "Colt Python" }
{ "Colt 45" "Colt Python" }
Image
Post Reply