Setsize Help Please
Moderator: Moderators
Setsize Help Please
Can anyone tell me how to come up with the setsize for a brush using scirpts. I know the scripting portion of it. What I cant figure out is how can I come up with the correct set size. Is there any tool out there that will display the setsize of an object? If so please provide name, link and maybe how to use it. Thanks
<TWZ>WarTech
<TWZ>WarTech
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
that won't work 
setsize is an event and not a variable so can't be accessed from the entity
you could try spawning a cube 1x1, at the same origin of the entity your wanting to find the size of
then move it along each axis and find out if it's touching the entity at each point, this will only work for entities though and can't be used to find out lengths of walls and such
setsize is an event and not a variable so can't be accessed from the entity
you could try spawning a cube 1x1, at the same origin of the entity your wanting to find the size of
then move it along each axis and find out if it's touching the entity at each point, this will only work for entities though and can't be used to find out lengths of walls and such
hope this helps, prob not cos it's all foreign 2 me :-/
Darn it did not worked. I got that script to add rain to any map to work in spearhad and it works really well but it also rains inside the buildings. So I took Getwitter and looked at it in bsp view and saw how the doing the rain. So the trick to keep rain from showing up inside the structures is to set the correct setsize for each area you may want to have rain in. I can do it by trail and error till I get the correct setsize per area but it would be lots of work. So there has to be a way or a utility out there that will display the setsize of a clip or box that can be draw in radiant. That would save lots of time. Maybe radiant has a setting that would display the setsize in a property box or something like it. Maybe someone may know of a way to do calculation that would give the setsize.bdbodger wrote:I don't know for sure but can you use iprintln $mything.setsize
BD I am almost done with the mod ,, boy cant wait. 8 more maps and thats it.
Last edited by WarTech on Wed Feb 25, 2004 3:58 pm, edited 1 time in total.
Ok that may work but I am not a radiant expert YET lol!! So if I was to decompile the map how would I get the measurements within radiant. So far what I seen radiant provide me is with the origin, angles, and class, blah, blah but not setsize (xxx xxx xxx) (xxx xxx xxx) wich is what I am looking for. I hope there is something that can display that information. I can use radiant to draw a large rectangle but it does not show me the size of the item it just shows me the origin and angles. I am completely noob to radiant any input on this would be great.M&M wrote:y dont u decompile the map and measure the area in radient then use it in the script , in the undecompiled map (the original bsp) ofcourse.
Thanks
<TWZ>WarTech
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
Re: Setsize Help Please
ok, i don't know why i'm replying again ater you've ignored both of my previous posts,WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts. I know the scripting portion of it. What I cant figure out is how can I come up with the correct set size. Is there any tool out there that will display the setsize of an object? If so please provide name, link and maybe how to use it. Thanks
<TWZ>WarTech
did you or did you not ask
and your now sayingWarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.
soWarTech wrote:I can use radiant to draw a large rectangle but it does not show me the size of the item it just shows me the origin and angles. I am completely noob to radiant any input on this would be great.
if you want to find out via scripting read my previous posts
if you want to find out in radiant, look at the bottom of the screen with the brush selected, it shows you the size of the brush,
if you move the cursor to the left bottom point of the brush, it will show you the origin
oh by the way
don't mention it
hope this helps, prob not cos it's all foreign 2 me :-/
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
Re: Setsize Help Please
NOt ignoring you at all, been busy trying to follow you instructions since I dont know how use radiant at your level yet. Learing curve thing LOL. I made a large brush and finaly saw the X and Y information LOL. Now all I need to do is understand how to get the Z info. Thanks for the eye opener. Now if you can provided me with a little more on how to go about getting the Z info then I will get it done ,, once more thanks.nuggets wrote:ok, i don't know why i'm replying again ater you've ignored both of my previous posts,WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts. I know the scripting portion of it. What I cant figure out is how can I come up with the correct set size. Is there any tool out there that will display the setsize of an object? If so please provide name, link and maybe how to use it. Thanks
<TWZ>WarTech
did you or did you not askand your now sayingWarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.soWarTech wrote:I can use radiant to draw a large rectangle but it does not show me the size of the item it just shows me the origin and angles. I am completely noob to radiant any input on this would be great.
if you want to find out via scripting read my previous posts
if you want to find out in radiant, look at the bottom of the screen with the brush selected, it shows you the size of the brush,
if you move the cursor to the left bottom point of the brush, it will show you the origin
oh by the way
don't mention it
<TWZ>WarTech
Re: Setsize Help Please
Ok I can see the X and the Y but I cant see the Z it cuts it off so I cant see the numbers. Is there anyway I can change the layout of those boxes at the bottom so I can see that information? Once more thanks.nuggets wrote:ok, i don't know why i'm replying again ater you've ignored both of my previous posts,WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts. I know the scripting portion of it. What I cant figure out is how can I come up with the correct set size. Is there any tool out there that will display the setsize of an object? If so please provide name, link and maybe how to use it. Thanks
<TWZ>WarTech
did you or did you not askand your now sayingWarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.soWarTech wrote:I can use radiant to draw a large rectangle but it does not show me the size of the item it just shows me the origin and angles. I am completely noob to radiant any input on this would be great.
if you want to find out via scripting read my previous posts
if you want to find out in radiant, look at the bottom of the screen with the brush selected, it shows you the size of the brush,
if you move the cursor to the left bottom point of the brush, it will show you the origin
oh by the way
don't mention it
<TWZ>WarTech.
BTW. when an item is spawn such as a tank, or box, how I can give it the animation that it seen in the stock maps. Meaning when you shoot at tank you get the metal zing or when shooting at boxes you get the wood splinters flying of it. Can it be added via scripts?
Thanks.
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
nuggets wrote:i presume i can see it then just because of a high screen res
i think, if you add to the script
$name setcollisionentity $name.target
Hello there Nuggets:
You are correct, I can see it if I take it to a hight resolution. 1024x768 not large enough blah lol. I will try the setcollisionentity today when I get in from the office. Thanks!!! If you have Spearhead try to stop by one of my servers and check out how the mod I have been working like for ever is comming along. Look for servers with the <TWZ> Tags in front fo their names. They are dedicated sitting on OC-48 lines. IPs are 69.56.218.196 or 216.110.80.171 they are running some 36 map rotations each on a 24/7, cya around.
<TWZ>WarTech
FragOn!!!

