Event list: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Mblackwell (talk | contribs)
mNo edit summary
Add EVENT_PREACTORDAMAGE, EVENT_PREWEAPONSHOOT, EVENT_POSTWEAPONSHOOT
 
(80 intermediate revisions by 17 users not shown)
Line 1: Line 1:
define [[EVENT_INIT]] 0
{{EDuke32 Intro}}
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| valign="top" style="border-right: none; padding: 0.6em;" |
This is a list of every event in the current release of EDuke32.


define [[EVENT_ENTERLEVEL]] 1
All [[events]] are accessed using the [[onevent]] and [[appendevent]] commands.


define [[EVENT_RESETWEAPONS]] 2
See also: [[:Category:Event manipulation|Event Manipulation]].


define [[EVENT_RESETINVENTORY]] 3
| width="1%" nowrap="nowrap" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
<sup>[1]</sup> [[unsynchronized events|Unsynchronized events]]<br/>
<sup>[2]</sup> may recurse<br/>
<sup>[3]</sup> no current player number set<br/>
<sup>[4]</sup> no THISACTOR set<br/>
<sup>[5]</sup> eduke32 standalone build only<br/>
<sup>[6]</sup> executes at framerate
|}
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="25%" valign="top" style="border-right: none; padding: 0.6em;" |
Misc events
*[[EVENT_ACTIVATECHEAT]]<sup>[1][2]</sup>
*[[EVENT_CAPIR]]<sup>[1][3][5]</sup>
*[[EVENT_CHEATGETBOOT]]<sup>[1]</sup>
*[[EVENT_CHEATGETFIRSTAID]]<sup>[1]</sup>
*[[EVENT_CHEATGETHEAT]]<sup>[1]</sup>
*[[EVENT_CHEATGETHOLODUKE]]<sup>[1]</sup>
*[[EVENT_CHEATGETJETPACK]]<sup>[1]</sup>
*[[EVENT_CHEATGETSCUBA]]<sup>[1]</sup>
*[[EVENT_CHEATGETSHIELD]]<sup>[1]</sup>
*[[EVENT_CHEATGETSTEROIDS]]<sup>[1]</sup>
*[[EVENT_ENDLEVELSCREEN]]
*[[EVENT_EXITGAMESCREEN]]
*[[EVENT_EXITPROGRAMSCREEN]]
*[[EVENT_INIT]]<sup>[1][3]</sup>
*[[EVENT_INITCOMPLETE]]<sup>[1][3]</sup>
*[[EVENT_LOADGAME]]<sup>[1]</sup>
*[[EVENT_MAINMENUSCREEN]]
*[[EVENT_NEWGAME]]<sup>[1]</sup>
*[[EVENT_NEWGAMESCREEN]]
*[[EVENT_POSTSAVEGAME]]
*[[EVENT_PRELOADGAME]]<sup>[1]</sup>
*[[EVENT_SAVEGAME]]<sup>[1]</sup>
*[[EVENT_SETDEFAULTS]]<sup>[1][3]</sup>
*[[EVENT_VALIDATESTART]]


define [[EVENT_HOLSTER]]   4
Screen drawing events (in-game)
*[[EVENT_DISPLAYROOMS]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYROOMSCAMERA]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYROOMSCAMERATILE]]<sup>[1]</sup>
*[[EVENT_DISPLAYROOMSEND]]<sup>[1][6]</sup>
*[[EVENT_RESETGOTPICS]]<sup>[1][3][6]</sup>


define [[EVENT_LOOKLEFT]]   5
Screen drawing events (misc)
*[[EVENT_DISPLAYEND]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYREST]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYSTART]]<sup>[1][6]</sup>
*[[EVENT_UPDATESCREENAREA]]<sup>[6]</sup>


define [[EVENT_LOOKRIGHT]] 6
Unused/Removed
*[[EVENT_FAKEDOMOVETHINGS]]<sup>[1]</sup>
*[[EVENT_ANIMATEALLSPRITES]]<sup>[1]</sup>


