Page 1 of 1

Setsize Help Please

Posted: Tue Feb 24, 2004 11:36 pm
by WarTech
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

Posted: Wed Feb 25, 2004 12:34 am
by bdbodger
I don't know for sure but can you use iprintln $mything.setsize

Posted: Wed Feb 25, 2004 3:31 am
by nuggets
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 :D

Posted: Wed Feb 25, 2004 4:06 am
by WarTech
bdbodger wrote:I don't know for sure but can you use iprintln $mything.setsize
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.

BD I am almost done with the mod ,, boy cant wait. 8 more maps and thats it.

Posted: Wed Feb 25, 2004 5:30 am
by nuggets
i'm sure i typed a reply earlier... maybe just my imagination

anyway, if you know the height of the skybox, spawn different items use, droptoground, then work out the z co-ordinates from that, that'll give you the heights you'll need for rain

Posted: Wed Feb 25, 2004 3:33 pm
by M&M
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.

Posted: Wed Feb 25, 2004 4:04 pm
by WarTech
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.
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.

Thanks

<TWZ>WarTech

Re: Setsize Help Please

Posted: Thu Feb 26, 2004 4:21 am
by nuggets
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
ok, i don't know why i'm replying again ater you've ignored both of my previous posts,

did you or did you not ask
WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.
and your now saying
WarTech 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.
so
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

Posted: Thu Feb 26, 2004 4:53 am
by omniscient
nuggets wrote:that won't work :(
setsize is an event and not a variable so can't be accessed from the entity
WarTech wrote: Darn it did not worked.
lol

Re: Setsize Help Please

Posted: Thu Feb 26, 2004 5:04 am
by WarTech
nuggets wrote:
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
ok, i don't know why i'm replying again ater you've ignored both of my previous posts,

did you or did you not ask
WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.
and your now saying
WarTech 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.
so
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
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.

<TWZ>WarTech

Re: Setsize Help Please

Posted: Thu Feb 26, 2004 5:28 am
by WarTech
nuggets wrote:
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
ok, i don't know why i'm replying again ater you've ignored both of my previous posts,

did you or did you not ask
WarTech wrote:Can anyone tell me how to come up with the setsize for a brush using scirpts.
and your now saying
WarTech 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.
so
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
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.

<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.

Posted: Thu Feb 26, 2004 6:25 am
by omniscient
just put a clip to get the sparks.

Posted: Fri Feb 27, 2004 1:39 am
by nuggets
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

Posted: Fri Feb 27, 2004 11:49 am
by WarTech
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!!!