diff --git a/config/scripts.cfg b/config/scripts.cfg index 5c99f702..b18b0461 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -36,6 +36,18 @@ const convertclips [ ] ] +// increase legroom for mapmodels by decreasing the z-offset of a map config mapmodel slot +// and simultaneously increasing the z-offset of all affected map model entities +// (this is to counteract the fact, that the z-offset of an entity can only hold positive numbers - using the ability of the slot config to use negative numbers)) +// this will not change anything visible in the map - but allow a mapmodel to be lowered further than before +// the only argument is the slot number - for more leg room, repeat the script +const mapmodelzoff [ + if (strlen (editmapmodelslot $arg1)) [ // invalid slot returns empty string + looplist (editmapmodelslot $arg1) [rad h zoff snap path] [editmapmodelslot $arg1 "" "" (- $zoff 1) ; echo $path in slot # $arg1 : new z-offset (- $zoff 1)] + looplist (mapmodelslotusage $arg1) ii [editentity $ii "" "" "" "" "" (+ 1 (at (editentity $ii) 6)) ; echo adjusted entity # $ii] + ] +] + // "gibsgore" command: // This command controls gib Speed/Number/TTL all in one variable. const gibsgore [