define [[EVENT_SOARUP]] 7
| width="25%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
Screen drawing events (menus)
*[[EVENT_CHANGEMENU]]<sup>[1][2]</sup>
*[[EVENT_DISPLAYCURSOR]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYINACTIVEMENU]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYINACTIVEMENUREST]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYMENU]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYMENUREST]]<sup>[1][6]</sup>
*[[EVENT_GETBONUSTILE]]<sup>[1][6]</sup>
*[[EVENT_GETMENUTILE]]<sup>[1][6]</sup>
*[[EVENT_MENUCURSORLEFT]]<sup>[1][4][6]</sup>
*[[EVENT_MENUCURSORRIGHT]]<sup>[1][4][6]</sup>
*[[EVENT_MENUCURSORSHADE]]<sup>[1][4][6]</sup>
*[[EVENT_MENUSHADESELECTED]]<sup>[1][4][6]</sup>
*[[EVENT_NEWGAMECUSTOM]]<sup>[1][4]</sup>


define [[EVENT_SOARDOWN]]   8
Screen drawing events (special screens and cutscenes)
*[[EVENT_CUTSCENE]]<sup>[1]</sup>
*[[EVENT_DISPLAYBONUSSCREEN]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYLOADINGSCREEN]]<sup>[1]</sup>
*[[EVENT_GETLOADTILE]]<sup>[1]</sup>
*[[EVENT_LOGO]]<sup>[1][6]</sup>
*[[EVENT_PRECUTSCENE]]<sup>[1]</sup>
*[[EVENT_SCREEN]]<sup>[1][2][6]</sup>
*[[EVENT_SKIPCUTSCENE]]<sup>[2]</sup>


define [[EVENT_CROUCH]] 9
Screen drawing events (HUD)
*[[EVENT_DISPLAYBORDER]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYCROSSHAIR]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYLEVELSTATS]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYOVERHEADMAPPLAYER]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYOVERHEADMAPTEXT]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYPOINTER]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYSBAR]]<sup>[1][6]</sup>


define [[EVENT_JUMP]]       10
Screen drawing events (player body)
*[[EVENT_DISPLAYACCESS]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYCAMERAOSD]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYFIST]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYKNEE]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYKNUCKLES]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYSCUBA]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYSPIT]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYTIP]]<sup>[1][6]</sup>
*[[EVENT_DISPLAYWEAPON]]<sup>[1][6]</sup>
*[[EVENT_DRAWWEAPON]]<sup>[1][6]</sup>


define [[EVENT_RETURNTOCENTER]] 11
| width="25%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
Actor controlling events
*[[EVENT_ANIMATESPRITES]]<sup>[1][6]</sup>
*[[EVENT_EGS]]<sup>[2]</sup>
*[[EVENT_GAME]]
*[[EVENT_KILLIT]]<sup>[2]</sup>
*[[EVENT_LOADACTOR]]<sup>[3]</sup>
*[[EVENT_PREACTORDAMAGE]]
*[[EVENT_PREGAME]]
*[[EVENT_RECOGSOUND]]
*[[EVENT_SPAWN]]<sup>[2]</sup>


define [[EVENT_LOOKUP]] 12
Sound-based events
*[[EVENT_CONTINUELEVELMUSICSLOT]]
*[[EVENT_PLAYLEVELMUSICSLOT]]
*[[EVENT_OPENMENUSOUND]]
*[[EVENT_SOUND]]<sup>[1][2]</sup>


define [[EVENT_LOOKDOWN]]   13
Global events
*[[EVENT_DAMAGECEILING]]
*[[EVENT_DAMAGEFLOOR]]
*[[EVENT_DAMAGEHPLANE]]
*[[EVENT_DAMAGESPRITE]]
*[[EVENT_DAMAGEWALL]]
*[[EVENT_ENTERLEVEL]]
*[[EVENT_MOVEEFFECTORS]]
*[[EVENT_MOVESECTOR]]
*[[EVENT_POSTDAMAGESPRITE]]
*[[EVENT_PRELEVEL]]
*[[EVENT_PREWORLD]]
*[[EVENT_WORLD]]


