Example #1
0
 public void SetWeapon(Vector3 slot, WeaponData weapon)
 {
     WeaponData currentWeapon = Weapons[slot];
     if (currentWeapon != null)
     {
         weaponWeight -= currentWeapon.Weight;
     }
     if(weapon != null) weaponWeight += weapon.Weight;
     Weapons[slot] = weapon;
 }
Example #2
0
 public WeaponData Copy()
 {
     var copied = new WeaponData(Index,Name,Description,Weight,InverseRoF,MaxAmmo,ReloadTime,ProjectileID);
     copied.fireGroup = 0;
     return copied;
 }