Mission2.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * FILE
  21. * Mission2.h
  22. *
  23. * DESCRIPTION
  24. * Mission 2 definitions
  25. *
  26. * PROGRAMMER
  27. * Design Team
  28. *
  29. * VERSION INFO
  30. * $Author: Rich_d $
  31. * $Revision: 18 $
  32. * $Modtime: 1/02/02 3:10p $
  33. * $Archive: /Commando/Code/Scripts/Mission2.h $
  34. *
  35. ******************************************************************************/
  36. #ifndef _MISSION2_H_
  37. #define _MISSION2_H_
  38. // Defines and Includes
  39. #include "toolkit.h"
  40. // Predefined Constants
  41. #define M02_OBJCONTROLLER 1111112
  42. #define M02_AREACOUNT 26
  43. // Public Variables
  44. Vector3 Objective_Radar_Locations [20] =
  45. {
  46. Vector3 (1113.53f,877.16f,17.47f), // Destroy or Deactivate Obelisk
  47. Vector3 (1001.69f,903.86f,0.82f), // Destroy the Dam's MCT
  48. Vector3 (1209.60f,571.97f,18.15f), // Destroy the Hand of Nod
  49. Vector3 (1163.07f,513.01f,20.52f), // Commandeer the Nod Cargo Plane
  50. Vector3 (139.51f,-5.62f,-12.83f), // Destroy the Nod Helipad
  51. Vector3 (130.88f,21.10f,-8.49f), // Secure the Nod Guard Tower
  52. Vector3 (556.17f,23.18f,-53.88f), // Capture the Second House
  53. Vector3 (495.01f,114.70f,-55.84f), // Capture the First House
  54. Vector3 (648.77f,300.74f,-59.99f), // Capture the Third House
  55. Vector3 (425.43f,840.52f,8.09f), // Secure the Ski Resort
  56. Vector3 (468.59f,582.74f,-43.48f), // Destroy the First SAM
  57. Vector3 (493.76f,619.03f,-36.62f), // Destroy the Nod Convoy
  58. Vector3 (572.80f,873.57f,-2.83f), // Destroy the Second SAM
  59. Vector3 (801.57f,1054.95f,22.00f), // Destroy the Third SAM
  60. Vector3 (783.25f,945.26f,23.04f), // Destroy the Fourth SAM
  61. Vector3 (1062.0f,978.7f,-18.3f), // Destroy the Power Plant
  62. Vector3 (1300.2f,614.1f,19.2f), // Eliminate Tiberium Station C
  63. Vector3 (1310.1f,696.5f,19.5f), // Eliminate Tiberium Station A
  64. Vector3 (1342.2f,655.1f,19.3f), // Eliminate Tiberium Station B
  65. Vector3 (570.06f,261.47f,-60.0f) // Commandeer the GDI Mammoth Tank
  66. };
  67. // Enumerations
  68. // Timer Enumerations
  69. typedef enum
  70. {
  71. M2TIMER_START = STIMER_MISSION2,
  72. } M2TIMER;
  73. inline void Send_Custom_To_SAM_Sites (GameObject * obj, int type, int param)
  74. {
  75. GameObject * sam = Commands->Find_Object(1100085);
  76. if (sam)
  77. {
  78. Commands->Send_Custom_Event(obj, sam, type, param, 0.5f);
  79. }
  80. sam = Commands->Find_Object(1100094);
  81. if (sam)
  82. {
  83. Commands->Send_Custom_Event(obj, sam, type, param, 0.5f);
  84. }
  85. sam = Commands->Find_Object(1100120);
  86. if (sam)
  87. {
  88. Commands->Send_Custom_Event(obj, sam, type, param, 0.5f);
  89. }
  90. sam = Commands->Find_Object(1100130);
  91. if (sam)
  92. {
  93. Commands->Send_Custom_Event(obj, sam, type, param, 0.5f);
  94. }
  95. }
  96. #endif // _MISSION2_H_