src/field/script_commands_lift.c
Lift: two hands grip the target and raise it, and Force's flashes and heavy impact, linked beside it. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | HEAVY_IMPACT_SPARKLES 12 |
Functions
| Name | Description | |
|---|---|---|
void | fdPsynergyLiftOnTarget (Sint32 unused) | A hand appears 32 pixels to either side, each moves 14 pixels in, and they lift the target 32 pixels with them. |
DEFINE_CLAPPING_HANDS_CAST( | fdPsynergyLift , fdEffectSpawnLiftHand) | Two hands appear 16 pixels above the spot in front of the caster, 32 pixels to either side, then close in 24 pixels and clap, and sparkles scatter. |
ACTOR * | fdEffectSpawnLiftHand (Sint32 x, Sint32 y, Sint32 z, Sint32 angle) | Spawns a hand (SPRITE_MOVE_HAND) and grows it, spinning, from a quarter to full size over 24 ticks; angle is the way it faces once grown. |
void | fdEffectUpdateRadialBurst (FIELD_PARTICLE *effect) | Field effect sprite callback of a particle that scatters 25 pixels from its origin in a random direction, then gathers in front of the caster and is freed: each of Force's FORCE_FLASHES flashes (script_commands_force.c). |
Sint32 | fdEffectSpawnHeavyImpact (ACTOR *src) | A heavy impact: places a star burst (SPRITE_STAR_BURST) 32 pixels below the source for 20 ticks and scatters HEAVY_IMPACT_SPARKLES sparkles (SPRITE_SPARKLE) from it. |
Description
Lift: two hands grip the target and raise it, and Force's flashes and heavy
impact, linked beside it. Part of script_commands.c.
Macros in detail
HEAVY_IMPACT_SPARKLES
#define HEAVY_IMPACT_SPARKLES 12
Referenced by fdEffectSpawnHeavyImpact().
Definition at line 177 of file script_commands_lift.c.
Functions in detail
fdPsynergyLiftOnTarget
void fdPsynergyLiftOnTarget(Sint32 unused)
A hand appears 32 pixels to either side, each moves 14 pixels in, and they lift the target 32 pixels with them.
References fdActorCycleSpriteColors(), fdActorSetTargetPosFromMagnitudeAngle(), fdActorStartScriptStub(), fdActorWaitForMoveStub(), fdEffectBurstHand(), fdEffectSpawnLiftHand(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), FieldEffectSourceHoldScript, Sint32, sySoundPlayStub() and sySynch().
Referenced by fdPsynergyDispatch().
Definition at line 8 of file script_commands_lift.c.
fdPsynergyLift
DEFINE_CLAPPING_HANDS_CAST(fdPsynergyLift, fdEffectSpawnLiftHand)
Two hands appear 16 pixels above the spot in front of the caster, 32 pixels to either side, then close in 24 pixels and clap, and sparkles scatter.
Referenced by fdPsynergyRun().
Definition at line 79 of file script_commands_lift.c.
fdEffectSpawnLiftHand
ACTOR *fdEffectSpawnLiftHand(Sint32 x, Sint32 y, Sint32 z, Sint32 angle)
Spawns a hand (SPRITE_MOVE_HAND) and grows it, spinning, from a quarter to
full size over 24 ticks; angle is the way it faces once grown.
References fdActorSelectAnimationStub(), fdActorSpawn(), Sint32, sySoundPlayStub() and sySynch().
Referenced by fdPsynergyLiftOnTarget().
Definition at line 83 of file script_commands_lift.c.
fdEffectUpdateRadialBurst
void fdEffectUpdateRadialBurst(FIELD_PARTICLE *effect)
Field effect sprite callback of a particle that scatters 25 pixels from its
origin in a random direction, then gathers in front of the caster and is
freed: each of Force's FORCE_FLASHES flashes (script_commands_force.c).
References fdCameraWorldToScreen(), fdParticleFree(), fdParticleHasPendingTarget(), Sint32, state, syRandom() and syVectorAddPolarOffset().
Referenced by fdPsynergyForce().
Definition at line 117 of file script_commands_lift.c.
fdEffectSpawnHeavyImpact
Sint32 fdEffectSpawnHeavyImpact(ACTOR *src)
A heavy impact: places a star burst (SPRITE_STAR_BURST) 32 pixels below the
source for 20 ticks and scatters HEAVY_IMPACT_SPARKLES sparkles
(SPRITE_SPARKLE) from it.
References fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorStartScriptStub(), FieldEffectFragmentScript, FieldEffectSharedParticleScript, Sint32, syRandom() and sySoundPlayStub().
Referenced by ForceFistScript.
Definition at line 182 of file script_commands_lift.c.