List of codepointers: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
Line 233: Line 233:
*[[SetTics]]: set frame duration
*[[SetTics]]: set frame duration
*[[StartScript]]: run map script
*[[StartScript]]: run map script
*[[StartScriptNamed]]: run named map script
*[[TargetJump]]: go to designated frame if having a target
*[[TargetJump]]: go to designated frame if having a target


[[Category:Codepointers|*]]
[[Category:Codepointers|*]]
[[Category:EDF]]
[[Category:EDF]]

Revision as of 17:32, 7 August 2013

This list of codepointers is a list of all the action routines which can be used in EDF frames. They are common for all games, so for example Heretic codepointers can be used in Doom.

You can specify the codepointers with or without their internal A_ prefix, even inside DECORATE state syntax. For simplicity, they will be referred in this wiki without the prefix.

Note that some codepointers, inherited from MBF, use the misc1 and misc2 frame properties, instead of the more general args list. Side effects aside, this also means that they will not be usable in the DECORATE syntax, but they all have DECORATE-compatible equivalents.

IMPORTANT: Do not provide more nonzero arguments to the codepointers than specified in the reference. Doing so may break forward compatibility with versions of Eternity that implement new functionality to codepointers.

Back to EDF state reference
Back to Eternity Engine

Player guns

Attacks

Control

Other

Muzzle flash effects

  • GunFlash: produces gunflash sprite without firing anything
  • Light0: resets the muzzle light level
  • Light1: muzzle light level 1
  • Light2

Sound effects

Frame scripting

Map objects

Flashes and booms

Heretic

AI

  • AlertMonsters: shout so other monsters chase the player
  • Chase: pursue a target and check for attack
  • CPosRefire: go to seestate if target is out of sight
  • Face: face a specified angle
  • FaceTarget: turn to target, look around it if it's partly invisible
  • GenRefire: customizable refire control
  • KeepChasing: pursue target without attacking
  • Look: stand in guard, looking for targets
  • RandomWalk: random wandering for inactive enemies
  • Sor1Chase: d'sparil mount specific chase
  • Sor1Pain: d'sparil mount specific twitch. Calls Pain.
  • SpidRefire: like CPosRefire, slightly modified
  • Turn: turn around a specified angle
  • VileChase: same as Chase, but resurrecting encountered cadavers

AI attacks

Parameterized

Original Doom

Heretic

Alterations

Heretic

Sound effects

  • AmbientThinker: ambient sound maintenance
  • BabyMetal: bspwlk sound effect -- also includes Chase!
  • BrainAwake: loud bossit sound effect
  • BrainPain: loud bospn sound effect
  • FatRaise: mancubus warning -- also includes FaceTarget
  • FireCrackle: flame sound effect -- also includes "Fire" action!
  • Hoof: cyberdemon hoof sound -- also includes Chase!
  • Metal: metal sound effect -- also includes Chase!
  • Pain: play pain sound
  • PlayerScream: player-specific, health-dependent (death) sound
  • PlaySound: custom sound
  • PlaySoundEx: extended custom sound
  • Scream: play death sound
  • SkelWhoosh: revenant swing noise -- also includes FaceTarget
  • SpawnSound: boscub sound effect -- also includes SpawnFly
  • StartFire: flamst sound effect -- also includes "Fire" action!
  • VileStart: archvile heat-up noise
  • XScream: extreme death gut noise

Frame scripting