def __init__(self, actor, id): Gun.__init__(self, actor, 10, "models/basicdroid/chaingun", id) self.clipSize = 50 self.ammo = self.clipSize self.light = engine.Light(color=Vec4(1.0, 0.7, 0.4, 1), attenuation=Vec3(0, 0, 0.003)) self.tracer = particles.BulletTracerParticleGroup() self.chainGunSound = audio.SoundPlayer("chaingun") self.fireTime = 0.05 self.isAutomatic = True
def __init__(self, actor, id): Gun.__init__(self, actor, 150, "models/basicdroid/shotgun", id) self.clipSize = 8 self.ammo = self.clipSize self.light = engine.Light(color=Vec4(1.0, 0.7, 0.4, 1), attenuation=Vec3(0, 0, 0.003)) self.tracer = particles.BulletTracerParticleGroup() self.shotGunSound = audio.SoundPlayer("shotgun") self.fireTime = 1.0 self.range = 15 self.accuracy = 1.0 self.burstTimeBase = 0.3
def __init__(self, actor, id): Gun.__init__(self, actor, 27, "models/basicdroid/pistol", id) self.clipSize = 12 self.ammo = self.clipSize self.light = engine.Light(color=Vec4(1.0, 0.7, 0.4, 1), attenuation=Vec3(0, 0, 0.003)) self.tracer = particles.BulletTracerParticleGroup() self.pistolSound = audio.SoundPlayer("pistol") self.pinSound = audio.SoundPlayer("claw") self.fireTime = 0.05 self.burstTimeBase = 0.5 self.burstDelayBase = 1.25 self.shotDelayBase = 0.15
def __init__(self, actor, id): Gun.__init__(self, actor, 50, "models/basicdroid/sniper", id) self.defaultCrosshair = 0 # No crosshair self.zoomedCrosshair = 3 # Sniper scope self.zoomedFov = 25 self.zoomedMouseSpeed = 0.15 self.clipSize = 4 self.ammo = self.clipSize self.light = engine.Light(color=Vec4(1.0, 0.7, 0.4, 1), attenuation=Vec3(0, 0, 0.003)) self.tracer = particles.BulletTracerParticleGroup() self.sniperSound = audio.SoundPlayer("sniper-rifle") self.zoomed = False self.fireTime = 0.8 self.reloadTime = 3.0 self.range = 300 self.accuracy = 0.27