Forum

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.

Moderator: InsideQC Admins

Animate shooting effect by code

Postby JasonX » Sun Apr 10, 2011 6:51 pm

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.
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby mh » Sun Apr 10, 2011 7:09 pm

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

Postby JasonX » Sun Apr 10, 2011 7:25 pm

The movement of the model, not the muzzle flash.
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby leileilol » Sun Apr 10, 2011 9:54 pm

That's done in view.c on the engine, not QuakeC.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby mh » Sun Apr 10, 2011 10:02 pm

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

Postby JasonX » Mon Apr 11, 2011 2:02 am

As i said, i wanted to ignore MDL animation. I'm using static models and wanted to animate them through code, like Q3 did.
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby leileilol » Mon Apr 11, 2011 2:50 am

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


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest