]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_door: update documentation to reflect default .dmg of 0
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 12 Oct 2022 12:48:50 +0000 (22:48 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 07:11:42 +0000 (17:11 +1000)
IMO 0 is the best default, because if it were > 0 then mappers would
have no way to configure a door that doesn't deal any damage when blocked.

The implemented default has been 0 since (at least) Nexuiz 2.5.2 so
changing it now would not be ideal for compatibility.

The comment about the default of 2 was inherited from Quake.

qcsrc/common/mapobjects/func/door.qc

index 7688d740e3b2b2234701c0e78e3531d03939ffae..540cc0ea87a029205292a31b9e07dfacece96227 100644 (file)
@@ -555,7 +555,7 @@ SILVER_KEY causes the door to open only if the activator holds a silver key.
 "speed"                movement speed (100 default)
 "wait"         wait before returning (3 default, -1 = never return)
 "lip"          lip remaining at end of move (8 default)
-"dmg"          damage to inflict when blocked (2 default)
+"dmg"          damage to inflict when blocked (0 default)
 "sounds"
 0)     no sound
 1)     stone