Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Some corrections. Note: scream_voice isn't a new member.
Fox (talk | contribs)
No edit summary
(9 intermediate revisions by 6 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.
<div style="column-count:3;-moz-column-count:3;">
 
Config
Here is the list of members of the player structure:
 
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
*[[access_incs]]
*[[access_spritenum]]
*[[access_wallnum]][1]
*[[actors_killed]]
*[[actorsqu]]
*[[aim_mode]]
*[[aim_mode]]
*[[airleft]]
*[[auto_aim]]
*[[weaponswitch]]
Cheat Codes
*[[cheat_phase]]
Ammo
*[[ammo_amount]]
*[[ammo_amount]]
*[[ang]]
*[[gotweapon]]
*[[angvel]]
*[[max_ammo_amount]]
*[[auto_aim]]
Weapons
*[[bobcounter]]
*[[bobcounter]]
*[[bobposx]]
*[[bobposx]]
*[[bobposy]]
*[[bobposy]]
*[[boot_amount]]
*[[buttonpalette]]
*[[cheat_phase]]
*[[crack_time]]
*[[crack_time]]
*[[curr_weapon]]
*[[curr_weapon]]
*[[cursectnum]]
*[[customexitsound]]
*[[dead_flag]]
*[[dummyplayersprite]]
*[[exitx]][1]
*[[exity]][1]
*[[extra_extra8]]
*[[falling_counter]]
*[[firstaid_amount]]
*[[fist_incs]]
*[[fist_incs]]
*[[footprintcount]]
*[[footprintpal]]
*[[footprintshade]]
*[[frag]]
*[[frag_ps]]
*[[fraggedself]]
*[[fta]]
*[[ftq]]
*[[gm]]
*[[got_access]]
*[[gotweapon]]
*[[hard_landing]]
*[[hbomb_hold_delay]]
*[[hbomb_hold_delay]]
*[[hbomb_on]]
*[[hbomb_on]]
*[[holster_weapon]]
*[[kickback_pic]]
*[[knee_incs]]
*[[knuckle_incs]]
*[[last_full_weapon]]
*[[last_quick_kick]]
*[[last_pissed_time]]
*[[last_weapon]]
*[[quick_kick]]
*[[random_club_frame]]
*[[rapid_fire_hold]]
*[[reloading]]
*[[show_empty_weapon]]
*[[subweapon]]
*[[wantweaponfire]]
*[[weapon_ang]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weaprecs]][2]
*[[weapreccnt]]
Inventory
*[[boot_amount]]
*[[firstaid_amount]]
*[[got_access]]
*[[heat_amount]]
*[[heat_amount]]
*[[heat_on]]
*[[heat_on]]
*[[holoduke_amount]]
*[[holoduke_amount]]
*[[holoduke_on]]
*[[holoduke_on]]
*[[holster_weapon]]
*[[horiz]]
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
*[[horizoff]]
*[[hurt_delay]]
*[[i]]
*[[interface_toggle_flag]]
*[[invdisptime]]
*[[invdisptime]]
*[[inven_icon]]
*[[inven_icon]]
*[[jetpack_amount]]
*[[jetpack_amount]]
*[[jetpack_on]]
*[[jetpack_on]]
*[[jumping_counter]]
*[[refresh_inventory]]
*[[jumping_toggle]]
*[[scuba_amount]]
*[[kickback_pic]]
*[[scuba_on]]
*[[knee_incs]]
*[[shield_amount]]
*[[knuckle_incs]]
*[[steroids_amount]]
*[[last_extra]]
*[[last_pissed_time]]
*[[lastrandomspot]][1]
*[[last_full_weapon]]
*[[last_weapon]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[look_ang]]
*[[max_actors_killed]]
*[[max_ammo_amount]]
*[[max_player_health]]
*[[max_secret_rooms]]
*[[max_shield_amount]]
*[[max_shield_amount]]
*[[movement_lock]]
Coordinates
*[[name]][2]
*[[ang]]
*[[newowner]]
*[[cursectnum]]
*[[numloogs]]
*[[i]]
*[[oang]]
*[[oang]]
*[[ohoriz]]
*[[ohorizoff]]
*[[on_crane]]
*[[on_ground]]
*[[on_warping_sector]]
*[[one_eighty_count]]
*[[one_parallax_sectnum]]
*[[oposx]]
*[[oposx]]
*[[oposy]]
*[[oposy]]
*[[oposz]]
*[[oposz]]
*[[posx]]
*[[posy]]
*[[posz]]
Movements speed
*[[angvel]]
*[[posxv]]
*[[posyv]]
*[[poszv]]
*[[runspeed]]
*[[jumping_counter]]
*[[jumping_toggle]]
*[[movement_lock]]
View
*[[dead_flag]]
*[[horiz]]
*[[horizoff]]
*[[look_ang]]
*[[newowner]]
*[[opyoff]]
*[[opyoff]]
*[[over_shoulder_on]]
*[[over_shoulder_on]]
*[[palette]][2]
*[[palette]]
*[[palookup]]
*[[palookup]]
*[[pals]]
*[[pals]]
*[[pals_time]]
*[[pals_time]]
*[[player_par]]
*[[ohoriz]]
 
*[[ohorizoff]]
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |
 
*[[posx]]
*[[posxv]]
*[[posy]]
*[[posyv]]
*[[posz]]
*[[poszv]]
*[[pycount]]
*[[pycount]]
*[[pyoff]]
*[[pyoff]]
*[[quick_kick]]
*[[random_club_frame]]
*[[randomflamex]][1]
*[[rapid_fire_hold]]
*[[refresh_inventory]]
*[[reloading]]
*[[return_to_center]]
*[[return_to_center]]
*[[rotscrnang]]
*[[rotscrnang]]
*[[runspeed]]
*[[visibility]]
*[[zoom]]
Quotes
*[[fta]]
*[[ftq]]
Score
*[[actors_killed]]
*[[max_actors_killed]]
*[[max_secret_rooms]]
*[[player_par]]
*[[secret_rooms]]
Multiplayer
*[[frag]]
*[[frag_ps]]
*[[fraggedself]]
*[[interface_toggle_flag]]
*[[team]]
Deprecated
*[[exitx]][1]
*[[exity]][1]
*[[lastrandomspot]][1]
*[[name]][2]
*[[randomflamex]][1]
 
Misc
*[[access_incs]]
*[[access_spritenum]]
*[[access_wallnum]]
*[[actorsqu]]
*[[airleft]]
*[[autostep]]
*[[autostep_sbw]]
*[[buttonpalette]]
*[[customexitsound]]
*[[dummyplayersprite]]
*[[extra_extra8]]
*[[falling_counter]]
*[[footprintcount]]
*[[footprintpal]]
*[[footprintshade]]
*[[gm]]
*[[hard_landing]]
*[[hurt_delay]]
*[[last_extra]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[max_player_health]]
*[[numloogs]]
*[[on_crane]]
*[[on_ground]]
*[[on_warping_sector]]
*[[one_eighty_count]]
*[[one_parallax_sectnum]]
*[[sbs]]
*[[sbs]]
*[[scream_voice]]
*[[scream_voice]]
*[[scuba_amount]]
*[[scuba_on]]
*[[secret_rooms]]
*[[shield_amount]]
*[[show_empty_weapon]]
*[[somethingonplayer]]
*[[somethingonplayer]]
*[[sound_pitch]]
*[[sound_pitch]]
*[[spritebridge]]
*[[spritebridge]]
*[[steroids_amount]]
*[[subweapon]]
*[[team]]
*[[timebeforeexit]]
*[[timebeforeexit]]
*[[tipincs]]
*[[tipincs]]
Line 145: Line 160:
*[[truefz]]
*[[truefz]]
*[[truecz]]
*[[truecz]]
*[[visibility]]
*[[wackedbyactor]]
*[[wackedbyactor]]
*[[walking_snd_toggle]]
*[[walking_snd_toggle]]
*[[wantweaponfire]]
</div>
*[[weapon_ang]][1]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[zoom]]
|}
 
[1]Deprecated or unknown function commands.


[2]The following commands may not be recognized by the latest version of Eduke32.
[1] Unused members. The game doesn't use them.<br>
[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.