Difference between revisions of "TActivePlayer"
m (→Description) |
|||
(20 intermediate revisions by 6 users not shown) | |||
Line 11: | Line 11: | ||
==Members== | ==Members== | ||
− | + | ||
− | + | {| class="wikitable" | |
− | + | ! Member declaration !! Access mode !! Inherited !! SS Version | |
− | + | |- | |
− | + | | function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | function [[TActivePlayer.Kick|Kick]](Reason: TKickReason): Boolean || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.Say|Say]](Text: string) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]]) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.ForwardTo|ForwardTo]](TargetIP: string; TargetPort: Word; Message: string) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.Move|Move]](X, Y: Single) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.Tell|Tell]](Text: string) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.WriteConsole|WriteConsole]](Text: string; Color: Longint) || align="center" | || align="center" | no | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.WorldText|WorldText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single) || || || 2.7.8.b1 | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.SetVelocity|SetVelocity]](VelX, VelY: Single) || || || 2.7.8.b1 | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.RequestDiscordToken|RequestDiscordToken]] || || || 2.8.2 | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.PlaySound|PlaySound]](Name: string; X, Y: Single) || || || 2.8.2 | |
− | + | |- | |
− | + | | procedure [[TActivePlayer.ChangeTeam|ChangeTeam]](NewTeam: Byte; JoinType: TJoinType) || || || 2.8.2 | |
− | + | |- | |
− | + | | colspan="3" | | |
− | + | |- | |
− | + | | property [[TPlayer.Name|Name]]: string || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.Health|Health]]: Single || align="center" | RW || align="center" | yes || writable since 2.8.2 | |
− | + | |- | |
− | + | | property [[TPlayer.Vest|Vest]]: Single || align="center" | RW || align="center" | yes || writable since 2.8.2 | |
− | + | |- | |
− | + | | property [[TPlayer.Primary|Primary]]: [[TPlayerWeapon]] || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.Secondary|Secondary]]: [[TPlayerWeapon]] || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.ShirtColor|ShirtColor]]: Longword || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.PantsColor|PantsColor]]: Longword || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.SkinColor|SkinColor]]: Longword || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.HairColor|HairColor]]: Longword || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.FavouriteWeapon|FavouriteWeapon]]: string || align="center" | RW || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.ChosenSecondaryWeapon|ChosenSecondaryWeapon]]: Byte || align="center" | R || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.Friend|Friend]]: string || align="center" | RW || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.Accuracy|Accuracy]]: Byte || align="center" | RW || align="center" | yes | |
− | + | |- | |
− | + | | property [[TPlayer.ShootDead|ShootDead]]: Boolean || align="center" | RW || align="center" | yes | |
− | + | |- | |
− | [[Category: | + | | property [[TPlayer.GrenadeFrequency|GrenadeFrequency]]: Byte || align="center" | RW || align="center" | yes |
+ | |- | ||
+ | | property [[TPlayer.Camping|Camping]]: Boolean || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.OnStartUse|OnStartUse]]: Byte || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.HairStyle|HairStyle]]: Byte || align="center" | R || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.Headgear|Headgear]]: Byte || align="center" | R || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.Chain|Chain]]: Byte || align="center" | R || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatFrequency|ChatFrequency]]: Byte || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatKill|ChatKill]]: string || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatDead|ChatDead]]: string || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatLowHealth|ChatLowHealth]]: string || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatSeeEnemy|ChatSeeEnemy]]: string || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.ChatWinning|ChatWinning]]: string || align="center" | RW || align="center" | yes | ||
+ | |- | ||
+ | | property [[TPlayer.Dummy|Dummy]]: Boolean || align="center" | RW || align="center" | yes || writable since 2.8.2 | ||
+ | |- | ||
+ | | property [[TActivePlayer.ID|ID]]: Byte || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Team|Team]]: Byte || align="center" | RW || align="center" | yes (modif.) | ||
+ | |- | ||
+ | | property [[TActivePlayer.Alive|Alive]]: Boolean || align="center" | R || align="center" | yes (modif.) | ||
+ | |- | ||
+ | | property [[TActivePlayer.Kills|Kills]]: Integer || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Deaths|Deaths]]: Integer || align="center" | RW || align="center" | no || W since 2.8.1 | ||
+ | |- | ||
+ | | property [[TActivePlayer.Ping|Ping]]: Integer || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Active|Active]]: Boolean || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.IP|IP]]: string || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Port|Port]]: Word || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.VelX|VelX]]: Single || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.VelY|VelY]]: Single || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Muted|Muted]]: Boolean || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Jets|Jets]]: Integer || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Grenades|Grenades]]: Byte || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.X|X]]: Single || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Y|Y]]: Single || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Flagger|Flagger]]: Boolean || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Time|Time]]: Integer || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnGround|OnGround]]: Boolean || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.IsProne|IsProne]]: Boolean || align="center" | R || align="center" | no || 2.7.9 | ||
+ | |- | ||
+ | | property [[TActivePlayer.Human|Human]]: Boolean || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Direction|Direction]]: Shortint || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.Flags|Flags]]: Byte || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.HWID|HWID]]: string || align="center" | R || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.SteamID|SteamID]]: Int64 || align="center" | R || align="center" | no || 2.8.2 | ||
+ | |- | ||
+ | | property [[TActivePlayer.SteamIDString|SteamIDString]]: string || align="center" | R || align="center" | no || 2.8.2 | ||
+ | |- | ||
+ | | property [[TActivePlayer.IsAdmin|IsAdmin]]: Boolean || align="center" | RW || align="center" | no || 2.7.8.b1 | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyUp|KeyUp]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyLeft|KeyLeft]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyRight|KeyRight]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyShoot|KeyShoot]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyJetpack|KeyJetpack]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyGrenade|KeyGrenade]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyChangeWeap|KeyChangeWeap]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyThrow|KeyThrow]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyFlagThrow|KeyFlagThrow]]: Boolean || align="center" | ?? || align="center" | no || 2.8.0 | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyReload|KeyReload]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyCrouch|KeyCrouch]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.KeyProne|KeyProne]]: Boolean || align="center" | RW* || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.MouseAimX|MouseAimX]]: SmallInt || align="center" | RW* || align="center" | no || 2.7.9 | ||
+ | |- | ||
+ | | property [[TActivePlayer.MouseAimY|MouseAimY]]: SmallInt || align="center" | RW* || align="center" | no || 2.7.9 | ||
+ | |- | ||
+ | | property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean || align="center" | W || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TOnFlagGrabEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TOnFlagReturnEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TOnFlagScoreEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TOnBeforeRespawnEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TOnAfterRespawnEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnDamage|OnDamage]]: [[TOnDamageEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnKill|OnKill]]: [[TOnKillEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TOnWeaponChangeEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TOnVoteMapStartEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TOnVoteKickStartEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TOnVoteMapEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKickEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TOnSpeakEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnCommand|OnCommand]]: [[TOnCommandEvent]] || align="center" | RW || align="center" | no | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnKitPickup|OnKitPickup]]: [[TOnKitPickupEvent]] || align="center" | RW || align="center" | no || 2.7.8.b1 | ||
+ | |- | ||
+ | | property [[TActivePlayer.OnFlagDrop|OnFlagDrop]]: [[TOnFlagDropEvent]] || align="center" | RW || align="center" | no || 2.7.8.b1 | ||
+ | |} | ||
+ | '''Note''': writing properties marked with "RW*" affects only bots. | ||
+ | |||
+ | [[Category:Classes]][[Category:TPlayer]] |
Latest revision as of 22:10, 6 May 2020
Inheritance
Description
Represents an active player. Accessible trough Players[] array property.
user constructable: NO
user destructable: NO
Members
Member declaration | Access mode | Inherited | SS Version |
---|---|---|---|
function Ban(Time: Integer; Reason: string): Boolean | no | ||
function Kick(Reason: TKickReason): Boolean | no | ||
procedure Say(Text: string) | no | ||
procedure Damage(Shooter: Byte; Damage: Integer) | no | ||
procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer) | no | ||
procedure ForceWeapon(Primary, Secondary: TWeapon) | no | ||
procedure ForwardTo(TargetIP: string; TargetPort: Word; Message: string) | no | ||
procedure GiveBonus(BType: Byte) | no | ||
procedure Move(X, Y: Single) | no | ||
procedure Tell(Text: string) | no | ||
procedure WriteConsole(Text: string; Color: Longint) | no | ||
procedure WorldText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single) | 2.7.8.b1 | ||
procedure SetVelocity(VelX, VelY: Single) | 2.7.8.b1 | ||
procedure RequestDiscordToken | 2.8.2 | ||
procedure PlaySound(Name: string; X, Y: Single) | 2.8.2 | ||
procedure ChangeTeam(NewTeam: Byte; JoinType: TJoinType) | 2.8.2 | ||
property Name: string | R | yes | |
property Health: Single | RW | yes | writable since 2.8.2 |
property Vest: Single | RW | yes | writable since 2.8.2 |
property Primary: TPlayerWeapon | R | yes | |
property Secondary: TPlayerWeapon | R | yes | |
property ShirtColor: Longword | R | yes | |
property PantsColor: Longword | R | yes | |
property SkinColor: Longword | R | yes | |
property HairColor: Longword | R | yes | |
property FavouriteWeapon: string | RW | yes | |
property ChosenSecondaryWeapon: Byte | R | yes | |
property Friend: string | RW | yes | |
property Accuracy: Byte | RW | yes | |
property ShootDead: Boolean | RW | yes | |
property GrenadeFrequency: Byte | RW | yes | |
property Camping: Boolean | RW | yes | |
property OnStartUse: Byte | RW | yes | |
property HairStyle: Byte | R | yes | |
property Headgear: Byte | R | yes | |
property Chain: Byte | R | yes | |
property ChatFrequency: Byte | RW | yes | |
property ChatKill: string | RW | yes | |
property ChatDead: string | RW | yes | |
property ChatLowHealth: string | RW | yes | |
property ChatSeeEnemy: string | RW | yes | |
property ChatWinning: string | RW | yes | |
property Dummy: Boolean | RW | yes | writable since 2.8.2 |
property ID: Byte | R | no | |
property Team: Byte | RW | yes (modif.) | |
property Alive: Boolean | R | yes (modif.) | |
property Kills: Integer | RW | no | |
property Deaths: Integer | RW | no | W since 2.8.1 |
property Ping: Integer | R | no | |
property Active: Boolean | R | no | |
property IP: string | R | no | |
property Port: Word | R | no | |
property VelX: Single | R | no | |
property VelY: Single | R | no | |
property Muted: Boolean | RW | no | |
property Jets: Integer | R | no | |
property Grenades: Byte | R | no | |
property X: Single | R | no | |
property Y: Single | R | no | |
property Flagger: Boolean | R | no | |
property Time: Integer | R | no | |
property OnGround: Boolean | R | no | |
property IsProne: Boolean | R | no | 2.7.9 |
property Human: Boolean | R | no | |
property Direction: Shortint | R | no | |
property Flags: Byte | R | no | |
property HWID: string | R | no | |
property SteamID: Int64 | R | no | 2.8.2 |
property SteamIDString: string | R | no | 2.8.2 |
property IsAdmin: Boolean | RW | no | 2.7.8.b1 |
property KeyUp: Boolean | RW* | no | |
property KeyLeft: Boolean | RW* | no | |
property KeyRight: Boolean | RW* | no | |
property KeyShoot: Boolean | RW* | no | |
property KeyJetpack: Boolean | RW* | no | |
property KeyGrenade: Boolean | RW* | no | |
property KeyChangeWeap: Boolean | RW* | no | |
property KeyThrow: Boolean | RW* | no | |
property KeyFlagThrow: Boolean | ?? | no | 2.8.0 |
property KeyReload: Boolean | RW* | no | |
property KeyCrouch: Boolean | RW* | no | |
property KeyProne: Boolean | RW* | no | |
property MouseAimX: SmallInt | RW* | no | 2.7.9 |
property MouseAimY: SmallInt | RW* | no | 2.7.9 |
property WeaponActive[ID: Byte]: Boolean | W | no | |
property OnFlagGrab: TOnFlagGrabEvent | RW | no | |
property OnFlagReturn: TOnFlagReturnEvent | RW | no | |
property OnFlagScore: TOnFlagScoreEvent | RW | no | |
property OnBeforeRespawn: TOnBeforeRespawnEvent | RW | no | |
property OnAfterRespawn: TOnAfterRespawnEvent | RW | no | |
property OnDamage: TOnDamageEvent | RW | no | |
property OnKill: TOnKillEvent | RW | no | |
property OnWeaponChange: TOnWeaponChangeEvent | RW | no | |
property OnVoteMapStart: TOnVoteMapStartEvent | RW | no | |
property OnVoteKickStart: TOnVoteKickStartEvent | RW | no | |
property OnVoteMap: TOnVoteMapEvent | RW | no | |
property OnVoteKick: TOnVoteKickEvent | RW | no | |
property OnSpeak: TOnSpeakEvent | RW | no | |
property OnCommand: TOnCommandEvent | RW | no | |
property OnKitPickup: TOnKitPickupEvent | RW | no | 2.7.8.b1 |
property OnFlagDrop: TOnFlagDropEvent | RW | no | 2.7.8.b1 |
Note: writing properties marked with "RW*" affects only bots.