Forum

Duplicate shake12 / attackb1

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Duplicate shake12 / attackb1

Postby Junrall » Sun Mar 14, 2010 6:41 am

Yeah, its me again... Mr. Curious.

Was just looking through the frame macros of the monsters "oldone" and "knight" and noticed that shake12 and attackb1 are defined twice in each macro and are also duplicated within the models as well.
I don't see anywhere, within the QC code, that uses shake12 or attackb1 more than once in any animation. Is it safe to remove one of the duplicates in the code and the model? And if so, was this a mistake on ID's part?
As usual... just curious! :wink:
Good God! You shot my leg off!
User avatar
Junrall
 
Posts: 191
Joined: Mon Sep 21, 2009 12:27 am
Location: North West Oregon, USA

Postby Lardarse » Mon Mar 15, 2010 10:27 am

Probably a mistake by Id, yes.

Note that if you remove them, you need to remove them from both model and code, otherwise animations will look very strange.

If you do remove them from both, pretty much nothing will change. If you want to see a change happening, find the functions that use those frames and only have the previously duplicated frame happen once. That will make the knight slightly faster in that animation. It will also make both animations look slightly less jittery.
Roaming status: Testing and documentation
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest