Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Mblackwell (talk | contribs)
mNo edit summary
Fox (talk | contribs)
No edit summary
(33 intermediate revisions by 12 users not shown)
Line 1: Line 1:
Player Member Functions effect the players in the game by their player id.
<div style="column-count:3;-moz-column-count:3;">
Config
*[[aim_mode]]
*[[auto_aim]]
*[[weaponswitch]]
Cheat Codes
*[[cheat_phase]]
Ammo
*[[ammo_amount]]
*[[gotweapon]]
*[[max_ammo_amount]]
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]]
*[[weaprecs]][2]
*[[weapreccnt]]
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]]
Coordinates
*[[ang]]
*[[cursectnum]]
*[[i]]
*[[oang]]
*[[oposx]]
*[[oposy]]
*[[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]]
*[[over_shoulder_on]]
*[[palette]]
*[[palookup]]
*[[pals]]
*[[pals_time]]
*[[ohoriz]]
*[[ohorizoff]]
*[[pycount]]
*[[pyoff]]
*[[return_to_center]]
*[[rotscrnang]]
*[[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]


Syntax:
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]]
*[[scream_voice]]
*[[somethingonplayer]]
*[[sound_pitch]]
*[[spritebridge]]
*[[timebeforeexit]]
*[[tipincs]]
*[[toggle_key_flag]]
*[[transporter_hold]]
*[[truefz]]
*[[truecz]]
*[[wackedbyactor]]
*[[walking_snd_toggle]]
</div>


<get/set>player[<player id>].<functionname> <gamevar>
[1] Unused members. The game doesn't use them.<br>
[2] Unavailable members. There is no access to them via CON.


<get/set> - [[getplayer]] to set the [[gamevar]] <gamevar> to the value of <functionname>. [[setplayer]] to set the value of <functionname> to the gamevar <gamevar>.
[[Category:Structure access]]
 
[[Category:Player manipulation]]
<player id> is the reference number for a player. Use THISACTOR within the APLAYER code, or an [[Event]] to set <player id> to the current player's reference number. Within another actor, typically the value [[myconnectindex]] must be used. Using [[myconnectindex]] may cause issues in multiplayer based mods in the current game versions, depending on what is set.
__NOTOC__
 
<functionname> is the name of the Member Function you want to use.
 
<gamevar> is the [[gamevar]] to get or set the value of.
 
Here is the list of Member Functions for players:  
 
[[access_incs]]
 
[[access_spritenum]]
 
[[access_wallnum]]
 
[[actors_killed]]
 
[[actorsqu]]
 
[[airleft]]
 
[[ammo_amount]]
 
[[ang]]
 
[[angvel]]
 
[[bobcounter]]
 
[[bobposx]]
 
[[bobposy]]
 
[[boot_amount]]
 
[[buttonpalette]]
 
[[cheat_phase]]
 
[[crack_time]]
 
[[curr_weapon]]
 
[[cursectnum]]
 
[[customexitsound]]
 
[[dead_flag]]
 
[[dummyplayersprite]]
 
[[exitx]]
 
[[exity]]
 
[[extra]]
 
[[extra_extra8]]
 
[[fire_flag]]
 
[[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]]
 
[[last_full_weapon]]
 
[[last_weapon]]
 
[[loogcnt]]
 
[[loogiex]]
 
[[loogiey]]
 
[[look_ang]]
 
[[max_actors_killed]]
 
[[max_secret_rooms]]
 
[[name]]
 
[[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]]
 
[[palookup]]
 
[[pals]]
 
[[pals_time]]
 
[[player_par]]
 
[[posx]]
 
[[posxv]]
 
[[posy]]
 
[[posxv]]
 
[[posz]]
 
[[poszv]]
 
[[pycount]]
 
[[pyoff]]
 
[[quick_kick]]
 
[[random_club_frame]]
 
[[randomflamex]]
 
[[rapid_fire_hold]]
 
[[refresh_inventory]]
 
[[rotscrnang]]
 
[[scuba_amount]]
 
[[scuba_on]]
 
[[secret_rooms]]
 
[[select_dir]]
 
[[shield_amount]]
 
[[show_empty_weapon]]
 
[[somethingonplayer]]
 
[[spritebridge]]
 
[[steroids_amount]]
 
[[subweapon]]
 
[[timebeforeexit]]
 
[[tipincs]]
 
[[toggle_key_flag]]
 
[[transporter_hold]]
 
[[truefz]]
 
[[truecz]]
 
[[visibility]]
 
[[wackedbyactor]]
 
[[walking_snd_toggle]]
 
[[wantweaponfire]]
 
[[weapon_ang]]
 
[[weapon_pos]]
 
[[weapon_sway]]
 
[[weaprecs]]
 
[[weapreccnt]]
 
[[zoom]]

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.