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
Line 4: Line 4:


<div style="column-count:3;-moz-column-count:3;">
<div style="column-count:3;-moz-column-count:3;">
Config
*[[aim_mode]]
*[[auto_aim]]
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 61: Line 43:
*[[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 100: Line 100:
*[[visibility]]
*[[visibility]]
*[[zoom]]
*[[zoom]]
Quotes
*[[fta]]
*[[ftq]]
Score
Score
*[[actors_killed]]
*[[actors_killed]]
Line 106: Line 109:
*[[player_par]]
*[[player_par]]
*[[secret_rooms]]
*[[secret_rooms]]
Quote
*[[fta]]
*[[ftq]]
Multiplayer
Multiplayer
*[[frag]]
*[[frag]]

Revision as of 22:40, 20 March 2012

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:

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.