Ejemplo n.º 1
0
    public virtual void FireAttachedGun(Vector3 targetPos, float aimCone, Transform muzzleToUse = null, BaseCombatEntity target = null)
    {
        BaseProjectile attachedWeapon = GetAttachedWeapon();

        if (!(attachedWeapon == null) && !IsOffline())
        {
            attachedWeapon.ServerUse(1f, gun_pitch);
        }
    }