ValvePython / csgo

🔫 Python package for interacting with CS:GO Game Coordinator

Home Page:http://csgo.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to get info about prime?

OliverTrust opened this issue · comments

Can't find any cs gc msg with this info

commented

Data is accessible on

message CSOEconGameAccountClient {
optional uint32 additional_backpack_slots = 1 [default = 0];
optional fixed32 bonus_xp_timestamp_refresh = 12;
optional uint32 bonus_xp_usedflags = 13;
optional uint32 elevated_state = 14;
optional uint32 elevated_timestamp = 15;
}

See https://csgo.readthedocs.io/en/stable/csgo.features.sharedobjects.html

There is an enum to help decode the values, but its probably not up to date:

class EXPBonusFlag(IntEnum):
EarnedXpThisPeriod = 1 << 0
FirstReward = 1 << 1
Msg_YourReportGotConvicted = 1 << 2
Msg_YouPartiedWithCheaters = 1 << 3
PrestigeEarned = 1 << 4
ChinaGovernmentCert = 1 << 5
OverwatchBonus = 1 << 28
BonusBoostConsumed = 1 << 29
ReducedGain = 1 << 30

The reversed code from previous comments mentions how to check for prime.

Thank you for fast help