Difference between revisions of "TActivePlayer"

From Soldat Community Wiki
Jump to: navigation, search
(Members)
Line 12: Line 12:
  
 
==Members==
 
==Members==
 
+
<code>
   function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean;
+
   <table>
   procedure [[TActivePlayer.Say|Say]](Text: string);
+
<tr><th>Member declaration</th><th>Access mode</th></tr>
   procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer);
+
  <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
   procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer);
+
   <tr><td>procedure [[TActivePlayer.Say|Say]](Text: string)</td></tr>
   procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]]);
+
   <tr><td>procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer)</td></tr>
   procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string);
+
   <tr><td>procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer)</td></tr>
   procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte);
+
   <tr><td>procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]])</td></tr>
   function [[TActivePlayer.Kick|Kick]]: Boolean;
+
   <tr><td>procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string)</td></tr>
   procedure [[TActivePlayer.Move|Move]](X, Y: Single);
+
   <tr><td>procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte)</td></tr>
   procedure [[TActivePlayer.Tell|Tell]](Text: string);
+
   <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
   procedure [[TActivePlayer.WriteConsole|WriteConsole]](Text: string; Color: Longint);
+
   <tr><td>procedure [[TActivePlayer.Move|Move]](X, Y: Single)</td></tr>
    
+
   <tr><td>procedure [[TActivePlayer.Tell|Tell]](Text: string)</td></tr>
   property [[TActivePlayer.ID|ID]]: Byte R
+
   <tr><td>procedure [[TActivePlayer.WriteConsole|WriteConsole]](Text: string; Color: Longint)</td></tr>
   property [[TActivePlayer.Team|Team]]: Byte RW
+
   <tr><td><br /></td></tr>
   property [[TActivePlayer.Alive|Alive]]: Boolean RW
+
   <tr><td>property [[TActivePlayer.ID|ID]]: Byte</td><td>R</td></tr>
   property [[TActivePlayer.Kills|Kills]]: Integer RW
+
   <tr><td>property [[TActivePlayer.Team|Team]]: Byte</td><td>RW</td></tr>
   property [[TActivePlayer.Deaths|Deaths]]: Integer R
+
   <tr><td>property [[TActivePlayer.Alive|Alive]]: Boolean</td><td>RW</td></tr>
   property [[TActivePlayer.Ping|Ping]]: Integer R
+
   <tr><td>property [[TActivePlayer.Kills|Kills]]: Integer</td><td>RW</td></tr>
   property [[TActivePlayer.Active|Active]]: Boolean R
+
   <tr><td>property [[TActivePlayer.Deaths|Deaths]]: Integer</td><td>R</td></tr>
   property [[TActivePlayer.IP|IP]]: string R
+
   <tr><td>property [[TActivePlayer.Ping|Ping]]: Integer</td><td>R</td></tr>
   property [[TActivePlayer.Port|Port]]: Word R
+
   <tr><td>property [[TActivePlayer.Active|Active]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.VelX|VelX]]: Single R
+
   <tr><td>property [[TActivePlayer.IP|IP]]: string</td><td>R</td></tr>
   property [[TActivePlayer.VelY|VelY]]: Single R
+
   <tr><td>property [[TActivePlayer.Port|Port]]: Word</td><td>R</td></tr>
   property [[TActivePlayer.Muted|Muted]]: Boolean RW
+
   <tr><td>property [[TActivePlayer.VelX|VelX]]: Single</td><td>R</td></tr>
   property [[TActivePlayer.Jets|Jets]]: Integer R
+
   <tr><td>property [[TActivePlayer.VelY|VelY]]: Single</td><td>R</td></tr>
   property [[TActivePlayer.Grenades|Grenades]]: Byte R
+
   <tr><td>property [[TActivePlayer.Muted|Muted]]: Boolean</td><td>RW</td></tr>
   property [[TActivePlayer.X|X]]: Single R
+
   <tr><td>property [[TActivePlayer.Jets|Jets]]: Integer</td><td>R</td></tr>
   property [[TActivePlayer.Y|Y]]: Single R
+
   <tr><td>property [[TActivePlayer.Grenades|Grenades]]: Byte</td><td>R</td></tr>
   property [[TActivePlayer.Flagger|Flagger]]: Boolean R
+
   <tr><td>property [[TActivePlayer.X|X]]: Single</td><td>R</td></tr>
   property [[TActivePlayer.Time|Time]]: Integer R
+
   <tr><td>property [[TActivePlayer.Y|Y]]: Single</td><td>R</td></tr>
   property [[TActivePlayer.OnGround|OnGround]]: Boolean R
+
   <tr><td>property [[TActivePlayer.Flagger|Flagger]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.Human|Human]]: Boolean R
+
   <tr><td>property [[TActivePlayer.Time|Time]]: Integer</td><td>R</td></tr>
   property [[TActivePlayer.Direction|Direction]]: Shortint R
+
   <tr><td>property [[TActivePlayer.OnGround|OnGround]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.Flags|Flags]]: Byte R
+
   <tr><td>property [[TActivePlayer.Human|Human]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.HWID|HWID]]: string R
+
   <tr><td>property [[TActivePlayer.Direction|Direction]]: Shortint</td><td>R</td></tr>
   property [[TActivePlayer.KeyUp|KeyUp]]: Boolean R
+
   <tr><td>property [[TActivePlayer.Flags|Flags]]: Byte</td><td>R</td></tr>
   property [[TActivePlayer.KeyLeft|KeyLeft]]: Boolean R
