EVENT DISPLAYCROSSHAIR: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
EVENT_DISPLAYCROSSHAIR is a [[EDuke32_event_list|Game Event]].
EVENT_DISPLAYCROSSHAIR is a [[EDuke32 event list|Game Event]].


This [[event]] is called when the player crosshair is being displayed.
This [[event]] is called when the player crosshair is being displayed.


If gamevar [[RETURN]] is set to any non-zero value, the crosshair is not displayed, regardless of the user's configuration.
Gamevar [[RETURN]] is set to the crosshair's [[picnum]]. Modifying this value will allow the game to handle positioning duties itself, etc. This is useful especially on the [[EDuke32 Wii|Wii]] port where replicating the crosshair display currently is not possible from CON. As usual, setting RETURN to -1 disables hardcoded drawing of the crosshair completely.
 
[[Category:Events]]
[[Category:Events]]

Revision as of 22:21, 24 May 2012

EVENT_DISPLAYCROSSHAIR is a Game Event.

This event is called when the player crosshair is being displayed.

Gamevar RETURN is set to the crosshair's picnum. Modifying this value will allow the game to handle positioning duties itself, etc. This is useful especially on the Wii port where replicating the crosshair display currently is not possible from CON. As usual, setting RETURN to -1 disables hardcoded drawing of the crosshair completely.