Members of the player structure: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
m Add missing struct members
 
(26 intermediate revisions by 9 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
Syntax:
*[[aim_mode]]
 
*[[auto_aim]]
<get/set>player[<player id>].<functionname> <gamevar>
*[[weaponswitch]]
 
Cheat Codes
<get/set> - [[getplayer]] to set the [[gamevar]] <gamevar> to the value of <functionname>. [[setplayer]] to set the value of <functionname> to the gamevar <gamevar>.
*[[cheat_phase]]
 
Ammo
<player id> is the reference number for a player. if you only care about single player then use [[THISACTOR]] to reference the one and only player. In multiplayer using THISACTOR will refer to the current player which for actor code is defined as the nearest player. In display events (nonsynchronsised) use screenpeek. There is almost never any reason to use [[myconnectindex]].
 
be warned that the use of THISACTOR as a player id in <get/set>player is a special case IE the following are NOT equivilent (and the second one won't do anything useful).
 
<get/set>player[THISACTOR].<functionname> <gamevar>
 
setvarvar TMP THISACTOR<br>
<get/set>player[TMP].<functionname> <gamevar>
 
<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]]
*[[ammo_amount]]
*[[ang]]
*[[gotweapon]]
*[[angvel]]
*[[max_ammo_amount]]
Weapons
*[[bobcounter]]
*[[bobcounter]]
*[[bobposx]]
*[[bobposx]]
*[[bobposy]]
*[[bobposy]]
*[[boot_amount]]
*[[bsubweapon]]
*[[buttonpalette]]
*[[cheat_phase]]
*[[crack_time]]
*[[crack_time]]
*[[curr_weapon]]
*[[curr_weapon]]
*[[cursectnum]]
*[[customexitsound]]
*[[dead_flag]]
*[[dummyplayersprite]]
*[[exitx]]
*[[exity]]
*[[extra_extra8]]
*[[falling_counter]]
*[[fire_flag]]
*[[firstaid_amount]]
*[[fist_incs]]
*[[fist_incs]]
*[[footprintcount]]
*[[footprintpal]]
*[[footprintshade]]
*[[frag]]
*[[frag_ps]]
*[[fraggedself]]
*[[fta]]
*[[ftq]]
*[[gm]]
*[[got_access]]
*[[gotweapon]]
*[[hard_landing]]
*[[hbomb_hold_delay]]
*[[hbomb_hold_delay]]
*[[hbomb_on]]
*[[hbomb_on]]
*[[holster_weapon]]
*[[kickback_pic]]
*[[knee_incs]]
*[[knuckle_incs]]
*[[last_full_weapon]]
*[[last_quick_kick]]
*[[last_pissed_time]]
*[[last_weapon]]
*[[last_used_weapon]]
*[[quick_kick]]
*[[random_club_frame]]
*[[rapid_fire_hold]]
*[[reloading]]
*[[show_empty_weapon]]
*[[subweapon]]
*[[wantweaponfire]]
*[[weapon_ang]]
*[[weapon_pos]]
*[[weapon_sway]]
*[[weaprecs]]
*[[weapreccnt]]
Inventory
*[[boot_amount]]
*[[firstaid_amount]]
*[[got_access]]
*[[heat_amount]]
*[[heat_amount]]
*[[heat_on]]
*[[heat_on]]
*[[holoduke_amount]]
*[[holoduke_amount]]
*[[holoduke_on]]
*[[holoduke_on]]
*[[holster_weapon]]
*[[horiz]]
*[[horizoff]]
*[[hurt_delay]]
*[[i]]
*[[interface_toggle_flag]]
*[[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]]
Coordinates
*[[ang]]
*[[cursectnum]]
*[[i]]
*[[index]]
*[[oang]]
*[[oposx]]
*[[oposy]]
*[[oposz]]
*[[posx]]
*[[posy]]
*[[posz]]
Player Movement
*[[angvel]]
*[[crouch_toggle]]
*[[posxv]]
*[[posyv]]
*[[poszv]]
*[[runspeed]]
*[[jumping_counter]]
*[[jumping_counter]]
*[[jumping_toggle]]
*[[jumping_toggle]]
*[[kickback_pic]]
*[[movement_lock]]
*[[knee_incs]]
View
*[[knuckle_incs]]
*[[dead_flag]]
*[[last_extra]]
*[[horiz]]
*[[last_pissed_time]]
*[[horizoff]]
*[[lastrandomspot]]
*[[hudpal]]
*[[last_full_weapon]]
*[[last_weapon]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[look_ang]]
*[[look_ang]]
*[[max_actors_killed]]
*[[max_secret_rooms]]
*[[name]]
*[[newowner]]
*[[newowner]]
*[[numloogs]]
*[[oang]]
*[[ohoriz]]
*[[ohorizoff]]
*[[on_crane]]
*[[on_ground]]
*[[on_warping_sector]]
*[[one_eighty_count]]
*[[one_parallax_sectnum]]
*[[oposx]]
*[[oposy]]
*[[oposz]]
*[[opyoff]]
*[[opyoff]]
*[[over_shoulder_on]]
*[[over_shoulder_on]]
Line 114: Line 94:
*[[pals]]
*[[pals]]
*[[pals_time]]
*[[pals_time]]
*[[player_par]]
*[[ohoriz]]
*[[posx]]
*[[ohorizoff]]
*[[posxv]]
*[[posy]]
*[[posxv]]
*[[posz]]
*[[poszv]]
*[[pycount]]
*[[pycount]]
*[[pyoff]]
*[[pyoff]]
*[[quick_kick]]
*[[return_to_center]]
*[[random_club_frame]]
*[[randomflamex]]
*[[rapid_fire_hold]]
*[[refresh_inventory]]
*[[reloading]]
*[[rotscrnang]]
*[[rotscrnang]]
*[[runspeed]]
*[[visibility]]
*[[zoom]]
Quotes
*[[fta]]
*[[ftq]]
Score
*[[actors_killed]]
*[[max_actors_killed]]
*[[max_secret_rooms]]
*[[player_par]]
*[[secret_rooms]]
Multiplayer
*[[connected]]
*[[deaths]]
*[[frag]]
*[[frag_ps]]
*[[fraggedself]]
*[[frags]]
*[[interface_toggle_flag]]
*[[team]]
Deprecated
*[[exitx]][1]
*[[exity]][1]
*[[lastrandomspot]][1]
*[[name]][2]
*[[randomflamex]][1]
 
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]]
*[[sbs]]
*[[scuba_amount]]
*[[scream_voice]]
*[[scuba_on]]
*[[secret_rooms]]
*[[select_dir]]
*[[shield_amount]]
*[[show_empty_weapon]]
*[[somethingonplayer]]
*[[somethingonplayer]]
*[[sound_pitch]]
*[[spritebridge]]
*[[spritebridge]]
*[[steroids_amount]]
*[[subweapon]]
*[[timebeforeexit]]
*[[timebeforeexit]]
*[[tipincs]]
*[[tipincs]]
Line 148: Line 168:
*[[truefz]]
*[[truefz]]
*[[truecz]]
*[[truecz]]
*[[visibility]]
*[[wackedbyactor]]
*[[wackedbyactor]]
*[[walking_snd_toggle]]
*[[walking_snd_toggle]]
*[[wantweaponfire]]
</div>
*[[weapon_ang]]
 
*[[weapon_pos]]
[1] Unused members. The game doesn't use them.<br>
*[[weapon_sway]]
[2] Unavailable members. There is no access to them via CON.
*[[weaprecs]]
*[[weapreccnt]]
*[[zoom]]


[[Category:Structure access]]
[[Category:Player manipulation]]
[[Category:Player manipulation]]
__NOTOC__

Latest revision as of 07:33, 20 September 2020

Config

Cheat Codes

Ammo

Weapons

Inventory

Coordinates

Player Movement

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.