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