Struct PlayerInfo


Constants

const NOFIXEDCOLORMAP = -1

const NUMCOLORMAPS = 32

Public Member Variables

native PlayerPawn mo

native uint8 playerstate

native readonly uint buttons


native Class< PlayerPawn > cls

native float DesiredFOV

native float FOV

native double viewz



native double bob

native Vector2 vel


native uint8 turnticks


native bool usedown


native int health

native clearscope int inventorytics

native uint8 CurrentPlayerClass

native int[MAXPLAYERS] frags

native int fragcount


native uint8 multicount

native uint8 spreecount

native uint16 WeaponState




native int cheats


native int16 refire

native int16 inconsistent

native bool waiting

native int killcount

native int itemcount













native int16 fixedcolormap

native int16 fixedlightlevel

native int morphtics



native Class< Actor > MorphExitFlash



native int jumpTics

native bool onground


native Actor camera




native int8 MUSINFOtics


native int8 crouching

native int8 crouchdir

native bot bot

native float BlendR

native float BlendG

native float BlendB

native float BlendA












native @UserCmd cmd

native readonly @UserCmd original​_cmd

Public Functions

native bool PoisonPlayer(
Actor poisoner,
Actor source,
int poison
)

native void PoisonDamage(
Actor source,
int damage,
bool playPainSound
)

native void SetPsprite(
int id,
State stat,
bool pending = false
)

native void SetSafeFlash(
Weapon weap,
State flashstate,
int index
)

native PSprite GetPSprite(int id) const

native PSprite FindPSprite(int id) const

native void SetLogNumber(int text)

native void SetLogText(String text)

native void SetSubtitleNumber(
int text,
Sound sound​_id = 0
)

native bool Resurrect()

native clearscope String GetUserName(
) const

native clearscope Color GetColor() const

native clearscope Color GetDisplayColor(
) const

native clearscope int GetColorSet(
) const

native clearscope int GetPlayerClassNum(
) const

native clearscope int GetSkin() const

native clearscope bool GetNeverSwitch(
) const

native clearscope int GetGender() const

native clearscope int GetTeam() const

native clearscope float GetAutoaim(
) const

native clearscope bool GetNoAutostartMap(
) const

native double GetWBobSpeed() const

native double GetWBobFire() const

native double GetMoveBob() const

native double GetStillBob() const

native void SetFOV(float fov)

native clearscope bool GetClassicFlight(
) const

native void SendPitchLimits()

native clearscope bool HasWeaponsInSlot(
int slot
) const

bool MorphPlayer(
PlayerInfo p,
Class< PlayerPawn > spawntype,
int duration,
int style,
Class< Actor > enter​_flash = null,
Class< Actor > exit​_flash = null
)
🛇deprecated since 3.7.0: MorphPlayer() should be used on a PlayerPawn object

bool UndoPlayerMorph(
PlayerInfo player,
int unmorphflag = 0,
bool force = false
)
🛇deprecated since 3.7.0: UndoPlayerMorph() should be used on a PlayerPawn object

void DropWeapon()
🛇deprecated since 3.7.0: DropWeapon() should be used on a PlayerPawn object

🛇deprecated since 3.7.0: BringUpWeapon() should be used on a PlayerPawn object

clearscope bool IsTotallyFrozen() const

void Uncrouch()

clearscope int fragSum() const