src/field/script_commands_douse.c
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | DOUSE_DROPS_AT_NOTHING 10 | The drops Douse rains: cast at nothing, cast on a target, and cast on a target where they sway down (FIELD_EFFECT_STATE.lit). |
#define | DOUSE_DROPS_ON_TARGET 24 | |
#define | DOUSE_SWAYING_DROPS_ON_TARGET 30 | |
#define | DOUSE_TARGET_DROP 12 | The drop after which the target's Douse cue runs. |
Functions
| Name | Description | |
|---|---|---|
void | fdEffectLandDouseDrop (ACTOR *actor) | A Douse drop's per-tick update: once it reaches its ground it starts the shared particle script and stops updating. |
void | fdEffectUpdateDriftingFallActor (ACTOR *particle) | Per-tick update: drifts from side to side, up to a pixel a tick, as it falls 0.3 pixels a tick, and is released on reaching its ground height. |
void | fdPsynergyDouseOnTarget (Sint32 unused) | Runs Douse cast on a target, through fdPsynergyDouse. |
void | fdPsynergyDouse (void) | A rain cloud rises from 16 pixels above the caster to 32 pixels above the destination (80 with childOption, 32 more over a Moai) over GROW_STEPS ticks, growing as it goes, rains drops, and returns. |
Macros in detail
DOUSE_DROPS_AT_NOTHING
#define DOUSE_DROPS_AT_NOTHING 10
The drops Douse rains: cast at nothing, cast on a target, and cast on a
target where they sway down (FIELD_EFFECT_STATE.lit).
Referenced by fdPsynergyDouse().
Definition at line 5 of file script_commands_douse.c.
DOUSE_DROPS_ON_TARGET
#define DOUSE_DROPS_ON_TARGET 24
Referenced by fdPsynergyDouse().
Definition at line 6 of file script_commands_douse.c.
DOUSE_SWAYING_DROPS_ON_TARGET
#define DOUSE_SWAYING_DROPS_ON_TARGET 30
Referenced by fdPsynergyDouse().
Definition at line 7 of file script_commands_douse.c.
DOUSE_TARGET_DROP
#define DOUSE_TARGET_DROP 12
The drop after which the target's Douse cue runs.
Referenced by fdPsynergyDouse().
Definition at line 9 of file script_commands_douse.c.
Functions in detail
fdEffectLandDouseDrop
void fdEffectLandDouseDrop(ACTOR *actor)
A Douse drop's per-tick update: once it reaches its ground it starts the shared particle script and stops updating.
References fdActorStartScriptStub() and FieldEffectReleaseScript.
Referenced by fdPsynergyDouse().
Definition at line 13 of file script_commands_douse.c.
fdEffectUpdateDriftingFallActor
void fdEffectUpdateDriftingFallActor(ACTOR *particle)
Per-tick update: drifts from side to side, up to a pixel a tick, as it falls 0.3 pixels a tick, and is released on reaching its ground height.
References fdActorStartScriptStub(), FieldEffectReleaseScript, Sint32 and syRandom().
Referenced by fdPsynergyDouse().
Definition at line 25 of file script_commands_douse.c.
fdPsynergyDouseOnTarget
void fdPsynergyDouseOnTarget(Sint32 unused)
Runs Douse cast on a target, through fdPsynergyDouse.
References fdPsynergyDouse() and Sint32.
Referenced by fdPsynergyDispatch().
Definition at line 39 of file script_commands_douse.c.
fdPsynergyDouse
void fdPsynergyDouse(void)
A rain cloud rises from 16 pixels above the caster to 32 pixels above the
destination (80 with childOption, 32 more over a Moai) over GROW_STEPS ticks,
growing as it goes, rains drops, and returns.
References fdActorGetSpriteIdStub(), fdActorReleaseStub(), fdActorSelectAnimationStub(), fdActorSetSpriteColorModeStub(), fdActorSpawn(), fdEffectInterpolate(), fdEffectLandDouseDrop(), fdEffectUpdateDriftingFallActor(), fdFindPsynergyCue(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), fdRunPsynergyScript(), fdSelectPsynergyTarget(), Sint32, syRandom(), sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().
Referenced by fdPsynergyDouseOnTarget() and fdPsynergyRun().
Definition at line 47 of file script_commands_douse.c.