CBaseMonster: Fix being able to push monsters around when you're standing on them

This commit is contained in:
Marco Cawthorne 2021-09-17 20:41:48 +02:00
parent 3bceff6a2c
commit f34b78b11c
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -493,6 +493,7 @@ CBaseMonster::touch(void)
return;
if (other.movetype == MOVETYPE_WALK) {
if (other.absmin[2] < origin[2])
velocity = normalize(other.origin - origin) * -128;
}
}