[SOLVED] How much RadiusGive's max allowed radius value is?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 5043
- Joined: Sun Nov 14, 2010 12:59 am
Re: [SOLVED] How much RadiusGive's max allowed radius value
I'm a little confused, so what's the radius value that should be passed to A_RadiusGive to cover the whole map, again? (This is for the wiki)
- Void Weaver
- Posts: 724
- Joined: Thu Dec 18, 2014 7:15 am
- Contact:
Re: [SOLVED] How much RadiusGive's max allowed radius value
sqrt(3*[-32768, 32768]^2) = 113512 (rounded up) - covers entire map along its cubic diagonal, if count from extreme points.*
sqrt(3*32768^2) = 113512/2 = 56756 (rounded up) - covers entire map along its cubic diagonal, only from relative map center.**
But anyway both numbers are redundant for most maps unless there are uses too high height values.
*sqrt(2*[-32768, 32768]^2) = 92682 (rounded up) - same but for square diagonal.
**sqrt(2*32768^2) = 92682/2 = 46341 (rounded up) - same but for square diagonal.
sqrt(3*32768^2) = 113512/2 = 56756 (rounded up) - covers entire map along its cubic diagonal, only from relative map center.**
But anyway both numbers are redundant for most maps unless there are uses too high height values.
*sqrt(2*[-32768, 32768]^2) = 92682 (rounded up) - same but for square diagonal.
**sqrt(2*32768^2) = 92682/2 = 46341 (rounded up) - same but for square diagonal.
- Void Weaver
- Posts: 724
- Joined: Thu Dec 18, 2014 7:15 am
- Contact:
Re: [SOLVED] How much RadiusGive's max allowed radius value
Just only now figured that gzdoom "radius" isn't means the classic "radius" math definition and do build up a some cubic-shaped structure, where "radius" is about 1/2 of its edge.
So, zwiki hint to summon A_RadiusGive("item",16384) spawner at a map absolute center is absolutely correct.
---
Here is a some test map "map test", builded with the max possible sides and A_RadiusGive 16384 radius covers this map entirely.
Right spawnspot portal leads to the farthes map point from the start point where are placed a pair of monsters and item;
left spawnspot portal leads to the absolute map center onto a tall peak;
start "CFist" primary fire spawns a some dummy which gives the "BFGBAll" to all items and monsters on the map.
---
So, I guess the OP question can be considered as completely explained.
So, zwiki hint to summon A_RadiusGive("item",16384) spawner at a map absolute center is absolutely correct.
---
Here is a some test map "map test", builded with the max possible sides and A_RadiusGive 16384 radius covers this map entirely.
Right spawnspot portal leads to the farthes map point from the start point where are placed a pair of monsters and item;
left spawnspot portal leads to the absolute map center onto a tall peak;
start "CFist" primary fire spawns a some dummy which gives the "BFGBAll" to all items and monsters on the map.
---
So, I guess the OP question can be considered as completely explained.
- Attachments
-
_A_RadiusGive_Test_Box.wad
- (17 KiB) Downloaded 17 times