set g_balance_electro_primary_spread 0
set g_balance_electro_primary_lifetime 0
set g_balance_electro_primary_refire 0
-set g_balance_electro_primary_animtime 0
+set g_balance_electro_primary_animtime 0.05
set g_balance_electro_primary_ammo 40
set g_balance_electro_primary_range 800
set g_balance_electro_primary_velocityfactor 45
set g_balance_electro_primary_spread 0
set g_balance_electro_primary_lifetime 0
set g_balance_electro_primary_refire 0
-set g_balance_electro_primary_animtime 0
+set g_balance_electro_primary_animtime 0.05
set g_balance_electro_primary_ammo 40
set g_balance_electro_primary_range 800
set g_balance_electro_primary_velocityfactor 45
vector force;
force = angle * cvar("g_balance_electro_primary_force");
- traceline_antilag(self.owner, self.owner.origin, self.owner.origin + angle * cvar("g_balance_electro_primary_range"), FALSE, self.owner, ANTILAG_LATENCY(self.owner));
+ traceline_antilag(self.owner, self.owner.origin + self.owner.view_ofs, self.owner.origin + self.owner.view_ofs + angle * cvar("g_balance_electro_primary_range"), FALSE, self.owner, ANTILAG_LATENCY(self.owner));
self.scale = vlen(self.owner.origin - trace_endpos) / 256 * (0.75 + 0.75 * random());
}
vector angle;
angle = v_forward;
- traceline_antilag(self.owner, self.owner.origin, self.owner.origin + angle * cvar("g_balance_electro_primary_range"), FALSE, self.owner, ANTILAG_LATENCY(self.owner));
+ traceline_antilag(self.owner, self.owner.origin + self.owner.view_ofs, self.owner.origin + self.owner.view_ofs + angle * cvar("g_balance_electro_primary_range"), FALSE, self.owner, ANTILAG_LATENCY(self.owner));
// apply the damage
if(trace_fraction < 1)