Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void(vector org, vector vec) LaunchPlasma =
- {
- local vector vec;
- sound (self, CHAN_WEAPON, "supenf/pshot.wav", 1, ATTN_NORM);
- vec = normalize(vec);
- newmis = spawn();
- newmis.owner = self;
- newmis.movetype = MOVETYPE_FLY;
- newmis.solid = SOLID_BBOX;
- newmis.effects = EF_DIMLIGHT;
- void() plasmashot1 = [0, plasmashot2] {self.nextthink = time + 0.05;};
- void() plasmashot2 = [1, plasmashot3] {self.nextthink = time + 0.05;};
- void() plasmashot3 = [2, plasmashot4] {self.nextthink = time + 0.05;};
- void() plasmashot4 = [3, plasmashot1] {self.nextthink = time + 0.05;};
- setmodel (newmis, "progs/pshot.spr");
- setsize (newmis, '0 0 0', '0 0 0');
- setorigin (newmis, org);
- newmis.velocity = vec * 1000; //600
- newmis.angles = vectoangles(newmis.velocity);
- newmis.nextthink = time + 5;
- newmis.think = SUB_Remove;
- newmis.touch = Plasma_Touch;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement