Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
m Add missing struct members
 
(7 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]]
*[[bobposx]]
*[[bobposx]]
*[[bobposy]]
*[[bobposy]]
*[[bsubweapon]]
*[[crack_time]]
*[[crack_time]]
*[[curr_weapon]]
*[[curr_weapon]]
Line 48: Line 28:
*[[last_pissed_time]]
*[[last_pissed_time]]
*[[last_weapon]]
*[[last_weapon]]
*[[last_used_weapon]]
*[[quick_kick]]
*[[quick_kick]]
*[[random_club_frame]]
*[[random_club_frame]]
Line 58: Line 39:
*[[weapon_pos]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaprecs]]
*[[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]]
*[[cursectnum]]
*[[cursectnum]]
*[[i]]
*[[i]]
*[[index]]
*[[oang]]
*[[oang]]
*[[oposx]]
*[[oposx]]
Line 72: Line 71:
*[[posy]]
*[[posy]]
*[[posz]]
*[[posz]]
Movements speed
Player Movement
*[[angvel]]
*[[angvel]]
*[[crouch_toggle]]
*[[posxv]]
*[[posxv]]
*[[posyv]]
*[[posyv]]
Line 85: Line 85:
*[[horiz]]
*[[horiz]]
*[[horizoff]]
*[[horizoff]]
*[[hudpal]]
*[[look_ang]]
*[[look_ang]]
*[[newowner]]
*[[newowner]]
*[[opyoff]]
*[[opyoff]]
*[[over_shoulder_on]]
*[[over_shoulder_on]]
*[[palette]]
*[[palookup]]
*[[palookup]]
*[[pals]]
*[[pals]]
Line 100: Line 102:
*[[visibility]]
*[[visibility]]
*[[zoom]]
*[[zoom]]
Quotes
*[[fta]]
*[[ftq]]
Score
Score
*[[actors_killed]]
*[[actors_killed]]
Line 106: Line 111:
*[[player_par]]
*[[player_par]]
*[[secret_rooms]]
*[[secret_rooms]]
Quote
*[[fta]]
*[[ftq]]
Multiplayer
Multiplayer
*[[connected]]
*[[deaths]]
*[[frag]]
*[[frag]]
*[[frag_ps]]
*[[frag_ps]]
*[[fraggedself]]
*[[fraggedself]]
*[[frags]]
*[[interface_toggle_flag]]
*[[interface_toggle_flag]]
*[[team]]
*[[team]]
Line 119: Line 124:
*[[exity]][1]
*[[exity]][1]
*[[lastrandomspot]][1]
*[[lastrandomspot]][1]
*[[loogiex]]
*[[loogiey]]
*[[name]][2]
*[[name]][2]
*[[palette]][2]
*[[randomflamex]][1]
*[[randomflamex]][1]


Line 131: Line 133:
*[[actorsqu]]
*[[actorsqu]]
*[[airleft]]
*[[airleft]]
*[[autostep]]
*[[autostep_sbw]]
*[[buttonpalette]]
*[[buttonpalette]]
*[[customexitsound]]
*[[customexitsound]]
Line 144: Line 148:
*[[last_extra]]
*[[last_extra]]
*[[loogcnt]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[max_player_health]]
*[[max_player_health]]
*[[numloogs]]
*[[numloogs]]
Line 169: Line 175:
[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__

Latest revision as of 08:33, 20 September 2020

Config

Cheat Codes

Ammo

Weapons

Inventory

Coordinates

Player Movement

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.