Add this line. It will get vphysics to generate touch functions for the grenade.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Yorg Kuijs > Sent: Sunday, August 24, 2008 9:09 AM > To: Discussion of Half-Life Programming > Subject: Re: [hlcoders] grenade code > > ok been trying out more stuff and found the culprit: > it's: > > bool CGrenadeMelon::CreateVPhysics() > { > // Create the object in the physics system > VPhysicsInitNormal( SOLID_BBOX, 0, false ); VPhysicsGetObject()->SetCallbackFlags( VPhysicsGetObject()->GetCallbackFlags() | CALLBACK_GLOBAL_TOUCH | CALLBACK_GLOBAL_TOUCH_STATIC ); > return true; > } > > if I would remove this then melon explodes when it touches > something BUT it just drops to the ground like a brick and so > can't be thrown anymore, been trying to find a workaround but > can't really find it. > argument for solid_bbox is good afaik, so it's either has to > do with the false/true values I think, but changing them > didnt seem to change anything.. AT ALL. > > so any advice on what to do? > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders