EVENT OPENMENUSOUND: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Jblade (talk | contribs)
added event_openmenu sound by Fox
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_OPENMENUSOUND|2=[[screenpeek]]|3=[[i|player->i]]|4=1 value}}
EVENT_OPENMENUSOUND is a [[EDuke32 event list|Game Event]].
EVENT_OPENMENUSOUND is a [[EDuke32 event list|Game Event]].


Set RETURN to a sound's defined number to play that sound when the menu is opened, or set it to -1 to play nothing.
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.
{| {{prettytable}} style="text-align:center;"
!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.
[[Category:Events]]
[[Category:Events]]

Latest revision as of 01:48, 5 February 2022

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.