From 79e58b1f08f1ea80df729b75e17d6e0f0be6b015 Mon Sep 17 00:00:00 2001 From: SumrakDZN Date: Wed, 25 Nov 2020 18:11:09 +0100 Subject: [PATCH] Quickbar assignment for freshies --- Mission Files/hardcore.namalsk/init.c | 3 +++ Mission Files/regular.namalsk/init.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Mission Files/hardcore.namalsk/init.c b/Mission Files/hardcore.namalsk/init.c index d3560ab..f333cfb 100644 --- a/Mission Files/hardcore.namalsk/init.c +++ b/Mission Files/hardcore.namalsk/init.c @@ -95,6 +95,7 @@ class CustomMission: MissionServer itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" ); if ( Class.CastTo( itemBs, itemEnt ) ) itemBs.SetQuantity( 4 ); + player.SetQuickBarEntityShortcut( itemEnt, 0 ); SetRandomHealth( itemEnt ); @@ -102,6 +103,7 @@ class CustomMission: MissionServer SetRandomHealth( itemEnt ); itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" ); SetRandomHealth( itemEnt ); + player.SetQuickBarEntityShortcut( itemEnt, 1 ); } // pants @@ -118,6 +120,7 @@ class CustomMission: MissionServer itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" ); else itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" ); + player.SetQuickBarEntityShortcut( itemEnt, 2 ); } // shoes diff --git a/Mission Files/regular.namalsk/init.c b/Mission Files/regular.namalsk/init.c index d3560ab..f333cfb 100644 --- a/Mission Files/regular.namalsk/init.c +++ b/Mission Files/regular.namalsk/init.c @@ -95,6 +95,7 @@ class CustomMission: MissionServer itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" ); if ( Class.CastTo( itemBs, itemEnt ) ) itemBs.SetQuantity( 4 ); + player.SetQuickBarEntityShortcut( itemEnt, 0 ); SetRandomHealth( itemEnt ); @@ -102,6 +103,7 @@ class CustomMission: MissionServer SetRandomHealth( itemEnt ); itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" ); SetRandomHealth( itemEnt ); + player.SetQuickBarEntityShortcut( itemEnt, 1 ); } // pants @@ -118,6 +120,7 @@ class CustomMission: MissionServer itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" ); else itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" ); + player.SetQuickBarEntityShortcut( itemEnt, 2 ); } // shoes