speculator 
Vars | |
FLICKER_TIME | How many loops the flicker animation in flicker_cloak() plays for. Each loop is approximately 0.2 seconds, or 2 game ticks. |
---|---|
cloak_level | Integer. Invisibility value to use when cloaked. |
cloak_sounds | List of sounds. Sound effects played when cloaking. |
cloaked_alpha | Integer. Alpha level to use when the mob is "cloaked". This is only visible for ghosts and anything that can see cloak_level . |
cloaking | Boolean. Whether or not the cloaking effect is in progress. |
hint_sounds | List of sounds. Sound effects played during hidden_*_hint() procs. |
last_flicker | Integer. world.time of the last flicker_cloak() call so it's not overly spammy. |
last_hint_time | Integer. world.time of the last hidden_*_hint() call. |
uncloak_sounds | List of sounds. Sound effects played when decloaking. |
Procs | |
cloak | Enables the speculator's cloak. |
disrupt_cloak | Temporarily disables the speculator's cloak for the given time. |
flicker_cloak | A brief cloaking flicker effect. Intended to partially reveal the mob's location without fully decloaking. See FLICKER_TIME for some configuration. |
hidden_idle_hint | Does some hinting the speculator is nearby and idle. Audio and narration cue. |
hidden_movement_hint | Does some hinting the speculator is nearby and moving. Audio and narration cue. |
is_cloaked | Whether or not the speculator is currently cloaked. |
post_cloak | Second stage of the speculator's cloak/uncloak. Called by the relevant procs after the animation completes. |
try_disrupt | Attempts to randomly disrupt the speculator's cloak. |
uncloak | Disables the speculator's cloak. |
Var Details
FLICKER_TIME 
How many loops the flicker animation in flicker_cloak()
plays for. Each loop is approximately 0.2 seconds, or 2 game ticks.
cloak_level 
Integer. Invisibility value to use when cloaked.
cloak_sounds 
List of sounds. Sound effects played when cloaking.
cloaked_alpha 
Integer. Alpha level to use when the mob is "cloaked". This is only visible for ghosts and anything that can see cloak_level
.
cloaking 
Boolean. Whether or not the cloaking effect is in progress.
hint_sounds 
List of sounds. Sound effects played during hidden_*_hint()
procs.
last_flicker 
Integer. world.time
of the last flicker_cloak()
call so it's not overly spammy.
last_hint_time 
Integer. world.time
of the last hidden_*_hint()
call.
uncloak_sounds 
List of sounds. Sound effects played when decloaking.
Proc Details
cloak
Enables the speculator's cloak.
disrupt_cloak
Temporarily disables the speculator's cloak for the given time.
Parameters:
time
(Integer, default2 SECONDS
, minimum2 SECONDS
). Amount of time in ticks the cloak should remain disrupted. Minimum of 2 seconds to account for cloak animations.
flicker_cloak
A brief cloaking flicker effect. Intended to partially reveal the mob's location without fully decloaking. See FLICKER_TIME
for some configuration.
hidden_idle_hint
Does some hinting the speculator is nearby and idle. Audio and narration cue.
hidden_movement_hint
Does some hinting the speculator is nearby and moving. Audio and narration cue.
is_cloaked
Whether or not the speculator is currently cloaked.
post_cloak
Second stage of the speculator's cloak/uncloak. Called by the relevant procs after the animation completes.
Parametetrs:
cloak_state
(Boolean) - Whether or the speculator has finished cloaking or decloaking.
try_disrupt
Attempts to randomly disrupt the speculator's cloak.
uncloak
Disables the speculator's cloak.