25 protected override event void OnAnimationEvent(AnimationEventID animEventType, AnimationEventID animUserString,
int intParam,
float timeFromStart,
float timeToEnd)
27 super.OnAnimationEvent(animEventType, animUserString, intParam, timeFromStart, timeToEnd);
33 SoundComponent soundComponent = SoundComponent.Cast(
m_Owner.FindComponent(SoundComponent));
37 TraceParam param =
new TraceParam();
38 param.Start =
m_Owner.GetOrigin();
39 param.End = param.Start - vector.Up;
40 param.Flags = TraceFlags.WORLD | TraceFlags.ENTS;
42 param.LayerMask = EPhysicsLayerPresets.Projectile;
43 m_Owner.GetWorld().TraceMove(param,
null);
49 soundComponent.SetSignalValueStr(
"Surface", material.GetSoundInfo().GetSignalValue());
53 RplComponent rplComponent = RplComponent.Cast(
m_Owner.FindComponent(RplComponent));
54 if (!rplComponent || rplComponent.IsProxy())
59 SCR_PressureTriggerComponent pressureTriggerComponent = SCR_PressureTriggerComponent.Cast(
m_Owner.FindComponent(SCR_PressureTriggerComponent));
60 if (!pressureTriggerComponent)
63 pressureTriggerComponent.ActivateTrigger();