-
Notifications
You must be signed in to change notification settings - Fork 0
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.
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.
Type: Actor class
The class of the projectile that this class has info stored about.
Type: Boolean
Is the projectile a +RIPPER ?
Type: Boolean
Does the projectile have +NOBOSSRIP ?
Type: Integer
The projectiles' RipperLevel.
Type: Integer
The projectiles' RipDepth.
Type: Boolean
Does the projectile have +RIPONCE ?
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.
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);
- Home
- Features
- Classes
- Functions
- Guides