Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Aditya Gaddam
BUMP. Anyone have any clues about this? On Tue, Dec 23, 2008 at 5:41 AM, Aditya Gaddam adityagad...@gmail.comwrote: Hi, I have project where I am spawning some models programmatically. They collide fine with me and most ammunition (including rockets, crossbow bolts, SMG secondary fire), but

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Steve Henderson
Aditya, You can try also setting various value for the move type, e.g.: SetMoveType( MOVETYPE_FLY ); And try using different parameters for X, SetSolid(X) / SetMoveType(X)..they are listed here: src\public\const.h Steve On Thu, Jan 1, 2009 at 11:31 AM, Aditya Gaddam

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Jay Stelly
If you are using the frag grenades from hl2 they use collision groups to specifically disable collisions between their physics objects and other objects (NPCs for example). Then they trace rays to fake it in their VPhysicsUpdate() function. That allows them to bounce off of the NPCs' hitboxes

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Aditya Gaddam
I was trying out collisions groups for my spawned entities and the energy ball from the combine rifle, and none of them were working, but collision groups seem to have an effect on regular nades. Groups of 5, 8 and some others let the grenade and the player collide. Which is awesome! The problem

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Aditya Gaddam
For whatever it's worth, this functionality of explosion blockage is implemented in bool IsExplosionTraceBlocked( trace_t *ptr ) in gamerules.cpp The ptr has a m_pEnt property that hold the entity that the trace hit. IsExplosionTraceBlocked is called for entities that the grenade explosion

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Nick
That might be one of the most horrible hacks I have ever heard about on the source engine. On Thu, Jan 1, 2009 at 12:02 PM, Jay Stelly j...@valvesoftware.com wrote: If you are using the frag grenades from hl2 they use collision groups to specifically disable collisions between their physics

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Aditya Gaddam
If you find a better way, I am all ears :P On Thu, Jan 1, 2009 at 6:51 PM, Nick xnicho...@gmail.com wrote: That might be one of the most horrible hacks I have ever heard about on the source engine. On Thu, Jan 1, 2009 at 12:02 PM, Jay Stelly j...@valvesoftware.com wrote: If you are using

Re: [hlcoders] Grenades going through spawned models

2009-01-01 Thread Tony Sergi
It's called smart optimization. -Original Message- From: hlcoders-boun...@list.valvesoftware.com [mailto:hlcoders-boun...@list.valvesoftware.com] On Behalf Of Nick Sent: January-01-09 6:51 PM To: Discussion of Half-Life Programming Subject: Re: [hlcoders] Grenades going through spawned