From 8d953301158e64f9aa332a26d39f17672d045eab Mon Sep 17 00:00:00 2001 From: revility <32818302+revility@users.noreply.github.com> Date: Mon, 24 Sep 2018 19:06:05 -0400 Subject: [PATCH] Added soulcube clone Only the soul cube can display hud notifications when enough kills are done. this adds support for a 2nd weapon to do so. weapon is not in 2010 but will be 2018 build. Code should still be compatible with 2010 build. --- game/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/Player.cpp b/game/Player.cpp index 4dd2bf4..6d7d81b 100644 --- a/game/Player.cpp +++ b/game/Player.cpp @@ -930,7 +930,7 @@ bool idInventory::Give( idPlayer *owner, const idDict &spawnArgs, const char *st continue; } - if ( !gameLocal.world->spawnArgs.GetBool( "no_Weapons" ) || ( weaponName == "weapon_fists" ) || ( weaponName == "weapon_soulcube" ) ) { + if ( !gameLocal.world->spawnArgs.GetBool( "no_Weapons" ) || ( weaponName == "weapon_fists" ) || ( weaponName == "weapon_giltine" )) { //Rev 2018 if ( ( weapons & ( 1 << i ) ) == 0 || gameLocal.isMultiplayer ) { if ( owner->hud && updateHud && lastGiveTime + 1000 < gameLocal.time ) { @@ -1516,7 +1516,7 @@ void idPlayer::Init( void ) { quickWeapon = -1; //new weaponSwitchTime = 0; weaponEnabled = true; - weapon_soulcube = SlotForWeapon( "weapon_soulcube" ); + weapon_soulcube = SlotForWeapon ( "weapon_soulcube" ) && ( "weapon_giltine" ); //Rev 2018 weapon_pda = SlotForWeapon( "weapon_pda" ); weapon_fists = SlotForWeapon( "weapon_fists" ); showWeaponViewModel = GetUserInfo()->GetBool( "ui_showGun" );