Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The various members of the player structure affect various aspects of the player, and manipulating their values is a very important aspect of scripting in EDuke32.  Values can be retrieved from the game's internal player structures and stored in a [[gamevar]] with the [[getplayer]] command, and the [[setplayer]] command allows you to set any of the player structure member's value to that of a gamevar.
Here is the list of members of the player structure:
<div style="column-count:3;-moz-column-count:3;">
<div style="column-count:3;-moz-column-count:3;">
Config
*[[aim_mode]]
*[[auto_aim]]
*[[weaponswitch]]
Cheat Codes
*[[cheat_phase]]
Ammo
Ammo
*[[ammo_amount]]
*[[ammo_amount]]
*[[gotweapon]]
*[[gotweapon]]
*[[max_ammo_amount]]
*[[max_ammo_amount]]
Inventory
*[[boot_amount]]
*[[firstaid_amount]]
*[[got_access]]
*[[heat_amount]]
*[[heat_on]]
*[[holoduke_amount]]
*[[holoduke_on]]
*[[invdisptime]]
*[[inven_icon]]
*[[jetpack_amount]]
*[[jetpack_on]]
*[[refresh_inventory]]
*[[scuba_amount]]
*[[scuba_on]]
*[[shield_amount]]
*[[steroids_amount]]
*[[max_shield_amount]]
Cheat Codes
*[[cheat_phase]]
Config
*[[aim_mode]]
*[[auto_aim]]
Weapons
Weapons
*[[bobcounter]]
*[[bobcounter]]
Line 58: Line 37:
*[[weapon_pos]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[weapreccnt]]
Inventory
*[[boot_amount]]
*[[firstaid_amount]]
*[[got_access]]
*[[heat_amount]]
*[[heat_on]]
*[[holoduke_amount]]
*[[holoduke_on]]
*[[invdisptime]]
*[[inven_icon]]
*[[jetpack_amount]]
*[[jetpack_on]]
*[[refresh_inventory]]
*[[scuba_amount]]
*[[scuba_on]]
*[[shield_amount]]
*[[steroids_amount]]
*[[max_shield_amount]]
Coordinates
Coordinates
*[[ang]]
*[[ang]]
Line 89: Line 85:
*[[opyoff]]
*[[opyoff]]
*[[over_shoulder_on]]
*[[over_shoulder_on]]
*[[palette]]
*[[palookup]]
*[[palookup]]
*[[pals]]
*[[pals]]
Line 100: Line 97:
*[[visibility]]
*[[visibility]]
*[[zoom]]
*[[zoom]]
Quotes
*[[fta]]
*[[ftq]]
Score
Score
*[[actors_killed]]
*[[actors_killed]]
Line 106: Line 106:
*[[player_par]]
*[[player_par]]
*[[secret_rooms]]
*[[secret_rooms]]
Quote
*[[fta]]
*[[ftq]]
Multiplayer
Multiplayer
*[[frag]]
*[[frag]]
Line 119: Line 116:
*[[exity]][1]
*[[exity]][1]
*[[lastrandomspot]][1]
*[[lastrandomspot]][1]
*[[loogiex]]
*[[loogiey]]
*[[name]][2]
*[[name]][2]
*[[palette]][2]
*[[randomflamex]][1]
*[[randomflamex]][1]


Line 131: Line 125:
*[[actorsqu]]
*[[actorsqu]]
*[[airleft]]
*[[airleft]]
*[[autostep]]
*[[autostep_sbw]]
*[[buttonpalette]]
*[[buttonpalette]]
*[[customexitsound]]
*[[customexitsound]]
Line 144: Line 140:
*[[last_extra]]
*[[last_extra]]
*[[loogcnt]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[max_player_health]]
*[[max_player_health]]
*[[numloogs]]
*[[numloogs]]
Line 169: Line 167:
[2] Unavailable members. There is no access to them via CON.
[2] Unavailable members. There is no access to them via CON.


[[Category:Structure access]]
[[Category:Player manipulation]]
[[Category:Player manipulation]]
[[Category:Structure member documentation]]
__NOTOC__

Revision as of 02:43, 18 February 2019

Config

Cheat Codes

Ammo

Weapons

Inventory

Coordinates

Movements speed

View

Quotes

Score

Multiplayer

Deprecated

Misc

[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.