Advertisement
konamikode

NT Weapons U19

Apr 15th, 2017
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if !instance_exists(Player)
  2. exit;
  3.  
  4. can_shoot = 0
  5. reload = wep_load[wep]
  6. if !(Player.race = 7 and Player.skill_got[5] = 1 and random(5) < 1)
  7. ammo[wep_type[wep]] -= wep_cost[wep]
  8. //else
  9. //snd_play(sndSteroidsUpg)
  10.  
  11. drawempty = 10
  12.  
  13. //REVOLVER
  14. if wep = 1
  15. {
  16. snd_play(sndPistol)
  17.  
  18. with instance_create(x,y,Shell)
  19. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
  20.  
  21. with instance_create(x,y,Bullet1)
  22. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
  23. image_angle = direction
  24. team = other.team}
  25.  
  26. BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  27. BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  28. BackCont.shake += 4
  29. wkick = 2
  30. }
  31.  
  32. //TRIPLE MACHINEGUN
  33. if wep = 2
  34. {
  35. snd_play(sndMachinegun)
  36.  
  37. repeat(3)
  38. {
  39. with instance_create(x,y,Shell)
  40. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(70)-35,2+random(2))
  41. }
  42.  
  43. with instance_create(x,y,Bullet1)
  44. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,16)
  45. image_angle = direction
  46. team = other.team}
  47. with instance_create(x,y,Bullet1)
  48. {motion_add(point_direction(x,y,mouse_x,mouse_y)+15*other.accuracy+(random(6)-3)*other.accuracy,16)
  49. image_angle = direction
  50. team = other.team}
  51. with instance_create(x,y,Bullet1)
  52. {motion_add(point_direction(x,y,mouse_x,mouse_y)-15*other.accuracy+(random(6)-3)*other.accuracy,16)
  53. image_angle = direction
  54. team = other.team}
  55.  
  56. BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  57. BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  58. BackCont.shake += 4
  59. wkick = 6
  60. }
  61.  
  62. //SLEDGEHAMMER
  63. if wep = 3
  64. {
  65. snd_play(sndHammer)
  66.  
  67. instance_create(x,y,Dust)
  68.  
  69. with instance_create(x+lengthdir_x(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),y+lengthdir_y(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),Slash)
  70. {
  71. dmg = 4
  72. longarms = 0
  73. if instance_exists(Player)
  74. longarms = Player.skill_got[13]*3
  75. motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
  76. image_angle = direction
  77. team = other.team}
  78.  
  79. wepangle = -wepangle
  80. motion_add(point_direction(x,y,mouse_x,mouse_y),6)
  81. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  82. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  83. BackCont.shake += 1
  84. wkick = -4
  85. }
  86.  
  87. //MACHINEGUN
  88. if wep = 4
  89. {
  90. snd_play(sndMachinegun)
  91. with instance_create(x,y,Shell)
  92. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
  93.  
  94. with instance_create(x,y,Bullet1)
  95. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,16)
  96. image_angle = direction
  97. team = other.team}
  98.  
  99. BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  100. BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  101. BackCont.shake += 3
  102. wkick = 2
  103. }
  104.  
  105. //SHOTGUN
  106. if wep = 5
  107. {
  108. snd_play(sndShotgun)
  109.  
  110. repeat(7)
  111. {
  112. with instance_create(x,y,Bullet2)
  113. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(40)-20)*other.accuracy,12+random(6))
  114. image_angle = direction
  115. team = other.team}
  116. }
  117.  
  118. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  119. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  120. BackCont.shake += 8
  121. wkick = 6
  122. }
  123.  
  124.  
  125. //CROSSBOW
  126. if wep = 6
  127. {
  128. snd_play(sndCrossbow)
  129.  
  130. with instance_create(x,y,Bolt)
  131. {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
  132. image_angle = direction
  133. team = other.team}
  134.  
  135. BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  136. BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  137. BackCont.shake += 4
  138. wkick = 4
  139. }
  140.  
  141. //NADER
  142. if wep = 7
  143. {
  144. snd_play(sndGrenade)
  145.  
  146. with instance_create(x,y,Grenade)
  147. {
  148. sticky = 0
  149. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,10)
  150. image_angle = direction
  151. team = other.team}
  152.  
  153. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  154. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  155. BackCont.shake += 2
  156. wkick = 5
  157. }
  158.  
  159. //DOUBLE SHOTGUN
  160. if wep = 8
  161. {
  162. snd_play(sndShotgun)
  163.  
  164. repeat(14)
  165. {
  166. with instance_create(x,y,Bullet2)
  167. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(50)-30)*other.accuracy,12+random(6))
  168. image_angle = direction
  169. team = other.team}
  170. }
  171.  
  172. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,2)
  173.  
  174. BackCont.viewx2 += lengthdir_x(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  175. BackCont.viewy2 += lengthdir_y(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  176. BackCont.shake += 16
  177. wkick = 8
  178. }
  179.  
  180. //MINIGUN
  181. if wep = 9
  182. {
  183. snd_play(sndMinigun)
  184. with instance_create(x,y,Shell)
  185. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(80)-40,3+random(2))
  186.  
  187. with instance_create(x,y,Bullet1)
  188. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(26)-13)*other.accuracy,16)
  189. image_angle = direction
  190. team = other.team}
  191. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,0.6)
  192. BackCont.viewx2 += lengthdir_x(7,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  193. BackCont.viewy2 += lengthdir_y(7,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  194. BackCont.shake += 4
  195. wkick = 4
  196. }
  197.  
  198. //AUTO SHOTGUN
  199. if wep = 10
  200. {
  201. snd_play(sndShotgun)
  202.  
  203. repeat(6)
  204. {
  205. with instance_create(x,y,Bullet2)
  206. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy,12+random(6))
  207. image_angle = direction
  208. team = other.team}
  209. }
  210.  
  211. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  212. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  213. BackCont.shake += 8
  214. wkick = 5
  215. }
  216.  
  217. //AUTO CROSSBOW
  218. if wep = 11
  219. {
  220. snd_play(sndCrossbow)
  221.  
  222. with instance_create(x,y,Bolt)
  223. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,24)
  224. image_angle = direction
  225. team = other.team}
  226.  
  227. BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  228. BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  229. BackCont.shake += 5
  230. wkick = 4
  231. }
  232.  
  233. //SUPER CROSSBOW
  234. if wep = 12
  235. {
  236. snd_play(sndCrossbow)
  237.  
  238. with instance_create(x,y,Bolt)
  239. {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
  240. image_angle = direction
  241. team = other.team}
  242. with instance_create(x,y,Bolt)
  243. {motion_add(point_direction(x,y,mouse_x,mouse_y)+5*other.accuracy,24)
  244. image_angle = direction
  245. team = other.team}
  246. with instance_create(x,y,Bolt)
  247. {motion_add(point_direction(x,y,mouse_x,mouse_y)-5*other.accuracy,24)
  248. image_angle = direction
  249. team = other.team}
  250. with instance_create(x,y,Bolt)
  251. {motion_add(point_direction(x,y,mouse_x,mouse_y)+10*other.accuracy,24)
  252. image_angle = direction
  253. team = other.team}
  254. with instance_create(x,y,Bolt)
  255. {motion_add(point_direction(x,y,mouse_x,mouse_y)-10*other.accuracy,24)
  256. image_angle = direction
  257. team = other.team}
  258.  
  259. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,1)
  260.  
  261. BackCont.viewx2 += lengthdir_x(60,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  262. BackCont.viewy2 += lengthdir_y(60,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  263. BackCont.shake += 14
  264. wkick = 8
  265. }
  266.  
  267.  
  268. //SHOVEL
  269. if wep = 13
  270. {
  271. snd_play(sndShovel)
  272.  
  273. instance_create(x,y,Dust)
  274.  
  275. with instance_create(x+lengthdir_x(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),y+lengthdir_y(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),Slash)
  276. {
  277. dmg = 8
  278. longarms = 0
  279. if instance_exists(Player)
  280. longarms = Player.skill_got[13]*3
  281. motion_add(point_direction(x,y,mouse_x,mouse_y),3+longarms)
  282. image_angle = direction
  283. team = other.team}
  284. with instance_create(x+lengthdir_x(Player.skill_got[13]*15,point_direction(x,y,mouse_x,mouse_y)+60*Player.accuracy),y+lengthdir_y(Player.skill_got[13]*15,point_direction(x,y,mouse_x,mouse_y)+60*Player.accuracy),Slash)
  285. {
  286. dmg = 8
  287. longarms = 0
  288. if instance_exists(Player)
  289. longarms = Player.skill_got[13]*3
  290. motion_add(point_direction(x,y,mouse_x,mouse_y)+60*other.accuracy,2+longarms)
  291. image_angle = direction
  292. team = other.team}
  293. with instance_create(x+lengthdir_x(Player.skill_got[13]*15,point_direction(x,y,mouse_x,mouse_y)-60*Player.accuracy),y+lengthdir_y(Player.skill_got[13]*15,point_direction(x,y,mouse_x,mouse_y)-60*Player.accuracy),Slash)
  294. {
  295. dmg = 8
  296. longarms = 0
  297. if instance_exists(Player)
  298. longarms = Player.skill_got[13]*3
  299. motion_add(point_direction(x,y,mouse_x,mouse_y)-60*other.accuracy,2+longarms)
  300. image_angle = direction
  301. team = other.team}
  302.  
  303. wepangle = -wepangle
  304. motion_add(point_direction(x,y,mouse_x,mouse_y),6)
  305. BackCont.viewx2 += lengthdir_x(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  306. BackCont.viewy2 += lengthdir_y(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  307. BackCont.shake += 1
  308. wkick = -4
  309. }
  310.  
  311. //BAZOOKA
  312. if wep = 14
  313. {
  314. snd_play(sndRocket)
  315.  
  316. with instance_create(x,y,Rocket)
  317. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
  318. image_angle = direction
  319. team = other.team}
  320.  
  321. BackCont.viewx2 += lengthdir_x(30,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  322. BackCont.viewy2 += lengthdir_y(30,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  323. BackCont.shake += 4
  324. wkick = 10
  325. }
  326.  
  327. // STICKY NADER
  328. if wep = 15
  329. {
  330. snd_play(sndGrenade)
  331.  
  332. with instance_create(x,y,Grenade)
  333. {
  334. sprite_index = sprStickyGrenade
  335. sticky = 1
  336. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,11)
  337. image_angle = direction
  338. team = other.team}
  339.  
  340. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  341. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  342. BackCont.shake += 2
  343. wkick = 5
  344. }
  345.  
  346. //SMG
  347. if wep = 16
  348. {
  349. snd_play(sndPistol)
  350. with instance_create(x,y,Shell)
  351. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(60)-30,2+random(2))
  352.  
  353. with instance_create(x,y,Bullet1)
  354. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(32)-16)*other.accuracy,16)
  355. image_angle = direction
  356. team = other.team}
  357.  
  358. BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  359. BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  360. BackCont.shake += 3
  361. wkick = 2
  362. }
  363.  
  364.  
  365. //ASSAULT RIFLE
  366. if wep = 17
  367. {
  368. with instance_create(x,y,Burst)
  369. {
  370. creator = other.id
  371. ammo = 3
  372. time = 2
  373. team = other.team
  374. event_perform(ev_alarm,0)
  375. }
  376. }
  377.  
  378.  
  379. //DISC GUN
  380. if wep = 18
  381. {
  382. snd_play(sndDiscgun)
  383.  
  384. with instance_create(x,y,Disc)
  385. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,5)
  386. image_angle = direction
  387. team = other.team}
  388.  
  389. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  390. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  391. BackCont.shake += 6
  392. wkick = 4
  393. }
  394.  
  395.  
  396. //LASER PISTOL
  397. if wep = 19
  398. {
  399.  
  400. if skill_got[17] = 1
  401. snd_play(sndLaserUpg)
  402. else
  403. snd_play(sndLaser)
  404. with instance_create(x,y,Laser)
  405. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(2)-1)*other.accuracy
  406. team = other.team
  407. event_perform(ev_alarm,0)}
  408.  
  409. BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  410. BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  411. BackCont.shake += 2
  412. wkick = 2
  413. }
  414.  
  415.  
  416. //LASER RIFLE
  417. if wep = 20
  418. {
  419. if skill_got[17] = 1
  420. snd_play(sndLaserUpg)
  421. else
  422. snd_play(sndLaser)
  423. with instance_create(x,y,Laser)
  424. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy
  425. team = other.team
  426. event_perform(ev_alarm,0)}
  427.  
  428. BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  429. BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  430. BackCont.shake += 2
  431. wkick = 5
  432. }
  433.  
  434.  
  435. //SLUGGER
  436. if wep = 21
  437. {
  438. snd_play(sndSlugger)
  439.  
  440. with instance_create(x,y,Slug)
  441. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,16)
  442. image_angle = direction
  443. team = other.team}
  444.  
  445. BackCont.viewx2 += lengthdir_x(14,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  446. BackCont.viewy2 += lengthdir_y(14,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  447. BackCont.shake += 10
  448. wkick = 8
  449. }
  450.  
  451. //GATLING SLUGGER
  452. if wep = 22
  453. {
  454. snd_play(sndSlugger)
  455.  
  456. with instance_create(x,y,Slug)
  457. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,18)
  458. image_angle = direction
  459. team = other.team}
  460.  
  461. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  462. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  463. BackCont.shake += 10
  464. wkick = 8
  465. }
  466.  
  467. //ASSAULT SLUGGER
  468. if wep = 23
  469. {
  470. with instance_create(x,y,SlugBurst)
  471. {
  472. creator = other.id
  473. ammo = 3
  474. time = 3
  475. team = other.team
  476. event_perform(ev_alarm,0)
  477. }
  478. }
  479.  
  480. //ENERGY SWORD
  481. if wep = 24
  482. {
  483.  
  484. if skill_got[17] = 1
  485. snd_play(sndLaserSwordUpg)
  486. else
  487. snd_play(sndLaserSword)
  488. instance_create(x,y,Dust)
  489.  
  490. with instance_create(x,y,EnergySlash)
  491. {
  492. longarms = 0
  493. if instance_exists(Player)
  494. longarms = Player.skill_got[13]*3
  495. motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
  496. image_angle = direction
  497. team = other.team}
  498.  
  499. wepangle = -wepangle
  500. motion_add(point_direction(x,y,mouse_x,mouse_y),7)
  501. BackCont.viewx2 += lengthdir_x(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  502. BackCont.viewy2 += lengthdir_y(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  503. BackCont.shake += 1
  504. wkick = -4
  505. }
  506.  
  507. //SUPER SLUGGER
  508. if wep = 25
  509. {
  510. snd_play(sndSlugger)
  511.  
  512. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,3)
  513.  
  514. with instance_create(x,y,Slug)
  515. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,18)
  516. image_angle = direction
  517. team = other.team}
  518. with instance_create(x,y,Slug)
  519. {motion_add(point_direction(x,y,mouse_x,mouse_y)+10*other.accuracy+(random(8)-4)*other.accuracy,18)
  520. image_angle = direction
  521. team = other.team}
  522. with instance_create(x,y,Slug)
  523. {motion_add(point_direction(x,y,mouse_x,mouse_y)+20*other.accuracy+(random(8)-4)*other.accuracy,18)
  524. image_angle = direction
  525. team = other.team}
  526. with instance_create(x,y,Slug)
  527. {motion_add(point_direction(x,y,mouse_x,mouse_y)-10*other.accuracy+(random(8)-4)*other.accuracy,18)
  528. image_angle = direction
  529. team = other.team}
  530. with instance_create(x,y,Slug)
  531. {motion_add(point_direction(x,y,mouse_x,mouse_y)-20*other.accuracy+(random(8)-4)*other.accuracy,18)
  532. image_angle = direction
  533. team = other.team}
  534.  
  535. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  536. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  537. BackCont.shake += 15
  538. wkick = 8
  539. }
  540.  
  541. //HYPER RIFLE
  542. if wep = 26
  543. {
  544.  
  545. with instance_create(x,y,Burst)
  546. {
  547. creator = other.id
  548. ammo = 6
  549. time = 1
  550. team = other.team
  551. event_perform(ev_alarm,0)
  552. }
  553.  
  554. }
  555.  
  556.  
  557.  
  558. //MINES
  559. /*
  560. if wep = 27
  561. {
  562. snd_play(sndGrenade)
  563.  
  564. with instance_create(x,y,Mine)
  565. {
  566. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy,4)
  567. team = other.team}
  568.  
  569. BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y))
  570. BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y))
  571. wkick = 8
  572. }*/
  573.  
  574. //SCREWDRIVER
  575. if wep = 27
  576. {
  577. snd_play(sndScrewdriver)
  578.  
  579. instance_create(x,y,Dust)
  580.  
  581. with instance_create(x+lengthdir_x(Player.skill_got[13]*10,point_direction(x,y,mouse_x,mouse_y)),y+lengthdir_y(Player.skill_got[13]*10,point_direction(x,y,mouse_x,mouse_y)),Shank)
  582. {
  583. longarms = 0
  584. if instance_exists(Player)
  585. longarms = Player.skill_got[13]*3
  586. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,3+longarms)
  587. image_angle = direction
  588. team = other.team}
  589.  
  590. wepangle = -wepangle
  591. motion_add(point_direction(x,y,mouse_x,mouse_y),4)
  592. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  593. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  594. BackCont.shake += 1
  595. wkick = -8
  596. }
  597.  
  598. //LASER MINIGUN
  599. if wep = 28
  600. {
  601. if skill_got[17] = 1
  602. snd_play(sndLaserUpg)
  603. else
  604. snd_play(sndLaser)
  605. with instance_create(x,y,Laser)
  606. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(16)-8)*other.accuracy
  607. team = other.team
  608. event_perform(ev_alarm,0)}
  609.  
  610. BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  611. BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  612. BackCont.shake += 2
  613. wkick = 8
  614.  
  615. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,0.6)
  616. }
  617.  
  618.  
  619. //BLOOD NADER
  620. if wep = 29
  621. {
  622. snd_play(sndBloodLauncher)
  623.  
  624. with instance_create(x,y,BloodGrenade)
  625. {
  626. sticky = 0
  627. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,10)
  628. image_angle = direction
  629. team = other.team}
  630.  
  631. BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  632. BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  633. BackCont.shake += 3
  634. wkick = 4
  635. }
  636.  
  637. //SPLINTER GUN
  638. if wep = 30
  639. {
  640. snd_play(sndSplinterGun)
  641.  
  642. repeat(4)
  643. {
  644. with instance_create(x,y,Splinter)
  645. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(20)-10)*other.accuracy,20+random(4))
  646. image_angle = direction
  647. team = other.team}
  648. with instance_create(x,y,Splinter)
  649. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,20+random(4))
  650. image_angle = direction
  651. team = other.team}
  652. }
  653.  
  654. BackCont.viewx2 += lengthdir_x(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  655. BackCont.viewy2 += lengthdir_y(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  656. BackCont.shake += 3
  657. wkick -= 3
  658. }
  659.  
  660.  
  661. //TOXIC BOW
  662. if wep = 31
  663. {
  664. snd_play(sndCrossbow)
  665.  
  666. with instance_create(x,y,ToxicBolt)
  667. {motion_add(point_direction(x,y,mouse_x,mouse_y),22)
  668. image_angle = direction
  669. team = other.team}
  670.  
  671. BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  672. BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  673. BackCont.shake += 5
  674. wkick = 4
  675. }
  676.  
  677. //SENTRY GUN
  678. if wep = 32
  679. {
  680. snd_play(sndGrenade)
  681.  
  682. with instance_create(x,y,SentryGun)
  683. {
  684. sticky = 0
  685. motion_add(point_direction(x,y,mouse_x,mouse_y),6)
  686. image_angle = direction
  687. team = other.team}
  688.  
  689. BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  690. BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  691.  
  692. wkick = -10
  693. }
  694.  
  695. //WAVE GUN
  696. if wep = 33
  697. {
  698. with instance_create(x,y,WaveBurst)
  699. {
  700. creator = other.id
  701. ammo = 7
  702. time = 1
  703. team = other.team
  704. event_perform(ev_alarm,0)
  705. }
  706. }
  707.  
  708. //PLASMA GUN
  709. if wep = 34
  710. {
  711. if skill_got[17] = 1
  712. snd_play(sndPlasmaUpg)
  713. else
  714. snd_play(sndPlasma)
  715.  
  716. with instance_create(x,y,PlasmaBall)
  717. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,2)
  718. image_angle = direction
  719. team = other.team}
  720.  
  721. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,3)
  722. BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  723. BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  724. BackCont.shake += 3
  725. wkick = 5
  726. }
  727.  
  728. //PLASMA CANNON
  729. if wep = 35
  730. {
  731. if skill_got[17] = 1
  732. snd_play(sndPlasmaBigUpg)
  733. else
  734. snd_play(sndPlasmaBig)
  735.  
  736. with instance_create(x,y,PlasmaBig)
  737. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
  738. image_angle = direction
  739. team = other.team}
  740.  
  741. motion_add(point_direction(x,y,mouse_x,mouse_y)+180,6)
  742. BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  743. BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  744. BackCont.shake += 8
  745. wkick = 10
  746. }
  747.  
  748. //ENERGY HAMMER
  749. if wep = 36
  750. {
  751.  
  752. if skill_got[17] = 1
  753. snd_play(sndLaserSwordUpg)
  754. else
  755. snd_play(sndLaserSword)
  756. instance_create(x,y,Dust)
  757.  
  758. with instance_create(x,y,EnergyHammerSlash)
  759. {
  760. longarms = 0
  761. if instance_exists(Player)
  762. longarms = Player.skill_got[13]*2
  763. motion_add(point_direction(x,y,mouse_x,mouse_y),1+longarms)
  764. image_angle = direction
  765. team = other.team}
  766.  
  767. wepangle = -wepangle
  768. motion_add(point_direction(x,y,mouse_x,mouse_y),7)
  769. BackCont.viewx2 += lengthdir_x(32,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  770. BackCont.viewy2 += lengthdir_y(32,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  771. BackCont.shake += 2
  772. wkick = -3
  773. }
  774.  
  775. //JACKHAMMER
  776. if wep = 37
  777. {
  778. with instance_create(x,y,SawBurst)
  779. {
  780. creator = other.id
  781. ammo = 12
  782. time = 1
  783. team = other.team
  784. event_perform(ev_alarm,0)
  785. }
  786. }
  787.  
  788. //FLAK CANNON
  789. if wep = 38
  790. {
  791. snd_play(sndGrenade)
  792.  
  793. with instance_create(x,y,FlakBullet)
  794. {
  795. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,11+random(2))
  796. image_angle = direction
  797. team = other.team}
  798.  
  799. BackCont.viewx2 += lengthdir_x(32,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  800. BackCont.viewy2 += lengthdir_y(32,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  801. BackCont.shake += 4
  802. wkick = 7
  803. }
  804.  
  805.  
  806. //GOLDEN REVOLVER
  807. if wep = 39
  808. {
  809. snd_play(sndPistol)
  810.  
  811. with instance_create(x,y,Shell)
  812. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
  813.  
  814. with instance_create(x,y,Bullet1)
  815. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
  816. image_angle = direction
  817. team = other.team}
  818.  
  819. BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  820. BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  821. BackCont.shake += 5
  822. wkick = 4
  823. }
  824.  
  825. //GOLDEN HAMMER
  826. if wep = 40
  827. {
  828. snd_play(sndHammer)
  829.  
  830. instance_create(x,y,Dust)
  831.  
  832. with instance_create(x+lengthdir_x(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),y+lengthdir_y(Player.skill_got[13]*20,point_direction(x,y,mouse_x,mouse_y)),Slash)
  833. {
  834. dmg = 4
  835. longarms = 0
  836. if instance_exists(Player)
  837. longarms = Player.skill_got[13]*3
  838. motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
  839. image_angle = direction
  840. team = other.team}
  841.  
  842. wepangle = -wepangle
  843. motion_add(point_direction(x,y,mouse_x,mouse_y),6)
  844. BackCont.viewx2 += lengthdir_x(16,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  845. BackCont.viewy2 += lengthdir_y(16,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  846. BackCont.shake += 2
  847. wkick = -6
  848. }
  849.  
  850.  
  851. //GOLDEN MACHINEGUN
  852. if wep = 41
  853. {
  854. snd_play(sndMachinegun)
  855. with instance_create(x,y,Shell)
  856. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
  857.  
  858. with instance_create(x,y,Bullet1)
  859. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
  860. image_angle = direction
  861. team = other.team}
  862.  
  863. BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  864. BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  865. BackCont.shake += 4
  866. wkick = 4
  867. }
  868.  
  869.  
  870. //GOLDEN SHOTGUN
  871. if wep = 42
  872. {
  873. snd_play(sndShotgun)
  874.  
  875. repeat(8)
  876. {
  877. with instance_create(x,y,Bullet2)
  878. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(40)-20)*other.accuracy,12+random(6))
  879. image_angle = direction
  880. team = other.team}
  881. }
  882.  
  883. BackCont.viewx2 += lengthdir_x(16,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  884. BackCont.viewy2 += lengthdir_y(16,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  885. BackCont.shake += 10
  886. wkick = 8
  887. }
  888.  
  889.  
  890.  
  891. //GOLDEN CROSSBOW
  892. if wep = 43
  893. {
  894. snd_play(sndCrossbow)
  895.  
  896. with instance_create(x,y,Bolt)
  897. {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
  898. image_angle = direction
  899. team = other.team}
  900.  
  901. BackCont.viewx2 += lengthdir_x(44,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  902. BackCont.viewy2 += lengthdir_y(44,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  903. BackCont.shake += 6
  904. wkick = 6
  905. }
  906.  
  907. //GOLDEN NADER
  908. if wep = 44
  909. {
  910. snd_play(sndGrenade)
  911.  
  912. with instance_create(x,y,Grenade)
  913. {
  914. sprite_index = sprGoldGrenade
  915. sticky = 0
  916. motion_add(point_direction(x,y,mouse_x,mouse_y),12)
  917. image_angle = direction
  918. team = other.team}
  919.  
  920. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  921. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  922. BackCont.shake += 4
  923. wkick = 7
  924. }
  925.  
  926. //GOLDEN LASER PISTOL
  927. if wep = 45
  928. {
  929.  
  930. if skill_got[17] = 1
  931. snd_play(sndLaserUpg)
  932. else
  933. snd_play(sndLaser)
  934. with instance_create(x,y,Laser)
  935. {image_angle = point_direction(x,y,mouse_x,mouse_y)
  936. team = other.team
  937. event_perform(ev_alarm,0)}
  938.  
  939. BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  940. BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  941. BackCont.shake += 4
  942. wkick = 4
  943. }
  944.  
  945.  
  946. //CHICKEN SWORD
  947. if wep = 46
  948. {
  949. snd_play(sndHammer)
  950.  
  951. instance_create(x,y,Dust)
  952.  
  953. ang = point_direction(x,y,mouse_x,mouse_y)
  954. move_contact_solid(ang,16)
  955.  
  956. instance_create(x,y,Dust)
  957.  
  958. with instance_create(x+lengthdir_x(Player.skill_got[13]*20,ang),y+lengthdir_y(Player.skill_got[13]*20,ang),Slash)
  959. {
  960. ang = other.ang
  961. dmg = 3
  962. longarms = 0
  963. if instance_exists(Player)
  964. longarms = Player.skill_got[13]*3
  965. motion_add(ang,2+longarms)
  966. image_angle = direction
  967. team = other.team}
  968.  
  969. wepangle = -wepangle
  970. speed = -speed/2
  971. BackCont.viewx2 += lengthdir_x(8,ang)*UberCont.opt_shake
  972. BackCont.viewy2 += lengthdir_y(8,ang)*UberCont.opt_shake
  973. BackCont.shake += 1
  974. wkick = -6
  975. }
  976.  
  977.  
  978. //NUKE LAUNCHER
  979. if wep = 47
  980. {
  981. snd_play(sndRocket)
  982.  
  983. with instance_create(x,y,Nuke)
  984. {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
  985. image_angle = direction
  986. team = other.team}
  987.  
  988. BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  989. BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  990. BackCont.shake += 8
  991. wkick = 10
  992. }
  993.  
  994. //ION CANNON
  995. if wep = 48
  996. {
  997.  
  998. if skill_got[17] = 1
  999. snd_play(sndLaserUpg)
  1000. else
  1001. snd_play(sndLaser)
  1002. with instance_create(x,y,IonBurst)
  1003. {
  1004. creator = other.id
  1005. ammo = 10
  1006. time = 1
  1007. team = other.team
  1008. alarm[0] = 30
  1009. }
  1010.  
  1011. BackCont.shake += 6
  1012. wkick = 3
  1013. }
  1014.  
  1015.  
  1016. //QUADRUPLE MACHINEGUN
  1017. if wep = 49
  1018. {
  1019. snd_play(sndMachinegun)
  1020.  
  1021. repeat(4)
  1022. {
  1023. with instance_create(x,y,Shell)
  1024. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(70)-35,4+random(3))
  1025. }
  1026.  
  1027. with instance_create(x,y,Bullet1)
  1028. {motion_add(point_direction(x,y,mouse_x,mouse_y)+6*other.accuracy+(random(6)-3)*other.accuracy,16)
  1029. image_angle = direction
  1030. team = other.team}
  1031. with instance_create(x,y,Bullet1)
  1032. {motion_add(point_direction(x,y,mouse_x,mouse_y)-6*other.accuracy+(random(6)-3)*other.accuracy,16)
  1033. image_angle = direction
  1034. team = other.team}
  1035.  
  1036. with instance_create(x,y,Bullet1)
  1037. {motion_add(point_direction(x,y,mouse_x,mouse_y)+18*other.accuracy+(random(6)-3)*other.accuracy,16)
  1038. image_angle = direction
  1039. team = other.team}
  1040. with instance_create(x,y,Bullet1)
  1041. {motion_add(point_direction(x,y,mouse_x,mouse_y)-18*other.accuracy+(random(6)-3)*other.accuracy,16)
  1042. image_angle = direction
  1043. team = other.team}
  1044.  
  1045. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1046. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1047. BackCont.shake += 6
  1048. wkick = 8
  1049. }
  1050.  
  1051. //FLAMETHROWER
  1052. if wep = 50
  1053. {
  1054. if !instance_exists(FlameSound)
  1055. instance_create(x,y,FlameSound)
  1056. with instance_create(x,y,FlameBurst)
  1057. {
  1058. creator = other.id
  1059. ammo = 6
  1060. time = 1
  1061. team = other.team
  1062. event_perform(ev_alarm,0)
  1063. }
  1064. }
  1065.  
  1066. //DRAGON
  1067. if wep = 51
  1068. {
  1069. if !instance_exists(DragonSound)
  1070. instance_create(x,y,DragonSound)
  1071. with instance_create(x,y,DragonBurst)
  1072. {
  1073. creator = other.id
  1074. ammo = 3
  1075. time = 1
  1076. team = other.team
  1077. event_perform(ev_alarm,0)
  1078. }
  1079. }
  1080.  
  1081.  
  1082. //FLARE GUN
  1083. if wep = 52
  1084. {
  1085. snd_play(sndFlare)
  1086.  
  1087. with instance_create(x,y,Flare)
  1088. {
  1089. sticky = 0
  1090. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(14)-7)*other.accuracy,9)
  1091. image_angle = direction
  1092. team = other.team}
  1093.  
  1094. BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1095. BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1096. BackCont.shake += 5
  1097. wkick = 5
  1098. }
  1099.  
  1100.  
  1101. //ENERGY SCREWDRIVER
  1102. if wep = 53
  1103. {
  1104. snd_play(sndScrewdriver)
  1105.  
  1106. instance_create(x,y,Dust)
  1107.  
  1108. with instance_create(x+lengthdir_x(Player.skill_got[13]*10,point_direction(x,y,mouse_x,mouse_y)),y+lengthdir_y(Player.skill_got[13]*10,point_direction(x,y,mouse_x,mouse_y)),EnergyShank)
  1109. {
  1110. longarms = 0
  1111. if instance_exists(Player)
  1112. longarms = Player.skill_got[13]*3
  1113. motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,3+longarms)
  1114. image_angle = direction
  1115. team = other.team}
  1116.  
  1117. wepangle = -wepangle
  1118. motion_add(point_direction(x,y,mouse_x,mouse_y),5)
  1119. BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  1120. BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
  1121. BackCont.shake += 2
  1122. wkick = -8
  1123. }
  1124.  
  1125.  
  1126. //HYPER LAUNCHER
  1127. if wep = 54
  1128. {
  1129. snd_play(sndGrenade)
  1130.  
  1131. with instance_create(x,y,HyperGrenade)
  1132. {
  1133. direction = point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy
  1134. image_angle = direction
  1135. team = other.team}
  1136.  
  1137. BackCont.viewx2 += lengthdir_x(20,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1138. BackCont.viewy2 += lengthdir_y(20,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1139. BackCont.shake += 4
  1140. wkick = 8
  1141. }
  1142.  
  1143. //LASER CANNON
  1144. if wep = 55
  1145. {
  1146.  
  1147.  
  1148. if skill_got[17] = 1
  1149. snd_play(sndLaserUpg)
  1150. else
  1151. snd_play(sndLaser)
  1152.  
  1153. with instance_create(x,y,LaserCannon)
  1154. {
  1155. creator = other.id
  1156. ammo = 5+other.skill_got[17]*2
  1157. time = 1
  1158. team = other.team
  1159. alarm[0] = 25
  1160. }
  1161. }
  1162.  
  1163.  
  1164. //RUSTY REVOLVER
  1165. if wep = 56
  1166. {
  1167. snd_play(sndPistol)
  1168.  
  1169. with instance_create(x,y,Shell)
  1170. motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
  1171.  
  1172. with instance_create(x,y,Bullet1)
  1173. {motion_add(point_direction(x,y,mouse_x,mouse_y),16)
  1174. image_angle = direction
  1175. team = other.team}
  1176.  
  1177. BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1178. BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1179. BackCont.shake += 5
  1180. wkick = 4
  1181. }
  1182.  
  1183.  
  1184. //LIGHTNING PISTOL
  1185. if wep = 57
  1186. {
  1187.  
  1188. if skill_got[17] = 1
  1189. snd_play(sndLaserUpg)
  1190. else
  1191. snd_play(sndLaser)
  1192.  
  1193.  
  1194. with instance_create(x,y,Lightning)
  1195. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy
  1196. team = other.team
  1197. ammo = 14
  1198. event_perform(ev_alarm,0)
  1199. visible = 0
  1200. with instance_create(x,y,LightningSpawn)
  1201. image_angle = other.image_angle}
  1202.  
  1203. BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1204. BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1205. BackCont.shake += 5
  1206. wkick = 4
  1207. }
  1208.  
  1209. //LIGHTNING RIFLE
  1210. if wep = 58
  1211. {
  1212.  
  1213. if skill_got[17] = 1
  1214. snd_play(sndLaserUpg)
  1215. else
  1216. snd_play(sndLaser)
  1217.  
  1218.  
  1219. with instance_create(x,y,Lightning)
  1220. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy
  1221. team = other.team
  1222. ammo = 30
  1223. event_perform(ev_alarm,0)
  1224. visible = 0
  1225. with instance_create(x,y,LightningSpawn)
  1226. image_angle = other.image_angle}
  1227.  
  1228. BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1229. BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1230. BackCont.shake += 8
  1231. wkick = 8
  1232. }
  1233.  
  1234.  
  1235. //LIGHTNING SHOTGUN
  1236. if wep = 59
  1237. {
  1238.  
  1239. if skill_got[17] = 1
  1240. snd_play(sndLaserUpg)
  1241. else
  1242. snd_play(sndLaser)
  1243.  
  1244. repeat(8)
  1245. {
  1246. with instance_create(x,y,Lightning)
  1247. {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(180)-60)*other.accuracy
  1248. team = other.team
  1249. ammo = 9+random(3)
  1250. event_perform(ev_alarm,0)
  1251. visible = 0
  1252. with instance_create(x,y,LightningSpawn)
  1253. image_angle = other.image_angle}}
  1254.  
  1255.  
  1256. BackCont.viewx2 += lengthdir_x(4,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1257. BackCont.viewy2 += lengthdir_y(4,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
  1258. BackCont.shake += 10
  1259. wkick = 5
  1260. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement