class Missile(Ship): def __init__(self, (xp, yp), zp, ori, (xi, yi), target, launcher, weapon): Ship.__init__(self, weapon.stats.projectile, None, xp, yp, zp, ori, xi, yi, 0, 0) self.target = target self.launcher = launcher self.weapon = weapon self.maxRi = 0.01 self.ttl = weapon.stats.projectileTtl #30*5 self.originalTtl = weapon.stats.projectileTtl self.lostTarget = False self.thinkFreq = 1 #randint( 2, config.fps/3) # randint( 3, config.fps/2) self.xi = launcher.xi self.yi = launcher.yi