Forum

Q2 SV_CalcGunOffset

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Q2 SV_CalcGunOffset

Postby JasonX » Wed Jan 24, 2018 3:50 am

I'm trying to create a small weapon bob effect like the one in Doom in the Q2 codebase. After inspecting the SV_CalcGunOffset function, it seems that some sort of animation is already written here, but nothing happens in game. Is it possible that this code is being overridden by something else?
JasonX
 
Posts: 407
Joined: Tue Apr 21, 2009 2:08 pm

Re: Q2 SV_CalcGunOffset

Postby qbism » Fri Feb 02, 2018 7:23 pm

Cool to see Q2 get some modding and map interest recently.

Anyway, that function just modifies angles. It doesn't change x,y,z. Although it looks like ID might have thought about bob.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest