‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
loadout_shared.gsc
Go to the documentation of this file.
1 #namespace loadout;
2 
3 function ‪is_warlord_perk( itemIndex )
4 {
5  return false;
6 }
7 
8 function ‪is_item_excluded( itemIndex )
9 {
10  if ( !level.onlineGame )
11  {
12  return false;
13  }
14 
15  numExclusions = level.itemExclusions.size;
16 
17  for ( exclusionIndex = 0; exclusionIndex < numExclusions; exclusionIndex++ )
18  {
19  if ( itemIndex == level.itemExclusions[ exclusionIndex ] )
20  {
21  return true;
22  }
23  }
24 
25  return false;
26 }
27 
28 
29 function ‪getLoadoutItemFromDDLStats( customClassNum, loadoutSlot )
30 {
31  itemIndex = self GetLoadoutItem( customClassNum, loadoutSlot );
32 
33  if ( ‪is_item_excluded( itemIndex ) && !‪is_warlord_perk( itemIndex ) )
34  {
35  return 0;
36  }
37 
38  return itemIndex;
39 }
40 
41 function ‪initWeaponAttachments( weapon )
42 {
43  self.currentWeaponStartTime = getTime();
44 
45  self.currentWeapon = weapon;
46 }
‪initWeaponAttachments
‪function initWeaponAttachments(weapon)
Definition: loadout_shared.gsc:41
‪getLoadoutItemFromDDLStats
‪function getLoadoutItemFromDDLStats(customClassNum, loadoutSlot)
Definition: loadout_shared.gsc:29
‪is_warlord_perk
‪function is_warlord_perk(itemIndex)
Definition: loadout_shared.gsc:3
‪is_item_excluded
‪function is_item_excluded(itemIndex)
Definition: loadout_shared.gsc:8