+
   <tr><td>property [[TActivePlayer.HWID|HWID]]: string</td><td>R</td></tr>
   property [[TActivePlayer.KeyRight|KeyRight]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyUp|KeyUp]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyShoot|KeyShoot]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyLeft|KeyLeft]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyJetpack|KeyJetpack]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyRight|KeyRight]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyGrenade|KeyGrenade]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyShoot|KeyShoot]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyChangeWeap|KeyChangeWeap]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyJetpack|KeyJetpack]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyThrow|KeyThrow]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyGrenade|KeyGrenade]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyReload|KeyReload]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyChangeWeap|KeyChangeWeap]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyCrouch|KeyCrouch]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyThrow|KeyThrow]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.KeyProne|KeyProne]]: Boolean R
+
   <tr><td>property [[TActivePlayer.KeyReload|KeyReload]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte] W
+
   <tr><td>property [[TActivePlayer.KeyCrouch|KeyCrouch]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TActivePlayer.TOnFlagGrab|TOnFlagGrab]] RW
+
   <tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr>
   property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TActivePlayer.TOnFlagReturn|TOnFlagReturn]] RW
+
   <tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]</td><td>W</td></tr>
   property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TActivePlayer.TOnFlagScore|TOnFlagScore]] RW
+
   <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TActivePlayer.TOnFlagGrab|TOnFlagGrab]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TActivePlayer.TOnBeforeRespawn|TOnBeforeRespawn]] RW
+
   <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TActivePlayer.TOnFlagReturn|TOnFlagReturn]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TActivePlayer.TOnAfterRespawn|TOnAfterRespawn]] RW
+
   <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TActivePlayer.TOnFlagScore|TOnFlagScore]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnDamage|OnDamage]]: [[TActivePlayer.TOnDamage|TOnDamage]] RW
+
   <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TActivePlayer.TOnBeforeRespawn|TOnBeforeRespawn]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnKill|OnKill]]: [[TActivePlayer.TOnKill|TOnKill]] RW
+
   <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TActivePlayer.TOnAfterRespawn|TOnAfterRespawn]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TActivePlayer.TOnWeaponChange|TOnWeaponChange]] RW
+
   <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[TActivePlayer.TOnDamage|TOnDamage]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TActivePlayer.TOnVoteMapStart|TOnVoteMapStart]] RW
+
   <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[TActivePlayer.TOnKill|TOnKill]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TActivePlayer.TOnVoteKickStart|TOnVoteKickStart]] RW
+
   <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TActivePlayer.TOnWeaponChange|TOnWeaponChange]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TActivePlayer.TOnVoteMap|TOnVoteMap]] RW
+
   <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TActivePlayer.TOnVoteMapStart|TOnVoteMapStart]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnVoteKick|OnVoteKick]]: TOnVoteKick]] RW
+
   <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TActivePlayer.TOnVoteKickStart|TOnVoteKickStart]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TActivePlayer.TOnSpeak|TOnSpeak]] RW
+
   <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TActivePlayer.TOnVoteMap|TOnVoteMap]]</td><td>RW</td></tr>
   property [[TActivePlayer.OnCommand|OnCommand]]: [[TActivePlayer.TOnCommand|TOnCommand]] RW
+
   <tr><td>property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]]</td><td>RW</td></tr>
 +
   <tr><td>property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TActivePlayer.TOnSpeak|TOnSpeak]]</td><td>RW</td></tr>
 +
   <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[TActivePlayer.TOnCommand|TOnCommand]]</td><td>RW</td></tr>
 +
  </table>
 +
</code>

Revision as of 22:49, 25 June 2013

Inheritance


Description

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

user constructable: NO
user destructable: NO

Members

Member declarationAccess mode
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: ByteR
property Team: ByteRW
property Alive: BooleanRW
property Kills: IntegerRW
property Deaths: IntegerR
property Ping: IntegerR
property Active: BooleanR
property IP: stringR
property Port: WordR
property VelX: SingleR
property VelY: SingleR
property Muted: BooleanRW
property Jets: IntegerR
property Grenades: ByteR
property X: SingleR
property Y: SingleR
property Flagger: BooleanR
property Time: IntegerR
property OnGround: BooleanR
property Human: BooleanR
property Direction: ShortintR
property Flags: ByteR
property HWID: stringR
property KeyUp: BooleanR
property KeyLeft: BooleanR
property KeyRight: BooleanR
property KeyShoot: BooleanR
property KeyJetpack: BooleanR
property KeyGrenade: BooleanR
property KeyChangeWeap: BooleanR
property KeyThrow: BooleanR
property KeyReload: BooleanR
property KeyCrouch: BooleanR
property KeyProne: BooleanR
property WeaponActive[ID: Byte]W
property OnFlagGrab: TOnFlagGrabRW
property OnFlagReturn: TOnFlagReturnRW
property OnFlagScore: TOnFlagScoreRW
property OnBeforeRespawn: TOnBeforeRespawnRW
property OnAfterRespawn: TOnAfterRespawnRW
property OnDamage: TOnDamageRW
property OnKill: TOnKillRW
property OnWeaponChange: TOnWeaponChangeRW
property OnVoteMapStart: TOnVoteMapStartRW
property OnVoteKickStart: TOnVoteKickStartRW
property OnVoteMap: TOnVoteMapRW
property OnVoteKick: TOnVoteKickRW
property OnSpeak: TOnSpeakRW
property OnCommand: TOnCommandRW