C# Класс SharpMod.CounterStrike.PlayerExtensions

Extensions for the Player class for the CounterStrike game mod
Показать файл Открыть проект

Открытые методы

Метод Описание
ClientColorPrint ( this player, SpecialColor specialColor, string text ) : void

Prints some colored text in the chat (yellow, green, special). You can choose the special color in this Version (A fake teammessage is send to the client and afterwards the information is restored).

ClientColorPrint ( this player, string text ) : void

Prints some colored text in the chat (yellow, green, special). Special is the teamcolor (White for Spectator, Red for Terrorist, Blue for CounterTerrorist)

GetActiveWeapon ( this player ) : Weapon

Get's the Entity of the Weapon weared right now by they player

GetAmmo ( this player, WeaponAmmo ammoType ) : int

Gets the ammount of ammo the player carries around.

GetArmorType ( this player ) : ArmorType
GetArmorTypeID ( this player ) : int
GetDeaths ( this player ) : int

Gets the deathcount of a player

GetDefaultScoreBoardAttribute ( this player ) : ScoreAttribute
GetInternalMode ( this player ) : InternalModels
GetMapzoneRaw ( this player ) : int
GetMoney ( this player ) : int

Gets the amount of money a player posesses The actual server side value is returned.

GetTeamColor ( this player ) : SpecialColor
GetTeamEnum ( this player ) : Team
GetTeamID ( this player ) : int
GetTeamString ( this player ) : string
GetVIP ( this player ) : bool
IsInBuyzone ( this player ) : bool
MakeVIP ( this player, bool updateModel, bool updateScoreboard ) : void
SendAmmo ( this player, WeaponAmmo ammoType, byte ammount ) : void
SendAmmo ( this player, WeaponAmmo ammoType, int ammount ) : void
SendMoneyMessage ( this player, int money, bool flash ) : void

Sends a message to the player in order to update the HUD for the money. Only client side is udpated.

SendTeamInfoMessage ( this player, Player playerTeamChange, Team team ) : void
SendTeamInfoMessage ( this player, Team team ) : void
SendWeaponPickupMessage ( this player, Weapons weapon ) : void
SetAmmo ( this player, WeaponAmmo ammoType, int ammount ) : void

Sets the "backpack" ammo ammount, the ammo the players carries around.

SetArmorType ( this player, ArmorType armorType ) : void
SetArmorType ( this player, int armorType ) : void
SetDeaths ( this player, int val ) : void

Sets the deathcount of a player

SetInternalMode ( this player, InternalModels model ) : void
SetMapzoneRaw ( this player, int mapzone ) : void
SetMoney ( this player, int money ) : void

Sets the amount of money a player posesses. Only server side is updated.

SetMoney ( this player, int money, bool flash ) : void

Sets the player money and sends a message to the player to update Both client and server side.

SetVIP ( this player, bool value ) : void
SetVIP ( this player, bool value, bool updateModel, bool updateScoreBoard ) : void
SetWeaponAnimation ( this player, WeaponAnimations animation ) : void
UnmakeVIP ( this player, bool updateModel, bool updateScoreboard, InternalModels newModel ) : void

Описание методов

ClientColorPrint() публичный статический Метод

Prints some colored text in the chat (yellow, green, special). You can choose the special color in this Version (A fake teammessage is send to the client and afterwards the information is restored).
public static ClientColorPrint ( this player, SpecialColor specialColor, string text ) : void
player this /// A player ///
specialColor SpecialColor /// The SpecialColor you want to send ///
text string /// The text you want to send, you can use C#-style arguments like {0} ///
Результат void

ClientColorPrint() публичный статический Метод

Prints some colored text in the chat (yellow, green, special). Special is the teamcolor (White for Spectator, Red for Terrorist, Blue for CounterTerrorist)
public static ClientColorPrint ( this player, string text ) : void
player this /// A player ///
text string /// The text to be printed, C#-style arguments like {0} can be used ///
Результат void

GetActiveWeapon() публичный статический Метод

Get's the Entity of the Weapon weared right now by they player
public static GetActiveWeapon ( this player ) : Weapon
player this /// The player ///
Результат Weapon

GetAmmo() публичный статический Метод

Gets the ammount of ammo the player carries around.
public static GetAmmo ( this player, WeaponAmmo ammoType ) : int
player this /// The player ///
ammoType WeaponAmmo /// The ammo type ///
Результат int

GetArmorType() публичный статический Метод

public static GetArmorType ( this player ) : ArmorType
player this
Результат ArmorType

GetArmorTypeID() публичный статический Метод

public static GetArmorTypeID ( this player ) : int
player this
Результат int

GetDeaths() публичный статический Метод

Gets the deathcount of a player
public static GetDeaths ( this player ) : int
player this /// A player ///
Результат int

GetDefaultScoreBoardAttribute() публичный статический Метод

public static GetDefaultScoreBoardAttribute ( this player ) : ScoreAttribute
player this
Результат ScoreAttribute

