Quickbar assignment for freshies

This commit is contained in:
SumrakDZN 2020-11-25 18:11:09 +01:00
parent 9f3f525861
commit 79e58b1f08
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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