From: bones_was_here Date: Wed, 12 Oct 2022 12:48:50 +0000 (+1000) Subject: func_door: update documentation to reflect default .dmg of 0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=58329f85919a561279074fcda6c219fe1f6fec2c;p=xonotic%2Fxonotic-data.pk3dir.git func_door: update documentation to reflect default .dmg of 0 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. --- diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 7688d740e..540cc0ea8 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -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