variables.pwn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. * <summary>Stores a player's game data.</summary>
  3. */
  4. enum _:AC_ePlayer {
  5. /**
  6. * <summary>Player's last known state.</summary>
  7. */
  8. AC_pState,
  9. /**
  10. * <summary>Player's sync status.</summary>
  11. */
  12. AC_pSync,
  13. /**
  14. * <summary>Keeps track of player's sync failures.</summary>
  15. */
  16. AC_pSyncFails[AC_eSync],
  17. /**
  18. * <summary>Stores latest FPS measurements.</summary>
  19. */
  20. AC_pFPS[AC_MAX_FPS_INDEX],
  21. /**
  22. * <summary>Last FPS index used.</summary>
  23. */
  24. AC_pFPSIndex,
  25. /**
  26. * <summary>The time (in ms) when the player was last updated.</summary>
  27. */
  28. AC_pLastUpdate,
  29. /**
  30. * <summary>Player's health.</summary>
  31. */
  32. Float:AC_pHealth,
  33. /**
  34. * <summary>Player's armour.</summary>
  35. */
  36. Float:AC_pArmour,
  37. /**
  38. * <summary>Player's money.</summary>
  39. */
  40. AC_pMoney,
  41. /**
  42. * <summary>The latest time (in ms) when the player died.</summary>
  43. */
  44. AC_pLastDeath,
  45. /**
  46. * <summary>Player's latest known position.</summary>
  47. */
  48. Float:AC_pPos[3],
  49. /**
  50. * <summary>Player's latest known velocity.</summary>
  51. */
  52. Float:AC_pVelocity[3],
  53. /**
  54. * <summary>Player's weapons (ID and ammo).</summary>
  55. * <remarks>Two fields are used instead of a bidimensional array because Pawn doesn't support 4D arrays.</remarks>
  56. */
  57. AC_pWeaponsID[AC_MAX_WEAPON_SLOTS],
  58. AC_pWeaponsAmmo[AC_MAX_WEAPON_SLOTS],
  59. /**
  60. * <summary>Player's special action.</summary>
  61. */
  62. AC_pSpecialAction,
  63. };
  64. /**
  65. * <summary>Stores players' game data.</summary>
  66. */
  67. stock AC_players[MAX_PLAYERS][AC_ePlayer];