scr_object outside the skybox

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

scr_object outside the skybox

Post by ViPER »

i want to hide about 100 script objects that are bound to 1. if i hide the 1 the rest are still visible - so would need to hide each individually.

instead I noticed i can move them outside the skybox to achieve this and even call them back later....

this seems sloppy though. any problems with this method ?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

targetname

Post by tltrude »

Its hard to tell what you want this for, but it might be easier to just give all 101 objects the same targetname. Then you can hide/show them together.

for(local.i = 1; local.i <= $myobject.size; local.i++)
{
local.myobject = $myobject[local.i]
local.myobject hide
}

That might not be right. But, the idea is to assign all the objects (named myobject) an index number and then hide them all.
Tom Trude,

Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

its for a dynamic maze objective. each round builds a new randomly selected maze and custom mazes can be added via server side script.

each panel has to have a unique targetname for this. the bottom picture is the spare panels being thrown from the maze at build.

MAZEMADNESS.

Image


Image



Image

Image

Image

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Haha awesome!! 8-)

I recommended hiding the objects you don't need, it requires much less network traffic than sending them all to some other place in the map.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

vis_leafgroup

Post by tltrude »

You could probably do it with vis_leafgroups too.

$vis1.target = $vis4::$vis7::$vis12::$vis43
$vis1.target = NIL
$vis1.target = $vis6::$vis8::$vis16::$vis74

Also not sure if that scripting will work.
Tom Trude,

Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

hmmmm - If I hide them they are still solid ? I would like to keep each object to one line so it will be easiest to add more mazes.

I like vis -fast lol. maybe I could move them into a vis brush rather then outside the skybox. maze build seems to work fine but i have not tested it on the server with others.

But im not hearing any concerns about pushing these things outside the skybox?
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Why don't you make 4 seperate arenas. The arena you are playing in is "vise'd" out from the other three. Use teleports to make people go to the next arena in a given amount of time.

you should be able to keep them all under one skybox without taking a big hit in performance.

You just need to make sidewalls using a wall texture and a sky texture wall on top of that for each arena. A common roof could be used for all.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

He wants a completely dynamic arena, from what i gather neil.

well if you want to have a single list to apply a command to all of them, do like this.

Code: Select all

local.array = $thing1::$thing2::$thing3
local.array hide
local.array notsolid
same deal as giving them all the same targetname, except this way you can control where in the array they are.
Last edited by lizardkid on Sun Apr 15, 2007 7:52 am, edited 1 time in total.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

move

Post by tltrude »

Its ok to move them outside the skybox, just don't move them outside the limits of the grid. You can also move them down under the terrain.

I like lizardkid's idea --don't have to move anything. If they are solid when hidden, just use:

Code: Select all

local.array = $thing1::$thing2::$thing3 
local.array notsolid
local.array hide
and

Code: Select all

 
local.array solid
local.array show
Tom Trude,

Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

yeah thanks guys - thats clean.
Post Reply