Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
jfwgame.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#pragma once
13class JFW_Team_DM_Zone : public ScriptImpClass {
14 bool triggered;
15 void Custom(GameObject *obj,int type,int param,GameObject *sender);
16 void Exited(GameObject *obj,GameObject *exiter);
17 public: void Register_Auto_Save_Variables();
18};
19
20class JFW_Team_DM_Controller : public ScriptImpClass {
21 int deaths;
22 void Created(GameObject *obj);
23 void Custom(GameObject *obj,int type,int param,GameObject *sender);
24 public: void Register_Auto_Save_Variables();
25};
26
27class JFW_Team_DM_Attatched : public ScriptImpClass {
28 void Killed(GameObject *obj,GameObject *killer);
29 void Custom(GameObject *obj,int type,int param,GameObject *sender);
30};
31
32class JFW_Assault_Powerplant_Controller : public ScriptImpClass {
33 bool inzone;
34 void Created(GameObject *obj);
35 void Timer_Expired(GameObject *obj,int number);
36 void Entered(GameObject *obj,GameObject *enterer);
37 void Exited(GameObject *obj,GameObject *exiter);
38 public: void Register_Auto_Save_Variables();
39};
40
41class JFW_Resource_Collector : public ScriptImpClass {
42 int cash;
43 int ID;
44 void Created(GameObject *obj);
45 void Custom(GameObject *obj,int type,int param,GameObject *sender);
46 public: void Register_Auto_Save_Variables();
47};
48
49class JFW_Resource_Refinery : public ScriptImpClass {
50 void Entered(GameObject *obj,GameObject *enterer);
51};
52
53class JFW_Resource_Field : public ScriptImpClass {
54 int ID;
55 void Created(GameObject *obj);
56 void Entered(GameObject *obj,GameObject *enterer);
57 void Exited(GameObject *obj,GameObject *exiter);
58 void Timer_Expired(GameObject *obj,int number);
59 public: void Register_Auto_Save_Variables();
60};
61
62class JFW_Domination_Zone : public ScriptImpClass {
63 unsigned int currentmodelid;
64 bool enabled;
65 int owner;
66 void Created(GameObject *obj);
67 void Entered(GameObject *obj,GameObject *enterer);
68 void Timer_Expired(GameObject *obj,int number);
69 public: void Register_Auto_Save_Variables();
70};
71
72class JFW_Domination_Controler : public ScriptImpClass {
73 int gdizonecount;
74 int nodzonecount;
75 void Created(GameObject *obj);
76 void Custom(GameObject *obj,int type,int param,GameObject *sender);
77 void Timer_Expired(GameObject *obj,int number);
78 public: void Register_Auto_Save_Variables();
79};
80
81class JFW_Iron_Curtain_Zone : public ScriptImpClass {
82 bool enabled;
83 void Created(GameObject *obj);
84 void Killed(GameObject *obj,GameObject *killer);
85 void Entered(GameObject *obj,GameObject *enterer);
86 void Timer_Expired(GameObject *obj,int number);
87 void Custom(GameObject *obj,int type,int param,GameObject *sender);
88 public: void Register_Auto_Save_Variables();
89};
90
91class JFW_Chrono_Controler_Zone : public ScriptImpClass {
92 bool enabled;
93 bool activating;
94 float xpos;
95 float ypos;
96 float zpos;
97 void Created(GameObject *obj);
98 void Custom(GameObject *obj,int type,int param,GameObject *sender);
99 void Killed(GameObject *obj,GameObject *killer);
100 void Entered(GameObject *obj,GameObject *enterer);
101 void Timer_Expired(GameObject *obj,int number);
102 public: void Register_Auto_Save_Variables();
103};
104
105class JFW_Drone_Damage : public ScriptImpClass {
106 bool enabled;
107 void Created(GameObject *obj);
108 void Damaged(GameObject *obj,GameObject *damager,float amount);
109 void Custom(GameObject *obj,int type,int param,GameObject *sender);
110 public: void Register_Auto_Save_Variables();
111};
112
113class JFW_Conyard : public ScriptImpClass {
114 bool disabled;
115 void Created(GameObject *obj);
116 void Killed(GameObject *obj,GameObject *killer);
117 void Custom(GameObject *obj,int type,int param,GameObject *sender);
118 void Timer_Expired(GameObject *obj,int number);
119 public: void Register_Auto_Save_Variables();
120};
121
122class JFW_Conyard_Vehicle_Buildings : public ScriptImpClass {
123 bool disabled;
124 void Created(GameObject *obj);
125 void Killed(GameObject *obj,GameObject *killer);
126 void Custom(GameObject *obj,int type,int param,GameObject *sender);
127 void Timer_Expired(GameObject *obj,int number);
128 public: void Register_Auto_Save_Variables();
129};
130
131class JFW_Flying_Infantry : public ScriptImpClass {
132 void Created(GameObject *obj);
133};
134
135class JFW_Flying_Infantry_Custom : public ScriptImpClass {
136 void Custom(GameObject *obj,int type,int param,GameObject *sender);
137};
138
139class JFW_Flying_Infantry_Powerup : public ScriptImpClass {
140 void Custom(GameObject *obj,int type,int param,GameObject *sender);
141};
142
143class JFW_Flying_Infantry_Enter : public ScriptImpClass {
144 void Entered(GameObject *obj,GameObject *enterer);
145};
146
147class JFW_Flying_Infantry_Exit : public ScriptImpClass {
148 void Exited(GameObject *obj,GameObject *exiter);
149};
150
151class JFW_Team_DM_Controller_2 : public ScriptImpClass {
152 int deaths;
153 void Created(GameObject *obj);
154 void Custom(GameObject *obj,int type,int param,GameObject *sender);
155 public: void Register_Auto_Save_Variables();
156};
157
158class JFW_Vehicle_Thief : public ScriptImpClass {
159 void Damaged(GameObject *obj,GameObject *damager,float amount);
160};
161
162class JFW_Vehicle_Thief_2 : public ScriptImpClass {
163 void Damaged(GameObject *obj,GameObject *damager,float amount);
164};
165
166class JFW_Domination_Controler_End_Game : public ScriptImpClass {
167 int gdizonecount;
168 int nodzonecount;
169 void Created(GameObject *obj);
170 void Custom(GameObject *obj,int type,int param,GameObject *sender);
171 void Timer_Expired(GameObject *obj,int number);
172 public: void Register_Auto_Save_Variables();
173};
174
175class JFW_Carryable_Vehicle : public ScriptImpClass {
176 void Damaged(GameObject *obj,GameObject *damager,float amount);
177 void Killed(GameObject *obj,GameObject *killer);
178};
179
180class JFW_Carry_Control : public ScriptImpClass {
181 int carryall1;
182 int carryall2;
183 int carryall3;
184 int carryall4;
185 int carryall5;
186 int carryall6;
187 int carryall7;
188 int carryall8;
189 int carryall9;
190 int carryall10;
191 int carryall11;
192 int carryall12;
193 int carryall13;
194 int carryall14;
195 int carryall15;
196 int carryall16;
197 int carryall17;
198 int carryall18;
199 int carryall19;
200 int carryall20;
201 int carrycount;
202 void Created(GameObject *obj);
203 void Custom(GameObject *obj,int type,int param,GameObject *sender);
204 public: void Register_Auto_Save_Variables();
205};
206
207class JFW_CarryAll : public ScriptImpClass {
208 bool carrying;
209 int id;
210 int pilotID;
211 bool enabled;
212 void Created(GameObject *obj);
213 void Custom(GameObject *obj,int type,int param,GameObject *sender);
214 void Damaged(GameObject *obj,GameObject *damager,float amount);
215 void Killed(GameObject *obj,GameObject *killer);
216 public: void Register_Auto_Save_Variables();
217};
218
219class JFW_Sensor_Array : public ScriptImpClass {
220 void Created(GameObject *obj);
221 void Timer_Expired(GameObject *obj,int number);
222};
223
224class JFW_Conyard_Radius : public ScriptImpClass {
225 bool disabled;
226 void Created(GameObject *obj);
227 void Killed(GameObject *obj,GameObject *killer);
228 void Custom(GameObject *obj,int type,int param,GameObject *sender);
229 void Timer_Expired(GameObject *obj,int number);
230 public: void Register_Auto_Save_Variables();
231};
232
233class JFW_Chrono_Harvester_Logic : public ScriptImpClass {
234 int HarvyID;
235 bool enabled;
236 void Created(GameObject *obj);
237 void Custom(GameObject *obj,int type,int param,GameObject *sender);
238 public: void Register_Auto_Save_Variables();
239};
240
241class JFW_Chrono_Harvester_Kill : public ScriptImpClass {
242 void Killed(GameObject *obj,GameObject *killer);
243};
244
245class JFW_Chrono_Harvester_Spawn_Kill : public ScriptImpClass {
246 void Killed(GameObject *obj,GameObject *killer);
247};
248
249class JFW_Chrono_Harvester_Attached : public ScriptImpClass {
250 void Custom(GameObject *obj,int type,int param,GameObject *sender);
251 void Created(GameObject *obj);
252 void Killed(GameObject *obj,GameObject *killer);
253 void Action_Complete(GameObject *obj,int action_id,ActionCompleteReason complete_reason);
254 void Timer_Expired(GameObject *obj,int number);
255 public: void Register_Auto_Save_Variables();
256 bool End_Timer;
257 float facing;
258 int CrystalNumber;
259 int PathNumber;
260 int Crystal1,Crystal2,Crystal3,Crystal4,Crystal5,Crystal6,Crystal7,Crystal8,Crystal9,Crystal10;
261};
262
263class JFW_Conyard_Turrets : public ScriptImpClass {
264 bool disabled;
265 void Created(GameObject *obj);
266 void Killed(GameObject *obj,GameObject *killer);
267 void Custom(GameObject *obj,int type,int param,GameObject *sender);
268 void Timer_Expired(GameObject *obj,int number);
269 public: void Register_Auto_Save_Variables();
270};
271
272class JFW_Radar_Jammer : public ScriptImpClass {
273 bool radaron;
274 void Created(GameObject *obj);
275 void Killed(GameObject *obj,GameObject *killer);
276 void Custom(GameObject *obj,int type,int param,GameObject *sender);
277 void Timer_Expired(GameObject *obj,int number);
278};
279
280class JFW_Radar_Jammer_Sound : public ScriptImpClass {
281 void Created(GameObject *obj);
282 void Killed(GameObject *obj,GameObject *killer);
283 void Custom(GameObject *obj,int type,int param,GameObject *sender);
284 void Timer_Expired(GameObject *obj,int number);
285};
286
287class JFW_Sonar_Pulse : public ScriptImpClass {
288 bool reset;
289 void Created(GameObject *obj);
290 void Entered(GameObject *obj,GameObject *enterer);
291 void Timer_Expired(GameObject *obj,int number);
292};
293
294class JFW_Global_Stealth_Controller : public ScriptImpClass {
295 Gap_ListNode *ListHead;
296 void Created(GameObject *obj);
297 void Custom(GameObject *obj, int type, int param, GameObject *sender);
298 void Timer_Expired(GameObject *obj, int number);
299 void Destroyed(GameObject *obj);
300 void Add_Generator(unsigned long ObjectID, float Range, int Team);
301 void Remove_Generator(unsigned long ID);
302 void Update_Generator(unsigned long ID, bool Active, int Team);
303 void Update_Generator(unsigned long ID, bool Active);
304};
305
306class JFW_Stealth_Generator_Building : public ScriptImpClass {
307 unsigned long sizeID;
308 void Created(GameObject *obj);
309 void Timer_Expired(GameObject *obj, int number);
310 void Killed(GameObject *obj, GameObject *killer);
311};
312
313class JFW_Stealth_Generator_Vehicle : public ScriptImpClass {
314 unsigned long sizeID;
315 void Created(GameObject *obj);
316 void Custom(GameObject *obj, int type, int param, GameObject *sender);
317 void Destroyed(GameObject *obj);
318};
319
320class JFW_Stealth_Generator_Vehicle_Deploy : public ScriptImpClass {
321 bool deploy;
322 unsigned long sizeID;
323 void Created(GameObject *obj);
324 void Custom(GameObject *obj, int type, int param, GameObject *sender);
325 void Timer_Expired(GameObject *obj, int number);
326 void Destroyed(GameObject *obj);
327};
328
329class JFW_Stealth_Generator_Ignored : public ScriptImpClass {
330};
331
332class JFW_Resource_Collector_2 : public ScriptImpClass {
333 bool HasOre;
334 int cash;
335 int ID;
336 int PlayerID;
337 void Created(GameObject *obj);
338 void Custom(GameObject *obj,int type,int param,GameObject *sender);
339 public: void Register_Auto_Save_Variables();
340};
341
342class JFW_Resource_Collector_3 : public ScriptImpClass {
343 bool HasOre;
344 int cash;
345 int ID;
346 int PlayerID;
347 void Created(GameObject *obj);
348 void Custom(GameObject *obj,int type,int param,GameObject *sender);
349 public: void Register_Auto_Save_Variables();
350};
351
352class JFW_Low_Power_Message : public ScriptImpClass {
353 bool lowpower;
354 void Created(GameObject *obj);
355 void Timer_Expired(GameObject *obj,int number);
356};
357
358class JFW_Low_Power_Sound : public ScriptImpClass {
359 bool lowpower;
360 void Created(GameObject *obj);
361 void Timer_Expired(GameObject *obj,int number);
362};
363
364class JFW_Message_Send_Zone : public ScriptImpClass {
365 void Entered(GameObject *obj,GameObject *enterer);
366};
367
368class JFW_Message_Send_Zone_Team : public ScriptImpClass {
369 void Entered(GameObject *obj,GameObject *enterer);
370};
371
372class JFW_Message_Send_Zone_Player : public ScriptImpClass {
373 void Entered(GameObject *obj,GameObject *enterer);
374};
375
376class JFW_Message_Send_Death : public ScriptImpClass {
377 void Killed(GameObject *obj, GameObject *killer);
378};
379
380class JFW_Message_Send_Death_Team : public ScriptImpClass {
381 void Killed(GameObject *obj, GameObject *killer);
382};
383
384class JFW_Message_Send_Custom : public ScriptImpClass {
385 void Custom(GameObject *obj,int type,int param,GameObject *sender);
386};
387
388class JFW_Message_Send_Powerup : public ScriptImpClass {
389 void Custom(GameObject *obj,int type,int param,GameObject *sender);
390};
391
392class JFW_Message_Send_Custom_Team : public ScriptImpClass {
393 void Custom(GameObject *obj,int type,int param,GameObject *sender);
394};
395
396class JFW_Spy_Switch_Team : public ScriptImpClass {
397 void Created(GameObject *obj);
398 void Killed(GameObject *obj, GameObject *killer);
399 void Destroyed(GameObject *obj);
400 void Detach(GameObject *obj);
401};
402
403class JFW_Spy_Vehicle_Ignore : public ScriptImpClass {
404 void Created(GameObject *obj);
405 void Custom(GameObject *obj,int type,int param,GameObject *sender);
406 int spycount;
407 int nonspycount;
408};
409
410class JFW_Spy_Vehicle_Ignore_New : public ScriptImpClass {
411 void Created(GameObject *obj);
412 void Custom(GameObject *obj,int type,int param,GameObject *sender);
413 int spycount;
414 int nonspycount;
415};
416
417class JFW_Message_Send_Zone_Player_Vehicle : public ScriptImpClass {
418 void Entered(GameObject *obj,GameObject *enterer);
419};
420
421class JFW_Water_Level : public ScriptImpClass {
422 void Custom(GameObject *obj,int type,int param,GameObject *sender);
423};
424
425class JFW_Submarine : public ScriptImpClass {
426 void Created(GameObject *obj);
427 void Timer_Expired(GameObject *obj,int number);
428 void Custom(GameObject *obj,int type,int param,GameObject *sender);
429 void Killed(GameObject *obj, GameObject *killer);
430 float waterlevel;
431 bool submerged;
432 bool occupied;
433 int driverID;
434};
435
436class JFW_Reaper_Web : public ScriptImpClass {
437 void Created(GameObject *obj);
438 void Damaged(GameObject *obj,GameObject *damager,float amount);
439 void Killed(GameObject *obj,GameObject *killer);
440 void Timer_Expired(GameObject *obj,int number);
441 int WebID;
442};
443
444class JFW_Toxic_Grenade : public ScriptImpClass {
445 void Created(GameObject *obj);
446 void Damaged(GameObject *obj,GameObject *damager,float amount);
447 void Custom(GameObject *obj,int type,int param,GameObject *sender);
448 void Timer_Expired(GameObject *obj,int number);
449 bool active;
450};
451
452class JFW_Hijacker_Vehicle : public ScriptImpClass {
453 void Created(GameObject *obj);
454 void Damaged(GameObject *obj,GameObject *damager,float amount);
455 void Timer_Expired(GameObject *obj,int number);
456 void Killed(GameObject *obj,GameObject *killer);
457 int HijackerID;
458};
459
460class JFW_Hijacker_Vehicle_2 : public ScriptImpClass {
461 void Created(GameObject *obj);
462 void Damaged(GameObject *obj,GameObject *damager,float amount);
463 void Custom(GameObject *obj,int type,int param,GameObject *sender);
464 void Timer_Expired(GameObject *obj,int number);
465 void Killed(GameObject *obj,GameObject *killer);
466 int HijackerID;
467 bool jacking;
468};
469
470class JFW_Building_Preset_Disable : public ScriptImpClass {
471 void Created(GameObject *obj);
472 void Custom(GameObject *obj,int type,int param,GameObject *sender);
473 void Killed(GameObject *obj,GameObject *killer);
474 unsigned int count;
475};