Skip to content

LOFProjInfo

inkoalawetrust edited this page Aug 7, 2023 · 1 revision

LOFProjInfo

This class stores info pertaining to a specific projectile. As of 7/8/2023, it primarily stores ripper-related information. This class is primarily useful for line of fire checks, and works both with KAI and non-KAI projectiles.

Variables

These are the variables the class stores, that can then be read from an instance of this class to get additional information about the projectile.

Projectile

Type: Actor class

The class of the projectile that this class has info stored about.

IsRipper

Type: Boolean

Is the projectile a +RIPPER ?

NoBossRip

Type: Boolean

Does the projectile have +NOBOSSRIP ?

RipLevel

Type: Integer

The projectiles' RipperLevel.

RipDepth

Type: Integer

The projectiles' RipDepth.

RipOnce

Type: Boolean

Does the projectile have +RIPONCE ?

Functions

InitializeProjectileInfo()

Function:

Checks if the class has a Projectile class reference. And if does, gets the above flags and properties from it and stores them in the variables.

Usage

This is how KAI_TurretCheckLOF() passes the class and its' info to KAI_LOFProjectileCheck for it to use:

		Check.ProjInfo = New ('LOFProjInfo'); //Assign data class.
		Check.ProjInfo.Projectile = ProjCls; //Pass projectile class to class.
		Check.ProjInfo.InitializeProjectileInfo(); //Let it infer the rest.
		
		Check.Trace (Level.Vec3Offset (Pos,CheckOffsets),CurSector,Direction,Distance,0);

See also

Clone this wiki locally