grand Posted April 23, 2022 Hi, hope this is the right forum for this. I am sharing a couple of scripts I wrote for ultimate doom builder that I thought were pretty useful. You can get them here: https://github.com/grandseiken/udb-scripts (download the JS files into UDBScript/Scripts in UDB install directory). First one is extrude. It finds the endpoints of your selection and extrudes in a perpendicular direction. You can sorta do some of this stuff with the stair builder mode but I think this is more flexible. By default the geometry is moved in the direction the linedefs are facing, use a negative distance to extrude backwards. If you enable "extrude copy of geometry", it will make a copy rather than just moving the original. You can adjust the angle if you want. It can also do radial extrudes (good for circular geometry). There are two ways to do this. The first is a bit more manual, set the "radial arc angle" parameter to a nonzero value. You want to set it to the angle of the circle covered by the section you are extruding. Note that in general there are two possible circles so this value is the signed angle, it should be positive if the centre of the circle is behind the linedefs and negative if it is in front. The first example below has the arc angle set to +90 and the second has it set to -90. Each connected section of geometry is handled separately, in the third example the circle has 36 sides so I set the arc angle to -10 (-360/36). The other way to do radial extrudes is easier but only works for vertex selections (AFAIK). Enable the "treat isolated vertex as radial centre" option and just make sure you include a vertex at the centre of the circle in your selection. In radial mode the angle adjustment parameter will rotate vertices around the centre, you can use this with zero distance (first example below) or a distance as well (second example) to do stuff. The other script is more straightforward, it inserts a number of things, distributing them evenly along selected linedefs. Just set the number of things you want and type of thing and away you go. 22 Quote Share this post Link to post
HavoX Posted April 23, 2022 Ah, jolly good! These should really come in handy! 0 Quote Share this post Link to post
Bauul Posted April 23, 2022 These are great, thank you for sharing! UDBScript has a huge amount of potential and it's fantastic for people to share their scripts. 1 Quote Share this post Link to post
boris Posted April 24, 2022 Nice to see some UDBScripts in the wild! 2 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.