kernelle

github.com/kernelle/CSGOSharp Variables

Dec 16th, 2015
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.98 KB | None | 0 0
  1. All data returned from CSGO:
  2.  
  3. - JSON ; string, pure returned json
  4.  
  5. - provider
  6. - name ; string, Will always be "Counter-Strike: Global Offensive"
  7. - appid ; int, Will always be 730
  8. - version ; int, Current game version number (13512 as of this post)
  9. - steamid ; double, player Steam ID in steamID64 format
  10. - timestamp ; double, UNIX time stamp
  11.  
  12. - map
  13. - name ; string, map name in typical format (de_dust2, etc.)
  14. - mode ; string, gamemode (casual, competitive, etc.)
  15. - phase ; string, "warmup", "live", maybe more?
  16. - round ; int, current round number
  17. - team_ct
  18. - score ; int, current team score
  19. - team_t
  20. - score ; int, current team score
  21.  
  22. - round
  23. - phase ; string, "live", "freezetime", "over" (maybe "warmup", others?)
  24. - bomb ; string, "planted", "exploded", or "defused", now has a 0.5 - 4 sec delay
  25. - win_team ; string, "CT" or "T"
  26.  
  27. - player
  28. - steamid ; double, steamid in steamID64 format
  29. - name ; string, current in-game name
  30. - clan ; string, clan tag of player
  31. - activity ; string, "menu", "playing", "textinput" (console)
  32. - team ; string, "CT" or "T"
  33.  
  34. - state
  35. - health ; int, 0-100, current HP
  36. - armor ; int, 0-100, current armor
  37. - helmet ; bool, true/false if they have helm armor
  38. - flashed ; int, 0-255 depending on how flashed the player is
  39. - smoked ; same as above, but for smoke
  40. - burning ; same as above, but for fire
  41. - money ; int, current money
  42. - round_kills ; int, how many kills the player got in that round
  43. - round_killhs ; int, how many headshot kills the player got
  44.  
  45. - weapons ; List<Weapon>()
  46. - name ; weapon name
  47. - paintkit ; appears to be an internally used skin name, or "default" if none
  48. - type ; "Knife", "Pistol", "Submachine Gun", etc.
  49. - state ; "holstered" or "active"
  50. - ammo_clip ; int, amount of current ammo in clip
  51. - ammo_clip_max ; int, max amount of ammo a clip can hold
  52. - ammo_reserve ; int, amount of reserve ammo, not in clip
  53.  
  54.  
  55. - match_stats
  56. - kills ; int, total kills
  57. - assists ; int, total assists
  58. - deaths ; int, total deaths
  59. - mvps ; int, number of MVPs
  60. - score ; int, current score
  61.  
  62. - players ;List<Player>() (Is null when playing yourself, also some player values are always null. Only updates in casual once, on death of you)
  63. - name ; string, current in-game name
  64. - team ; string, "CT" or "T"
  65. - clan ; string, clan tag of player
  66.  
  67. - state
  68. - health ; int, 0-100, current HP
  69. - armor ; int, 0-100, current armor
  70. - helmet ; bool, true/false if they have helm armor
  71. - flashed ; int, 0-255 depending on how flashed the player is
  72. - smoked ; same as above, but for smoke
  73. - burning ; same as above, but for fire
  74. - money ; int, current money
  75. - round_kills ; int, how many kills the player got in that round
  76. - round_killhs ; int, how many headshot kills the player got
  77.  
  78. - match_stats
  79. - kills ; int, total kills
  80. - assists ; int, total assists
  81. - deaths ; int, total deaths
  82. - mvps ; int, number of MVPs
  83. - score ; int, current score
  84.  
  85. Extra processed data:
  86.  
  87. - playerNames ; List<string>, list of playernames of players list.
  88.  
  89. - timers ; List<Timers>(), list an object of Timers
  90. - name ; string, name of the current game-mode, "competitive" & "casual"
  91. - freeze ; int, length of the freezetime, 15 & 5
  92. - roundMin ; int, length of the round minutes, 1 & 2
  93. - roundSec ; int, length of the round seconds, 55 & 15
  94. - bomb ; int, length of the bomd timer, 41 & 41
  95. - endround ; int, length of the time at the end of a round, 7 & 9
  96.  
  97. - freeze ; bool, If freezetime is active
  98.  
  99. - live ; bool, If the game is live, as in, you are playing
  100.  
  101. - planted ; bool, When the bomb is planted
  102.  
  103. - listLoaded ; bool, Use this bool to check if the lists players and playerNames are filled. If you don't it can cause errors because we are reading/editing these lists in different threads.
  104.  
  105. - min ; int, minutes remaining
  106.  
  107. - sec ; int, seconds remaining
  108.  
  109. - subtime ; int, Counts the recieved POST's between timestamps.
  110.  
  111. - dumpPlayerIndex ; int, determines string dumpSelectedBuffer.
  112.  
  113. - timeString ; string, time formatted in 0:00
  114.  
  115. - kitornot ; string, Returns a printable version if you would need a kit to defuse. (Currently there is no way to know if current player has a kit) T-5s = "RUN", T-10s = "KIT",T>10s = "No Kit"
  116.  
  117. - dumpSelectedBuffer ; string, Dump all variables from players[dumpPlayerIndex] in printable string , for debugging.
  118.  
  119. - dumpCurrentPLayer ; string, Dump all variables from current player in printable string, for debugging.
  120.  
  121. - dumpServerStats ; string, Dump all variables from current server in printable string, for debugging.
Advertisement
Add Comment
Please, Sign In to add comment