Difference between revisions of "TActivePlayer"

From Soldat Community Wiki
Jump to: navigation, search
(Members)
(Members)
Line 13: Line 13:
 
<code>
 
<code>
 
   <table>
 
   <table>
<tr><th>Member declaration</th><th>Access mode</th></tr>
+
  <tr><th>Member declaration</th><th>Access mode</th></tr>
 
   <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
 
   <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
 
   <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
 
   <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
Line 61: Line 61:
 
   <tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr>
 
   <tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr>
 
   <tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean</td><td>W</td></tr>
 
   <tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean</td><td>W</td></tr>
   <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TActivePlayer.TOnFlagGrab|TOnFlagGrab]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TOnFlagGrabEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TActivePlayer.TOnFlagReturn|TOnFlagReturn]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TOnFlagReturnEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TActivePlayer.TOnFlagScore|TOnFlagScore]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TOnFlagScoreEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TActivePlayer.TOnBeforeRespawn|TOnBeforeRespawn]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TOnBeforeRespawnEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TActivePlayer.TOnAfterRespawn|TOnAfterRespawn]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TOnAfterRespawnEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[TActivePlayer.TOnDamage|TOnDamage]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[TOnDamageEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[TActivePlayer.TOnKill|TOnKill]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[TOnKillEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TActivePlayer.TOnWeaponChange|TOnWeaponChange]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TOnWeaponChangeEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TActivePlayer.TOnVoteMapStart|TOnVoteMapStart]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TOnVoteMapStartEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TActivePlayer.TOnVoteKickStart|TOnVoteKickStart]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TOnVoteKickStartEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TActivePlayer.TOnVoteMap|TOnVoteMap]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TOnVoteMapEvent]]</td><td>RW</td></tr>
 
   <tr><td>property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]]</td><td>RW</td></tr>
 
   <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.OnSpeak|OnSpeak]]: [[TOnSpeakEvent]]</td><td>RW</td></tr>
   <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[TActivePlayer.TOnCommand|TOnCommand]]</td><td>RW</td></tr>
+
   <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[TOnCommandEvent]]</td><td>RW</td></tr>
 
   </table>
 
   </table>
 
</code>
 
</code>
 
[[Category:Classes]]
 
[[Category:Classes]]

Revision as of 16:38, 1 July 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
function Kick: 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)
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]: BooleanW
property OnFlagGrab: TOnFlagGrabEventRW
property OnFlagReturn: TOnFlagReturnEventRW
property OnFlagScore: TOnFlagScoreEventRW
property OnBeforeRespawn: TOnBeforeRespawnEventRW
property OnAfterRespawn: TOnAfterRespawnEventRW
property OnDamage: TOnDamageEventRW
property OnKill: TOnKillEventRW
property OnWeaponChange: TOnWeaponChangeEventRW
property OnVoteMapStart: TOnVoteMapStartEventRW
property OnVoteKickStart: TOnVoteKickStartEventRW
property OnVoteMap: TOnVoteMapEventRW
property OnVoteKick: TOnVoteKickRW
property OnSpeak: TOnSpeakEventRW
property OnCommand: TOnCommandEventRW