How animations work?

Discuss programming in the QuakeC language.
Post Reply
Karall
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

How animations work?

Post by Karall »

So, I kinda get how animations work. I know how to add new animations, and how to easily play them with "weaponframe" function thingy. But what i dont know is how to make a running animation, so that theres an animation with the player running that replays when you run.
lth
Posts: 144
Joined: Thu Nov 11, 2004 1:15 pm

Post by lth »

Look in player_run, in player.qc . The QC manually cycles through the frames, with a breakout to the standing frames if you're not moving, iirc. Look in the top of player.qc while you're at it, or any of the monster files, and see a bunch of "frame macros", the things with dollar signs at the beginning. These are handcoded to match what's in the model file in order to usefully be able to reference them.
Post Reply