define [[EVENT_AIMUP]] 14
Player controlling events
*[[EVENT_CHANGEWEAPON]]
*[[EVENT_CHECKFLOORDAMAGE]]
*[[EVENT_CHECKTOUCHDAMAGE]]
*[[EVENT_DOFIRE]]
*[[EVENT_GETAUTOAIMANGLE]]
*[[EVENT_GETSHOTRANGE]]
*[[EVENT_INCURDAMAGE]]
*[[EVENT_POSTUPDATEANGLES]]<sup>[6]</sup>
*[[EVENT_PREUPDATEANGLES]]<sup>[6]</sup>
*[[EVENT_RESETINVENTORY]]
*[[EVENT_RESETPLAYER]]
*[[EVENT_RESETWEAPONS]]


define [[EVENT_AIMDOWN]]   14 /* yes, it would appear Matt Saettler accidentally used the same event number twice.  No, I'm not fixing it. */
| width="25%" valign="top" style="border-left: none; padding: 0.6em;" |
Player input-based events
*[[EVENT_AIMDOWN]]
*[[EVENT_AIMUP]]
*[[EVENT_ALTFIRE]]
*[[EVENT_ALTWEAPON]]
*[[EVENT_CROUCH]]
*[[EVENT_FIRE]]
*[[EVENT_FIREWEAPON]]
*[[EVENT_HOLODUKEOFF]]
*[[EVENT_HOLODUKEON]]
*[[EVENT_HOLSTER]]
*[[EVENT_INVENTORY]]
*[[EVENT_INVENTORYLEFT]]
*[[EVENT_INVENTORYRIGHT]]
*[[EVENT_JUMP]]
*[[EVENT_LASTWEAPON]]
*[[EVENT_LOOKDOWN]]
*[[EVENT_LOOKLEFT]]
*[[EVENT_LOOKRIGHT]]
*[[EVENT_LOOKUP]]
*[[EVENT_MOVEBACKWARD]]
*[[EVENT_MOVEFORWARD]]
*[[EVENT_NEXTWEAPON]]
*[[EVENT_POSTWEAPONSHOOT]]
*[[EVENT_PRESSEDFIRE]]
*[[EVENT_PREVIOUSWEAPON]]
*[[EVENT_PREWEAPONSHOOT]]
*[[EVENT_PROCESSINPUT]]
*[[EVENT_QUICKKICK]]
*[[EVENT_RETURNTOCENTER]]
*[[EVENT_SELECTWEAPON]]
*[[EVENT_SOARDOWN]]
*[[EVENT_SOARUP]]
*[[EVENT_STRAFELEFT]]
*[[EVENT_STRAFERIGHT]]
*[[EVENT_SWIMDOWN]]
*[[EVENT_SWIMUP]]
*[[EVENT_TURNAROUND]]
*[[EVENT_TURNLEFT]]
*[[EVENT_TURNRIGHT]]
*[[EVENT_USE]]
*[[EVENT_USEJETPACK]]
*[[EVENT_USEMEDKIT]]
*[[EVENT_USENIGHTVISION]]
*[[EVENT_USESTEROIDS]]
*[[EVENT_WEAPKEY1]]
*[[EVENT_WEAPKEY10]]
*[[EVENT_WEAPKEY2]]
*[[EVENT_WEAPKEY3]]
*[[EVENT_WEAPKEY4]]
*[[EVENT_WEAPKEY5]]
*[[EVENT_WEAPKEY6]]
*[[EVENT_WEAPKEY7]]
*[[EVENT_WEAPKEY8]]
*[[EVENT_WEAPKEY9]]
|}


