Rail Collision

  • Thread starter Thread starter dark_exodus
  • Start date Start date
D

dark_exodus

Guest
Hi,

I might be doing this totally wrong but I created a brush using the block tool and then textured it to look like a stair rail. Problem is, the rail acts like a solid block so the gamer can't shoot in between the rails.

How do I fix this?

cheers,
 
maybe you should redo it as seperate peices..or use the cutting tool to remove the parts of the brush in the way (im assuming its one piece?) Raeven could probably help you if im not :)
 
turn it into a func_brush and turn the solidity off. this will make it so ANYTHING can go through it...including the player. to keep the player from going through it....cover the rail up with another brush and change all of that brushes sides into the playerclip texture. this will keep player from going through it...but will still let you shoot right through it.
 
WAR_Nuker said:
turn it into a func_brush and turn the solidity off. this will make it so ANYTHING can go through it...including the player. to keep the player from going through it....cover the rail up with another brush and change all of that brushes sides into the playerclip texture. this will keep player from going through it...but will still let you shoot right through it.

Ok I've done all that but I still have a few issues.

How do I create collision between the railing and the bullets? I want the gun fire to go through the gaps and bounce off / hit the railing.

Also now when looking at the railing at any angle it starts to disappear. What's that all about?
 
oh i thought you just wanted the bullets to go through the rails and not be able to shoot it ever. you just want a regular rail? get rid of that player clip....and turn that rail into a func_detail instead. post some screens and i might be able to help you better.
 
Uh... Can textures even do collision testing? I'd think he'd need a model to have bullets go through only certain parts of his rail. Either that or some very clever brush clipping and vertex manipulation.
 
im not sure if hes talking about a model or a collection of brushes now that i look at it.
 
Well, he made it with the block tool, so I'm gonna say the probability that it's a model is rather slim ;)
 
Ok I've attached an image to better explain what I mean. Like I said at the start I might be doing this totally wrong. :dozey:

Also ignore the way it looks, I’m only practicing :)
 

Attachments

  • temp.jpg
    temp.jpg
    72.8 KB · Views: 125
If it's a brush, you'll need to either cut pieces out of it where there's no texture or place tools/toolsblockbullets-textured blocks where there is. Brushes can't be selectively solid.
 
you could just make the rail manually and use a metal texture that doesnt have any invisible parts to it. it might not look as slick though. if you must use that texture then do what raeven says.
 
Back
Top