‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_weapon_utils.gsc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #insert scripts\shared\shared.gsh;
4 
5 #namespace weapon_utils;
6 
7 function ‪getBaseWeaponParam( weapon )
8 {
9  // figure out the weapon to pass as a parameter to GetBaseWeaponItemIndex()
10  return ( ( weapon.rootweapon.altweapon != level.weaponNone ) ? weapon.rootweapon.altweapon.rootweapon : weapon.rootweapon );
11 }
‪getBaseWeaponParam
‪function getBaseWeaponParam(weapon)
Definition: _weapon_utils.gsc:7