From c089ea97f06c656c66db4c9e64da45cc6b85e5c7 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 5 Mar 2017 03:59:30 +1000 Subject: [PATCH] Make corpses sink slowly in slime and lava --- qcsrc/ecs/systems/physics.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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? -- 2.39.2