]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
func_door: fix erratic behaviour of spawned trigger field
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 7 Oct 2022 12:37:58 +0000 (22:37 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 07:11:38 +0000 (17:11 +1000)
commit3b4025746bc6e16d69dfc54552d327c24eccc8c6
tree645d61ccd5e90b807665ed095db2c9f73bd8cde6
parent27ae40656181b9f772f4b92fca335059b65425e7
func_door: fix erratic behaviour of spawned trigger field

This was most noticeable with door .wait <= 1 but would eventually occur
at higher wait values if players hang around in the trigger field.

Also the door(s) usually did not stay open for the full .wait time after
the player left the trigger field, as some time had passed since the
.door_finished timestamp was set.

To make this reliable AND efficient requires updating the state of the
door(s), instead of maintaining a separate state in the trigger field entity.
qcsrc/common/mapobjects/func/door.qc