Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDangerReaction_ProjectileHit.c
Go to the documentation of this file.
3{
4 protected static const float BULLET_IMPACT_DISTANCE_MAX_SQ = 10*10;
5
6 override bool PerformReaction(notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)
7 {
8 float distanceSq = vector.DistanceSq(utility.GetOrigin(), dangerEvent.GetPosition());
9 if (distanceSq > BULLET_IMPACT_DISTANCE_MAX_SQ)
10 return false;
11
12 threatSystem.ThreatBulletImpact(dangerEventCount);
13
14 return true;
15 }
16};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Event which gets broadcasted from danger-causing places to AI.
override bool PerformReaction(notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)