LOL! Didn't realize I put tears...
= On Topic =
All the code I have changed/added:
(hud.cpp)
CVAR_CREATE("r_shadows", "0", FCVAR_ARCHIVE );(StudioModelRenderer.cpp)
#include <windows.h>(StudioModelRenderer.cpp)
#include <gl\gl.h>
#include <gl\glu.h>
[quote]
void (*GL_StudioDrawShadow)(void);
__declspec(naked) void DrawShadows(void)
{
glDepthMask( 1 );
_asm
{
push ecx;
jmp [GL_StudioDrawShadow];
}
}[/quote]
I'm quite a scrub when it comes to coding... Also, this is for a mod I'm working on. Any help would be great, thanks.