Skip to Content
The Alchemy Project

src/field/script_commands_lift.c

Lift: lifting a target with two hands and the heavy impact burst. More…

Included by script_commands.c.

Macros

NameDescription
#defineIMPACT_SHARDS 12

Functions

NameDescription
voidfdPsynergyLiftOnTarget (void)A hand appears 32 pixels to either side, each moves 14 pixels in, and they lift the target 32 pixels with them.
voidfdPsynergyLift (void)Lift cast with no target: two hands appear 32 pixels to either side of the spot, close 24 pixels in and meet with a crash that scatters ITEM_BREAK_SHARD_MAX sparkles, then vanish.
ACTOR *fdEffectSpawnLiftHand (Sint32 x, Sint32 y, Sint32 z, Sint32 angle)Spawns one of Lift's hands (SPRITE_MOVE_HAND) and grows it from a quarter to full size, an eighth of a turn a tick, then faces it to angle.
voidfdEffectUpdateRadialBurst (FIELD_PARTICLE *effect)Field effect sprite callback of Force's particles (OUT_AND_BACK_STATE): each flies 25 pixels from where it appeared, then back to a point 8 pixels toward the caster's facing from 16 pixels above it, on screen, give or take 4 pixels, and is freed on arrival.
Sint32fdEffectSpawnHeavyImpact (ACTOR *src)A heavy impact, as The Broken Seal's: an actor placed below the source for a moment, scattering IMPACT_SHARDS shards from it.

Description

Lift: lifting a target with two hands and the heavy impact burst. Part of script_commands.c.

Macros in detail

IMPACT_SHARDS

#define IMPACT_SHARDS 12

Referenced by fdEffectSpawnHeavyImpact().

Definition at line 220 of file script_commands_lift.c.

Functions in detail

fdPsynergyLiftOnTarget

void fdPsynergyLiftOnTarget(void)

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 6 of file script_commands_lift.c.

fdPsynergyLift

void fdPsynergyLift(void)

Lift cast with no target: two hands appear 32 pixels to either side of the spot, close 24 pixels in and meet with a crash that scatters ITEM_BREAK_SHARD_MAX sparkles, then vanish.

References fdActorReleaseStub(), fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorStartScriptStub(), fdActorWaitForMoveStub(), fdEffectSpawnLiftHand(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), FieldEffectFragmentScript, Sint32, syRandom(), sySoundPlayStub() and sySynch().

Referenced by fdPsynergyRun().

Definition at line 74 of file script_commands_lift.c.

fdEffectSpawnLiftHand

ACTOR *fdEffectSpawnLiftHand(Sint32 x, Sint32 y, Sint32 z, Sint32 angle)

Spawns one of Lift's hands (SPRITE_MOVE_HAND) and grows it from a quarter to full size, an eighth of a turn a tick, then faces it to angle.

References fdActorSelectAnimationStub(), fdActorSpawn(), Sint32, sySoundPlayStub() and sySynch().

Referenced by fdPsynergyLift() and fdPsynergyLiftOnTarget().

Definition at line 125 of file script_commands_lift.c.

fdEffectUpdateRadialBurst

void fdEffectUpdateRadialBurst(FIELD_PARTICLE *effect)

Field effect sprite callback of Force's particles (OUT_AND_BACK_STATE): each flies 25 pixels from where it appeared, then back to a point 8 pixels toward the caster's facing from 16 pixels above it, on screen, give or take 4 pixels, and is freed on arrival.

References fdCameraWorldToScreen(), fdParticleFree(), fdParticleHasPendingTarget(), Sint32, syRandom() and syVectorAddPolarOffset().

Referenced by fdPsynergyForce().

Definition at line 160 of file script_commands_lift.c.

fdEffectSpawnHeavyImpact

Sint32 fdEffectSpawnHeavyImpact(ACTOR *src)

A heavy impact, as The Broken Seal's: an actor placed below the source for a moment, scattering IMPACT_SHARDS shards from it.

References fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorStartScriptStub(), FieldEffectFragmentScript, FieldEffectReleaseScript, Sint32, syRandom() and sySoundPlayStub().

Referenced by ForceFistScript.

Definition at line 224 of file script_commands_lift.c.