FAQ  •  Register  •  Login

Animate shooting effect by code

Moderator: Inside3D Admins

<<

JasonX

Posts: 300

Joined: Tue Apr 21, 2009 2:08 pm

Post Sun Apr 10, 2011 6:51 pm

Animate shooting effect by code

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

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post 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.
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
<<

JasonX

Posts: 300

Joined: Tue Apr 21, 2009 2:08 pm

Post Sun Apr 10, 2011 7:25 pm

The movement of the model, not the muzzle flash.
<<

leileilol

User avatar

Posts: 2400

Joined: Fri Oct 15, 2004 3:23 am

Post Sun Apr 10, 2011 9:54 pm

That's done in view.c on the engine, not QuakeC.
<<

mh

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post 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).
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
<<

JasonX

Posts: 300

Joined: Tue Apr 21, 2009 2:08 pm

Post 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.
<<

leileilol

User avatar

Posts: 2400

Joined: Fri Oct 15, 2004 3:23 am

Post 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

Return to General Programming

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Icons provided by Aha Soft