Members of the player structure/test: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 25: Line 25:
*[[shield_amount]]
*[[shield_amount]]
*[[steroids_amount]]
*[[steroids_amount]]
*[[max_shield_amount]]
Cheat Codes
Cheat Codes
*[[cheat_phase]]
*[[cheat_phase]]
Line 60: Line 61:
*[[weaprecs]][2]
*[[weaprecs]][2]
*[[weapreccnt]]
*[[weapreccnt]]
Coordinates
*[[ang]]
*[[cursectnum]]
*[[i]]
*[[oang]]
*[[oposx]]
*[[oposy]]
*[[oposz]]
*[[posx]]
*[[posy]]
*[[posz]]
Movements speed
Movements speed
*[[angvel]]
*[[angvel]]
Line 66: Line 78:
*[[poszv]]
*[[poszv]]
*[[runspeed]]
*[[runspeed]]
*[[jumping_counter]]
*[[jumping_toggle]]
*[[movement_lock]]
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
*[[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
Misc
Line 71: Line 129:
*[[access_spritenum]]
*[[access_spritenum]]
*[[access_wallnum]]
*[[access_wallnum]]
*[[actors_killed]]
*[[actorsqu]]
*[[actorsqu]]
*[[airleft]]
*[[airleft]]
*[[ang]]
*[[buttonpalette]]
*[[buttonpalette]]
*[[cursectnum]]
*[[customexitsound]]
*[[customexitsound]]
*[[dead_flag]]
*[[dummyplayersprite]]
*[[dummyplayersprite]]
*[[exitx]][1]
*[[exity]][1]
*[[extra_extra8]]
*[[extra_extra8]]
*[[falling_counter]]
*[[falling_counter]]
Line 87: Line 139:
*[[footprintpal]]
*[[footprintpal]]
*[[footprintshade]]
*[[footprintshade]]
*[[frag]]
*[[frag_ps]]
*[[fraggedself]]
*[[fta]]
*[[ftq]]
*[[gm]]
*[[gm]]
*[[hard_landing]]
*[[hard_landing]]
*[[horiz]]
*[[horizoff]]
*[[hurt_delay]]
*[[hurt_delay]]
*[[i]]
*[[interface_toggle_flag]]
*[[jumping_counter]]
*[[jumping_toggle]]
*[[last_extra]]
*[[last_extra]]
*[[lastrandomspot]][1]
*[[loogcnt]]
*[[loogcnt]]
*[[loogiex]]
*[[loogiey]]
*[[look_ang]]
*[[max_actors_killed]]
*[[max_player_health]]
*[[max_player_health]]
*[[max_secret_rooms]]
*[[max_shield_amount]]
*[[movement_lock]]
*[[name]][2]
*[[newowner]]
*[[numloogs]]
*[[numloogs]]
*[[oang]]
*[[ohoriz]]
*[[ohorizoff]]
*[[on_crane]]
*[[on_crane]]
*[[on_ground]]
*[[on_ground]]
Line 123: Line 151:
*[[one_eighty_count]]
*[[one_eighty_count]]
*[[one_parallax_sectnum]]
*[[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]]
*[[sbs]]
*[[scream_voice]]
*[[scream_voice]]
*[[secret_rooms]]
*[[somethingonplayer]]
*[[somethingonplayer]]
*[[sound_pitch]]
*[[sound_pitch]]
*[[spritebridge]]
*[[spritebridge]]
*[[team]]
*[[timebeforeexit]]
*[[timebeforeexit]]
*[[tipincs]]
*[[tipincs]]
Line 154: Line 162:
*[[truefz]]
*[[truefz]]
*[[truecz]]
*[[truecz]]
*[[visibility]]
*[[wackedbyactor]]
*[[wackedbyactor]]
*[[walking_snd_toggle]]
*[[walking_snd_toggle]]
*[[zoom]]
</div>
</div>


Line 163: Line 169:
[2] Unavailable members. There is no access to them via CON.
[2] Unavailable members. There is no access to them via CON.


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

Latest revision as of 18:07, 3 April 2015

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

Cheat Codes

Config

Weapons

Coordinates

Movements speed

View

Score

Quote

Multiplayer

Deprecated

Misc

[1] Unused members. The game doesn't use them.
[2] Unavailable members. There is no access to them via CON.