urban terror no stamina hack 4.1 version, late 2011
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////// | |
// IN "VM_LoadQVM" OBEN | |
////////////////////////////////////////////////// | |
cvar_t *sv_keineStamina; | |
////////////////////////////////////////////////// | |
// ÜBER "VM_LoadQVM" | |
////////////////////////////////////////////////// | |
/*================= VMhook_KeineStamina ================= */ | |
#define SPRINTOFFSET 0x103C8 | |
#define SPRUNGOFFSET 0x114C5 | |
#define DUCKOFFSET 0x14399 | |
static void VMhook_KeineStamina( byte * code ) { | |
code[DUCKOFFSET] = code[SPRUNGOFFSET] = code[SPRINTOFFSET] = OP_POP; | |
} | |
////////////////////////////////////////////////// | |
// ÜBER "return header;" IN "VM_LoadQVM" | |
////////////////////////////////////////////////// | |
sv_keineStamina = Cvar_Get ( "sv_keineStamina", "0", CVAR_LATCH | CVAR_ARCHIVE ); | |
if ( sv_keineStamina->integer > 0 && !Q_stricmp (vm->name, "qagame") ) | |
VMhook_KeineStamina ( ( byte * ) header + header->codeOffset ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment