From 64bf2cc1c0ae18adbebfb7afa29268de3f529ce0 Mon Sep 17 00:00:00 2001 From: boris Date: Thu, 29 Nov 2018 14:09:24 +1300 Subject: fixed mild annoyances --- cheat/internal_rewrite/c_base_weapon.hpp | 1 + cheat/internal_rewrite/end_lock.cpp | 2 -- cheat/internal_rewrite/util.cpp | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'cheat/internal_rewrite') diff --git a/cheat/internal_rewrite/c_base_weapon.hpp b/cheat/internal_rewrite/c_base_weapon.hpp index f56770e..f8c1b1c 100644 --- a/cheat/internal_rewrite/c_base_weapon.hpp +++ b/cheat/internal_rewrite/c_base_weapon.hpp @@ -49,6 +49,7 @@ enum ItemDefinitionIndex_t { WEAPON_USP_SILENCER = 61, WEAPON_CZ75A = 63, WEAPON_R8REVOLVER = 64, + WEAPON_MP5SD = 23, WEAPON_KNIFE_BAYONET = 500, WEAPON_KNIFE_FLIP = 505, WEAPON_KNIFE_GUT = 506, diff --git a/cheat/internal_rewrite/end_lock.cpp b/cheat/internal_rewrite/end_lock.cpp index ee81d7a..6a61b48 100644 --- a/cheat/internal_rewrite/end_lock.cpp +++ b/cheat/internal_rewrite/end_lock.cpp @@ -5,8 +5,6 @@ #include "context.hpp" void __fastcall hooks::end_lock( void* ecx, void* edx ) { // THIS IS PROLLY NOT ENDLOCK, BUT WHATEVER - - // signature: // search "CL_CallPostDataUpdates: missing ent %d" in engine.dll. // where framestagenotify gets called diff --git a/cheat/internal_rewrite/util.cpp b/cheat/internal_rewrite/util.cpp index 1d19f9a..26d6bf4 100644 --- a/cheat/internal_rewrite/util.cpp +++ b/cheat/internal_rewrite/util.cpp @@ -562,13 +562,15 @@ const char* util::definition_index_to_name( int index ) { case WEAPON_KNIFE_T: return xors( "knife" ); case WEAPON_M4A1_SILENCER: - return xors( "M4A1" ); + return xors( "m4a1" ); case WEAPON_USP_SILENCER: return xors( "usp" ); case WEAPON_CZ75A: return xors( "cz75" ); case WEAPON_R8REVOLVER: return xors( "revolver" ); + case WEAPON_MP5SD: + return xors( "mp5-sd" ); default: return xors( "none" ); } -- cgit v1.2.3