Advertisement
Guest User

Untitled

a guest
Jun 25th, 2015
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.51 KB | None | 0 0
  1. //******************************************************************************************
  2. // #Version 2.7#
  3. //
  4. // Includes: All Sirens Commands
  5. //
  6. // - VcmdSiren
  7. // - DummyUpdatePos
  8. // - DummyDisableSiren
  9. // - DummyFindPath
  10. // - DummyHasSiren
  11. //
  12. // Script by Bass-Ti
  13. // Modified by Hoppah
  14. //
  15. //******************************************************************************************
  16.  
  17. const char CMD_AUTOSIREN_OFF[] = "VcmdAutoSirenOff";
  18. const char EACTION_FINDPATH[] = "EActionFindPath";
  19. const char EACTION_EXTINGUISH[] = "EActionExtinguish";
  20. const char DUMMY_HASSIREN[] = "DummyHasSiren";
  21. const char DUMMY_UPDATEPOS[] = "DummyUpdatePos";
  22. const char DUMMY_FINDPATH[] = "DummyFindPath";
  23. const char DUMMY_HOSESON[] = "DummyHosesAreOn";
  24. const char NAME_DUMMYOBJECT[] = "HelpingObjekt_Hoppah";
  25. const char DUMMY_GETTIL[] = "DummyGetTiller";
  26.  
  27. const char PROTO_DP270B[] = "mod:Prototypes/Vehicles/Kent FARS/DP270B.e4p";
  28. const char PROTO_DP270S[] = "mod:Prototypes/Vehicles/Kent FARS/DP270S.e4p";
  29. const char PROTO_MSN_AMB[] = "mod:Prototypes/Vehicles/SECAmb/MSAmbo_New.e4p";
  30. const char PROTO_V50_RRV[] = "mod:Prototypes/Vehicles/SECAmb/V50_RRV.e4p";
  31. const char PROTO_ID_IRU[] = "mod:Prototypes/Vehicles/SECAmb/IvecoIRU.e4p";
  32. const char PROTO_AA6_TFU[] = "mod:Prototypes/Vehicles/Kent_Police/AudiA6_TFU.e4p";
  33. const char PROTO_X5_ARV[] = "mod:Prototypes/Vehicles/Kent_Police/BMWX5_ARV.e4p";
  34. const char PROTO_X5_ARV2[] = "mod:Prototypes/Vehicles/Kent_Police/BMWX5_ARV2.e4p";
  35. const char PROTO_X5_TRAFFIC[] = "mod:Prototypes/Vehicles/Kent_Police/BMWX5_Traffic.e4p";
  36. const char PROTO_X5_UM_ARV[] = "mod:Prototypes/Vehicles/Kent_Police/BMWX5_UM_ARV.e4p";
  37. const char PROTO_FF_ERV[] = "mod:Prototypes/Vehicles/Kent_Police/FordFocus_ERV.e4p";
  38. const char PROTO_FSM_CI[] = "mod:Prototypes/Vehicles/Kent_Police/FordSMax_ColInv.e4p";
  39. const char PROTO_LRD_TRAFFIC[] = "mod:Prototypes/Vehicles/Kent_Police/LandRoverDisco_Traffic.e4p";
  40. const char PROTO_ISIG_RV[] = "mod:Prototypes/Vehicles/Kent FARS/InsigniaRV.e4p";
  41. const char PROTO_MSO_POV[] = "mod:Prototypes/Vehicles/Kent_Police/MercedesSprinterOld_POV.e4p";
  42. const char PROTO_DSABRES[] = "mod:Prototypes/Vehicles/Kent FARS/DSABRES.e4p";
  43. const char PROTO_D94DS[] = "mod:Prototypes/Vehicles/Kent FARS/D94DS.e4p";
  44. const char PROTO_DTRANSIT_CSU[] = "mod:Prototypes/Vehicles/Kent FARS/DTRANSITCSU.e4p";
  45. const char PROTO_MAN_IRU[] = "mod:Prototypes/Vehicles/Kent FARS/MAN_IRU.e4p";
  46. const char PROTO_WC[] = "mod:Prototypes/Vehicles/Kent FARS/Water_Carrier.e4p";
  47. const char PROTO_ENGINE01[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p";
  48. const char PROTO_ENGINE02[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine2.e4p";
  49. const char PROTO_WATERTENDER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/water_tender.e4p";
  50. const char PROTO_LADDER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/aerial_ladder.e4p";
  51. const char PROTO_TILLER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/tiller_cabin.e4p";
  52. const char PROTO_HAZMAT[] = "mod:Prototypes/Vehicles/02 LA Fire Department/hazmat_squad.e4p";
  53. const char PROTO_MOTORBOAT[] = "mod:Prototypes/Vehicles/02 LA Fire Department/swr_truck.e4p";
  54. const char PROTO_CRASHTENDER[] = "mod:Prototypes/Vehicles/02 LA Fire Department/crashtender.e4p";
  55. const char PROTO_USAR[] = "mod:Prototypes/Vehicles/02 LA Fire Department/usar_squad.e4p";
  56. const char PROTO_MCU01[] = "mod:Prototypes/Vehicles/01 LA Ambulance/mass_casualty_unit.e4p";
  57. const char PROTO_BCV[] = "mod:Prototypes/Vehicles/02 LA Fire Department/battalion_chief_vehicle.e4p";
  58. const char PROTO_HES[] = "mod:Prototypes/Vehicles/02 LA Fire Department/heavy_equipment_squad.e4p";
  59. const char PROTO_BRUSH[] = "mod:Prototypes/Vehicles/02 LA Fire Department/brush_truck.e4p";
  60. const char PROTO_USFS01[] = "mod:Prototypes/Vehicles/02 LA Fire Department/usfs_utility.e4p";
  61. const char PROTO_USFS02[] = "mod:Prototypes/Vehicles/02 LA Fire Department/usfs_engine.e4p";
  62. const char PROTO_EMS[] = "mod:Prototypes/Vehicles/01 LA Ambulance/cv_ems.e4p";
  63. const char PROTO_AMBULANCE01[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance01.e4p";
  64. const char PROTO_AMBULANCE02[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance02.e4p";
  65. const char PROTO_AMBULANCE03[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance03.e4p";
  66. const char PROTO_AMBULANCE04[] = "mod:Prototypes/Vehicles/01 LA Ambulance/ambulance04.e4p";
  67. const char PROTO_DOGTRUCK[] = "mod:Prototypes/Vehicles/01 LA Ambulance/suv_rescue_dog.e4p";
  68. const char PROTO_MOTORCYCLE[] = "mod:Prototypes/Vehicles/03 LA Police/motorcycle_lapd.e4p";
  69. const char PROTO_CV_LAPD[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd.e4p";
  70. const char PROTO_CV_LAPD_K9[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapdk9.e4p";
  71. const char PROTO_CV_LAPD_ST[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd_slicktop.e4p";
  72. const char PROTO_CV_LAAP[] = "mod:Prototypes/Vehicles/03 LA Police/cv_laap.e4p";
  73. const char PROTO_CV_LAPP[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapp.e4p";
  74. const char PROTO_CV_UMPC[] = "mod:Prototypes/Vehicles/03 LA Police/cv_umpc.e4p";
  75. const char PROTO_CV_CHP[] = "mod:Prototypes/Vehicles/03 LA Police/cv_chp.e4p";
  76. const char PROTO_CV_LASD[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lasd.e4p";
  77. const char PROTO_LASD_VAN[] = "mod:Prototypes/Vehicles/03 LA Police/lasd_van.e4p";
  78. const char PROTO_CHARGER_CHP[] = "mod:Prototypes/Vehicles/03 LA Police/dodge_charger_chp.e4p";
  79. const char PROTO_CHARGER_LAPD[] = "mod:Prototypes/Vehicles/03 LA Police/dodge_charger_lapd.e4p";
  80. const char PROTO_SUV_LAPD[] = "mod:Prototypes/Vehicles/03 LA Police/suv_lapd.e4p";
  81. const char PROTO_RESCUE01[] = "mod:Prototypes/Vehicles/03 LA Police/rescue_truck01_lapd.e4p";
  82. const char PROTO_RESCUE02[] = "mod:Prototypes/Vehicles/03 LA Police/rescue_truck02_lapd.e4p";
  83. const char PROTO_SWAT_TRUCK[] = "mod:Prototypes/Vehicles/03 LA Police/swat_truck.e4p";
  84. const char PROTO_WATERCANNON[] = "mod:Prototypes/Vehicles/03 LA Police/swat_armoured_vehicle.e4p";
  85. const char PROTO_HUMMERH2_LASD[] = "mod:Prototypes/Vehicles/03 LA Police/hummerh2_lasd.e4p";
  86. const char PROTO_BOMB_SQUAD[] = "mod:Prototypes/Vehicles/03 LA Police/suv_bomb_squad.e4p";
  87. const char PROTO_FBI_SUV[] = "mod:Prototypes/Vehicles/09 Government/fbi_suv.e4p";
  88. const char PROTO_FBI_COMMAND[] = "mod:Prototypes/Vehicles/09 Government/fbi_command.e4p";
  89. const char PROTO_HEAVY_RESCUE[] = "mod:Prototypes/Vehicles/02 LA Fire Department/heavy_rescue_crane.e4p";
  90.  
  91. int DummyGroup = 23;
  92.  
  93. object VcmdSiren : CommandScript
  94. {
  95. VcmdSiren()
  96. {
  97. SetIcon("sirenson");
  98. SetCursor("sirens");
  99. SetRestrictions(RESTRICT_SELFEXECUTE);
  100. SetPossibleCallers(ACTOR_VEHICLE);
  101. SetGroupID(DummyGroup);
  102. SetGroupLeader(true);
  103. }
  104.  
  105. bool CheckPossible(GameObject *Caller)
  106. {
  107. if (!Caller->IsValid())
  108. return false;
  109.  
  110. if (Caller->HasCommand(DUMMY_HASSIREN))
  111. SetIcon("sirensoff");
  112. else
  113. SetIcon("sirenson");
  114.  
  115. if(Caller->HasCommand(DUMMY_HOSESON))
  116. return false;
  117.  
  118. return true;
  119. }
  120.  
  121. bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  122. {
  123. if (!Target->IsValid() || Target->GetID() != Caller->GetID())
  124. return false;
  125.  
  126. return true;
  127. }
  128.  
  129. void PushActions(GameObject *Caller, Actor *Target, int childID)
  130. {
  131. Vehicle v(Caller);
  132. if (!v.HasCommand(DUMMY_HASSIREN))
  133. {
  134. if (!v.IsBlueLightEnabled())
  135. {
  136. v.EnableBlueLights(true);
  137. }
  138.  
  139. int soundID;
  140. Vector CarPos = v.GetPosition();
  141. if (StrCompare(v.GetPrototypeFileName(), PROTO_DP270B) == 0 ||
  142. StrCompare(v.GetPrototypeFileName(), PROTO_DP270S) == 0 ||
  143. StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE02) == 0 ||
  144. StrCompare(v.GetPrototypeFileName(), PROTO_WATERTENDER) == 0 ||
  145. StrCompare(v.GetPrototypeFileName(), PROTO_LADDER) == 0 ||
  146. StrCompare(v.GetPrototypeFileName(), PROTO_TILLER) == 0 ||
  147. StrCompare(v.GetPrototypeFileName(), PROTO_HAZMAT) == 0 ||
  148. StrCompare(v.GetPrototypeFileName(), PROTO_MOTORBOAT) == 0 ||
  149. StrCompare(v.GetPrototypeFileName(), PROTO_CRASHTENDER) == 0 ||
  150. StrCompare(v.GetPrototypeFileName(), PROTO_USAR) == 0 ||
  151. StrCompare(v.GetPrototypeFileName(), PROTO_MCU01) == 0 ||
  152. StrCompare(v.GetPrototypeFileName(), PROTO_USFS02) == 0 ||
  153. StrCompare(v.GetPrototypeFileName(), PROTO_SWAT_TRUCK) == 0 ||
  154. StrCompare(v.GetPrototypeFileName(), PROTO_HEAVY_RESCUE) == 0 ||
  155. StrCompare(v.GetPrototypeFileName(), PROTO_FBI_COMMAND) == 0)
  156. {
  157. int random = Math::rand()%2;
  158. if (random == 0)
  159. {
  160. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Whelen295.wav", CarPos, true);
  161. } else
  162. {
  163. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Whelen295.wav", CarPos, true);
  164. }
  165. }
  166. else if (StrCompare(v.GetPrototypeFileName(), PROTO_MSN_AMB) == 0 ||
  167. StrCompare(v.GetPrototypeFileName(), PROTO_V50_RRV) == 0 ||
  168. StrCompare(v.GetPrototypeFileName(), PROTO_ID_IRU) == 0 ||
  169. StrCompare(v.GetPrototypeFileName(), PROTO_AA6_TFU) == 0 ||
  170. StrCompare(v.GetPrototypeFileName(), PROTO_X5_ARV) == 0 ||
  171. StrCompare(v.GetPrototypeFileName(), PROTO_X5_ARV2) == 0 ||
  172. StrCompare(v.GetPrototypeFileName(), PROTO_X5_TRAFFIC) == 0 ||
  173. StrCompare(v.GetPrototypeFileName(), PROTO_X5_UM_ARV) == 0 ||
  174. StrCompare(v.GetPrototypeFileName(), PROTO_FF_ERV) == 0 ||
  175. StrCompare(v.GetPrototypeFileName(), PROTO_FSM_CI) == 0 ||
  176. StrCompare(v.GetPrototypeFileName(), PROTO_LRD_TRAFFIC) == 0 ||
  177. StrCompare(v.GetPrototypeFileName(), PROTO_ISIG_RV) == 0 ||
  178. StrCompare(v.GetPrototypeFileName(), PROTO_DOGTRUCK) == 0)
  179. {
  180. int random = Math::rand()%2;
  181. if (random == 0)
  182. {
  183. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/WhelenAlpha.wav", CarPos, true);
  184. } else
  185. {
  186. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/WhelenAlpha.wav", CarPos, true);
  187. }
  188. }
  189. else if (StrCompare(v.GetPrototypeFileName(), PROTO_MSO_POV) == 0 ||
  190. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LAPD) == 0 ||
  191. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LAPD_ST) == 0 ||
  192. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LAPD_K9) == 0 ||
  193. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LAAP) == 0 ||
  194. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LAPP) == 0 ||
  195. StrCompare(v.GetPrototypeFileName(), PROTO_CV_UMPC) == 0 ||
  196. StrCompare(v.GetPrototypeFileName(), PROTO_CV_CHP) == 0 ||
  197. StrCompare(v.GetPrototypeFileName(), PROTO_CV_LASD) == 0 ||
  198. StrCompare(v.GetPrototypeFileName(), PROTO_CHARGER_LAPD) == 0 ||
  199. StrCompare(v.GetPrototypeFileName(), PROTO_CHARGER_CHP) == 0)
  200. {
  201. int random = Math::rand()%2;
  202. if (random == 0)
  203. {
  204. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/PremiumHazard.wav", CarPos, true);
  205. } else
  206. {
  207. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/PremiumHazard.wav", CarPos, true);
  208. }
  209. }
  210. else if (StrCompare(v.GetPrototypeFileName(), PROTO_DSABRES) == 0 ||
  211. StrCompare(v.GetPrototypeFileName(), PROTO_D94DS) == 0 ||
  212. StrCompare(v.GetPrototypeFileName(), PROTO_DTRANSIT_CSU) == 0 ||
  213. StrCompare(v.GetPrototypeFileName(), PROTO_WC) == 0 ||
  214. StrCompare(v.GetPrototypeFileName(), PROTO_HUMMERH2_LASD) == 0 ||
  215. StrCompare(v.GetPrototypeFileName(), PROTO_BOMB_SQUAD) == 0 ||
  216. StrCompare(v.GetPrototypeFileName(), PROTO_LASD_VAN) == 0)
  217. {
  218. int random = Math::rand()%2;
  219. if (random == 0)
  220. {
  221. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/PH7009.wav", CarPos, true);
  222. } else
  223. {
  224. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/PH7009.wav", CarPos, true);
  225. }
  226. }
  227. else if (StrCompare(v.GetPrototypeFileName(), PROTO_MAN_IRU) == 0 ||
  228. {
  229. int random = Math::rand()%2;
  230. if (random == 0)
  231. {
  232. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/WoodwayCommander3.wav", CarPos, true);
  233. } else
  234. {
  235. soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/WoodwayCommander3.wav", CarPos, true);
  236. }
  237. }
  238. int CarID = v.GetID();
  239. GameObject mDummy = Game::CreateObject("mod:Prototypes/Objects/Misc/empty.e4p", NAME_DUMMYOBJECT);
  240. v.AssignCommand(DUMMY_HASSIREN);
  241. v.SetUserData(soundID);
  242. mDummy.Hide();
  243. //mDummy.SetUserData(v.GetID());
  244. mDummy.SetUserData(soundID);
  245. mDummy.AttachSound(soundID);
  246. mDummy.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_UPDATEPOS, &v, 0, false);
  247. return;
  248. }
  249.  
  250. if (v.HasCommand(DUMMY_HASSIREN))
  251. {
  252. System::Log("Stop sample via VcmdSiren");
  253. if (childID == 1)
  254. {
  255. v.EnableBlueLights(false);
  256. }
  257. int CarID = v.GetUserData();
  258. int ref = v.GetUserData();
  259. v.UnattachSound(ref);
  260. Audio::StopSample(ref);
  261. int mSirTest;
  262. GameObjectList list = Game::GetGameObjects(NAME_DUMMYOBJECT);
  263. for(int i=0; i<list.GetNumObjects(); i++)
  264. {
  265. GameObject *obj = list.GetObject(i);
  266. if (obj->GetUserData() == CarID)
  267. {
  268. mSirTest = i;
  269. }
  270. }
  271.  
  272. GameObject *obj = list.GetObject(mSirTest);
  273. obj->PushActionDeleteOwner(ACTION_NEWLIST);
  274.  
  275. if (v.HasCommand(DUMMY_HASSIREN))
  276. v.RemoveCommand(DUMMY_HASSIREN);
  277.  
  278. return;
  279. }
  280. }
  281. };
  282.  
  283. object DummyUpdatePos : CommandScript
  284. {
  285. DummyUpdatePos()
  286. {
  287. SetGroupID(DummyGroup);
  288. }
  289.  
  290. bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  291. {
  292. }
  293.  
  294. void PushActions(GameObject *Caller, Actor *Target, int childID)
  295. {
  296. Vehicle v(Target);
  297. GameObject mDummy(Caller);
  298.  
  299. if (v.IsDestroyed() || !v.IsValid())
  300. {
  301. int ref = mDummy.GetUserData();
  302. mDummy.UnattachSound(ref);
  303. Audio::StopSample(ref);
  304.  
  305. if (v.HasCommand(DUMMY_HASSIREN))
  306. v.RemoveCommand(DUMMY_HASSIREN);
  307.  
  308. mDummy.PushActionDeleteOwner(ACTION_NEWLIST);
  309. } else
  310. {
  311. if (v.IsCurrentAction(EACTION_FINDPATH))
  312. {
  313. if (!v.HasCommand(DUMMY_FINDPATH))
  314. {
  315. v.AssignCommand(DUMMY_FINDPATH);
  316. }
  317. }
  318. Vector vPos = v.GetPosition();
  319. mDummy.SetPosition(vPos);
  320. mDummy.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_UPDATEPOS, Target, childID, false);
  321. }
  322.  
  323. if (v.HasCommand(DUMMY_FINDPATH))
  324. {
  325. if (!v.IsCurrentAction(EACTION_FINDPATH) && v.HasCommand(CMD_AUTOSIREN_OFF) && (v.GetNumActions() == 0 || v.IsCurrentAction(EACTION_EXTINGUISH)))
  326. {
  327. if (v.HasCommand(DUMMY_HASSIREN))
  328. v.RemoveCommand(DUMMY_HASSIREN);
  329.  
  330. if (v.HasCommand(DUMMY_FINDPATH))
  331. v.RemoveCommand(DUMMY_FINDPATH);
  332.  
  333. int CarID = v.GetUserData();
  334. int ref = v.GetUserData();
  335. v.UnattachSound(ref);
  336. Audio::StopSample(ref);
  337.  
  338. GameObjectList list = Game::GetGameObjects(NAME_DUMMYOBJECT);
  339. for(int i = 0; i < list.GetNumObjects(); i++)
  340. {
  341. int mSirTest;
  342. GameObject *obj = list.GetObject(i);
  343. if (obj->GetUserData() == CarID)
  344. {
  345. mSirTest = i;
  346. GameObject *obj = list.GetObject(mSirTest);
  347. obj->PushActionDeleteOwner(ACTION_NEWLIST);
  348. if (v.HasCommand(DUMMY_HASSIREN))
  349. v.RemoveCommand(DUMMY_HASSIREN);
  350. if (v.HasCommand(DUMMY_FINDPATH))
  351. v.RemoveCommand(DUMMY_FINDPATH);
  352. }
  353. }
  354. }
  355. }
  356. }
  357. };
  358.  
  359. object DummyDisableSiren : CommandScript
  360. {
  361. DummyDisableSiren()
  362. {
  363. SetGroupID(DummyGroup);
  364. }
  365.  
  366. bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  367. {
  368. }
  369.  
  370. void PushActions(GameObject *Caller, Actor *Target, int childID)
  371. {
  372. Vehicle v(Caller);
  373. if (childID == 1)
  374. {
  375. v.EnableBlueLights(false);
  376. }
  377.  
  378. //int CarID = v.GetID();
  379. int CarID = v.GetUserData();
  380. int ref = v.GetUserData();
  381. v.UnattachSound(ref);
  382. Audio::StopSample(ref);
  383.  
  384. GameObjectList list = Game::GetGameObjects(NAME_DUMMYOBJECT);
  385. for(int i = 0; i < list.GetNumObjects(); i++)
  386. {
  387. GameObject *obj = list.GetObject(i);
  388. if (obj->GetUserData() == CarID)
  389. {
  390. int mSirTest = i;
  391.  
  392. GameObject *obj = list.GetObject(mSirTest);
  393. obj->PushActionDeleteOwner(ACTION_NEWLIST);
  394.  
  395. if (v.HasCommand(DUMMY_HASSIREN))
  396. v.RemoveCommand(DUMMY_HASSIREN);
  397. if (v.HasCommand(DUMMY_FINDPATH))
  398. v.RemoveCommand(DUMMY_FINDPATH);
  399. if (v.HasCommand(DUMMY_GETTIL))
  400. v.SetUserData(v.GetID());
  401. }
  402. }
  403. }
  404. };
  405.  
  406. object DummyFindPath : CommandScript
  407. {
  408. DummyFindPath()
  409. {
  410. SetGroupID(DummyGroup);
  411. }
  412.  
  413. bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  414. {
  415. return false;
  416. }
  417.  
  418. void PushActions(GameObject *Caller, Actor *Target, int childID)
  419. {
  420. }
  421. };
  422.  
  423. object DummyHasSiren : CommandScript
  424. {
  425. DummyHasSiren()
  426. {
  427. SetGroupID(DummyGroup);
  428. }
  429.  
  430. bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  431. {
  432. return false;
  433. }
  434.  
  435. void PushActions(GameObject *Caller, Actor *Target, int childID)
  436. {
  437. }
  438. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement