Guest User

Nuclear Throne Corrupted

a guest
Feb 22nd, 2017
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.85 KB | None | 0 0
  1. //Thanks to YAL and Joao6 for making this possible!
  2. //How to install: Copy the text down below and put it in a notepad make sure that the extension gets changed to [name].mod.gml
  3. //Make a folder called "mods" in the Steam nuclear throne folder.
  4. //Drag in [name].mod.gml into the folder.
  5. //Start up Nuclear Throne
  6. //Press "T" and type /loadmod mods/[name].mod.gml
  7. //have fun!
  8.  
  9. #define step
  10.  
  11. //Enemies
  12.  
  13. //Skills
  14.  
  15. //Extra Feet
  16. if(skill_get(2))
  17. {
  18. with (Player)
  19. maxspeed = 10
  20. }
  21. //Colors
  22. with (PortalL) {
  23. image_blend = make_colour_rgb(204,0,0);
  24. }
  25. with (Laser) {
  26. image_blend = make_colour_rgb(204,0,0);
  27. }
  28. with (Explosion) {
  29. image_blend = make_colour_rgb(204,0,0);
  30. }
  31. with (AmmoChest) {
  32. if (!variable_instance_exists(self, "hue")) hue = 0;
  33. hue = (hue + 1) % 365;
  34. image_blend = make_color_hsv(hue, 200, 255);
  35. }
  36. with (GiantAmmoChest) {
  37. if (!variable_instance_exists(self, "hue")) hue = 0;
  38. hue = (hue + 1) % 256;
  39. image_blend = make_color_hsv(hue, 200, 255);
  40. }
  41. with (WeaponChest) {
  42. if (!variable_instance_exists(self, "hue")) hue = 0;
  43. hue = (hue + 1) % 256;
  44. image_blend = make_color_hsv(hue, 200, 255);
  45. }
  46. with (GiantWeaponChest) {
  47. if (!variable_instance_exists(self, "hue")) hue = 0;
  48. hue = (hue + 1) % 256;
  49. image_blend = make_color_hsv(hue, 200, 255);
  50. }
  51. with (RadChest) {
  52. if (!variable_instance_exists(self, "hue")) hue = 0;
  53. hue = (hue + 1) % 256;
  54. image_blend = make_color_hsv(hue, 200, 255);
  55. }
  56. with (PlasmaBall) {
  57. if (!variable_instance_exists(self, "hue")) hue = 0;
  58. hue = (hue + 1) % 256;
  59. image_blend = make_color_hsv(hue, 500, 170);
  60. }
  61. with (Laser) {
  62. if (!variable_instance_exists(self, "hue")) hue = 0;
  63. hue = (hue + 1) % 256;
  64. image_blend = make_color_hsv(hue, 200, 240);
  65. }
  66. with (ToxicGas) {
  67. image_blend = make_colour_rgb(153,0,153);
  68. }
  69. with (PlasmaBig) {
  70. if (!variable_instance_exists(self, "hue")) hue = 0;
  71. hue = (hue + 1) % 256;
  72. image_blend = make_color_hsv(hue, 500, 170);
  73. }
  74. //Cheats (Not really)
  75. with(Player)
  76. {
  77. if(index == 0) // if is P1
  78. {
  79. maxhealth = (16)
  80. }
  81. }
  82. with(Player)
  83. {
  84. if(index == 1) // if is P2
  85. {
  86. maxhealth = (16)
  87. }
  88. }
  89. with(Player)
  90. {
  91. if(index == 0) // if is P1
  92. {
  93. if (instance_exists(Portal)) {
  94. my_health = (16)
  95. }
  96. }
  97. }
  98.  
  99. with(Player)
  100. {
  101. if(index == 1) // if is P2
  102. {
  103. if (instance_exists(Portal)) {
  104. my_health = (16)
  105. }
  106. }
  107. }
  108. with(Player)
  109. {
  110. if(index == 0) // if is P1
  111. {
  112. if (button_pressed(0, "horn"))
  113. {
  114. with(GameObject)
  115. image_xscale += 1
  116. image_yscale += 1
  117. }
  118. }
  119. }
  120. with(Player)
  121. {
  122. if(index == 1) // if is P1
  123. {
  124. if (button_pressed(0, "horn"))
  125. {
  126. with(GameObject)
  127. image_xscale += 1
  128. image_yscale += 1
  129. }
  130. }
  131. }
  132.  
  133.  
  134.  
  135. //Bosses
  136.  
  137. //Captain
  138. if(instance_exists(Van))
  139. {
  140. with(Van)
  141. {
  142. if(object_index != Flame
  143. && object_index != ToxicGas)
  144. {
  145. global.Van = instance_create(x, y, Last);
  146. global.Van.speed = speed;
  147. global.Van.direction = direction;
  148. global.Van.image_angle = random(360);
  149. instance_destroy();
  150. }
  151. }
  152. }
  153. if GameCont.loops >= 2 {
  154. if(instance_exists(Last))
  155. {
  156. with(Last)
  157. {
  158. if(object_index != Flame
  159. && object_index != ToxicGas)
  160. {
  161. global.Last = instance_create(x, y, ScrapBoss);
  162. with(ScrapBoss) { my_health = 12 ; }
  163. global.Last.speed = speed;
  164. global.Last.direction = direction;
  165. global.Last.image_angle = random(360);
  166. instance_destroy();
  167. }
  168. }
  169. }
  170. }
  171.  
  172. //Big Bandit
  173. with (BanditBoss) if(object_index != Flame && object_index != ToxicGas) {
  174. var BanditBoss = instance_create(x, y, FrogQueen);
  175. with(FrogQueen) { my_health = 1000 ; }
  176. BanditBoss.speed = speed;
  177. BanditBoss.direction = direction;
  178. BanditBoss.image_angle = random(360);
  179. instance_destroy();
  180. }
  181.  
  182.  
  183. //LittleHunter
  184. with (LilHunter) if(object_index != Flame && object_index != ToxicGas) {
  185. with(ScrapBoss) { my_health = 450 ; }
  186. with(FrogQueen) { my_health = 650 ; }
  187. var LilHunter = instance_create(x, y, ScrapBoss);
  188. var LilHunter = instance_create(x, y, ScrapBoss);
  189. var LilHunter = instance_create(x, y, ScrapBoss);
  190. var LilHunter = instance_create(x, y, ScrapBoss);
  191. var LilHunter = instance_create(x, y, FrogQueen);
  192. LilHunter.direction = direction;
  193. if GameCont.loops >= 2 {
  194. with(ScrapBoss) { my_health = 800 ; }
  195. with(FrogQueen) { my_health = 650 ; }
  196. var LilHunter = instance_create(x, y, ScrapBoss);
  197. var LilHunter = instance_create(x, y, ScrapBoss);
  198. var LilHunter = instance_create(x, y, ScrapBoss);
  199. var LilHunter = instance_create(x, y, ScrapBoss);
  200. var LilHunter = instance_create(x, y, FrogQueen);
  201. }
  202. LilHunter.image_angle = random(360);
  203. instance_destroy();
  204. }
  205. //HyperCrystal
  206. with (HyperCrystal) if(object_index != Flame && object_index != ToxicGas) {
  207. with(CrownGuardianOld) { my_health = 700 ; }
  208. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  209. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  210. if GameCont.loops >= 2 {
  211. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  212. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  213. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  214. var HyperCrystal = instance_create(x, y, CrownGuardianOld);
  215. }
  216. HyperCrystal.speed = speed;
  217. HyperCrystal.direction = direction;
  218. HyperCrystal.image_angle = random(360);
  219. instance_destroy();
  220. }
  221. //Nechrodancer
  222. with (TechnoMancer) if(object_index != Flame && object_index != ToxicGas) {
  223. with(Nothing2) { my_health = 1500 ; }
  224. var TechnoMancer = instance_create(x, y, Nothing2);
  225. if GameCont.loops >= 2 {
  226. var TechnoMancer = instance_create(x, y, Nothing2);
  227. }
  228. TechnoMancer.speed = speed;
  229. TechnoMancer.direction = direction;
  230. TechnoMancer.image_angle = random(360);
  231. instance_destroy();
  232. }
  233. //Throne
  234. if (instance_exists(ThroneStatue)) && (instance_exists(Generator))
  235. {
  236. with (ThroneStatue) if(object_index != Flame && object_index != ToxicGas) {
  237. var ThroneStatue = instance_create(x, y, Guardian );
  238. with(Guardian) { my_health = 300 ; }
  239. ThroneStatue.speed = speed;
  240. ThroneStatue.direction = direction;
  241. ThroneStatue.image_angle = random(360);
  242. instance_destroy();
  243. }
  244. }
  245. //Ballmum
  246. if(instance_exists(FrogQueen)) && (instance_exists(Rat))
  247. {
  248. with(FrogQueen)
  249. {
  250. if(object_index != Flame
  251. && object_index != ToxicGas)
  252. {
  253. global.FrogQueen = instance_create(x, y, Turtle);
  254. with(Turtle) { my_health = 2000 ; }
  255. with (Turtle)
  256.  
  257. image_xscale = 5
  258. image_yscale = 50
  259. global.FrogQueen.speed = speed;
  260. global.FrogQueen.direction = direction;
  261. global.FrogQueen.image_angle = random(360);
  262. instance_destroy();
  263. with (Turtle)
  264. image_xscale = 5
  265. image_yscale = 50
  266. }
  267. }
  268. }
  269. //Bigdog
  270. if(instance_exists(ScrapBoss)) && (instance_exists(Raven))
  271. {
  272. with(ScrapBoss)
  273. {
  274. if(object_index != Flame
  275. && object_index != ToxicGas)
  276. {
  277. global.ScrapBoss = instance_create(x, y, EnemyHorror);
  278. with(EnemyHorror) { my_health = 2000 ; }
  279. global.ScrapBoss.speed = speed;
  280. global.ScrapBoss.direction = direction;
  281. global.ScrapBoss.image_angle = random(360);
  282. instance_destroy();
  283. }
  284. }
  285. }
  286.  
  287. //Nightbush
  288. with (BonePileNight) if(object_index != Flame && object_index != ToxicGas) {
  289. var BonePileNight = instance_create(x, y, FrogQueen);
  290. BonePileNight.speed = speed;
  291. BonePileNight.direction = direction;
  292. BonePileNight.image_angle = random(360);
  293. instance_destroy();
  294. }
  295. //Popo
  296. with (Grunt) if(object_index != Flame && object_index != ToxicGas) {
  297. var Grunt = instance_create(x, y, PopoFreak);
  298. Grunt.speed = speed;
  299. Grunt.direction = direction;
  300. Grunt.image_angle = random(360);
  301. instance_destroy();
  302. }
  303. with (Inspector) if(object_index != Flame && object_index != ToxicGas) {
  304. var Inspector = instance_create(x, y, EliteInspector);
  305. Inspector.speed = speed;
  306. Inspector.direction = direction;
  307. Inspector.image_angle = random(360);
  308. instance_destroy();
  309. }
  310. with (Shielder) if(object_index != Flame && object_index != ToxicGas) {
  311. var Shielder = instance_create(x, y, EliteShielder);
  312. Shielder.speed = speed;
  313. Shielder.direction = direction;
  314. Shielder.image_angle = random(360);
  315. instance_destroy();
  316. }
  317. // nort sout west east fire spec swap pick paus okay exit horn talk key1 key2 key3 key4 key5 key6
  318.  
  319. //Revolver
  320. with (Bullet1) if(object_index != Flame && object_index != ToxicGas) {
  321. var car = instance_create(x, y, CarThrow);
  322. car.speed = speed;
  323. car.direction = direction;
  324. car.image_angle = random(360);
  325. instance_destroy();
  326. }
  327. with (CarThrow) {
  328. var flame = instance_create(x, y, Flame);
  329. flame.speed = random(8);
  330. flame.direction = direction+random_range(-45, 45);
  331. flame.image_angle = direction;
  332. flame.team = 2
  333. }
  334.  
  335.  
  336. //Shotgun
  337. if(instance_exists(Bullet2))
  338. {
  339. with(Bullet2)
  340. {
  341. if(object_index != Flame
  342. && object_index != ToxicGas)
  343. {
  344. global.Bullet2 = instance_create(x, y, PlasmaBall);
  345. global.Bullet2.speed = speed;
  346. global.Bullet2.direction = direction;
  347. global.Bullet2.image_angle = random(360);
  348. with (PlasmaBall) team = 2;
  349. PlasmaBall.speed = 25;
  350. instance_destroy();
  351. }
  352. }
  353. }
  354.  
  355.  
  356.  
  357. //Melee
  358. if(instance_exists(Slash))
  359. {
  360. with(Slash)
  361. {
  362. if(object_index != Flame
  363. && object_index != ToxicGas)
  364. {
  365. global.Slash = instance_create(x, y, Bolt);
  366. global.Slash.speed = speed;
  367. global.Slash.direction = direction;
  368. global.Slash.image_angle = random(360);
  369. with (Bolt) team = 2
  370.  
  371. instance_destroy();
  372. }
  373. }
  374. }
  375. if(instance_exists(LightningBall))
  376. {
  377. with(LightningBall)
  378.  
  379.  
  380. {
  381. global.Slash = instance_create(x, y, Flame);
  382. global.Slash.speed = random(8);
  383. global.Slash.direction = direction+random_range(-45, 45);
  384. global.Slash.image_angle = direction;
  385. Flame.team = 2
  386. }
  387.  
  388. }
  389. //Flame
  390. if(instance_exists(DragonBurst))
  391. {
  392. with(DragonBurst)
  393. {
  394. if(object_index != Flame
  395. && object_index != ToxicGas)
  396. {
  397. global.DragonBurst = instance_create(x, y, FlameBall);
  398. global.DragonBurst.speed = speed;
  399. global.DragonBurst.direction = direction;
  400. global.DragonBurst.image_angle = random(360);
  401. with (FlameBall) team = 2
  402. with (Flame) team = 2
  403. instance_destroy();
  404. }
  405. }
  406. }
  407. if(instance_exists(FlameBurst))
  408. {
  409. with(FlameBurst)
  410. {
  411. if(object_index != Flame
  412. && object_index != ToxicGas)
  413. {
  414. global.FlameBurst = instance_create(x, y, FlameBall);
  415. global.FlameBurst = instance_create(x, y, FlameBall);
  416. global.FlameBurst = instance_create(x, y, FlameBall);
  417. global.FlameBurst = instance_create(x, y, FlameBall);
  418. global.FlameBurst = instance_create(x, y, FlameBall);
  419. global.FlameBurst = instance_create(x, y, FlameBall);
  420. global.FlameBurst.speed = speed;
  421. global.FlameBurst.direction = direction;
  422. global.FlameBurst.image_angle = random(360);
  423. with (FlameBall) team = 2
  424. with (Flame) team = 2
  425. instance_destroy();
  426. }
  427. }
  428. }
  429.  
  430. //Slugger
  431. if(instance_exists(Slug))
  432. {
  433. with(Slug)
  434. {
  435. if(object_index != Flame
  436. && object_index != ToxicGas)
  437. {
  438. global.Slug = instance_create(x, y, PlasmaBig);
  439. global.Slug.speed = speed;
  440. global.Slug.direction = direction;
  441. global.Slug.image_angle = random(360);
  442. with (PlasmaBig) team = 2
  443. instance_destroy();
  444. }
  445. }
  446. }
  447. //Grenade
  448. if(instance_exists(Grenade))
  449. {
  450. with(Grenade)
  451.  
  452.  
  453. {
  454. for (var r = 48; r <= 160; r += 16) {
  455. var n = ceil(0.1 * r / 24);
  456. with (Player) {
  457. var d = random(360);
  458. for (var i = 0; i < n; i += 1) {
  459. instance_create(
  460. x + lengthdir_x(r,d),
  461. y + lengthdir_y(r,d),
  462. SmallExplosion
  463. );
  464. d += 360 / n;
  465. }
  466. }
  467. }
  468. wait(2)
  469. instance_destroy();
  470. }
  471.  
  472. }
  473. //Bouncer
  474. if(instance_exists(BouncerBullet))
  475. {
  476. with(BouncerBullet)
  477.  
  478. {
  479.  
  480. global.BouncerBullet = instance_create(x, y, Devastator);
  481. global.BouncerBullet.speed = speed;
  482. global.BouncerBullet.direction = direction;
  483. global.BouncerBullet.image_angle = random(360);
  484. with (Devastator)
  485. image_xscale = 25
  486. image_yscale = 25
  487. with (Devastator) team = 2
  488. instance_destroy();
  489.  
  490. }
  491. }
  492. //Crossbow
  493. if(instance_exists(Bolt))
  494. {
  495. with(Bolt)
  496.  
  497. {
  498. if(object_index != Flame
  499. && object_index != ToxicGas)
  500. {
  501. global.Bolt = instance_create(x, y, FlakBullet);
  502. global.Bolt.speed = speed;
  503. global.Bolt.direction = direction;
  504. global.Bolt.image_angle = random(360);
  505. with (FlakBullet) team = 2
  506. instance_destroy();
  507. }
  508. }
  509. }
  510. //Lightning
  511. if(instance_exists(Lightning))
  512. {
  513. with(Lightning)
  514.  
  515. {
  516. global.Lightning = instance_create(x, y, EnemyBullet1);
  517. global.Lightning.speed = speed;
  518. global.Lightning.direction = direction;
  519. global.Lightning.image_angle = random(360);
  520. EnemyBullet1.speed = speed;
  521. EnemyBullet1.direction = direction;
  522. EnemyBullet1.image_angle = random(360);
  523. with (EnemyBullet1) team = 2
  524. instance_destroy();
  525. }
  526. }
  527. //Laser
  528. if(instance_exists(Laser))
  529. {
  530. with(Laser)
  531.  
  532. {
  533. if(object_index != Flame
  534. && object_index != ToxicGas)
  535. {
  536. global.Laser = instance_create(x, y, BloodBall);
  537. global.Laser.speed = speed;
  538. global.Laser.direction = direction;
  539. global.Laser.image_angle = random(360);
  540. with (BloodBall) team = 2
  541. instance_destroy();
  542. }
  543. }
  544. }
  545. //seeker
  546. if(instance_exists(Seeker))
  547. {
  548. with(Seeker)
  549.  
  550. {
  551. if(object_index != Flame
  552. && object_index != ToxicGas)
  553. {
  554. global.Seeker = instance_create(x, y, Nuke);
  555. global.Seeker.speed = speed;
  556. global.Seeker.direction = direction;
  557. global.Seeker.image_angle = random(360);
  558. with (Nuke) team = 2
  559. instance_destroy();
  560. }
  561. }
  562. }
  563. //Splinter
  564. if(instance_exists(Splinter))
  565. {
  566. with(Splinter)
  567.  
  568. {
  569. if(object_index != Flame
  570. && object_index != ToxicGas)
  571. {
  572. global.Splinter = instance_create(x, y, SentryGun);
  573. global.Splinter.speed = speed;
  574. global.Splinter.direction = direction;
  575. global.Splinter.image_angle = random(360);
  576. instance_destroy();
  577. }
  578. }
  579. }
  580. //FlameShell
  581. if(instance_exists(FlameShell))
  582. {
  583. with(FlameShell)
  584.  
  585. {
  586. if(object_index != Flame
  587. && object_index != ToxicGas)
  588. {
  589. global.FlameShell = instance_create(x, y, UltraShell);
  590. global.FlameShell = instance_create(x, y, UltraShell);
  591. global.FlameShell.speed = speed;
  592. global.FlameShell.direction = direction;
  593. global.FlameShell.image_angle = random(360);
  594. with (UltraShell) team = 2
  595. with (UltraShell)
  596. image_xscale = 2;
  597. image_yscale = 2;
  598. instance_destroy();
  599. }
  600. }
  601. }
  602. //HeavyBullets
  603. if(instance_exists(HeavyBullet))
  604. {
  605. with(HeavyBullet)
  606.  
  607. {
  608. if(object_index != Flame
  609. && object_index != ToxicGas)
  610. {
  611. global.HeavyBullet = instance_create(x, y, Nuke);
  612. global.HeavyBullet.speed = speed;
  613. global.HeavyBullet.direction = direction;
  614. global.HeavyBullet.image_angle = random(360);
  615. with (Nuke) team = 2
  616. instance_destroy();
  617. }
  618. }
  619. }
  620. //Shanks
  621. if(instance_exists(Shank))
  622. {
  623. with(Shank)
  624. {
  625. {
  626. global.Shank = instance_create(x, y, FlameBall);
  627. global.Shank.speed = speed;
  628. global.Shank.direction = direction;
  629. global.Shank.image_angle = random(360);
  630. with (FlameBall) team = 2;
  631. instance_destroy();
  632. }
  633. }
  634. }
  635. //Ultra(Disc)Weapons
  636. if(instance_exists(UltraBolt))
  637. {
  638. with(UltraBolt)
  639. {
  640. if(object_index != Flame
  641. && object_index != ToxicGas)
  642. {
  643. global.UltraBolt = instance_create(x, y, Disc);
  644. global.UltraBolt.speed = 50;
  645. global.UltraBolt.direction = direction;
  646. global.UltraBolt.image_angle = random(360);
  647. with (Disc) team = 2;
  648. instance_destroy();
  649. }
  650. }
  651. }
  652.  
  653. //HeavyBolt
  654. if(instance_exists(HeavyBolt))
  655. {
  656. with(HeavyBolt)
  657.  
  658. {
  659. if(object_index != Flame
  660. && object_index != ToxicGas)
  661. {
  662. global.HeavyBolt = instance_create(x, y, FlakBullet);
  663. global.HeavyBolt.speed = speed;
  664. global.HeavyBolt.direction = direction;
  665. global.HeavyBolt.image_angle = random(360);
  666. with (FlakBullet) team = 2
  667. instance_destroy();
  668. }
  669. }
  670. }
  671. //Energy sword
  672. if(instance_exists(EnergySlash))
  673. {
  674. with(EnergySlash)
  675.  
  676. {
  677. if(object_index != Flame
  678. && object_index != ToxicGas)
  679. {
  680. global.EnergySlash = instance_create(x, y, UltraBullet);
  681. global.EnergySlash.speed = speed;
  682. global.EnergySlash.direction = direction;
  683. global.EnergySlash.image_angle = random(360);
  684. with (UltraBullet) team = 2
  685. instance_destroy();
  686. }
  687. }
  688. }
  689. //EnergyHammer
  690. if(instance_exists(EnergyHammerSlash))
  691. {
  692. with(EnergyHammerSlash)
  693.  
  694. {
  695. if(object_index != Flame
  696. && object_index != ToxicGas)
  697. {
  698. global.EnergyHammerSlash = instance_create(x, y, EnergySlash);
  699. global.EnergyHammerSlash.speed = speed;
  700. global.EnergyHammerSlash.direction = direction;
  701. global.EnergyHammerSlash.image_angle = random(360);
  702. with (EnergySlash) team = 2
  703. instance_destroy();
  704. }
  705. }
  706. }
  707. //Energy shank
  708. if(instance_exists(EnergyShank))
  709. {
  710. with(EnergyShank)
  711.  
  712. {
  713. if(object_index != Flame
  714. && object_index != ToxicGas)
  715. {
  716. global.EnergyShank = instance_create(x, y, EnergyHammerSlash);
  717. global.EnergyShank.speed = speed;
  718. global.EnergyShank.direction = direction;
  719. global.EnergyShank.image_angle = random(360);
  720. with (EnergyHammerSlash) team = 2
  721. instance_destroy();
  722. }
  723. }
  724. }
  725.  
  726. //Bazooka
  727. if(instance_exists(Rocket))
  728. {
  729. with(Rocket)
  730.  
  731. {
  732.  
  733. global.Rocket = instance_create(x, y, HealthChest);
  734. global.Rocket.speed = speed;
  735. global.Rocket.direction = direction;
  736. global.Rocket.image_angle = random(360);
  737. wait(15)
  738. instance_destroy();
  739.  
  740. }
  741. }
  742. //Bloodhammer
  743. if(instance_exists(BloodSlash))
  744. {
  745. with(BloodSlash)
  746.  
  747. {
  748. if(object_index != Flame
  749. && object_index != ToxicGas)
  750. {
  751. global.BloodSlash = instance_create(x, y, EnergyHammerSlash);
  752. global.BloodSlash.speed = speed;
  753. global.BloodSlash.direction = direction;
  754. global.BloodSlash.image_angle = random(360);
  755. with (EnergyHammerSlash) team = 2
  756. instance_destroy();
  757. }
  758. }
  759. }
  760. //Lightninghammer
  761. if(instance_exists(LightningSlash))
  762. {
  763. with(LightningSlash)
  764.  
  765. {
  766. if(object_index != Flame
  767. && object_index != ToxicGas)
  768. {
  769. global.LightningSlash = instance_create(x, y, EnergyHammerSlash);
  770. global.LightningSlash.speed = speed;
  771. global.LightningSlash.direction = direction;
  772. global.LightningSlash.image_angle = random(360);
  773. with (EnergyHammerSlash) team = 2
  774. instance_destroy();
  775. }
  776. }
  777. }
  778. //Heavyslug
  779. if(instance_exists(HeavySlug))
  780. {
  781. with(HeavySlug)
  782.  
  783. {
  784. if(object_index != Flame
  785. && object_index != ToxicGas)
  786. {
  787. global.HeavySlug = instance_create(x, y, ProtoChest);
  788. global.HeavySlug.speed = speed;
  789. global.HeavySlug.direction = direction;
  790. global.HeavySlug.image_angle = random(360);
  791. with (EnergyHammerSlash) team = 2
  792. instance_destroy();
  793. }
  794. }
  795. }
  796. //PlasmaHuge
  797. if(instance_exists(PlasmaHuge))
  798. {
  799. with(PlasmaHuge)
  800.  
  801. {
  802. if(object_index != Flame
  803. && object_index != ToxicGas)
  804. {
  805. global.PlasmaHuge = instance_create(x, y, GiantWeaponChest);
  806. global.PlasmaHuge.speed = speed;
  807. global.PlasmaHuge.direction = direction;
  808. global.PlasmaHuge.image_angle = random(360);
  809. with (EnergyHammerSlash) team = 2
  810. instance_destroy();
  811. }
  812. }
  813. }
  814. //Toxic
  815. if(instance_exists(ToxicBolt))
  816. {
  817. with(ToxicBolt)
  818.  
  819. {
  820. if(object_index != Flame
  821. && object_index != ToxicGas)
  822. {
  823. global.ToxicBolt = instance_create(x, y, GiantAmmoChest);
  824. global.ToxicBolt.speed = speed;
  825. global.ToxicBolt.direction = direction;
  826. global.ToxicBolt.image_angle = random(360);
  827. instance_destroy();
  828. }
  829. }
  830. }
  831. //Disc
  832. if(instance_exists(Disc))
  833. {
  834. with(Disc)
  835.  
  836. {
  837. if(object_index != Flame
  838. && object_index != ToxicGas)
  839. {
  840. global.Disc = instance_create(x, y, Disc);
  841. global.Disc.speed = 100;
  842. global.Disc.direction = direction;
  843. global.Disc.image_angle = random(360);
  844. with (Disc) team = 2
  845. instance_destroy();
  846. }
  847. }
  848. }
  849. if(instance_exists(HyperSlug))
  850. {
  851. with(HyperSlug)
  852.  
  853. {
  854. if(object_index != Flame
  855. && object_index != ToxicGas)
  856. {
  857. global.HyperSlug = instance_create(x, y, LastBall);
  858. global.HyperSlug.speed = 100;
  859. global.HyperSlug.direction = direction;
  860. global.HyperSlug.image_angle = random(360);
  861. with (LastBall) team = 2
  862. instance_destroy();
  863. }
  864. }
  865. }
  866. //Plasma gun
  867. if(instance_exists(Player))
  868. {
  869. with(PlasmaBall)
  870.  
  871. {
  872. if(object_index != Flame
  873. && object_index != ToxicGas)
  874. {
  875. PlasmaBall.speed = 25;
  876. with (PlasmaBall) team = 2;
  877. }
  878. }
  879. }
  880. //Plasma cannon
  881. if(instance_exists(Player))
  882. {
  883. with(PlasmaBig)
  884. {
  885. if(object_index != Flame
  886. && object_index != ToxicGas)
  887. {
  888. PlasmaBig.speed = 30;
  889. with (PlasmaBall) team = 2;
  890. }
  891. }
  892. }
  893. //Flare
  894. if(instance_exists(Flare))
  895. {
  896. with(Flare)
  897.  
  898. {
  899. if(object_index != Flame
  900. && object_index != ToxicGas)
  901. {
  902. global.Disc = instance_create(x, y, LastBall);
  903. global.Disc.speed = 100;
  904. global.Disc.direction = direction;
  905. global.Disc.image_angle = random(360);
  906. with (LastBall) team = 2
  907. instance_destroy();
  908. }
  909. }
  910. }
Advertisement
Add Comment
Please, Sign In to add comment