Members of the player structure/test: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "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..."
 
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;">
Ammo
*[[ammo_amount]]
*[[gotweapon]]
*[[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]]
Cheat Codes
*[[cheat_phase]]
Config
*[[aim_mode]]
*[[auto_aim]]
Weapons
*[[bobcounter]]
*[[bobposx]]
*[[bobposy]]
*[[crack_time]]
*[[curr_weapon]]
*[[fist_incs]]
*[[hbomb_hold_delay]]
*[[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]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weapreccnt]]
Movements speed
*[[angvel]]
*[[posxv]]
*[[posyv]]
*[[poszv]]
*[[runspeed]]
Misc
*[[access_incs]]
*[[access_incs]]
*[[access_spritenum]]
*[[access_spritenum]]
Line 9: Line 73:
*[[actors_killed]]
*[[actors_killed]]
*[[actorsqu]]
*[[actorsqu]]
*[[aim_mode]]
*[[airleft]]
*[[airleft]]
*[[ammo_amount]]
*[[ang]]
*[[ang]]
*[[angvel]]
*[[auto_aim]]
*[[bobcounter]]
*[[bobposx]]
*[[bobposy]]
*[[boot_amount]]
*[[buttonpalette]]
*[[buttonpalette]]
*[[cheat_phase]]
*[[crack_time]]
*[[curr_weapon]]
*[[cursectnum]]
*[[cursectnum]]
*[[customexitsound]]
*[[customexitsound]]
Line 31: Line 84:
*[[extra_extra8]]
*[[extra_extra8]]
*[[falling_counter]]
*[[falling_counter]]
*[[firstaid_amount]]
*[[fist_incs]]
*[[footprintcount]]
*[[footprintcount]]
*[[footprintpal]]
*[[footprintpal]]
Line 42: Line 93:
*[[ftq]]
*[[ftq]]
*[[gm]]
*[[gm]]
*[[got_access]]
*[[gotweapon]]
*[[hard_landing]]
*[[hard_landing]]
*[[hbomb_hold_delay]]
*[[hbomb_on]]
*[[heat_amount]]
*[[heat_on]]
*[[holoduke_amount]]
*[[holoduke_on]]
*[[holster_weapon]]
*[[horiz]]
*[[horiz]]
*[[horizoff]]
*[[horizoff]]
Line 57: Line 99:
*[[i]]
*[[i]]
*[[interface_toggle_flag]]
*[[interface_toggle_flag]]
*[[invdisptime]]
*[[inven_icon]]
*[[jetpack_amount]]
*[[jetpack_on]]
*[[jumping_counter]]
*[[jumping_counter]]
*[[jumping_toggle]]
*[[jumping_toggle]]
*[[kickback_pic]]
*[[knee_incs]]
*[[knuckle_incs]]
*[[last_extra]]
*[[last_extra]]
*[[last_full_weapon]]
*[[last_quick_kick]]
*[[last_pissed_time]]
*[[last_weapon]]
*[[lastrandomspot]][1]
*[[lastrandomspot]][1]
*[[loogcnt]]
*[[loogcnt]]
Line 77: Line 108:
*[[look_ang]]
*[[look_ang]]
*[[max_actors_killed]]
*[[max_actors_killed]]
*[[max_ammo_amount]]
*[[max_player_health]]
*[[max_player_health]]
*[[max_secret_rooms]]
*[[max_secret_rooms]]
Line 104: Line 134:
*[[player_par]]
*[[player_par]]
*[[posx]]
*[[posx]]
*[[posxv]]
*[[posy]]
*[[posy]]
*[[posyv]]
*[[posz]]
*[[posz]]
*[[poszv]]
*[[pycount]]
*[[pycount]]
*[[pyoff]]
*[[pyoff]]
*[[quick_kick]]
*[[random_club_frame]]
*[[randomflamex]][1]
*[[randomflamex]][1]
*[[rapid_fire_hold]]
*[[refresh_inventory]]
*[[reloading]]
*[[return_to_center]]
*[[return_to_center]]
*[[rotscrnang]]
*[[rotscrnang]]
*[[runspeed]]
*[[sbs]]
*[[sbs]]
*[[scream_voice]]
*[[scream_voice]]
*[[scuba_amount]]
*[[scuba_on]]
*[[secret_rooms]]
*[[secret_rooms]]
*[[shield_amount]]
*[[show_empty_weapon]]
*[[somethingonplayer]]
*[[somethingonplayer]]
*[[sound_pitch]]
*[[sound_pitch]]
*[[spritebridge]]
*[[spritebridge]]
*[[steroids_amount]]
*[[subweapon]]
*[[team]]
*[[team]]
*[[timebeforeexit]]
*[[timebeforeexit]]
Line 142: Line 157:
*[[wackedbyactor]]
*[[wackedbyactor]]
*[[walking_snd_toggle]]
*[[walking_snd_toggle]]
*[[wantweaponfire]]
*[[weapon_ang]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weaponswitch]]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[zoom]]
*[[zoom]]
</div>
</div>

Revision as of 14:10, 3 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:

Ammo

Inventory

Cheat Codes

Config

Weapons

Movements speed

Misc

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