Members of the player structure: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
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]] | *[[ammo_amount]] | ||
*[[ | *[[gotweapon]] | ||
*[[ | *[[max_ammo_amount]] | ||
Inventory | |||
*[[boot_amount]] | *[[boot_amount]] | ||
*[[firstaid_amount]] | *[[firstaid_amount]] | ||
*[[got_access]] | *[[got_access]] | ||
*[[heat_amount]] | *[[heat_amount]] | ||
*[[heat_on]] | *[[heat_on]] | ||
*[[holoduke_amount]] | *[[holoduke_amount]] | ||
*[[holoduke_on]] | *[[holoduke_on]] | ||
*[[invdisptime]] | *[[invdisptime]] | ||
*[[inven_icon]] | *[[inven_icon]] | ||
*[[jetpack_amount]] | *[[jetpack_amount]] | ||
*[[jetpack_on]] | *[[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 | |||
*[[bobcounter]] | |||
*[[bobposx]] | |||
*[[bobposy]] | |||
*[[crack_time]] | |||
*[[curr_weapon]] | |||
*[[fist_incs]] | |||
*[[hbomb_hold_delay]] | |||
*[[hbomb_on]] | |||
*[[holster_weapon]] | |||
*[[kickback_pic]] | *[[kickback_pic]] | ||
*[[knee_incs]] | *[[knee_incs]] | ||
*[[knuckle_incs]] | *[[knuckle_incs]] | ||
*[[last_full_weapon]] | *[[last_full_weapon]] | ||
*[[last_quick_kick]] | *[[last_quick_kick]] | ||
*[[last_pissed_time]] | *[[last_pissed_time]] | ||
*[[last_weapon]] | *[[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]] | ||
*[[ | Coordinates | ||
*[[ang]] | |||
*[[cursectnum]] | |||
*[[i]] | |||
*[[oang]] | *[[oang]] | ||
*[[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]] | ||
*[[palookup]] | *[[palookup]] | ||
*[[pals]] | *[[pals]] | ||
*[[pals_time]] | *[[pals_time]] | ||
*[[ | *[[ohoriz]] | ||
*[[ | *[[ohorizoff]] | ||
*[[pycount]] | *[[pycount]] | ||
*[[pyoff]] | *[[pyoff]] | ||
*[[return_to_center]] | *[[return_to_center]] | ||
*[[rotscrnang]] | *[[rotscrnang]] | ||
*[[ | *[[visibility]] | ||
*[[zoom]] | |||
Score | |||
*[[actors_killed]] | |||
*[[max_actors_killed]] | |||
*[[max_secret_rooms]] | |||
*[[player_par]] | |||
*[[secret_rooms]] | |||
Quote | |||
*[[fta]] | |||
*[[ftq]] | |||
Multiplayer | |||
*[[frag]] | |||
*[[frag_ps]] | |||
*[[fraggedself]] | |||
*[[interface_toggle_flag]] | |||
*[[team]] | |||
Deprecated | |||
*[[exitx]][1] | |||
*[[exity]][1] | |||
*[[lastrandomspot]][1] | |||
*[[loogiex]] | |||
*[[loogiey]] | |||
*[[name]][2] | |||
*[[palette]][2] | |||
*[[randomflamex]][1] | |||
Misc | |||
*[[access_incs]] | |||
*[[access_spritenum]] | |||
*[[access_wallnum]] | |||
*[[actorsqu]] | |||
*[[airleft]] | |||
*[[buttonpalette]] | |||
*[[customexitsound]] | |||
*[[dummyplayersprite]] | |||
*[[extra_extra8]] | |||
*[[falling_counter]] | |||
*[[footprintcount]] | |||
*[[footprintpal]] | |||
*[[footprintshade]] | |||
*[[gm]] | |||
*[[hard_landing]] | |||
*[[hurt_delay]] | |||
*[[last_extra]] | |||
*[[loogcnt]] | |||
*[[max_player_health]] | |||
*[[numloogs]] | |||
*[[on_crane]] | |||
*[[on_ground]] | |||
*[[on_warping_sector]] | |||
*[[one_eighty_count]] | |||
*[[one_parallax_sectnum]] | |||
*[[sbs]] | *[[sbs]] | ||
*[[scream_voice]] | *[[scream_voice]] | ||
*[[somethingonplayer]] | *[[somethingonplayer]] | ||
*[[sound_pitch]] | *[[sound_pitch]] | ||
*[[spritebridge]] | *[[spritebridge]] | ||
*[[timebeforeexit]] | *[[timebeforeexit]] | ||
*[[tipincs]] | *[[tipincs]] | ||
Line 139: | Line 162: | ||
*[[truefz]] | *[[truefz]] | ||
*[[truecz]] | *[[truecz]] | ||
*[[wackedbyactor]] | *[[wackedbyactor]] | ||
*[[walking_snd_toggle]] | *[[walking_snd_toggle]] | ||
</div> | </div> | ||
Revision as of 21:38, 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:
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
- max_shield_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
Coordinates
Movements speed
View
- dead_flag
- horiz
- horizoff
- look_ang
- newowner
- opyoff
- over_shoulder_on
- palookup
- pals
- pals_time
- ohoriz
- ohorizoff
- pycount
- pyoff
- return_to_center
- rotscrnang
- visibility
- zoom
Score
Quote
Multiplayer
Deprecated
- exitx[1]
- exity[1]
- lastrandomspot[1]
- loogiex
- loogiey
- name[2]
- palette[2]
- randomflamex[1]
Misc
- access_incs
- access_spritenum
- access_wallnum
- actorsqu
- airleft
- buttonpalette
- customexitsound
- dummyplayersprite
- extra_extra8
- falling_counter
- footprintcount
- footprintpal
- footprintshade
- gm
- hard_landing
- hurt_delay
- last_extra
- loogcnt
- max_player_health
- numloogs
- on_crane
- on_ground
- on_warping_sector
- one_eighty_count
- one_parallax_sectnum
- sbs
- scream_voice
- somethingonplayer
- sound_pitch
- spritebridge
- timebeforeexit
- tipincs
- toggle_key_flag
- transporter_hold
- truefz
- truecz
- wackedbyactor
- walking_snd_toggle
[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.