From 0082093ecbd75293e88390537bd8875a565b711d Mon Sep 17 00:00:00 2001 From: Night Owl Date: Tue, 16 Jan 2018 14:07:18 +0500 Subject: [PATCH] Give armorvest and helmet when using impulse 101 cheat. --- dlls/player.cpp | 4 +++- dlls/weapons.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/player.cpp b/dlls/player.cpp index 52f5f546..c8147c68 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -3446,7 +3446,9 @@ void CBasePlayer::CheatImpulseCommands( int iImpulse ) case 101: gEvilImpulse101 = TRUE; GiveNamedItem( "item_suit" ); - GiveNamedItem( "item_battery" ); + GiveNamedItem( "item_armorvest" ); + GiveNamedItem( "item_helmet" ); + // GiveNamedItem( "item_battery" ); GiveNamedItem( "weapon_crowbar" ); GiveNamedItem( "weapon_9mmhandgun" ); GiveNamedItem( "ammo_9mmclip" ); diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index 5e4f8f78..4cfc8928 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -296,6 +296,8 @@ void W_Precache( void ) // common world objects UTIL_PrecacheOther( "item_suit" ); UTIL_PrecacheOther( "item_healthkit" ); + UTIL_PrecacheOther( "item_armorvest" ); + UTIL_PrecacheOther( "item_helmet" ); UTIL_PrecacheOther( "item_battery" ); UTIL_PrecacheOther( "item_antidote" ); UTIL_PrecacheOther( "item_security" );