Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
unstoppable.h
1/* Renegade Scripts.dll
2 Copyright 2022 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
13#include "scripts.h"
14
27class UP_Teleport : public ScriptImpClass
28{
29public:
30 void Entered(GameObject* obj, GameObject* enterer);
31};
32
51class UP_HUD_Message_Zone_Enter : public ScriptImpClass
52{
53public:
54 void Entered(GameObject* obj, GameObject* enterer) override;
55};
56
57
76class UP_HUD_Message_Zone_Exit : public ScriptImpClass
77{
78public:
79 void Exited(GameObject* obj, GameObject* exiter) override;
80};
81
92class UP_Stop_Vehicle_Engine : public ScriptImpClass
93{
94public:
95 void Created(GameObject* obj);
96 void Custom(GameObject* obj, int type, int param, GameObject* sender);
97 void Timer_Expired(GameObject* obj, int number);
98
99private:
100 ReferencerClass Vehicle;
101};
102
115class UP_Change_Vehicle_Weapon : public ScriptImpClass
116{
117public:
118 void Created(GameObject* obj);
119};
120
133class UP_MCT_Building : public ScriptImpClass
134{
135public:
136 void Created(GameObject* obj);
137 void Damaged(GameObject* obj, GameObject* damager, float amount);
138
139private:
140 ReferencerClass MCTObj;
141};
142
155class UP_Master_Control_Terminal : public ScriptImpClass
156{
157private:
158 ReferencerClass MainBuilding;
159 float Multiplier;
160
161public:
162 void Created(GameObject* obj);
163 void Damaged(GameObject* obj, GameObject* damager, float amount);
164};
165
182class UP_Grant_Weapon : public ScriptImpClass
183{
184 void Created(GameObject* obj);
185};
186
203class UP_Grant_Weapon_Zone_Enter : public ScriptImpClass
204{
205 void Entered(GameObject* obj, GameObject* enterer);
206};
207
224class UP_Grant_Weapon_Zone_Exit : public ScriptImpClass
225{
226 void Exited(GameObject* obj, GameObject* exiter);
227};
228
239class UP_Spawn_When_Death : public ScriptImpClass
240{
241 void Killed(GameObject* obj, GameObject* killer);
242};
243
251class UP_GameOver_When_Death : public ScriptImpClass
252{
253 void Killed(GameObject* obj, GameObject* killer);
254};
255
266class UP_Change_Character : public ScriptImpClass
267{
268 void Created(GameObject* obj);
269};
270
281class UP_Grant_Character_Zone_Enter : public ScriptImpClass
282{
283 void Entered(GameObject* obj, GameObject* enterer);
284};
285
296class UP_Grant_Character_Zone_Exit : public ScriptImpClass
297{
298 void Exited(GameObject* obj, GameObject* exiter);
299};
300
311class UP_Spawn_And_Destroy_When_Fully_Repaired : public ScriptImpClass
312{
313 void Damaged(GameObject* obj, GameObject* damager, float amount);
314};
315
330class UP_Refinery_Object : public ScriptImpClass
331{
332private:
333 int Team;
334 float Amount;
335
336public:
337 void Created(GameObject* obj);
338 void Timer_Expired(GameObject* obj, int number);
339};
340
357class UP_Vehicle_Purchase_Terminal : public ScriptImpClass
358{
359private:
360 bool Pokable;
361 Vector3 SpawnLocation;
362 float Facing;
363 ReferencerClass Terminal;
364 StringClass Preset;
365 int Amount;
366
367public:
368 void Created(GameObject* obj);
369 void Poked(GameObject* obj, GameObject* poker);
370 void Timer_Expired(GameObject* obj, int number);
371};
372
387class UP_Character_Purchase_Terminal : public ScriptImpClass
388{
389private:
390 bool Pokable;
391 ReferencerClass Terminal;
392 StringClass Preset;
393 int Amount;
394
395public:
396 void Created(GameObject* obj);
397 void Poked(GameObject* obj, GameObject* poker);
398 void Timer_Expired(GameObject* obj, int number);
399};
400
411class UP_Set_Team_When_Exit : public ScriptImpClass
412{
413 void Custom(GameObject* obj, int type, int param, GameObject* sender);
414 void Timer_Expired(GameObject* obj, int number);
415};
416
424class UP_Ion_Explosion_When_Death : public ScriptImpClass
425{
426 void Killed(GameObject* obj, GameObject* killer);
427};
428
436class UP_FlyMode_Enable : public ScriptImpClass
437{
438 void Created(GameObject* obj);
439};
440
448class UP_FlyMode_Disable : public ScriptImpClass
449{
450 void Created(GameObject* obj);
451};
452
460class UP_Spectate : public ScriptImpClass
461{
462 void Created(GameObject* obj);
463};
464
472class UP_Spectate_Zone_Enter : public ScriptImpClass
473{
474 void Entered(GameObject* obj, GameObject* enterer);
475};
476
484class UP_Spectate_Zone_Exit : public ScriptImpClass
485{
486 void Exited(GameObject* obj, GameObject* exiter);
487};
488
499class UP_Select_Weapon : public ScriptImpClass
500{
501 void Created(GameObject* obj);
502};
503
514class UP_Select_Weapon_On_Zone_Enter : public ScriptImpClass
515{
516 void Entered(GameObject* obj, GameObject* enterer);
517};
518
529class UP_Select_Weapon_On_Zone_Exit : public ScriptImpClass
530{
531 void Exited(GameObject* obj, GameObject* exiter);
532};
533
551class UP_Chinook_Reinforcements_Paradrop : public ScriptImpClass
552{
553private:
554 bool chinookKilled;
555 int paratrooperIndex;
556 ReferencerClass presetObj1;
557 ReferencerClass presetObj2;
558 ReferencerClass presetObj3;
559 ReferencerClass helicopter;
560 ReferencerClass trajectory;
561
562 bool Check_Object(GameObject* obj)
563 {
564 if (obj)
565 {
566 if (obj->As_SmartGameObj())
567 {
568 if (obj->As_SoldierGameObj())
569 {
570 return true;
571 }
572 else
573 {
574 return false;
575 }
576 }
577 else
578 {
579 return false;
580 }
581 }
582 else
583 {
584 return false;
585 }
586 }
587
588public:
589 void Created(GameObject* obj);
590 void Custom(GameObject* obj, int type, int param, GameObject* sender);
591 void Timer_Expired(GameObject* obj, int number);
592};
593
604class UP_Unkillable_Until_Custom : public ScriptImpClass
605{
606 void Custom(GameObject* obj, int type, int param, GameObject* sender);
607 void Damaged(GameObject* obj, GameObject* damager, float amount);
608};
609
626class UP_AttachScript_Interval_Self : public ScriptImpClass
627{
628private:
629 StringClass Script;
630 StringClass Parameters;
631 float Interval;
632 int LoopCount;
633 int Looped;
634
635public:
636 void Created(GameObject* obj);
637 void Timer_Expired(GameObject* obj, int number);
638};
639
658class UP_AttachScript_Interval : public ScriptImpClass
659{
660private:
661 StringClass Script;
662 StringClass Parameters;
663 ReferencerClass Target;
664 float Interval;
665 int LoopCount;
666 int Looped;
667
668public:
669 void Created(GameObject* obj);
670 void Timer_Expired(GameObject* obj, int number);
671};
672
685class UP_Object_Follower_AI : public ScriptImpClass
686{
687private:
688 int TargetChangeCustom;
689 int DestroyScriptCustom;
690 ReferencerClass TargetObject;
691
692public:
693 void Created(GameObject* obj);
694 void Custom(GameObject* obj, int type, int param, GameObject* sender);
695 void Timer_Expired(GameObject* obj, int number);
696};
697
714class UP_Private_Color_Message_On_Poke : public ScriptImpClass
715{
716private:
717 bool Pokable;
718
719public:
720 void Created(GameObject* obj);
721 void Timer_Expired(GameObject* obj, int number);
722 void Poked(GameObject* obj, GameObject* poker);
723};
724
737class UP_Seize_Weapon_Enter : public ScriptImpClass
738{
739public:
740 void Entered(GameObject* obj, GameObject* enterer);
741 void Exited(GameObject* obj, GameObject* exiter);
742};
743
756class UP_Seize_Weapon_Exit : public ScriptImpClass
757{
758public:
759 void Entered(GameObject* obj, GameObject* enterer);
760 void Exited(GameObject* obj, GameObject* exiter);
761};
762
775class UP_Seize_All_Weapons_Enter : public ScriptImpClass
776{
777private:
778 DynamicVectorClass<StringClass> Weapons;
779
780public:
781 void Created(GameObject* obj);
782 void Entered(GameObject* obj, GameObject* enterer);
783 void Exited(GameObject* obj, GameObject* exiter);
784};
785
798class UP_Seize_All_Weapons_Exit : public ScriptImpClass
799{
800private:
801 DynamicVectorClass<StringClass> Weapons;
802
803public:
804 void Created(GameObject* obj);
805 void Entered(GameObject* obj, GameObject* enterer);
806 void Exited(GameObject* obj, GameObject* exiter);
807};
808
827class UP_Grant_Weapon_Custom_Then_Detach : public ScriptImpClass
828{
829public:
830 void Custom(GameObject* obj, int type, int param, GameObject* sender);
831};
832
840class UP_Disable_Weapon_For_Driver : public ScriptImpClass
841{
842private:
843 bool HasWeapon;
844 StringClass Weapon;
845 int ClipAmmo;
846 int InventoryAmmo;
847
848public:
849 void Created(GameObject* obj);
850 void Custom(GameObject* obj, int type, int param, GameObject* sender);
851};
852
863class UP_Set_Bot_Tag : public ScriptImpClass
864{
865public:
866 void Created(GameObject* obj);
867};
868
887class UP_Set_Bot_Tag_MultiLine : public ScriptImpClass
888{
889public:
890 void Created(GameObject* obj);
891};
892
900class UP_Remove_Bot_Tag : public ScriptImpClass
901{
902public:
903 void Created(GameObject* obj);
904};
905
918class UP_Stop_Sound : public ScriptImpClass
919{
920public:
921 void Created(GameObject* obj);
922};
923
939class UP_Sound_Controller_2D : public ScriptImpClass
940{
941public:
942 void Created(GameObject* obj);
943 void Destroyed(GameObject* obj);
944 void Custom(GameObject* obj, int type, int param, GameObject* sender);
945
946private:
947 StringClass SoundDef;
948 int SoundID;
949 int StartCustomType;
950 int StopCustomType;
951};
952
968class UP_Sound_Controller_3D : public ScriptImpClass
969{
970public:
971 void Created(GameObject* obj);
972 void Destroyed(GameObject* obj);
973 void Custom(GameObject* obj, int type, int param, GameObject* sender);
974
975private:
976 StringClass SoundDef;
977 int SoundID;
978 int StartCustomType;
979 int StopCustomType;
980};
981
992class UP_Teleport_Killer_On_Death : public ScriptImpClass
993{
994public:
995 void Created(GameObject* obj);
996 void Killed(GameObject* obj, GameObject* killer);
997
998private:
999 int TeleportObj;
1000};
1001
1012class UP_Teleport_Killer_Immunity : public ScriptImpClass
1013{
1014public:
1015 void Created(GameObject* obj);
1016 void Timer_Expired(GameObject* obj, int number);
1017
1018private:
1019 float Expire;
1020};
1021
1032class UP_Teleport_On_Zone_Kill : public ScriptImpClass
1033{
1034public:
1035 void Created(GameObject* obj);
1036 void Entered(GameObject* obj, GameObject* enterer);
1037 void Exited(GameObject* obj, GameObject* exiter);
1038
1039private:
1040 int TeleportObj;
1041};
1042
1053class UP_Teleport_Killer_Immunity_Zone : public ScriptImpClass
1054{
1055public:
1056 void Created(GameObject* obj);
1057 void Entered(GameObject* obj, GameObject* enterer);
1058 void Exited(GameObject* obj, GameObject* exiter);
1059
1060private:
1061 float Expire;
1062};
1063
1074class UP_Gravity_Zone : public ScriptImpClass
1075{
1076public:
1077 void Created(GameObject* obj);
1078 void Entered(GameObject* obj, GameObject* enterer);
1079 void Exited(GameObject* obj, GameObject* exiter);
1080
1081private:
1082 float Multiplier;
1083};
1084
1092class UP_No_Targeting_Zone : public ScriptImpClass
1093{
1094public:
1095 void Entered(GameObject* obj, GameObject* enterer);
1096 void Exited(GameObject* obj, GameObject* exiter);
1097};
1098
1121class UP_Send_Message_Self_On_Custom : public ScriptImpClass
1122{
1123public:
1124 void Created(GameObject* obj);
1125 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1126};
1127
1150class UP_Send_Message_Sender_On_Custom : public ScriptImpClass
1151{
1152public:
1153 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1154};
1155
1180class UP_Print_Console_Self_On_Custom : public ScriptImpClass
1181{
1182public:
1183 void Created(GameObject* obj);
1184 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1185};
1186
1211class UP_Print_Console_Sender_On_Custom : public ScriptImpClass
1212{
1213public:
1214 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1215};
1216
1239class UP_Add_Chat_History_Self_On_Custom : public ScriptImpClass
1240{
1241public:
1242 void Created(GameObject* obj);
1243 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1244};
1245
1268class UP_Add_Chat_History_Sender_On_Custom : public ScriptImpClass
1269{
1270public:
1271 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1272};
1273
1286class UP_Grant_Credits_Self_On_Custom : public ScriptImpClass
1287{
1288public:
1289 void Created(GameObject* obj);
1290 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1291};
1292
1305class UP_Grant_Credits_Sender_On_Custom : public ScriptImpClass
1306{
1307public:
1308 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1309};
1310
1325class UP_Grant_Credits_Team_On_Custom : public ScriptImpClass
1326{
1327public:
1328 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1329};
1330
1357class UP_Steal_Credits_On_Custom : public ScriptImpClass
1358{
1359public:
1360 void Custom(GameObject* obj, int type, int param, GameObject* sender);
1361};
1362
1370class UP_No_Refill : public ScriptImpClass
1371{
1372public:
1373 void Created(GameObject* obj);
1374 void Destroyed(GameObject* obj);
1375
1376protected:
1377 static bool Refill_Hook(GameObject* purchaser);
1378
1379private:
1380 static bool RefillHookInstalled;
1381 static int AliveScriptCount;
1382};
Add Chat History to Self On Custom.
Definition unstoppable.h:1240
Add Chat History to Sender On Custom.
Definition unstoppable.h:1269
Attach Script to Itself with Interval.
Definition unstoppable.h:627
Attach Script to Target with Interval.
Definition unstoppable.h:659
Change Character.
Definition unstoppable.h:267
Change Vehicle Weapon.
Definition unstoppable.h:116
Infantry PT.
Definition unstoppable.h:388
Paradrop.
Definition unstoppable.h:552
Disable Weapon for Driver.
Definition unstoppable.h:841
Disable Fly Mode.
Definition unstoppable.h:449
Enable Fly Mode.
Definition unstoppable.h:437
Game Over on Death.
Definition unstoppable.h:252
Change Character on Zone Enter.
Definition unstoppable.h:282
Change Character on Zone Exit.
Definition unstoppable.h:297
Grant Credits to Self On Custom.
Definition unstoppable.h:1287
Grant Credits to Sender On Custom.
Definition unstoppable.h:1306
Grant Credits to Team On Custom.
Definition unstoppable.h:1326
Grant Weapon and Detach on Custom Event.
Definition unstoppable.h:828
Grant Weapon on Zone Enter.
Definition unstoppable.h:204
Grant Weapon on Zone Exit.
Definition unstoppable.h:225
Grant Weapon.
Definition unstoppable.h:183
Gravity Zone.
Definition unstoppable.h:1075
HUD Message on Zone Enter.
Definition unstoppable.h:52
HUD Message on Zone Exit.
Definition unstoppable.h:77
Ion Explosion on Death.
Definition unstoppable.h:425
MCT Controlled Building.
Definition unstoppable.h:134
Master Control Terminal.
Definition unstoppable.h:156
No Refill.
Definition unstoppable.h:1371
No Targeting Zone.
Definition unstoppable.h:1093
Object Follower.
Definition unstoppable.h:686
Print Console of Self On Custom.
Definition unstoppable.h:1181
Print Console of Sender On Custom.
Definition unstoppable.h:1212
Private Color Message on Poke.
Definition unstoppable.h:715
Refinery.
Definition unstoppable.h:331
Remove Bot Tag.
Definition unstoppable.h:901
Seize All Weapons on Zone Enter.
Definition unstoppable.h:776
Seize All Weapons on Zone Exit.
Definition unstoppable.h:799
Seize Weapon on Zone Enter.
Definition unstoppable.h:738
Seize Weapon on Zone Exit.
Definition unstoppable.h:757
Select Weapon on Zone Enter.
Definition unstoppable.h:515
Select Weapon on Zone Exit.
Definition unstoppable.h:530
Select Weapon.
Definition unstoppable.h:500
Send Message to Self On Custom.
Definition unstoppable.h:1122
Send Message to Sender On Custom.
Definition unstoppable.h:1151
Set Bot Tag Multiple Lines.
Definition unstoppable.h:888
Set Bot Tag.
Definition unstoppable.h:864
Set Team on Vehicle Exit.
Definition unstoppable.h:412
2D Sound Controller
Definition unstoppable.h:940
3D Sound Controller
Definition unstoppable.h:969
Spawn Object and Destroy Itself When Fully Repaired.
Definition unstoppable.h:312
Spawn Object on Death.
Definition unstoppable.h:240
Toggle Spectate Mode on Zone Enter.
Definition unstoppable.h:473
Toggle Spectate Mode on Zone Exit.
Definition unstoppable.h:485
Toggle Spectate Mode.
Definition unstoppable.h:461
Steal Credits On Custom.
Definition unstoppable.h:1358
Stop Sound.
Definition unstoppable.h:919
Stop Vehicle Engine.
Definition unstoppable.h:93
Teleport on Kill Immunity Zone.
Definition unstoppable.h:1054
Immunity for Teleport Killer on Death.
Definition unstoppable.h:1013
Teleport Killer on Death.
Definition unstoppable.h:993
Teleport on Kill inside Zone.
Definition unstoppable.h:1033
Teleport.
Definition unstoppable.h:28
Invincible Until Custom Event.
Definition unstoppable.h:605
Vehicle PT.
Definition unstoppable.h:358