How to fix the 'rocket bug'(text file here):

In weapons.qc find the W_Attack function.
Find this portion of code within that function (do a find on MOVETYPE_FLYMISSILE)

missile = spawn ();
missile.owner = self;
self.movetarget = missile;
missile.movetype = MOVETYPE_FLYMISSILE;
missile.solid = SOLID_BBOX;
missile.classname = "missile";

// set missile speed

makevectors(self.v_angle);

missile.velocity = v_forward * 1000;
missile.angles = vectoangles(missile.velocity);

missile.touch = T_MissileTouch;

// set missile duration
missile.think = RocketAlert;
missile.frogbot_nextthink = time + 5;
missile.nextthink = 0.001;

setmodel (missile, "progs/missile.mdl");
setsize (missile, '0 0 0', '0 0 0');
setorigin (missile, self.origin + v_forward*8 + '0 0 16');

Change the above to what follows.


newmis = spawn ();
newmis.owner = self;
self.movetarget = newmis;
newmis.movetype = MOVETYPE_FLYMISSILE;
newmis.solid = SOLID_BBOX;
newmis.classname = "missile";

// set missile speed

makevectors(self.v_angle);

newmis.velocity = v_forward * 1000;
newmis.angles = vectoangles(newmis.velocity);

newmis.touch = T_MissileTouch;

// set missile duration
newmis.think = RocketAlert;
newmis.frogbot_nextthink = time + 5;
newmis.nextthink = 0.001;

setmodel (newmis, "progs/missile.mdl");
setsize (newmis, '0 0 0', '0 0 0');
setorigin (newmis, self.origin + v_forward*8 + '0 0 16');

This will stop the rocket from coming out of inside u.

The author of this page is Andrius 'Wrecker' Jovaisa. Page is made using Frontpage Express by Microsoft, and some .html code added with Notepad. Best viewed in 800x600 resolution with small fonts or 1024x768 with small fonts. Site was created in 26th of October, 1998. Page is hosted by Botepidemic, which is hosted by Telefragged - the best Quake/II/IIIarena news site on the net!