Urban Terror Forums: Shader Issue with Grates - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Shader Issue with Grates Rate Topic: -----

#1 User is offline   theRipper Icon

  • Account: theripper
  • Main tag: CMM|
  • Country:
  • Joined: 26-September 10
  • Posts: 924

Posted 05 November 2011 - 07:25 AM


textures/hangar/gratey
{
    qer_editorimage textures/hangar/ppgrate.tga
	qer_trans 0.40
	cull disable
	{
		map textures/hangar/ppgrate.tga
		alphaFunc GE128
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}





im making grates to walk on in my map
i have a brush made of metal clip with the above shader applied to the surface.


you can shoot through it and walk on top of it. but if you die you fall through the brush.

how can i fix this? :)
A.K.A. [idgaf.]Face(Clan Leader)


#2 User is offline   Delirium Icon

  •   QA member   
  • Account: delirium
  • Country:
  • Joined: 28-February 10
  • Posts: 5,416

Posted 05 November 2011 - 07:40 AM

If you can shoot through it yet it blocks players one would assume it is therefore player clipped. Yet the shader isn't specifying any of this which means your crossing surface types. Long story short, players will fall through player clip, but not through weaponclip.
There is no way to fix this while keeping the same brush properties as being able to shoot through yet blocking players.

Quote

Each brush has a content type, solid/nonsolid/water/lava or slime, but each brush has several faces, each of which can be textured with a different shader that has a unique content type. If you have a brush thats textured with caulk (a solid texture) on some sides and a nonsolid shader on another the compiler will take the content type of the first surface it comes across when compiling the map. Its left up to the mapper to ensure that a brush has the same content type on each surface of the brush


#3 User is offline   theRipper Icon

  • Account: theripper
  • Main tag: CMM|
  • Country:
  • Joined: 26-September 10
  • Posts: 924

Posted 05 November 2011 - 02:49 PM

that just destroyed my whole map then...

gg urt
A.K.A. [idgaf.]Face(Clan Leader)


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942