rakijah / CSGSI

A simple C# library to interface with Counter-Strike: Global Offensive's Game State Integration
Other
129 stars 27 forks source link

So do you guys know how to properly do the average damage per round? #19

Closed rapz closed 6 years ago

rapz commented 6 years ago

How to fetch this kinda info? I saw that inside the code is just some randomness generation

Is this the most detailed GSI output possible?

{ "provider":{
"name":"Counter-Strike: Global Offensive", "appid":730, "version":13616, "steamid":"76561197989040134", "timestamp":1512022104 }, "map":{
"mode":"competitive", "name":"de_cbble", "phase":"live", "round":1, "team_ct":{
"score":1, "name":"FURIA!", "flag":"BR", "timeouts_remaining":1, "matches_won_this_series":0 }, "team_t":{
"score":0, "name":"oNe", "flag":"BR", "timeouts_remaining":1, "matches_won_this_series":0 }, "num_matches_to_win_series":0, "current_spectators":1, "souvenirs_total":0 }, "round":{
"phase":"freezetime" }, "player":{
"steamid":"76561198066701530", "clan":"oNe ∙", "name":"iDk", "observer_slot":0, "team":"T", "activity":"playing", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "smoked":0, "burning":0, "money":2700, "round_kills":0, "round_killhs":0, "equip_value":200 } }, "allplayers":{
"76561198002284085":{
"name":"FURIA! bLdV-", "observer_slot":1, "team":"CT", "state":{
"health":100, "armor":97, "helmet":false, "flashed":0, "burning":0, "money":4850, "round_kills":0, "round_killhs":0, "equip_value":850 }, "match_stats":{
"kills":1, "assists":2, "deaths":0, "mvps":0, "score":4 }, "weapons":{
"weapon_0":{
"name":"weapon_knife", "paintkit":"default", "type":"Knife", "state":"active" }, "weapon_1":{
"name":"weapon_usp_silencer", "paintkit":"default", "type":"Pistol", "ammo_clip":12, "ammo_clip_max":12, "ammo_reserve":24, "state":"holstered" } }, "position":"-2280.00, -1696.00, -24.08" }, "76561197996321741":{
"clan":"oNe ∙", "name":"Maluk3", "observer_slot":6, "team":"T", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":1500, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":0, "assists":0, "deaths":1, "mvps":0, "score":0 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_butterfly", "paintkit":"am_zebra", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_glock", "paintkit":"am_nuclear_pattern1_glock", "type":"Pistol", "ammo_clip_max":20, "ammo_reserve":120, "state":"active" } }, "position":"-498.00, 2184.00, -223.72" }, "76561198164970560":{
"name":"FURIA! yuurih", "observer_slot":2, "team":"CT", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":3350, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":0, "assists":0, "deaths":1, "mvps":0, "score":0 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_karambit", "paintkit":"am_sapphire_marbleized", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_usp_silencer", "paintkit":"default", "type":"Pistol", "ammo_clip":12, "ammo_clip_max":12, "ammo_reserve":24, "state":"active" } }, "position":"-2360.00, -1656.00, -20.92" }, "76561197987300415":{
"name":"FURIA! sparticcho", "observer_slot":3, "team":"CT", "state":{
"health":100, "armor":100, "helmet":false, "flashed":0, "burning":0, "money":3350, "round_kills":0, "round_killhs":0, "equip_value":850 }, "match_stats":{
"kills":0, "assists":1, "deaths":0, "mvps":0, "score":1 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_butterfly", "paintkit":"am_zebra", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_usp_silencer", "paintkit":"aq_usp_stainless", "type":"Pistol", "ammo_clip":12, "ammo_clip_max":12, "ammo_reserve":24, "state":"active" } }, "position":"-2208.00, -1648.00, -20.57" }, "76561197996370184":{
"name":"FURIA! VINI", "observer_slot":4, "team":"CT", "state":{
"health":100, "armor":91, "helmet":false, "flashed":0, "burning":0, "money":6350, "round_kills":0, "round_killhs":0, "equip_value":850 }, "match_stats":{
"kills":2, "assists":0, "mvps":1, "score":4 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_karambit", "paintkit":"default", "type":"Knife", "state":"active" }, "weapon_1":{
"name":"weapon_usp_silencer", "paintkit":"cu_usp_elegant", "type":"Pistol", "ammo_clip":12, "ammo_clip_max":12, "ammo_reserve":24, "state":"holstered" } }, "position":"-2384.00, -1577.00, -16.80" }, "76561197965021087":{
"name":"FURIA! guerri", "observer_slot":5, "team":"CT", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":4850, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":1, "assists":0, "deaths":1, "mvps":0, "score":2 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_karambit", "paintkit":"am_marble_fade", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_usp_silencer", "paintkit":"cu_usp_cyrex", "type":"Pistol", "ammo_clip":12, "ammo_clip_max":12, "ammo_reserve":24, "state":"active" } }, "position":"-2192.00, -1577.00, -14.56" }, "76561198034379704":{
"clan":"oNe ∙", "name":"trk", "observer_slot":7, "team":"T", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":3000, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":1, "assists":0, "deaths":1, "mvps":0, "score":2 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_t", "paintkit":"default", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_glock", "paintkit":"cu_glock_indigo", "type":"Pistol", "ammo_clip":20, "ammo_clip_max":20, "ammo_reserve":120, "state":"holstered" }, "weapon_2":{
"name":"weapon_c4", "paintkit":"default", "type":"C4", "state":"active" } }, "position":"-746.00, 2324.00, -182.76" }, "76561197974487712":{
"clan":"oNe ∙", "name":"mch", "observer_slot":8, "team":"T", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":1500, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":0, "assists":0, "deaths":1, "mvps":0, "score":0 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_karambit", "paintkit":"aa_fade", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_glock", "paintkit":"default", "type":"Pistol", "ammo_clip":20, "ammo_clip_max":20, "ammo_reserve":120, "state":"active" } }, "position":"-722.00, 2424.00, -189.49" }, "76561197988396483":{
"clan":"oNe ∙", "name":"caik3", "observer_slot":9, "team":"T", "state":{
"health":100, "armor":0, "flashed":0, "burning":0, "money":1500, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":0, "assists":0, "deaths":1, "mvps":0, "score":0 }, "weapons":{
"weapon_0":{
"name":"weapon_bayonet", "paintkit":"default", "type":"Knife", "state":"holstered" }, "weapon_1":{
"name":"weapon_glock", "paintkit":"gs_glock18_award", "type":"Pistol", "ammo_clip":20, "ammo_clip_max":20, "ammo_reserve":120, "state":"active" } }, "position":"-626.00, 2200.00, -207.72" }, "76561198066701530":{
"clan":"oNe ∙", "name":"iDk", "observer_slot":0, "team":"T", "state":{
"health":100, "armor":0, "helmet":false, "flashed":0, "burning":0, "money":2700, "round_kills":0, "round_killhs":0, "equip_value":200 }, "match_stats":{
"kills":0, "assists":0, "deaths":1, "mvps":0, "score":0 }, "weapons":{
"weapon_0":{
"name":"weapon_knife_m9_bayonet", "paintkit":"aq_damascus_90", "type":"Knife", "state":"active" }, "weapon_1":{
"name":"weapon_glock", "paintkit":"hy_craquelure", "type":"Pistol", "ammo_clip":20, "ammo_clip_max":20, "ammo_reserve":120, "state":"holstered" } }, "position":"-774.00, 2216.00, -177.94" } }, "phase_countdowns":{
"phase":"freezetime", "phase_ends_in":"17.5" }, "auth":{
"token":"Q79v5tcxVQ8u" } }