force.c
Force.
games/tbs/src/object/psynergy_effects/force.c on GitHub
Force. Part of psynergy_effects.c, compiled only through it.
Functions
FieldFx_RunForceOnTarget
void FieldFx_RunForceOnTarget(s32 unused)
Runs Force cast on a target, through FieldFx_RunForce.
Abilities: Force (field kind 4), cast on a target.
Used by BattleFx_DispatchRequestKind.
BattleFx_GetPositionAboveActor
static __inline__ void BattleFx_GetPositionAboveActor(struct FieldActor *obj, struct EffectVector *pos)
Writes the position 16 pixels above the actor.
Used by FieldFx_RunForce.
FieldFx_RunForce
void FieldFx_RunForce(void)
A shot appears in front of the caster, grows and flies forward with three afterimages; what it hits (scene->child) is pushed 16 pixels.
Abilities: Force (field kind 4).
The shot is object 215, the hand of Move and Carry, flying at 4 pixels a frame; where it lands it makes a heavy impact (gBattleFx_HeavyImpactScript, SpawnHeavyImpactEffect). Called by BattleFx_Run, and through FieldFx_RunForceOnTarget.
Used by BattleFx_Run, FieldFx_RunForceOnTarget.