Class RiftLightningEffect
java.lang.Object
com.fs.starfarer.api.impl.combat.dweller.RiftLightningEffect
- All Implemented Interfaces:
EveryFrameWeaponEffectPlugin
,OnFireEffectPlugin
,OnHitEffectPlugin
public class RiftLightningEffect
extends Object
implements OnHitEffectPlugin, OnFireEffectPlugin, EveryFrameWeaponEffectPlugin
Multiple instances of this plugin - one for every projectile (on hit), and one for each weapon.
The goal is for the on-hit effect to fire off a lightning arc in case of a hit, and for the onfire/every frame copy
of the plugin to fire off a lightning arc in case there is a miss.
- Author:
- Alex
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount, CombatEngineAPI engine, WeaponAPI weapon) Called before this frame's operations for the weapon - turning, firing, etc.static void
fireArc
(DamagingProjectileAPI projectile, WeaponAPI weapon, org.lwjgl.util.vector.Vector2f point, CombatEntityAPI target) void
onFire
(DamagingProjectileAPI projectile, WeaponAPI weapon, CombatEngineAPI engine) void
onHit
(DamagingProjectileAPI projectile, CombatEntityAPI target, org.lwjgl.util.vector.Vector2f point, boolean shieldHit, ApplyDamageResultAPI damageResult, CombatEngineAPI engine) static void
-
Field Details
-
RIFT_LIGHTNING_COLOR
-
RIFT_LIGHTNING_SPEED
public static float RIFT_LIGHTNING_SPEED -
RIFT_LIGHTNING_DAMAGE_REMOVER
-
RIFT_LIGHTNING_FIRED_TAG
-
RIFT_LIGHTNING_SOURCE_WEAPON
-
fired
-
-
Constructor Details
-
RiftLightningEffect
public RiftLightningEffect()
-
-
Method Details
-
advance
Description copied from interface:EveryFrameWeaponEffectPlugin
Called before this frame's operations for the weapon - turning, firing, etc.- Specified by:
advance
in interfaceEveryFrameWeaponEffectPlugin
-
onFire
- Specified by:
onFire
in interfaceOnFireEffectPlugin
-
onHit
public void onHit(DamagingProjectileAPI projectile, CombatEntityAPI target, org.lwjgl.util.vector.Vector2f point, boolean shieldHit, ApplyDamageResultAPI damageResult, CombatEngineAPI engine) - Specified by:
onHit
in interfaceOnHitEffectPlugin
-
fireArc
public static void fireArc(DamagingProjectileAPI projectile, WeaponAPI weapon, org.lwjgl.util.vector.Vector2f point, CombatEntityAPI target) -
spawnMine
-