Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
DB_Research_Terminals.h
1/* Renegade Scripts.dll
2 Copyright 2016 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
13#pragma once
14
15
16
17enum
18{
19 CUSTOM_EVENT_REDTIB_ENTERED = 10499,
20 CUSTOM_EVENT_GREENTIB_ENTERED = 10500,
21 CUSTOM_EVENT_BLUETIB_ENTERED = 10501,
22 CUSTOM_EVENT_TIB_ENTERED = 10502,
23 CUSTOM_EVENT_HARVY_LEFT_TIBFIELD = 10503,
24 CUSTOM_EVENT_HARVY_DEPOSITING = 10504,
25};
26
27
28enum
29{
30 TIBTYPE_GREEN = 10100,
31 TIBTYPE_BLUE = 10101,
32 TIBTYPE_RED = 10102,
33};
34
35
36
37HashTemplateClass<uint,uint> CharacterID;
38float CostScale=1;
39float InsertScale=1;
40
41class DB_Research_Listener : public ScriptImpClass {
42 void Created(GameObject *obj);
43};
44
45class DB_Research_Infantry_Armor_Terminal : public ScriptImpClass {
46 void Created(GameObject *obj);
47 void Poked(GameObject *obj, GameObject *poker);
48 void Timer_Expired(GameObject *obj, int number);
49 void Detach(GameObject *obj);
50 void Custom(GameObject *obj, int message, int param, GameObject *sender);
51 bool Allow_Poke;
52 bool Upgrading_In_Progress;
53 bool Upgrade_Completed;
54 int Terminal_Team;
55 int UpgradeID;
56 const char *UpgradeName;
57 const char *Upgrade_In_Progress_Sound;
58 const char *Upgrade_Money_Added_Sound;
59 const char *Upgrade_Completed_Sound;
60 const char *Upgrade_Insufficient_Funds_Sound;
61 const char *Upgrade_Access_Denied_Sound;
62 const char *Upgrade_Complete_Text;
63 const char *Upgrade_In_Progress_Text;
64 float Upgrade_Add_Funds_Cost;
65 float Upgrade_Total_Cost;
66 float Upgrade_Current_Funds;
67};
68
69class DB_Rebuild_Building_Terminal : public ScriptImpClass {
70 void Created(GameObject *obj);
71 void Poked(GameObject *obj, GameObject *poker);
72 void Timer_Expired(GameObject *obj, int number);
73 void Detach(GameObject *obj);
74 void Custom(GameObject *obj, int message, int param, GameObject *sender);
75 bool Allow_Poke;
76 bool Upgrading_In_Progress;
77 bool Upgrade_Completed;
78 int Terminal_Team;
79 int BuildingType;
80 const char *UpgradeName;
81 const char *Upgrade_In_Progress_Sound;
82 const char *Upgrade_Money_Added_Sound;
83 const char *Upgrade_Completed_Sound;
84 const char *Upgrade_Insufficient_Funds_Sound;
85 const char *Upgrade_Access_Denied_Sound;
86 const char *Upgrade_Complete_Text;
87 const char *Upgrade_In_Progress_Text;
88 float Upgrade_Add_Funds_Cost;
89 float Upgrade_Total_Cost;
90 float Upgrade_Current_Funds;
91};
92
93class DB_Research_Infantry_Armor_Ready : public ScriptImpClass {
94 void Created(GameObject *obj);
95};
96
97class DB_Research_Infantry_Armor_Ability : public ScriptImpClass {
98 int UpgradeID;
99 bool Upgraded;
100 void Created(GameObject *obj);
101 void Custom(GameObject *obj, int message, int param, GameObject *sender);
102};
103
104class DB_Research_Infantry_Hitpoints_Ability : public ScriptImpClass {
105 int UpgradeID;
106 bool Upgraded;
107 void Created(GameObject *obj);
108 void Custom(GameObject *obj, int message, int param, GameObject *sender);
109};
110
111class DB_Research_Weapon_Upgrade : public ScriptImpClass {
112 int UpgradeID;
113 bool Upgraded;
114 int Secondary;
115 StringClass RemoveWeapon;
116 void Created(GameObject *obj);
117 void Custom(GameObject *obj, int message, int param, GameObject *sender);
118};
119
120class DB_Research_Armor_Model : public ScriptImpClass {
121 int UpgradeID;
122 bool Upgraded;
123 void Created(GameObject *obj);
124 void Custom(GameObject *obj, int message, int param, GameObject *sender);
125};
126
127class DB_Research_Credit_Tick : public ScriptImpClass {
128 int UpgradeID;
129 bool Upgraded;
130 void Created(GameObject *obj);
131 void Custom(GameObject *obj, int message, int param, GameObject *sender);
132};
133
134
135class DB_Tiberium_Harvester : public ScriptImpClass
136{
137 int upgradeID;
138 float multiplier;
139 bool upgraded;
140 void Created(GameObject *obj);
141 void Custom(GameObject *obj, int message, int param, GameObject *sender);
142 void Timer_Expired(GameObject *obj, int number);
143 float Get_Cash();
144 void Clear_Cash();
145 int PlayerTeam;
146 int DriverID;
147 bool Harvesting;
148 int TibType;
149 float CashCollected[8];
150 int CashIndex;
151};
152
153class DB_Tiberium_Field : public ScriptImpClass
154{
155 void Created(GameObject *obj);
156 void Entered(GameObject *obj, GameObject *enterer);
157 void Exited(GameObject *obj, GameObject *exiter);
158 int Zonetype;
159};
160
161class DB_Tiberium_Deposit : public ScriptImpClass
162{
163 void Entered(GameObject *obj, GameObject *enterer);
164};
165
166class DB_DeployableTank_Upgradeable : public JFW_Key_Hook_Base {
167 int UpgradeID;
168 bool Upgraded;
169 int PilotID,mode;
170 StringClass model;
171 void Created(GameObject *obj);
172 void Animation_Complete(GameObject *obj,const char *animation_name);
173 void KeyHook();
174 void Custom(GameObject *obj,int type,int param,GameObject *sender);
175 void Destroyed(GameObject *obj);
176 public: void Register_Auto_Save_Variables();
177};