Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _POWERUP_H_
  2. #define _POWERUP_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. extern tGot_proc* gGot_procs[34];
  8. extern tLose_proc* gLose_procs[34];
  9. extern tPeriodic_proc* gPeriodic_procs[34];
  10. extern tU32* gReal_render_palette;
  11. extern char* gFizzle_names[3];
  12. extern br_vector3 gZero_v__powerup; // suffix added to avoid duplicate symbol
  13. extern int gPed_harvest_sounds[4];
  14. extern tHeadup_icon gIcon_list[20];
  15. extern br_pixelmap* gFizzle_in[3];
  16. extern int gNumber_of_powerups;
  17. extern int gFizzle_height;
  18. extern int gNumber_of_icons;
  19. extern tPowerup* gPowerup_array;
  20.  
  21. void LosePowerupX(tPowerup* pThe_powerup, int pTell_net_players);
  22.  
  23. void LosePowerup(tPowerup* pThe_powerup);
  24.  
  25. void LoseAllSimilarPowerups(tPowerup* pThe_powerup);
  26.  
  27. int GotPowerupX(tCar_spec* pCar, int pIndex, int pTell_net_players, int pDisplay_headup, tU32 pTime_left);
  28.  
  29. int GotPowerup(tCar_spec* pCar, int pIndex);
  30.  
  31. void LoadPowerups(void);
  32.  
  33. void InitPowerups(void);
  34.  
  35. void CloseDownPowerUps(void);
  36.  
  37. void DrawPowerups(tU32 pTime);
  38.  
  39. void DoPowerupPeriodics(tU32 pFrame_period);
  40.  
  41. void GotPowerupN(int pN);
  42.  
  43. void GotPowerup0(void);
  44.  
  45. void GotPowerup1(void);
  46.  
  47. void GotPowerup2(void);
  48.  
  49. void GotPowerup3(void);
  50.  
  51. void GotPowerup4(void);
  52.  
  53. void GotPowerup5(void);
  54.  
  55. void GotPowerup6(void);
  56.  
  57. void GotPowerup7(void);
  58.  
  59. void GotPowerup8(void);
  60.  
  61. void GotPowerup9(void);
  62.  
  63. int GotCredits(tPowerup* pPowerup, tCar_spec* pCar);
  64.  
  65. void ImprovePSPowerup(tCar_spec* pCar, int pIndex);
  66.  
  67. int GotTimeOrPower(tPowerup* pPowerup, tCar_spec* pCar);
  68.  
  69. int SetPedSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  70.  
  71. int SetHades(tPowerup* pPowerup, tCar_spec* pCar);
  72.  
  73. void ResetHades(tPowerup* pPowerup, tCar_spec* pCar);
  74.  
  75. int SetPedSize(tPowerup* pPowerup, tCar_spec* pCar);
  76.  
  77. int SetPedExplode(tPowerup* pPowerup, tCar_spec* pCar);
  78.  
  79. int SetInvulnerability(tPowerup* pPowerup, tCar_spec* pCar);
  80.  
  81. void ResetInvulnerability(tPowerup* pPowerup, tCar_spec* pCar);
  82.  
  83. int SetFreeRepairs(tPowerup* pPowerup, tCar_spec* pCar);
  84.  
  85. void ResetFreeRepairs(tPowerup* pPowerup, tCar_spec* pCar);
  86.  
  87. int SetBlindPedestrians(tPowerup* pPowerup, tCar_spec* pCar);
  88.  
  89. void ResetBlindPedestrians(tPowerup* pPowerup, tCar_spec* pCar);
  90.  
  91. int FreezeTimer(tPowerup* pPowerup, tCar_spec* pCar);
  92.  
  93. void UnfreezeTimer(tPowerup* pPowerup, tCar_spec* pCar);
  94.  
  95. int DoInstantRepair(tPowerup* pPowerup, tCar_spec* pCar);
  96.  
  97. void ResetPedSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  98.  
  99. void ResetPedSize(tPowerup* pPowerup, tCar_spec* pCar);
  100.  
  101. void ResetPedExplode(tPowerup* pPowerup, tCar_spec* pCar);
  102.  
  103. int SetEngineFactor(tPowerup* pPowerup, tCar_spec* pCar);
  104.  
  105. int SetUnderwater(tPowerup* pPowerup, tCar_spec* pCar);
  106.  
  107. int TrashBodywork(tPowerup* pPowerup, tCar_spec* pCar);
  108.  
  109. int TakeDrugs(tPowerup* pPowerup, tCar_spec* pCar);
  110.  
  111. void PaletteFuckedUpByDrugs(br_pixelmap* pPixelmap, int pOffset);
  112.  
  113. void TheEffectsOfDrugs(tPowerup* pPowerup, tU32 pPeriod);
  114.  
  115. int SetOpponentsSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  116.  
  117. int SetCopsSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  118.  
  119. int SetGravity(tPowerup* pPowerup, tCar_spec* pCar);
  120.  
  121. int SetPinball(tPowerup* pPowerup, tCar_spec* pCar);
  122.  
  123. int SetWallclimb(tPowerup* pPowerup, tCar_spec* pCar);
  124.  
  125. int SetBouncey(tPowerup* pPowerup, tCar_spec* pCar);
  126.  
  127. int SetSuspension(tPowerup* pPowerup, tCar_spec* pCar);
  128.  
  129. int SetTyreGrip(tPowerup* pPowerup, tCar_spec* pCar);
  130.  
  131. int SetDamageMultiplier(tPowerup* pPowerup, tCar_spec* pCar);
  132.  
  133. void ResetEngineFactor(tPowerup* pPowerup, tCar_spec* pCar);
  134.  
  135. void ResetUnderwater(tPowerup* pPowerup, tCar_spec* pCar);
  136.  
  137. void PukeDrugsBackUp(tPowerup* pPowerup, tCar_spec* pCar);
  138.  
  139. void ResetOpponentsSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  140.  
  141. void ResetCopsSpeed(tPowerup* pPowerup, tCar_spec* pCar);
  142.  
  143. void ResetGravity(tPowerup* pPowerup, tCar_spec* pCar);
  144.  
  145. void ResetPinball(tPowerup* pPowerup, tCar_spec* pCar);
  146.  
  147. void ResetWallclimb(tPowerup* pPowerup, tCar_spec* pCar);
  148.  
  149. void ResetBouncey(tPowerup* pPowerup, tCar_spec* pCar);
  150.  
  151. void ResetSuspension(tPowerup* pPowerup, tCar_spec* pCar);
  152.  
  153. void ResetDamageMultiplier(tPowerup* pPowerup, tCar_spec* pCar);
  154.  
  155. void ResetTyreGrip(tPowerup* pPowerup, tCar_spec* pCar);
  156.  
  157. int PickAtRandom(tPowerup* pPowerup, tCar_spec* pCar);
  158.  
  159. int PedestrianRespawn(tPowerup* pPowerup, tCar_spec* pCar);
  160.  
  161. int GotVouchers(tPowerup* pPowerup, tCar_spec* pCar);
  162.  
  163. void MungeVouchers(tPowerup* pPowerup, tU32 pPeriod);
  164.  
  165. int SetInstantHandbrake(tPowerup* pPowerup, tCar_spec* pCar);
  166.  
  167. void ResetInstantHandbrake(tPowerup* pPowerup, tCar_spec* pCar);
  168.  
  169. void DoBouncey(tPowerup* pPowerup, tU32 pPeriod);
  170.  
  171. int HitMine(tPowerup* pPowerup, tCar_spec* pCar);
  172.  
  173. int SetMassMultiplier(tPowerup* pPowerup, tCar_spec* pCar);
  174.  
  175. void ResetMassMultiplier(tPowerup* pPowerup, tCar_spec* pCar);
  176.  
  177. int ShowPedestrians(tPowerup* pPowerup, tCar_spec* pCar);
  178.  
  179. void HidePedestrians(tPowerup* pPowerup, tCar_spec* pCar);
  180.  
  181. int SetProximity(tPowerup* pPowerup, tCar_spec* pCar);
  182.  
  183. void ResetProximity(tPowerup* pPowerup, tCar_spec* pCar);
  184.  
  185. int SetPedHarvest(tPowerup* pPowerup, tCar_spec* pCar);
  186.  
  187. void ResetPedHarvest(tPowerup* pPowerup, tCar_spec* pCar);
  188.  
  189. int SetVesuvianCorpses(tPowerup* pPowerup, tCar_spec* pCar);
  190.  
  191. void ResetVesuvianCorpses(tPowerup* pPowerup, tCar_spec* pCar);
  192.  
  193. void ReceivedPowerup(tNet_contents* pContents);
  194.  
  195. void SendCurrentPowerups(void);
  196.  
  197. void LoseAllLocalPowerups(tCar_spec* pCar);
  198.  
  199. // Added by dethrace
  200. void GetPowerupMessage(int pN, char* pMessage);
  201.  
  202. #endif
  203.