Skip to content

KAI_HitChanceTracer

inkoalawetrust edited this page Sep 16, 2023 · 1 revision

KAI_HitChanceTracer

Parent class: KAI_LOFRaycast

Description

This raycast is fired by the Smart check of DetermineHitChance(), and is used to detect which of an NPCs' projectiles or hitscans will hit their target. As a smarter alternative to hardcoded distance checks like If (Distance <= 123).

Variables

Success

Type: Boolean

If true, then that means that one of the tracers' Trace() calls successfully hit an enemy. This boolean is counted, and then reset by DetermineHitChance() for the next Trace().

HostilesToo

Type: Boolean

If true, then any actor hostile to the tracers' Shooter will also be counted as a Success, instead of only counting hits to the Other actor itself as successful.

ThruHostiles

Type: Boolean

Used in conjunction with HostilesToo, adds any hostile actors (Including Other) to the Mobjs array, so that they will be ignored by subsequent Trace() calls. This can be used to further increase the successful hits if the NPC is firing inside a crowd of enemies.

Clone this wiki locally