EVENT OPENMENUSOUND

From EDukeWiki
Revision as of 00:48, 5 February 2022 by Doom64hunter (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_OPENMENUSOUND screenpeek player->i 1 value

EVENT_OPENMENUSOUND is a Game Event.

This event is triggered whenever the main menu is opened.

In non-standalone builds, a sound will be played, according to a specific order. RETURN is set to the sound id that is scheduled to play.

Set RETURN to any defined sound number to play that sound when the menu is opened, or set it to -1 to play nothing. This does not affect any other sounds in the menu.

Sound Order

The order of sounds played by the Duke 3D menu when opened is completely deterministic and cycles through the following sequence, starting at index 0.

Index ID Label
0 17 LASERTRIP_EXPLODE
1 38 DUKE_GRUNT
2 200 DUKE_LAND_HURT
3 6 CHAINGUN_FIRE
4 69 SQUISHED
5 0 KICK_HIT
6 1 PISTOL_RICOCHET
7 2 PISTOL_BODYHIT
8 3 PISTOL_FIRE
9 109 SHOTGUN_FIRE
10 156 BOS1_WALK
11 9 RPG_EXPLODE
12 13 PIPEBOMB_BOUNCE
13 14 PIPEBOMB_EXPLODE
14 213 NITEVISION_ONOFF
15 7 RPG_SHOOT
16 219 SELECT_WEAPON

In standalone builds, or in Ion Fury, the sound index is always set to -1.