define [[EVENT_FIRE]]   15
[[Category:Event manipulation]]
 
[[Category:Scripting documentation]]
define [[EVENT_CHANGEWEAPON]]  16
 
define [[EVENT_GETSHOTRANGE]]  17
 
define [[EVENT_GETAUTOAIMANGLE]]    18
 
define [[EVENT_GETLOADTILE]]    19
 
define [[EVENT_CHEATGETSTEROIDS]] 20
 
define [[EVENT_CHEATGETHEAT]] 21
 
define [[EVENT_CHEATGETBOOT]] 22
 
define [[EVENT_CHEATGETSHIELD]] 23
 
define [[EVENT_CHEATGETSCUBA]] 24
 
define [[EVENT_CHEATGETHOLODUKE]] 25
 
define [[EVENT_CHEATGETJETPACK]] 26
 
define [[EVENT_CHEATGETFIRSTAID]] 27
 
define [[EVENT_QUICKKICK]] 28
 
define [[EVENT_INVENTORY]] 29
 
define [[EVENT_USENIGHTVISION]] 30
 
define [[EVENT_USESTEROIDS]] 31
 
define [[EVENT_INVENTORYLEFT]] 32
 
define [[EVENT_INVENTORYRIGHT]] 33
 
define [[EVENT_HOLODUKEON]] 34
 
define [[EVENT_HOLODUKEOFF]] 35
 
define [[EVENT_USEMEDKIT]] 36
 
define [[EVENT_USEJETPACK]] 37
 
define [[EVENT_TURNAROUND]] 38
 
define [[EVENT_DISPLAYWEAPON]] 39
 
define [[EVENT_FIREWEAPON]] 40
 
define [[EVENT_SELECTWEAPON]] 41
 
define [[EVENT_MOVEFORWARD]] 42
 
define [[EVENT_MOVEBACKWARD]] 43
 
define [[EVENT_TURNLEFT]] 44
 
define [[EVENT_TURNRIGHT]] 45
 
define [[EVENT_STRAFELEFT]] 46
 
define [[EVENT_STRAFERIGHT]] 47
 
define [[EVENT_WEAPKEY1]] 48
 
define [[EVENT_WEAPKEY2]] 49
 
define [[EVENT_WEAPKEY3]] 50
 
define [[EVENT_WEAPKEY4]] 51
 
define [[EVENT_WEAPKEY5]] 52
 
define [[EVENT_WEAPKEY6]] 53
 
define [[EVENT_WEAPKEY7]] 54
 
define [[EVENT_WEAPKEY8]] 55
 
define [[EVENT_WEAPKEY9]] 56
 
define [[EVENT_WEAPKEY10]] 57
 
define [[EVENT_DRAWWEAPON]] 58 /* called when actual myospal calls in player.c are called */
 
define [[EVENT_DISPLAYCROSSHAIR]] 59
 
define [[EVENT_DISPLAYREST]] 60 /* always-running event */
 
define [[EVENT_RESETPLAYER]] 61
 
define [[EVENT_INCURDAMAGE]] 62 /* called when effect of armor on damage is calculated */
 
 
 
All [[events]] are accessed using the [[onevent]] command.

Latest revision as of 09:06, 7 January 2024

EDuke32 Scripting

This is a list of every event in the current release of EDuke32.

All events are accessed using the onevent and appendevent commands.

See also: Event Manipulation.

[1] Unsynchronized events
[2] may recurse
[3] no current player number set
[4] no THISACTOR set
[5] eduke32 standalone build only
[6] executes at framerate

Misc events

Screen drawing events (in-game)

Screen drawing events (misc)

Unused/Removed

Screen drawing events (menus)

Screen drawing events (special screens and cutscenes)

Screen drawing events (HUD)

Screen drawing events (player body)

Actor controlling events

Sound-based events

Global events

Player controlling events

Player input-based events