X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvaporizer.qc;h=399ce4e584366b2dd0e54c1fa4f645eeafab0665;hp=256019d69de67b91a12084a981a4e96e9b5b8b8d;hb=1c758278958da8f2baf1f39cd0f298d5bda097a2;hpb=b822740ca8df332014ffcb6c62d3aee87f636925 diff --git a/qcsrc/common/weapons/weapon/vaporizer.qc b/qcsrc/common/weapons/weapon/vaporizer.qc index 256019d69d..399ce4e584 100644 --- a/qcsrc/common/weapons/weapon/vaporizer.qc +++ b/qcsrc/common/weapons/weapon/vaporizer.qc @@ -59,7 +59,7 @@ void spawnfunc_weapon_vaporizer(void) { weapon_defaultspawnfunc(WEP_VAPORIZER.m_ void spawnfunc_weapon_minstanex(void) { spawnfunc_weapon_vaporizer(); } void W_RocketMinsta_Explosion(vector loc) -{ +{SELFPARAM(); if(accuracy_canbegooddamage(self)) accuracy_add(self, WEP_DEVASTATOR.m_id, autocvar_g_rm_damage, 0); entity dmgent = spawn(); @@ -70,7 +70,7 @@ void W_RocketMinsta_Explosion(vector loc) } void W_Vaporizer_Attack(void) -{ +{SELFPARAM(); bool flying = IsFlying(self); // do this BEFORE to make the trace values from FireRailgunBullet last float vaporizer_damage = ((WEP_CVAR_PRI(vaporizer, damage) > 0) ? WEP_CVAR_PRI(vaporizer, damage) : 10000); @@ -140,7 +140,7 @@ void W_Vaporizer_Attack(void) } void W_RocketMinsta_Laser_Explode (void) -{ +{SELFPARAM(); if(other.takedamage == DAMAGE_AIM) if(IS_PLAYER(other)) if(DIFF_TEAM(self.realowner, other)) @@ -155,7 +155,7 @@ void W_RocketMinsta_Laser_Explode (void) } void W_RocketMinsta_Laser_Touch (void) -{ +{SELFPARAM(); PROJECTILE_TOUCH; //W_RocketMinsta_Laser_Explode (); RadiusDamage (self, self.realowner, self.rm_damage, self.rm_edmg, autocvar_g_rm_laser_radius, world, world, self.rm_force, self.projectiledeathtype, other); @@ -163,7 +163,7 @@ void W_RocketMinsta_Laser_Touch (void) } void W_RocketMinsta_Attack2(void) -{ +{SELFPARAM(); makevectors(self.v_angle); entity proj; @@ -218,7 +218,7 @@ void W_RocketMinsta_Attack2(void) } void W_RocketMinsta_Attack3 (void) -{ +{SELFPARAM(); makevectors(self.v_angle); entity proj; @@ -269,7 +269,7 @@ void W_RocketMinsta_Attack3 (void) } float W_Vaporizer(float req) -{ +{SELFPARAM(); float ammo_amount; float vaporizer_ammo; float rapid = autocvar_g_rm_laser_rapid; @@ -429,7 +429,7 @@ float W_Vaporizer(float req) #endif #ifdef CSQC float W_Vaporizer(float req) -{ +{SELFPARAM(); switch(req) { case WR_IMPACTEFFECT: