]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qc
start of force-setting HITTYPE_SPLASH for timed out explosions (so client/damage...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index c54235d2cbdbc1a8ffe493209a72a4681cda8f5c..ac0bc8f6338fd0ae04a47ae8c4684701114788f7 100644 (file)
@@ -1916,6 +1916,13 @@ void adaptor_think2use()
     activator = a;
 }
 
+void adaptor_think2use_hittype_splash() // for timed projectile detonation
+{
+       if not(self.flags & FL_ONGROUND) // if onground, we ARE touching something, but HITTYPE_SPLASH is to be networked if the damage causing projectile is not touching ANYTHING
+               self.projectiledeathtype |= HITTYPE_SPLASH;
+       adaptor_think2use();
+}
+
 // deferred dropping
 void DropToFloor_Handler()
 {