X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Felectro.qc;fp=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Felectro.qc;h=1f8cc19441db45195999fe3262d577a09e9a8b4a;hp=2853625f2c343ef0829ab129ab635eeddd6ad6fe;hb=05ee5b1212a6537e5c5acb76dbc1ef9df40f85c6;hpb=fce7138d4101cf3a8ad1e0400f08cffe21fbecda diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 2853625f2..1f8cc1944 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -203,8 +203,12 @@ void W_Electro_TouchExplode(entity this, entity toucher) W_Electro_Explode(this, toucher); } + +void sys_phys_update_single(entity this); + void W_Electro_Bolt_Think(entity this) { + // sys_phys_update_single(this); if(time >= this.ltime) { this.use(this, NULL, NULL); @@ -253,6 +257,7 @@ void W_Electro_Bolt_Think(entity this) { this.nextthink = min(time + WEP_CVAR_PRI(electro, midaircombo_interval), this.ltime); } } else { this.nextthink = this.ltime; } + // this.nextthink = time; } void W_Electro_Attack_Bolt(Weapon thiswep, entity actor) @@ -286,6 +291,7 @@ void W_Electro_Attack_Bolt(Weapon thiswep, entity actor) proj.projectiledeathtype = WEP_ELECTRO.m_id; setorigin(proj, w_shotorg); + // if (IS_CSQC) set_movetype(proj, MOVETYPE_FLY); W_SetupProjVelocity_PRI(proj, electro); proj.angles = vectoangles(proj.velocity); @@ -297,6 +303,8 @@ void W_Electro_Attack_Bolt(Weapon thiswep, entity actor) CSQCProjectile(proj, true, PROJECTILE_ELECTRO_BEAM, true); MUTATOR_CALLHOOK(EditProjectile, actor, proj); + // proj.com_phys_pos = proj.origin; + // proj.com_phys_vel = proj.velocity; } void W_Electro_Orb_Stick(entity this, entity to)