Set up a wall

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Set up a wall

Post by Barttje »

Hey guys,
is it possible to set op a wal in script but not with boxes or stuff like that...
Old nickname: Bartjerambo
New nickname: Barttje
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmmm no, unless it's already there in the map (but hidden).
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

no there isn't but ive seen it in a server but don't know wich it was...:S

tnx for fast reply... :)
Old nickname: Bartjerambo
New nickname: Barttje
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well you could spawn a bunch of entities with relatively square collisions and hide them.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

i must be a visible wall

btw i want to make a wall in V2 rocket map
Old nickname: Bartjerambo
New nickname: Barttje
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

As far as we know from our science, research and philosophy, there is no way to make a (textured) wall (like a brush) by scripting, it is possible to make an invisible wall by spawning a script_object without a model. U can make a wall out of models like boxes or whatever you can use for building one.
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

okeey so it isn't possible to add a server-side texture to a map
Old nickname: Bartjerambo
New nickname: Barttje
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

You can change the textures by opening the map file with notepad and swapping one texture for another. Server side, I don't know, but it works.

I think, as do the other people who added input to your question, that you can add an invisible wall, but not a textured wall. I don't know where you want the wall,but, why not script in a cratelid that is 30 times bigger than normal, flip it the way you want, and then put a clip brush where you want it "
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

isn't it possible like

local.texture = spawn script_object
local.texture model "textures/blahblah.tga"
ect.
??????
Old nickname: Bartjerambo
New nickname: Barttje
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Not sure, I know they was spawning ladders with a similiar proccess.
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Those ladders where made out of scripted beams, you can give those a texture. This wont work as a wall as the surface turns to the player all the time.
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

how can i set up a beam...?
Old nickname: Bartjerambo
New nickname: Barttje
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

[quote="Bartjerambo"]how can i set up a beam...?[/quote]

http://www.modtheater.com/forum/showthr ... ht=ladders
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Like this:

local.mybeam = spawn func_beam origin ( x x x ) endpoint ( x x x )
local.mybeam scale x.x
local.mybeam activate
local.mybeam shader "textures/xxx/xxx"
local.mybeam color (x x x)
local.mybeam maxoffset 0

Place it under level waittill spawn

origin: coordination of the start point of the beam
endpoint: coordination of the the end point
With this u make a line which is needed.

scale: this can be used for the width, you can also use the key "radius" if im right. Default is 1.0

activate: Without this, you wont see the beam.

shader: Give a shadername if you want to put a texture on the beam.

color: If there is no textures, you can give the beam a color with this key. (1 1 1) = white

maxoffset: this sets the maximum offset the beam can travel above, below, forward or back of it's endpoints.
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

tnx m8, i'm going to check it out :)
Old nickname: Bartjerambo
New nickname: Barttje
Post Reply