From: Mario Date: Sat, 4 Mar 2017 17:59:30 +0000 (+1000) Subject: Make corpses sink slowly in slime and lava X-Git-Tag: xonotic-v0.8.2~136 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c089ea97f06c656c66db4c9e64da45cc6b85e5c7;p=xonotic%2Fxonotic-data.pk3dir.git Make corpses sink slowly in slime and lava --- diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index 0c18e58cf..db59359b3 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -52,7 +52,8 @@ void sys_phys_update(entity this, float dt) if (IS_DEAD(this)) { // handle water here vector midpoint = ((this.absmin + this.absmax) * 0.5); - if (pointcontents(midpoint) == CONTENT_WATER) { + int cont = pointcontents(midpoint); + if (cont == CONTENT_WATER || cont == CONTENT_LAVA || cont == CONTENT_SLIME) { this.velocity = this.velocity * 0.5; // do we want this?