public override void PlayJumpStepAudio() { AudioJumpstepEvent audioEvent = (AudioJumpstepEvent)EventInfos.Instance.Allocate(EEventType.AJumpstep, false); audioEvent.Initialize(GetFootMatType(), new Vector3(PlayerObject.transform.position.x, 0, PlayerObject.transform.position.z), PlayerObject.transform.eulerAngles); entity.localEvents.Events.AddEvent(audioEvent); }
public static void PlayJumpstepAudio(AudioJumpstepEvent audioEvent) { if (IsUnavailable()) { return; } var emitter = GetEmitter(audioEvent); PlayJumpstepAudio(audioEvent.FootMatType, emitter); }
public static void PlayJumpstepAudio(AudioJumpstepEvent audioEvent) { if (SharedConfig.IsServer || AudioEntry.Dispatcher == null) { return; } var emitter = GetEmitter(audioEvent); PlayJumpstepAudio(audioEvent.FootMatType, emitter); }
public void PlayJumpStepAudio() { var footMatType = FootMatType; GameAudioMedia.PlayJumpstepAudio(footMatType, EmitterObject); AudioJumpstepEvent audioEvent = (AudioJumpstepEvent)EventInfos.Instance.Allocate(EEventType.AJumpstep, false); audioEvent.Initialize(FootMatType, new Vector3(PlayerObject.transform.position.x, 0, PlayerObject.transform.position.z), PlayerObject.transform.eulerAngles); entity.localEvents.Events.AddEvent(audioEvent); }