
Centered Visible
Gun's
|
Copyright
info |
|
All
code in this tutorial is protected by the [GPL License]. |
|
Tutorial
by: Riot
|
||||||||||||
|
Mailto: riot@planetquake.com Ever notice
how in Unreal Tournament you can have a centered gun without having it
hidden? Let's hack the same thing into Quake 2! Open
cl_ents.c, look for CL_AddViewWeapon. Before it, add this:
In the
CL_AddViewWeapon function, look for the block:
After it, add
this:
Okay, now to
add support for it in the rendering code. For software mode, open r_alias.c,
look for this block of code in R_AliasDrawModel:
Change that
to:
For OpenGL
mode, open gl_mesh.c, and in R_DrawAliasModel, look for the block:
Comment that
out. And that's
all! Enjoy Q2 with a centered gun! |
Tutorial Originally found at: