Animate shooting effect by code

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Animate shooting effect by code

Post 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.
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Post 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.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Post by JasonX »

The movement of the model, not the muzzle flash.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post by leileilol »

That's done in view.c on the engine, not QuakeC.
i should not be here
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Post 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).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Post 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.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post 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
i should not be here
Post Reply