Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !instance_exists(Player)
- exit;
- can_shoot = 0
- reload = wep_load[wep]
- if !(Player.race = 7 and Player.skill_got[5] = 1 and random(5) < 1)
- ammo[wep_type[wep]] -= wep_cost[wep]
- //else
- //snd_play(sndSteroidsUpg)
- drawempty = 10
- //REVOLVER
- if wep = 1
- {
- snd_play(sndPistol)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 2
- }
- //TRIPLE MACHINEGUN
- if wep = 2
- {
- snd_play(sndMachinegun)
- repeat(3)
- {
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(70)-35,2+random(2))
- }
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+15*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-15*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 6
- }
- //SLEDGEHAMMER
- if wep = 3
- {
- snd_play(sndHammer)
- instance_create(x,y,Dust)
- 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)
- {
- dmg = 4
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),6)
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 1
- wkick = -4
- }
- //MACHINEGUN
- if wep = 4
- {
- snd_play(sndMachinegun)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 3
- wkick = 2
- }
- //SHOTGUN
- if wep = 5
- {
- snd_play(sndShotgun)
- repeat(7)
- {
- with instance_create(x,y,Bullet2)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(40)-20)*other.accuracy,12+random(6))
- image_angle = direction
- team = other.team}
- }
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 8
- wkick = 6
- }
- //CROSSBOW
- if wep = 6
- {
- snd_play(sndCrossbow)
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 4
- }
- //NADER
- if wep = 7
- {
- snd_play(sndGrenade)
- with instance_create(x,y,Grenade)
- {
- sticky = 0
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,10)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 2
- wkick = 5
- }
- //DOUBLE SHOTGUN
- if wep = 8
- {
- snd_play(sndShotgun)
- repeat(14)
- {
- with instance_create(x,y,Bullet2)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(50)-30)*other.accuracy,12+random(6))
- image_angle = direction
- team = other.team}
- }
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,2)
- BackCont.viewx2 += lengthdir_x(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 16
- wkick = 8
- }
- //MINIGUN
- if wep = 9
- {
- snd_play(sndMinigun)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(80)-40,3+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(26)-13)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,0.6)
- BackCont.viewx2 += lengthdir_x(7,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(7,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 4
- }
- //AUTO SHOTGUN
- if wep = 10
- {
- snd_play(sndShotgun)
- repeat(6)
- {
- with instance_create(x,y,Bullet2)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy,12+random(6))
- image_angle = direction
- team = other.team}
- }
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 8
- wkick = 5
- }
- //AUTO CROSSBOW
- if wep = 11
- {
- snd_play(sndCrossbow)
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,24)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 4
- }
- //SUPER CROSSBOW
- if wep = 12
- {
- snd_play(sndCrossbow)
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+5*other.accuracy,24)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-5*other.accuracy,24)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+10*other.accuracy,24)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-10*other.accuracy,24)
- image_angle = direction
- team = other.team}
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,1)
- BackCont.viewx2 += lengthdir_x(60,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(60,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 14
- wkick = 8
- }
- //SHOVEL
- if wep = 13
- {
- snd_play(sndShovel)
- instance_create(x,y,Dust)
- 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)
- {
- dmg = 8
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y),3+longarms)
- image_angle = direction
- team = other.team}
- 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)
- {
- dmg = 8
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y)+60*other.accuracy,2+longarms)
- image_angle = direction
- team = other.team}
- 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)
- {
- dmg = 8
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y)-60*other.accuracy,2+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),6)
- BackCont.viewx2 += lengthdir_x(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 1
- wkick = -4
- }
- //BAZOOKA
- if wep = 14
- {
- snd_play(sndRocket)
- with instance_create(x,y,Rocket)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(30,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(30,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 10
- }
- // STICKY NADER
- if wep = 15
- {
- snd_play(sndGrenade)
- with instance_create(x,y,Grenade)
- {
- sprite_index = sprStickyGrenade
- sticky = 1
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy,11)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 2
- wkick = 5
- }
- //SMG
- if wep = 16
- {
- snd_play(sndPistol)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(60)-30,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(32)-16)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 3
- wkick = 2
- }
- //ASSAULT RIFLE
- if wep = 17
- {
- with instance_create(x,y,Burst)
- {
- creator = other.id
- ammo = 3
- time = 2
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //DISC GUN
- if wep = 18
- {
- snd_play(sndDiscgun)
- with instance_create(x,y,Disc)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,5)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 6
- wkick = 4
- }
- //LASER PISTOL
- if wep = 19
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Laser)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(2)-1)*other.accuracy
- team = other.team
- event_perform(ev_alarm,0)}
- BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 2
- wkick = 2
- }
- //LASER RIFLE
- if wep = 20
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Laser)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy
- team = other.team
- event_perform(ev_alarm,0)}
- BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 2
- wkick = 5
- }
- //SLUGGER
- if wep = 21
- {
- snd_play(sndSlugger)
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(14,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(14,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 10
- wkick = 8
- }
- //GATLING SLUGGER
- if wep = 22
- {
- snd_play(sndSlugger)
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 10
- wkick = 8
- }
- //ASSAULT SLUGGER
- if wep = 23
- {
- with instance_create(x,y,SlugBurst)
- {
- creator = other.id
- ammo = 3
- time = 3
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //ENERGY SWORD
- if wep = 24
- {
- if skill_got[17] = 1
- snd_play(sndLaserSwordUpg)
- else
- snd_play(sndLaserSword)
- instance_create(x,y,Dust)
- with instance_create(x,y,EnergySlash)
- {
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),7)
- BackCont.viewx2 += lengthdir_x(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(24,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 1
- wkick = -4
- }
- //SUPER SLUGGER
- if wep = 25
- {
- snd_play(sndSlugger)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,3)
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+10*other.accuracy+(random(8)-4)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+20*other.accuracy+(random(8)-4)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-10*other.accuracy+(random(8)-4)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Slug)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-20*other.accuracy+(random(8)-4)*other.accuracy,18)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 15
- wkick = 8
- }
- //HYPER RIFLE
- if wep = 26
- {
- with instance_create(x,y,Burst)
- {
- creator = other.id
- ammo = 6
- time = 1
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //MINES
- /*
- if wep = 27
- {
- snd_play(sndGrenade)
- with instance_create(x,y,Mine)
- {
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy,4)
- team = other.team}
- BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y))
- BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y))
- wkick = 8
- }*/
- //SCREWDRIVER
- if wep = 27
- {
- snd_play(sndScrewdriver)
- instance_create(x,y,Dust)
- 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)
- {
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,3+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),4)
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 1
- wkick = -8
- }
- //LASER MINIGUN
- if wep = 28
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Laser)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(16)-8)*other.accuracy
- team = other.team
- event_perform(ev_alarm,0)}
- BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 2
- wkick = 8
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,0.6)
- }
- //BLOOD NADER
- if wep = 29
- {
- snd_play(sndBloodLauncher)
- with instance_create(x,y,BloodGrenade)
- {
- sticky = 0
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,10)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 3
- wkick = 4
- }
- //SPLINTER GUN
- if wep = 30
- {
- snd_play(sndSplinterGun)
- repeat(4)
- {
- with instance_create(x,y,Splinter)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(20)-10)*other.accuracy,20+random(4))
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Splinter)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,20+random(4))
- image_angle = direction
- team = other.team}
- }
- BackCont.viewx2 += lengthdir_x(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(15,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 3
- wkick -= 3
- }
- //TOXIC BOW
- if wep = 31
- {
- snd_play(sndCrossbow)
- with instance_create(x,y,ToxicBolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y),22)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 4
- }
- //SENTRY GUN
- if wep = 32
- {
- snd_play(sndGrenade)
- with instance_create(x,y,SentryGun)
- {
- sticky = 0
- motion_add(point_direction(x,y,mouse_x,mouse_y),6)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(5,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- wkick = -10
- }
- //WAVE GUN
- if wep = 33
- {
- with instance_create(x,y,WaveBurst)
- {
- creator = other.id
- ammo = 7
- time = 1
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //PLASMA GUN
- if wep = 34
- {
- if skill_got[17] = 1
- snd_play(sndPlasmaUpg)
- else
- snd_play(sndPlasma)
- with instance_create(x,y,PlasmaBall)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,2)
- image_angle = direction
- team = other.team}
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,3)
- BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 3
- wkick = 5
- }
- //PLASMA CANNON
- if wep = 35
- {
- if skill_got[17] = 1
- snd_play(sndPlasmaBigUpg)
- else
- snd_play(sndPlasmaBig)
- with instance_create(x,y,PlasmaBig)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
- image_angle = direction
- team = other.team}
- motion_add(point_direction(x,y,mouse_x,mouse_y)+180,6)
- BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 8
- wkick = 10
- }
- //ENERGY HAMMER
- if wep = 36
- {
- if skill_got[17] = 1
- snd_play(sndLaserSwordUpg)
- else
- snd_play(sndLaserSword)
- instance_create(x,y,Dust)
- with instance_create(x,y,EnergyHammerSlash)
- {
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*2
- motion_add(point_direction(x,y,mouse_x,mouse_y),1+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),7)
- BackCont.viewx2 += lengthdir_x(32,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(32,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 2
- wkick = -3
- }
- //JACKHAMMER
- if wep = 37
- {
- with instance_create(x,y,SawBurst)
- {
- creator = other.id
- ammo = 12
- time = 1
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //FLAK CANNON
- if wep = 38
- {
- snd_play(sndGrenade)
- with instance_create(x,y,FlakBullet)
- {
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(12)-6)*other.accuracy,11+random(2))
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(32,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(32,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 7
- }
- //GOLDEN REVOLVER
- if wep = 39
- {
- snd_play(sndPistol)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 4
- }
- //GOLDEN HAMMER
- if wep = 40
- {
- snd_play(sndHammer)
- instance_create(x,y,Dust)
- 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)
- {
- dmg = 4
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y),2+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),6)
- BackCont.viewx2 += lengthdir_x(16,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(16,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 2
- wkick = -6
- }
- //GOLDEN MACHINEGUN
- if wep = 41
- {
- snd_play(sndMachinegun)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(8)-4)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 4
- }
- //GOLDEN SHOTGUN
- if wep = 42
- {
- snd_play(sndShotgun)
- repeat(8)
- {
- with instance_create(x,y,Bullet2)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(40)-20)*other.accuracy,12+random(6))
- image_angle = direction
- team = other.team}
- }
- BackCont.viewx2 += lengthdir_x(16,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(16,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 10
- wkick = 8
- }
- //GOLDEN CROSSBOW
- if wep = 43
- {
- snd_play(sndCrossbow)
- with instance_create(x,y,Bolt)
- {motion_add(point_direction(x,y,mouse_x,mouse_y),24)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(44,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(44,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 6
- wkick = 6
- }
- //GOLDEN NADER
- if wep = 44
- {
- snd_play(sndGrenade)
- with instance_create(x,y,Grenade)
- {
- sprite_index = sprGoldGrenade
- sticky = 0
- motion_add(point_direction(x,y,mouse_x,mouse_y),12)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 7
- }
- //GOLDEN LASER PISTOL
- if wep = 45
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Laser)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)
- team = other.team
- event_perform(ev_alarm,0)}
- BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 4
- }
- //CHICKEN SWORD
- if wep = 46
- {
- snd_play(sndHammer)
- instance_create(x,y,Dust)
- ang = point_direction(x,y,mouse_x,mouse_y)
- move_contact_solid(ang,16)
- instance_create(x,y,Dust)
- with instance_create(x+lengthdir_x(Player.skill_got[13]*20,ang),y+lengthdir_y(Player.skill_got[13]*20,ang),Slash)
- {
- ang = other.ang
- dmg = 3
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(ang,2+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- speed = -speed/2
- BackCont.viewx2 += lengthdir_x(8,ang)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,ang)*UberCont.opt_shake
- BackCont.shake += 1
- wkick = -6
- }
- //NUKE LAUNCHER
- if wep = 47
- {
- snd_play(sndRocket)
- with instance_create(x,y,Nuke)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy,2)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(40,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 8
- wkick = 10
- }
- //ION CANNON
- if wep = 48
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,IonBurst)
- {
- creator = other.id
- ammo = 10
- time = 1
- team = other.team
- alarm[0] = 30
- }
- BackCont.shake += 6
- wkick = 3
- }
- //QUADRUPLE MACHINEGUN
- if wep = 49
- {
- snd_play(sndMachinegun)
- repeat(4)
- {
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(70)-35,4+random(3))
- }
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+6*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-6*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)+18*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y)-18*other.accuracy+(random(6)-3)*other.accuracy,16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 6
- wkick = 8
- }
- //FLAMETHROWER
- if wep = 50
- {
- if !instance_exists(FlameSound)
- instance_create(x,y,FlameSound)
- with instance_create(x,y,FlameBurst)
- {
- creator = other.id
- ammo = 6
- time = 1
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //DRAGON
- if wep = 51
- {
- if !instance_exists(DragonSound)
- instance_create(x,y,DragonSound)
- with instance_create(x,y,DragonBurst)
- {
- creator = other.id
- ammo = 3
- time = 1
- team = other.team
- event_perform(ev_alarm,0)
- }
- }
- //FLARE GUN
- if wep = 52
- {
- snd_play(sndFlare)
- with instance_create(x,y,Flare)
- {
- sticky = 0
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(14)-7)*other.accuracy,9)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(10,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 5
- }
- //ENERGY SCREWDRIVER
- if wep = 53
- {
- snd_play(sndScrewdriver)
- instance_create(x,y,Dust)
- 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)
- {
- longarms = 0
- if instance_exists(Player)
- longarms = Player.skill_got[13]*3
- motion_add(point_direction(x,y,mouse_x,mouse_y)+(random(10)-5)*other.accuracy,3+longarms)
- image_angle = direction
- team = other.team}
- wepangle = -wepangle
- motion_add(point_direction(x,y,mouse_x,mouse_y),5)
- BackCont.viewx2 += lengthdir_x(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(12,point_direction(x,y,mouse_x,mouse_y))*UberCont.opt_shake
- BackCont.shake += 2
- wkick = -8
- }
- //HYPER LAUNCHER
- if wep = 54
- {
- snd_play(sndGrenade)
- with instance_create(x,y,HyperGrenade)
- {
- direction = point_direction(x,y,mouse_x,mouse_y)+(random(4)-2)*other.accuracy
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(20,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(20,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 4
- wkick = 8
- }
- //LASER CANNON
- if wep = 55
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,LaserCannon)
- {
- creator = other.id
- ammo = 5+other.skill_got[17]*2
- time = 1
- team = other.team
- alarm[0] = 25
- }
- }
- //RUSTY REVOLVER
- if wep = 56
- {
- snd_play(sndPistol)
- with instance_create(x,y,Shell)
- motion_add(point_direction(x,y,mouse_x,mouse_y)+other.right*100+random(50)-25,2+random(2))
- with instance_create(x,y,Bullet1)
- {motion_add(point_direction(x,y,mouse_x,mouse_y),16)
- image_angle = direction
- team = other.team}
- BackCont.viewx2 += lengthdir_x(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(8,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 4
- }
- //LIGHTNING PISTOL
- if wep = 57
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Lightning)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(30)-15)*other.accuracy
- team = other.team
- ammo = 14
- event_perform(ev_alarm,0)
- visible = 0
- with instance_create(x,y,LightningSpawn)
- image_angle = other.image_angle}
- BackCont.viewx2 += lengthdir_x(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(3,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 5
- wkick = 4
- }
- //LIGHTNING RIFLE
- if wep = 58
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- with instance_create(x,y,Lightning)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(6)-3)*other.accuracy
- team = other.team
- ammo = 30
- event_perform(ev_alarm,0)
- visible = 0
- with instance_create(x,y,LightningSpawn)
- image_angle = other.image_angle}
- BackCont.viewx2 += lengthdir_x(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(6,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 8
- wkick = 8
- }
- //LIGHTNING SHOTGUN
- if wep = 59
- {
- if skill_got[17] = 1
- snd_play(sndLaserUpg)
- else
- snd_play(sndLaser)
- repeat(8)
- {
- with instance_create(x,y,Lightning)
- {image_angle = point_direction(x,y,mouse_x,mouse_y)+(random(180)-60)*other.accuracy
- team = other.team
- ammo = 9+random(3)
- event_perform(ev_alarm,0)
- visible = 0
- with instance_create(x,y,LightningSpawn)
- image_angle = other.image_angle}}
- BackCont.viewx2 += lengthdir_x(4,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.viewy2 += lengthdir_y(4,point_direction(x,y,mouse_x,mouse_y)+180)*UberCont.opt_shake
- BackCont.shake += 10
- wkick = 5
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement