SERVER: Fix default Quake functionality for func_door with targetname

This commit is contained in:
cypress 2024-01-02 11:58:36 -05:00 committed by GitHub
parent 371f4b9824
commit 8f1253244f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,6 +392,13 @@ void() door_touch =
centerprint (other, self.owner.message);
}
// Since we've removed support for Quake keys (*.items),
// this additional check is needed to prevent standard
// func_door entities from activating on-touch if it's
// set to only be triggered.
if (self.classname == "door" && self.targetname)
return;
if (isPowerOn == FALSE)
{
if (self.owner.spawnflags & DOOR_POWER)