Guest User

Untitled

a guest
May 27th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. #ifndef SERVER_CONTENT_HEADER
  2. #define SERVER_CONTENT_HEADER
  3. struct SOUND
  4. {
  5. int m_Id;
  6. const char* m_pFilename;
  7. };
  8. struct SOUNDSET
  9. {
  10. const char* m_pName;
  11. int m_NumSounds;
  12. SOUND *m_aSounds;
  13. int m_Last;
  14. };
  15. struct IMAGE
  16. {
  17. const char* m_pName;
  18. const char* m_pFilename;
  19. int m_Id;
  20. };
  21. struct SPRITESET
  22. {
  23. IMAGE* m_pImage;
  24. int m_Gridx;
  25. int m_Gridy;
  26. };
  27. struct SPRITE
  28. {
  29. const char* m_pName;
  30. SPRITESET* m_pSet;
  31. int m_X;
  32. int m_Y;
  33. int m_W;
  34. int m_H;
  35. };
  36. struct PICKUPSPEC
  37. {
  38. const char* m_pName;
  39. int m_Respawntime;
  40. int m_Spawndelay;
  41. };
  42. struct ANIM_KEYFRAME
  43. {
  44. float m_Time;
  45. float m_X;
  46. float m_Y;
  47. float m_Angle;
  48. };
  49. struct ANIM_SEQUENCE
  50. {
  51. int m_NumFrames;
  52. ANIM_KEYFRAME *m_aFrames;
  53. };
  54. struct ANIMATION
  55. {
  56. const char* m_pName;
  57. ANIM_SEQUENCE m_Body;
  58. ANIM_SEQUENCE m_BackFoot;
  59. ANIM_SEQUENCE m_FrontFoot;
  60. ANIM_SEQUENCE m_Attach;
  61. };
  62. struct WEAPONSPEC
  63. {
  64. const char* m_pName;
  65. SPRITE* m_pSpriteBody;
  66. SPRITE* m_pSpriteCursor;
  67. SPRITE* m_pSpriteProj;
  68. int m_NumSpriteMuzzles;
  69. SPRITE* *m_aSpriteMuzzles;
  70. int m_VisualSize;
  71. int m_Firedelay;
  72. int m_Maxammo;
  73. int m_Ammoregentime;
  74. int m_Damage;
  75. float m_Offsetx;
  76. float m_Offsety;
  77. float m_Muzzleoffsetx;
  78. float m_Muzzleoffsety;
  79. float m_Muzzleduration;
  80. };
  81. struct WEAPONSPEC_HAMMER
  82. {
  83. WEAPONSPEC* m_pBase;
  84. };
  85. struct WEAPONSPEC_GUN
  86. {
  87. WEAPONSPEC* m_pBase;
  88. float m_Curvature;
  89. float m_Speed;
  90. float m_Lifetime;
  91. };
  92. struct WEAPONSPEC_SHOTGUN
  93. {
  94. WEAPONSPEC* m_pBase;
  95. float m_Curvature;
  96. float m_Speed;
  97. float m_Speeddiff;
  98. float m_Lifetime;
  99. };
  100. struct WEAPONSPEC_GRENADE
  101. {
  102. WEAPONSPEC* m_pBase;
  103. float m_Curvature;
  104. float m_Speed;
  105. float m_Lifetime;
  106. };
  107. struct WEAPONSPEC_RIFLE
  108. {
  109. WEAPONSPEC* m_pBase;
  110. float m_Reach;
  111. int m_BounceDelay;
  112. int m_BounceNum;
  113. float m_BounceCost;
  114. };
  115. struct WEAPONSPEC_NINJA
  116. {
  117. WEAPONSPEC* m_pBase;
  118. int m_Duration;
  119. int m_Movetime;
  120. int m_Velocity;
  121. };
  122. struct WEAPONSPECS
  123. {
  124. WEAPONSPEC_HAMMER m_Hammer;
  125. WEAPONSPEC_HAMMER m_Gun;
  126. WEAPONSPEC_SHOTGUN m_Shotgun;
  127. WEAPONSPEC_GRENADE m_Grenade;
  128. WEAPONSPEC_RIFLE m_Rifle;
  129. WEAPONSPEC_NINJA m_Ninja;
  130. int m_NumId;
  131. WEAPONSPEC *m_aId;
  132. };
  133. struct DATACONTAINER
  134. {
  135. int m_NumSounds;
  136. SOUNDSET *m_aSounds;
  137. int m_NumImages;
  138. IMAGE *m_aImages;
  139. int m_NumPickups;
  140. PICKUPSPEC *m_aPickups;
  141. int m_NumSpritesets;
  142. SPRITESET *m_aSpritesets;
  143. int m_NumSprites;
  144. SPRITE *m_aSprites;
  145. int m_NumAnimations;
  146. ANIMATION *m_aAnimations;
  147. WEAPONSPECS m_Weapons;
  148. };
  149. extern DATACONTAINER *g_pData;
  150. enum
  151. {
  152. IMAGE_NULL=0,
  153. IMAGE_GAME,
  154. IMAGE_PARTICLES,
  155. IMAGE_CURSOR,
  156. IMAGE_BANNER,
  157. IMAGE_EMOTICONS,
  158. IMAGE_BROWSEICONS,
  159. IMAGE_CONSOLE_BG,
  160. IMAGE_CONSOLE_BAR,
  161. NUM_IMAGES
  162. };
  163. enum
  164. {
  165. ANIM_BASE=0,
  166. ANIM_IDLE,
  167. ANIM_INAIR,
  168. ANIM_WALK,
  169. ANIM_HAMMER_SWING,
  170. ANIM_NINJA_SWING,
  171. NUM_ANIMS
  172. };
  173. enum
  174. {
  175. SPRITE_PART_SLICE=0,
  176. SPRITE_PART_BALL,
  177. SPRITE_PART_SPLAT01,
  178. SPRITE_PART_SPLAT02,
  179. SPRITE_PART_SPLAT03,
  180. SPRITE_PART_SMOKE,
  181. SPRITE_PART_SHELL,
  182. SPRITE_PART_EXPL01,
  183. SPRITE_PART_AIRJUMP,
  184. SPRITE_HEALTH_FULL,
  185. SPRITE_HEALTH_EMPTY,
  186. SPRITE_ARMOR_FULL,
  187. SPRITE_ARMOR_EMPTY,
  188. SPRITE_STAR1,
  189. SPRITE_STAR2,
  190. SPRITE_STAR3,
  191. SPRITE_PART1,
  192. SPRITE_PART2,
  193. SPRITE_PART3,
  194. SPRITE_PART4,
  195. SPRITE_PART5,
  196. SPRITE_PART6,
  197. SPRITE_PART7,
  198. SPRITE_PART8,
  199. SPRITE_PART9,
  200. SPRITE_WEAPON_GUN_BODY,
  201. SPRITE_WEAPON_GUN_CURSOR,
  202. SPRITE_WEAPON_GUN_PROJ,
  203. SPRITE_WEAPON_GUN_MUZZLE1,
  204. SPRITE_WEAPON_GUN_MUZZLE2,
  205. SPRITE_WEAPON_GUN_MUZZLE3,
  206. SPRITE_WEAPON_SHOTGUN_BODY,
  207. SPRITE_WEAPON_SHOTGUN_CURSOR,
  208. SPRITE_WEAPON_SHOTGUN_PROJ,
  209. SPRITE_WEAPON_SHOTGUN_MUZZLE1,
  210. SPRITE_WEAPON_SHOTGUN_MUZZLE2,
  211. SPRITE_WEAPON_SHOTGUN_MUZZLE3,
  212. SPRITE_WEAPON_GRENADE_BODY,
  213. SPRITE_WEAPON_GRENADE_CURSOR,
  214. SPRITE_WEAPON_GRENADE_PROJ,
  215. SPRITE_WEAPON_HAMMER_BODY,
  216. SPRITE_WEAPON_HAMMER_CURSOR,
  217. SPRITE_WEAPON_HAMMER_PROJ,
  218. SPRITE_WEAPON_NINJA_BODY,
  219. SPRITE_WEAPON_NINJA_CURSOR,
  220. SPRITE_WEAPON_NINJA_PROJ,
  221. SPRITE_WEAPON_RIFLE_BODY,
  222. SPRITE_WEAPON_RIFLE_CURSOR,
  223. SPRITE_WEAPON_RIFLE_PROJ,
  224. SPRITE_HOOK_CHAIN,
  225. SPRITE_HOOK_HEAD,
  226. SPRITE_WEAPON_NINJA_MUZZLE1,
  227. SPRITE_WEAPON_NINJA_MUZZLE2,
  228. SPRITE_WEAPON_NINJA_MUZZLE3,
  229. SPRITE_PICKUP_HEALTH,
  230. SPRITE_PICKUP_ARMOR,
  231. SPRITE_PICKUP_WEAPON,
  232. SPRITE_PICKUP_NINJA,
  233. SPRITE_FLAG_BLUE,
  234. SPRITE_FLAG_RED,
  235. SPRITE_TEE_BODY,
  236. SPRITE_TEE_BODY_OUTLINE,
  237. SPRITE_TEE_FOOT,
  238. SPRITE_TEE_FOOT_OUTLINE,
  239. SPRITE_TEE_HAND,
  240. SPRITE_TEE_HAND_OUTLINE,
  241. SPRITE_TEE_EYE_NORMAL,
  242. SPRITE_TEE_EYE_ANGRY,
  243. SPRITE_TEE_EYE_PAIN,
  244. SPRITE_TEE_EYE_HAPPY,
  245. SPRITE_TEE_EYE_DEAD,
  246. SPRITE_TEE_EYE_SURPRISE,
  247. SPRITE_OOP,
  248. SPRITE_EXCLAMATION,
  249. SPRITE_HEARTS,
  250. SPRITE_DROP,
  251. SPRITE_DOTDOT,
  252. SPRITE_MUSIC1,
  253. SPRITE_MUSIC2,
  254. SPRITE_GHOST,
  255. SPRITE_SUSHI,
  256. SPRITE_SPLATTEE,
  257. SPRITE_DEVILTEE,
  258. SPRITE_ZOMG,
  259. SPRITE_ZZZ,
  260. SPRITE_BLANK1,
  261. SPRITE_DEADTEE,
  262. SPRITE_BLANK2,
  263. SPRITE_BROWSE_LOCK,
  264. SPRITE_BROWSE_HEART,
  265. SPRITE_BROWSE_UNPURE,
  266. NUM_SPRITES
  267. };
  268. #endif
Add Comment
Please, Sign In to add comment