Members of the player structure
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:
- access_incs
- access_spritenum
- access_wallnum
- actors_killed
- actorsqu
- aim_mode
- airleft
- ammo_amount
- ang
- angvel
- auto_aim
- bobcounter
- bobposx
- bobposy
- boot_amount
- buttonpalette
- cheat_phase
- crack_time
- curr_weapon
- cursectnum
- customexitsound
- dead_flag
- dummyplayersprite
- exitx[1]
- exity[1]
- extra_extra8
- falling_counter
- firstaid_amount
- fist_incs
- footprintcount
- footprintpal
- footprintshade
- frag
- frag_ps
- fraggedself
- fta
- ftq
- gm
- got_access
- gotweapon
- hard_landing
- hbomb_hold_delay
- hbomb_on
- heat_amount
- heat_on
- holoduke_amount
- holoduke_on
- holster_weapon
- horiz
- horizoff
- hurt_delay
- i
- interface_toggle_flag
- invdisptime
- inven_icon
- jetpack_amount
- jetpack_on
- jumping_counter
- jumping_toggle
- kickback_pic
- knee_incs
- knuckle_incs
- 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
- movement_lock
- name[2]
- newowner
- numloogs
- oang
- ohoriz
- ohorizoff
- on_crane
- on_ground
- on_warping_sector
- one_eighty_count
- one_parallax_sectnum
- oposx
- oposy
- oposz
- opyoff
- over_shoulder_on
- palette[2]
- palookup
- pals
- pals_time
- player_par
- posx
- posxv
- posy
- posyv
- posz
- poszv
- pycount
- pyoff
- quick_kick
- random_club_frame
- randomflamex[1]
- rapid_fire_hold
- refresh_inventory
- reloading
- return_to_center
- rotscrnang
- runspeed
- sbs
- scream_voice
- scuba_amount
- scuba_on
- secret_rooms
- shield_amount
- show_empty_weapon
- somethingonplayer
- sound_pitch
- spritebridge
- steroids_amount
- subweapon
- team
- timebeforeexit
- tipincs
- toggle_key_flag
- transporter_hold
- truefz
- truecz
- visibility
- wackedbyactor
- walking_snd_toggle
- wantweaponfire
- weapon_ang
- weapon_pos
- weapon_sway
- weaponswitch
- weaprecs[2]
- weapreccnt
- zoom
[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.