Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
obelfix.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 Nod_Obelisk_CnC : public ScriptImpClass {
14 int WeaponID;
15
16 void Created(GameObject* ObeliskObj);
17 void Killed(GameObject* ObeliskObj, GameObject* Killer);
18 void Custom(GameObject* ObeliskObj, int Type, int Param, GameObject* Sender);
19
20 void Create_Weapon(GameObject* ObeliskObj);
21 void Destroy_Weapon(GameObject* ObeliskObj);
22};
23
24class Obelisk_Weapon_CnC : public ScriptImpClass {
25 int EnemyID;
26 int EffectID;
27 bool Firing;
28 bool Charged;
29
30 void Created(GameObject* WeaponObj);
31 void Destroyed(GameObject* WeaponObj);
32 bool IsValidEnemy(GameObject* WeaponObj, GameObject* EnemyObj);
33
34 void StartFiring(GameObject* WeaponObj);
35 void StopFiring(GameObject* WeaponObj);
36 void StartEffect(GameObject* WeaponObj);
37 void StopEffect(GameObject* WeaponObj);
38 void FireAt(GameObject* WeaponObj, GameObject* EnemyObj);
39 void FaceEnemy(GameObject* WeaponObj, GameObject* EnemyObj);
40 void StopFireAt(GameObject* WeaponObj);
41 void Timer_Expired(GameObject* WeaponObj, int Number);
42 void Enemy_Seen(GameObject* WeaponObj, GameObject* EnemyObj);
43 public: void Register_Auto_Save_Variables();
44};
45
46class Nod_Obelisk_CnC_Ground : public ScriptImpClass {
47 int WeaponID;
48
49 void Created(GameObject* ObeliskObj);
50 void Killed(GameObject* ObeliskObj, GameObject* Killer);
51
52 void Custom(GameObject* ObeliskObj, int type, int Param, GameObject* Sender);
53};
54
55class Obelisk_Weapon_CnC_Ground : public ScriptImpClass {
56 int EnemyID;
57 int EffectID;
58 bool Firing;
59 bool Charged;
60
61 void Created(GameObject* WeaponObj);
62 void Destroyed(GameObject* WeaponObj);
63 bool IsValidEnemy(GameObject* WeaponObj, GameObject* EnemyObj);
64
65 void StartFiring(GameObject* WeaponObj);
66 void StopFiring(GameObject* WeaponObj);
67 void StartEffect(GameObject* WeaponObj);
68 void StopEffect(GameObject* WeaponObj);
69 void FireAt(GameObject* WeaponObj, GameObject* EnemyObj);
70 void FaceEnemy(GameObject* WeaponObj, GameObject* EnemyObj);
71 void StopFireAt(GameObject* WeaponObj);
72 void Timer_Expired(GameObject* WeaponObj, int Number);
73 void Enemy_Seen(GameObject* WeaponObj, GameObject* EnemyObj);
74 public: void Register_Auto_Save_Variables();
75};