Quickbar assignment for freshies
This commit is contained in:
parent
9f3f525861
commit
79e58b1f08
@ -95,6 +95,7 @@ class CustomMission: MissionServer
|
|||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" );
|
||||||
if ( Class.CastTo( itemBs, itemEnt ) )
|
if ( Class.CastTo( itemBs, itemEnt ) )
|
||||||
itemBs.SetQuantity( 4 );
|
itemBs.SetQuantity( 4 );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 0 );
|
||||||
|
|
||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
|
|
||||||
@ -102,6 +103,7 @@ class CustomMission: MissionServer
|
|||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" );
|
||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// pants
|
// pants
|
||||||
@ -118,6 +120,7 @@ class CustomMission: MissionServer
|
|||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" );
|
||||||
else
|
else
|
||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// shoes
|
// shoes
|
||||||
|
@ -95,6 +95,7 @@ class CustomMission: MissionServer
|
|||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "Rag" );
|
||||||
if ( Class.CastTo( itemBs, itemEnt ) )
|
if ( Class.CastTo( itemBs, itemEnt ) )
|
||||||
itemBs.SetQuantity( 4 );
|
itemBs.SetQuantity( 4 );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 0 );
|
||||||
|
|
||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
|
|
||||||
@ -102,6 +103,7 @@ class CustomMission: MissionServer
|
|||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "RoadFlare" );
|
||||||
SetRandomHealth( itemEnt );
|
SetRandomHealth( itemEnt );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// pants
|
// pants
|
||||||
@ -118,6 +120,7 @@ class CustomMission: MissionServer
|
|||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" );
|
||||||
else
|
else
|
||||||
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" );
|
itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" );
|
||||||
|
player.SetQuickBarEntityShortcut( itemEnt, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// shoes
|
// shoes
|
||||||
|
Loading…
Reference in New Issue
Block a user