Making projectiles pass through grates (Source Mod)

Grab your favourite IDE and tinker with the innards of game engines

Making projectiles pass through grates (Source Mod)

Postby ChromeAngel on Sat Oct 29, 2011 12:51 pm

I've got a projectile, based on CBaseGrenade that currently explodes when it hits the world. I would like to modify it so the projectiles can pass through grate textures. Using MASK_SHOT_PORTAL seems to do the job when tracing hitscan weapons attacks, but i'm not sure the best way to handle this when a projectile is involved.

I would have thought one of the COLLISION_GROUPs might do the trick, but none of the descriptions mention grate textures.

Any suggestions?
User avatar
ChromeAngel
Member
Member
 
Joined: Fri Oct 21, 2011 7:28 am
Location: England

Re: Making projectiles pass through grates (Source Mod)

Postby zombie@computer on Sat Oct 29, 2011 5:14 pm

No idea, i guess you can try the obvious ones.
Usually the problem is solved by making the grated brushes func_brush (nonsolid) with a cliptexture the same size.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Making projectiles pass through grates (Source Mod)

Postby ChromeAngel on Sat Oct 29, 2011 9:53 pm

Ideally i'd be looking for pure code fix that works with existing maps, since the mappers often get lost in the warp without sending me the VMF first. Thanks for the suggestion though Z@C.
Last edited by ChromeAngel on Sun Oct 30, 2011 1:39 pm, edited 1 time in total.
User avatar
ChromeAngel
Member
Member
 
Joined: Fri Oct 21, 2011 7:28 am
Location: England

Re: Making projectiles pass through grates (Source Mod)

Postby Gambini on Sun Oct 30, 2011 1:51 am

zombie@computer wrote:No idea, i guess you can try the obvious ones.
Usually the problem is solved by making the grated brushes func_brush (nonsolid) with a cliptexture the same size.


A clip brush doesn´t block physic objects.
User avatar
Gambini
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 20, 2008 1:52 am
Location: Buenos Aires, Argentina.

Re: Making projectiles pass through grates (Source Mod)

Postby ChromeAngel on Thu Nov 17, 2011 9:43 pm

i'm putting this on the back burner, the way I thought I could make it work doesn't... I can't be bothered to spend much more time on this minor annoyance.
User avatar
ChromeAngel
Member
Member
 
Joined: Fri Oct 21, 2011 7:28 am
Location: England

Return to Programming

Who is online

Users browsing this forum: No registered users