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=6e9cf8e721d78d5319a773b8006297bac9742589;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 1a0e12162a..d2635e98c1 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