@@ -36,7 +36,7 @@ type Player struct {
3636 Inventory map [int ]* Equipment // All weapons / equipment the player is currently carrying
3737 AmmoLeft [32 ]int // Ammo left for special weapons (e.g. grenades), index corresponds Equipment.AmmoType
3838 Entity st.IEntity // May be nil between player-death and re-spawn
39- AdditionalPlayerInformation * AdditionalPlayerInformation // Mostly scoreboard information such as kills, deaths, etc.
39+ AdditionalInformation * AdditionalPlayerInformation // Mostly scoreboard information such as kills, deaths, etc.
4040 ViewDirectionX float32 // Yaw in degrees, 0 to 360
4141 ViewDirectionY float32 // Pitch in degrees, 270 to 90 (270=-90)
4242 FlashDuration float32 // Blindness duration from the flashbang currently affecting the player (seconds)
@@ -194,20 +194,6 @@ func (p *Player) IsScoped() bool {
194194 return p .Entity .FindProperty ("m_bIsScoped" ).Value ().IntVal == 1
195195}
196196
197- // CashSpentThisRound returns the amount of cash the player spent in the current round.
198- //
199- // Deprecated, use Player.AdditionalPlayerInformation.CashSpentThisRound instead.
200- func (p * Player ) CashSpentThisRound () int {
201- return p .AdditionalPlayerInformation .CashSpentThisRound
202- }
203-
204- // CashSpentTotal returns the amount of cash the player spent during the whole game up to the current point.
205- //
206- // Deprecated, use Player.AdditionalPlayerInformation.TotalCashSpent instead.
207- func (p * Player ) CashSpentTotal () int {
208- return p .AdditionalPlayerInformation .TotalCashSpent
209- }
210-
211197// IsControllingBot returns true if the player is currently controlling a bot.
212198// See also ControlledBot().
213199func (p * Player ) IsControllingBot () bool {
@@ -239,7 +225,7 @@ type AdditionalPlayerInformation struct {
239225 MVPs int
240226 Ping int
241227 ClanTag string
242- TotalCashSpent int
228+ CashSpentTotal int
243229 CashSpentThisRound int
244230}
245231
0 commit comments