if(self.misc_bulletcounter == 1)
racer_fire_rocket("tag_rocket_r", (self.lock_strength == 1 && self.lock_target) ? self.lock_target : world);
else if(self.misc_bulletcounter == 2)
- racer_fire_rocket("tag_rocket_l", (self.lock_strength == 1 && self.lock_target) ? self.lock_target : world);
- else
{
+ racer_fire_rocket("tag_rocket_l", (self.lock_strength == 1 && self.lock_target) ? self.lock_target : world);
self.lock_strength = 0;
self.lock_target = world;
self.misc_bulletcounter = 0;
racer.delay = time + autocvar_g_vehicle_racer_rocket_refire;
racer.lip = time;
-
}
}
{
dprint("Spawning vehicle: ", self.netname, "\n");
+ // De-own & reset
self.vehicle_hudmodel.viewmodelforclient = self;
self.owner = world;
self.touch = vehicles_touch;
self.deadflag = DEAD_NO;
self.bot_attack = TRUE;
self.flags = FL_NOTARGET;
- self.angles = self.pos2;
+ self.avelocity = '0 0 0';
+
+ // Reset locking
+ self.lock_strength = 0;
+ self.lock_target = world;
+ self.misc_bulletcounter = 0;
+ // Return to spawn
+ self.angles = self.pos2;
setorigin(self, self.pos1 + '0 0 128');
+ // Show it
pointparticles(particleeffectnum("teleport"), self.origin + '0 0 64', '0 0 0', 1);
vehicles_reset_colors();
self.owner.switchweapon = self.switchweapon;
}
+ if(self.deadflag == DEAD_NO)
+ self.avelocity = '0 0 0';
+
self.vehicle_hudmodel.viewmodelforclient = self;
self.tur_head.nodrawtoclient = self;
vehicles_setreturn();