Members of the player structure/test: Difference between revisions
Jump to navigation
Jump to search
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..." |
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]] | ||
*[[airleft]] | *[[airleft]] | ||
*[[ang]] | *[[ang]] | ||
*[[buttonpalette]] | *[[buttonpalette]] | ||
*[[cursectnum]] | *[[cursectnum]] | ||
*[[customexitsound]] | *[[customexitsound]] | ||
Line 31: | Line 84: | ||
*[[extra_extra8]] | *[[extra_extra8]] | ||
*[[falling_counter]] | *[[falling_counter]] | ||
*[[footprintcount]] | *[[footprintcount]] | ||
*[[footprintpal]] | *[[footprintpal]] | ||
Line 42: | Line 93: | ||
*[[ftq]] | *[[ftq]] | ||
*[[gm]] | *[[gm]] | ||
*[[hard_landing]] | *[[hard_landing]] | ||
*[[horiz]] | *[[horiz]] | ||
*[[horizoff]] | *[[horizoff]] | ||
Line 57: | Line 99: | ||
*[[i]] | *[[i]] | ||
*[[interface_toggle_flag]] | *[[interface_toggle_flag]] | ||
*[[jumping_counter]] | *[[jumping_counter]] | ||
*[[jumping_toggle]] | *[[jumping_toggle]] | ||
*[[last_extra]] | *[[last_extra]] | ||
*[[lastrandomspot]][1] | *[[lastrandomspot]][1] | ||
*[[loogcnt]] | *[[loogcnt]] | ||
Line 77: | Line 108: | ||
*[[look_ang]] | *[[look_ang]] | ||
*[[max_actors_killed]] | *[[max_actors_killed]] | ||
*[[max_player_health]] | *[[max_player_health]] | ||
*[[max_secret_rooms]] | *[[max_secret_rooms]] | ||
Line 104: | Line 134: | ||
*[[player_par]] | *[[player_par]] | ||
*[[posx]] | *[[posx]] | ||
*[[posy]] | *[[posy]] | ||
*[[posz]] | *[[posz]] | ||
*[[pycount]] | *[[pycount]] | ||
*[[pyoff]] | *[[pyoff]] | ||
*[[randomflamex]][1] | *[[randomflamex]][1] | ||
*[[return_to_center]] | *[[return_to_center]] | ||
*[[rotscrnang]] | *[[rotscrnang]] | ||
*[[sbs]] | *[[sbs]] | ||
*[[scream_voice]] | *[[scream_voice]] | ||
*[[secret_rooms]] | *[[secret_rooms]] | ||
*[[somethingonplayer]] | *[[somethingonplayer]] | ||
*[[sound_pitch]] | *[[sound_pitch]] | ||
*[[spritebridge]] | *[[spritebridge]] | ||
*[[team]] | *[[team]] | ||
*[[timebeforeexit]] | *[[timebeforeexit]] | ||
Line 142: | Line 157: | ||
*[[wackedbyactor]] | *[[wackedbyactor]] | ||
*[[walking_snd_toggle]] | *[[walking_snd_toggle]] | ||
*[[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
- 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
Config
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
Misc
- access_incs
- access_spritenum
- access_wallnum
- actors_killed
- actorsqu
- airleft
- ang
- buttonpalette
- cursectnum
- customexitsound
- dead_flag
- dummyplayersprite
- exitx[1]
- exity[1]
- extra_extra8
- falling_counter
- footprintcount
- footprintpal
- footprintshade
- frag
- frag_ps
- fraggedself
- fta
- ftq
- gm
- hard_landing
- horiz
- horizoff
- hurt_delay
- i
- interface_toggle_flag
- jumping_counter
- jumping_toggle
- last_extra
- lastrandomspot[1]
- loogcnt
- loogiex
- loogiey
- look_ang
- max_actors_killed
- 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
- posy
- posz
- pycount
- pyoff
- randomflamex[1]
- return_to_center
- rotscrnang
- sbs
- scream_voice
- secret_rooms
- somethingonplayer
- sound_pitch
- spritebridge
- team
- timebeforeexit
- tipincs
- toggle_key_flag
- transporter_hold
- truefz
- truecz
- visibility
- wackedbyactor
- walking_snd_toggle
- zoom
[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.