Difference between revisions of "TActivePlayer"

From Soldat Community Wiki
Jump to: navigation, search
m
Line 17: Line 17:
 
   procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer);
 
   procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer);
 
   procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer);
 
   procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer);
   procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: TScriptWeapon);
+
   procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]]);
 
   procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string);
 
   procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string);
 
   procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte);
 
   procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte);

Revision as of 00:21, 25 June 2013

Inheritance


Description

Represents an active player. Accessible trough Players[] array property.

user constructable: NO
user destructable: NO

Members

 function Ban(Time: Integer; Reason: string): Boolean;
 procedure Say(Text: string);
 procedure Damage(Shooter: Byte; Damage: Integer);
 procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer);
 procedure ForceWeapon(Primary, Secondary: TWeapon);
 procedure Forward(TargetIP: string; TargetPort: Word; Message: string);
 procedure GiveBonus(BType: Byte);
 function Kick: Boolean;
 procedure Move(X, Y: Single);
 procedure Tell(Text: string);
 procedure WriteConsole(Text: string; Color: Longint);
 
 property ID: Byte R
 property Team: Byte RW
 property Alive: Boolean RW
 property Kills: Integer RW
 property Deaths: Integer R
 property Ping: Integer R
 property Active: Boolean R
 property IP: string R
 property Port: Word R
 property VelX: Single R
 property VelY: Single R
 property Muted: Boolean RW
 property Jets: Integer R
 property Grenades: Byte R
 property X: Single R
 property Y: Single R
 property Flagger: Boolean R
 property Time: Integer R
 property OnGround: Boolean R
 property Human: Boolean R
 property Direction: Shortint R
 property Flags: Byte R
 property HWID: string R
 property KeyUp: Boolean R
 property KeyLeft: Boolean R
 property KeyRight: Boolean R
 property KeyShoot: Boolean R
 property KeyJetpack: Boolean R
 property KeyGrenade: Boolean R
 property KeyChangeWeap: Boolean R
 property KeyThrow: Boolean R
 property KeyReload: Boolean R
 property KeyCrouch: Boolean R
 property KeyProne: Boolean R
 property WeaponActive[ID: Byte] W
 property OnFlagGrab: TOnFlagGrab RW
 property OnFlagReturn: TOnFlagReturn RW
 property OnFlagScore: TOnFlagScore RW
 property OnBeforeRespawn: TOnBeforeRespawn RW
 property OnAfterRespawn: TOnAfterRespawn RW
 property OnDamage: TOnDamage RW
 property OnKill: TOnKill RW
 property OnWeaponChange: TOnWeaponChange RW
 property OnVoteMapStart: TOnVoteMapStart RW
 property OnVoteKickStart: TOnVoteKickStart RW
 property OnVoteMap: TOnVoteMap RW
 property OnVoteKick: TOnVoteKick]] RW
 property OnSpeak: TOnSpeak RW
 property OnCommand: TOnCommand RW