private void playWeaponSwoosh() { if (this.Remote) { this.playFMODEvent(this.weaponSwooshEvent); } else { if (!this.Remote && BoltNetwork.isRunning && base.entity && base.entity.isAttached) { SfxEnemyWeaponSwoosh.Raise(base.entity, EntityTargets.EveryoneExceptOwner).Send(); } if (this.setup.ai.fireman) { this.playFMODEvent(this.fireWeaponSwooshEvent); } else { this.playFMODEvent(this.weaponSwooshEvent); } } }
public override void OnEvent(SfxEnemyWeaponSwoosh evnt) { this.playWeaponSwoosh(); }