skeletons, dp and qc?

Discuss the creation of various model formats for Quake engines, and related matters to modeling.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: skeletons, dp and qc?

Post by Spike »

.float frame1time;
.float frame2time;
they state the amount of time into the framegroup, and default to 0 (which is an annoyance, I admit). You should typically set them to curtime - starttime. If you're doing it on a run animation, you can do self.frame1time += distancetraveled/distanceanimationappearstomovepersecond; to get the sequence to progress relative to the speed/direction of the player.

$frame stuff in qc is _just_ a glorified enum. Thus you want one entry per framegroup (.frame is precise only to framegroups, not to individual frames within framegroups).
The actual names are not seen by the engine, so their ordering and values is all that is important.
fteqcc allows c-style enums too if you feel those make more sense to you.
I'm unfamiliar with dp's .framegroup files. You need one $frame entry per valid self.frame value if its to be correct. looks to me like your shoot animation is split across multiple separate framegroups which may or may not pose a problem. the skeletal objects extension gives you a way to query an animation's total duration, which may be a more versatile alternative to having your attack frames all separate (I personally find it simpler to use frameXtime to advance an animation than to interpolate between multiple separate frames, but don't forget to tell the csqc if an animation restarted).

The way you implement it is entirely up to you.
toneddu2000
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: skeletons, dp and qc?

Post by toneddu2000 »

Thanks Spike for these advices! I'll try as soon as I can!
Meadow Fun!! - my first commercial game, made with FTEQW game engine
Madfox
Posts: 106
Joined: Sat Jan 15, 2005 3:13 pm
Location: Holland
Contact:

Re: skeletons, dp and qc?

Post by Madfox »

Image

I see no servers, I lost my qc.
Last edited by Madfox on Fri Nov 04, 2011 7:47 pm, edited 1 time in total.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: skeletons, dp and qc?

Post by Spike »

madfox, are you trying to hack people's inside3d accounts, or do you just have an annoyingly broken avatar?... :/
Madfox
Posts: 106
Joined: Sat Jan 15, 2005 3:13 pm
Location: Holland
Contact:

Re: skeletons, dp and qc?

Post by Madfox »

Sorry, I've got my browser change screwed.
Post Reply