X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ftturrets%2Funits%2Funit_machinegun.qc;h=21c6acfccef7d55e25928e2a8111dc0717fda136;hb=6bef2387c607b0ce975d13a94cb55d3e746b626d;hp=62abe38aa5816f8251135182ed1c123528174f0a;hpb=11b5d310f4714debb77c3ccdde963c76555a3aa5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/tturrets/units/unit_machinegun.qc b/qcsrc/server/tturrets/units/unit_machinegun.qc index 62abe38aa..21c6acfcc 100644 --- a/qcsrc/server/tturrets/units/unit_machinegun.qc +++ b/qcsrc/server/tturrets/units/unit_machinegun.qc @@ -1,3 +1,5 @@ +void W_MachineGun_MuzzleFlash(void); + void spawnfunc_turret_machinegun(); void turret_machinegun_std_init(); void turret_machinegun_attack(); @@ -5,10 +7,9 @@ void turret_machinegun_attack(); //.float bulletcounter; void turret_machinegun_attack() { - fireBallisticBullet (self.tur_shotorg, self.tur_shotdir_updated,self.shot_spread, self.shot_speed, 5, self.shot_dmg, self.shot_force, DEATH_TURRET_MACHINEGUN, 0, 1, autocvar_g_balance_uzi_bulletconstant); - endFireBallisticBullet(); + fireBullet (self.tur_shotorg, self.tur_shotdir_updated,self.shot_spread, 0, self.shot_dmg, self.shot_force, DEATH_TURRET_MACHINEGUN, 0); - UziFlash(); + W_MachineGun_MuzzleFlash(); // WEAPONTODO setattachment(self.muzzle_flash, self.tur_head, "tag_fire"); } @@ -20,9 +21,8 @@ void turret_machinegun_std_init() self.ammo_flags = TFL_AMMO_BULLETS | TFL_AMMO_RECHARGE | TFL_AMMO_RECIVE; self.turrcaps_flags = TFL_TURRCAPS_PLAYERKILL; self.aim_flags = TFL_AIM_LEAD | TFL_AIM_SHOTTIMECOMPENSATE; - - if (!autocvar_g_antilag_bullets) - self.turrcaps_flags |= TFL_TURRCAPS_HITSCAN; + + self.turrcaps_flags |= TFL_TURRCAPS_HITSCAN; if (turret_stdproc_init("machinegun_std", "models/turrets/base.md3", "models/turrets/machinegun.md3", TID_MACHINEGUN) == 0) {