Setsize Help Please

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Setsize Help Please

Post 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
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I don't know for sure but can you use iprintln $mything.setsize
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post 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.
Last edited by WarTech on Wed Feb 25, 2004 3:58 pm, edited 1 time in total.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post 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.
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

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

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

Post 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
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Re: Setsize Help Please

Post 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
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Re: Setsize Help Please

Post 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.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

just put a clip to get the sparks.
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post 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!!!
Post Reply