GetInternalMode() публичный статический Метод

public static GetInternalMode ( this player ) : InternalModels
player this
Результат InternalModels

GetMapzoneRaw() публичный статический Метод

public static GetMapzoneRaw ( this player ) : int
player this
Результат int

GetMoney() публичный статический Метод

Gets the amount of money a player posesses The actual server side value is returned.
public static GetMoney ( this player ) : int
player this /// Player ///
Результат int

GetTeamColor() публичный статический Метод

public static GetTeamColor ( this player ) : SpecialColor
player this
Результат SpecialColor

GetTeamEnum() публичный статический Метод

public static GetTeamEnum ( this player ) : Team
player this
Результат Team

GetTeamID() публичный статический Метод

public static GetTeamID ( this player ) : int
player this
Результат int

GetTeamString() публичный статический Метод

public static GetTeamString ( this player ) : string
player this
Результат string

GetVIP() публичный статический Метод

public static GetVIP ( this player ) : bool
player this
Результат bool

IsInBuyzone() публичный статический Метод

public static IsInBuyzone ( this player ) : bool
player this
Результат bool

MakeVIP() публичный статический Метод

public static MakeVIP ( this player, bool updateModel, bool updateScoreboard ) : void
player this
updateModel bool
updateScoreboard bool
Результат void

SendAmmo() публичный статический Метод

public static SendAmmo ( this player, WeaponAmmo ammoType, byte ammount ) : void
player this
ammoType WeaponAmmo
ammount byte
Результат void

SendAmmo() публичный статический Метод

public static SendAmmo ( this player, WeaponAmmo ammoType, int ammount ) : void
player this
ammoType WeaponAmmo
ammount int
Результат void

SendMoneyMessage() публичный статический Метод

Sends a message to the player in order to update the HUD for the money. Only client side is udpated.
public static SendMoneyMessage ( this player, int money, bool flash ) : void
player this /// The player ///
money int /// The new amount of money the player shoud posess ///
flash bool /// Enables/disables a flash of the money icon in the HUD ///
Результат void

SendTeamInfoMessage() публичный статический Метод

public static SendTeamInfoMessage ( this player, Player playerTeamChange, Team team ) : void
player this
playerTeamChange Player
team Team
Результат void

SendTeamInfoMessage() публичный статический Метод

public static SendTeamInfoMessage ( this player, Team team ) : void
player this
team Team
Результат void

SendWeaponPickupMessage() публичный статический Метод

public static SendWeaponPickupMessage ( this player, Weapons weapon ) : void
player this
weapon Weapons
Результат void

SetAmmo() публичный статический Метод

Sets the "backpack" ammo ammount, the ammo the players carries around.
public static SetAmmo ( this player, WeaponAmmo ammoType, int ammount ) : void
player this /// the player ///
ammoType WeaponAmmo /// The weaponammo type ///
ammount int
Результат void

SetArmorType() публичный статический Метод

public static SetArmorType ( this player, ArmorType armorType ) : void
player this
armorType ArmorType
Результат void

SetArmorType() публичный статический Метод

public static SetArmorType ( this player, int armorType ) : void
player this
armorType int
Результат void

SetDeaths() публичный статический Метод

Sets the deathcount of a player
public static SetDeaths ( this player, int val ) : void
player this /// A player ///
val int /// The deathcount the player shall have afterwards ///
Результат void

SetInternalMode() публичный статический Метод

public static SetInternalMode ( this player, InternalModels model ) : void
player this
model InternalModels
Результат void

SetMapzoneRaw() публичный статический Метод

public static SetMapzoneRaw ( this player, int mapzone ) : void
player this
mapzone int
Результат void

SetMoney() публичный статический Метод

Sets the amount of money a player posesses. Only server side is updated.
public static SetMoney ( this player, int money ) : void
player this /// The player ///
money int /// The amount of money ///
Результат void

SetMoney() публичный статический Метод

Sets the player money and sends a message to the player to update Both client and server side.
public static SetMoney ( this player, int money, bool flash ) : void
player this /// The player ///
money int /// The amount of money the player will posess afterwards ///
flash bool /// Wether to make the HUD flash(True) or not(False) ///
Результат void

SetVIP() публичный статический Метод

public static SetVIP ( this player, bool value ) : void
player this
value bool
Результат void

SetVIP() публичный статический Метод

public static SetVIP ( this player, bool value, bool updateModel, bool updateScoreBoard ) : void
player this
value bool
updateModel bool
updateScoreBoard bool
Результат void

SetWeaponAnimation() публичный статический Метод

public static SetWeaponAnimation ( this player, WeaponAnimations animation ) : void
player this
animation WeaponAnimations
Результат void

UnmakeVIP() публичный статический Метод

public static UnmakeVIP ( this player, bool updateModel, bool updateScoreboard, InternalModels newModel ) : void
player this
updateModel bool
updateScoreboard bool
newModel InternalModels
Результат void