EVENT DISPLAYOVERHEADMAPPLAYER: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Document the event. This event determines the tile of the player on the overhead map display.
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_DISPLAYOVERHEADMAPPLAYER|2=[[screenpeek]]|3=[[i|player->i]]|4=1 value}}
{{EventTable|1=EVENT_DISPLAYOVERHEADMAPPLAYER|2=corr. to overhead sprite|3=[[i|player->i]]|4=1 value}}


EVENT_DISPLAYOVERHEADMAPPLAYER is a [[EDuke32_event_list|Game Event]].
EVENT_DISPLAYOVERHEADMAPPLAYER is a [[EDuke32_event_list|Game Event]].
Line 5: Line 5:
This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag <code>GAMETYPE_OTHERPLAYERSINMAP</code> is set.
This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag <code>GAMETYPE_OTHERPLAYERSINMAP</code> is set.


[[RETURN]] is set to the current player overhead tilenum. Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.
[[RETURN]] is set to the current player overhead tilenum. By default, this is an animation that cycles through tiles 1400, 1401 and 1402. The animation plays when [[on_ground]] is true, and if the player sprite has an [[xvel]] > 16.
 
Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.


[[Category:Events]]
[[Category:Events]]

Latest revision as of 13:27, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_DISPLAYOVERHEADMAPPLAYER corr. to overhead sprite player->i 1 value

EVENT_DISPLAYOVERHEADMAPPLAYER is a Game Event.

This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag GAMETYPE_OTHERPLAYERSINMAP is set.

RETURN is set to the current player overhead tilenum. By default, this is an animation that cycles through tiles 1400, 1401 and 1402. The animation plays when on_ground is true, and if the player sprite has an xvel > 16.

Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.