Page 1 of 1

Animate shooting effect by code

Posted: Sun Apr 10, 2011 6:51 pm
by JasonX
Is there any engine that ignores the shooting effect from the MDL and makes the shooting effect by code, like bobbing, for example? Q3 did that and looked good.

Posted: Sun Apr 10, 2011 7:09 pm
by mh
What do you mean by "shooting effect"? If you mean the muzzle-flash animation then the answer is no, because it's part of the MDL. You'd need a replacement MDL for it.

Posted: Sun Apr 10, 2011 7:25 pm
by JasonX
The movement of the model, not the muzzle flash.

Posted: Sun Apr 10, 2011 9:54 pm
by leileilol
That's done in view.c on the engine, not QuakeC.

Posted: Sun Apr 10, 2011 10:02 pm
by mh
The model movement itself is also part of the MDL animation, nothing to do with code (although code does select which frames to use).

Posted: Mon Apr 11, 2011 2:02 am
by JasonX
As i said, i wanted to ignore MDL animation. I'm using static models and wanted to animate them through code, like Q3 did.

Posted: Mon Apr 11, 2011 2:50 am
by leileilol
q3 did that by cgame (Client-side game code)

quake doesn't have a cgame - it's either engine code or serverside progs.dat