Advertisement
Guest User

Untitled

a guest
Dec 26th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. void(vector org, vector vec) LaunchPlasma =
  2. {
  3. local vector vec;
  4.  
  5.  
  6. sound (self, CHAN_WEAPON, "supenf/pshot.wav", 1, ATTN_NORM);
  7.  
  8. vec = normalize(vec);
  9.  
  10. newmis = spawn();
  11. newmis.owner = self;
  12. newmis.movetype = MOVETYPE_FLY;
  13. newmis.solid = SOLID_BBOX;
  14. newmis.effects = EF_DIMLIGHT;
  15.  
  16. void() plasmashot1 = [0, plasmashot2] {self.nextthink = time + 0.05;};
  17. void() plasmashot2 = [1, plasmashot3] {self.nextthink = time + 0.05;};
  18. void() plasmashot3 = [2, plasmashot4] {self.nextthink = time + 0.05;};
  19. void() plasmashot4 = [3, plasmashot1] {self.nextthink = time + 0.05;};
  20.  
  21. setmodel (newmis, "progs/pshot.spr");
  22. setsize (newmis, '0 0 0', '0 0 0');
  23.  
  24. setorigin (newmis, org);
  25.  
  26. newmis.velocity = vec * 1000; //600
  27. newmis.angles = vectoangles(newmis.velocity);
  28.  
  29. newmis.nextthink = time + 5;
  30. newmis.think = SUB_Remove;
  31. newmis.touch = Plasma_Touch;
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement