Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
m Add missing struct members
 
(5 intermediate revisions by 2 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
Config
Line 18: Line 14:
*[[bobposx]]
*[[bobposx]]
*[[bobposy]]
*[[bobposy]]
*[[bsubweapon]]
*[[crack_time]]
*[[crack_time]]
*[[curr_weapon]]
*[[curr_weapon]]
Line 31: 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 41: Line 39:
*[[weapon_pos]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weapon_sway]]
*[[weaprecs]][2]
*[[weaprecs]]
*[[weapreccnt]]
*[[weapreccnt]]
Inventory
Inventory
Line 65: Line 63:
*[[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 110: Line 112:
*[[secret_rooms]]
*[[secret_rooms]]
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 07: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.