-- [ Picked text/plain from multipart/alternative ] you need to clear the owner. if you own something, you can't touch it. so once it's on the ground, save off the owner somewhere (for when it actually explodes, so you can tell who did damage etc) and then clear the owner.
On 12/12/06, Clement Mallard <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > Hi, > > I'm trying to modify the smg1 grenades so they don't explode when they > touch > the wall but only when > someone walks on them. > > I edited the file dlls/hl2_dll/grenade_ar2.cpp but the function > GrenadeAR2Touch( CBaseEntity *pOther ) > runs when it touches anything except the player. I throw a grenade with > the > smg1, the grenade bounces > on walls and on the ground but only explodes when another player walks on > it. > I want it to explode if I walk on it but the GrenadeAR2Touch function does > not even run. > It may look obvious that pOther represents "something else" but I tried to > investigate and I can't find where > it tells no to run it when the player touches his grenade. > > Another thing that may be useful is when I shoot a smg1 grenade in front > of > a wall, the grenade bounces > and go through me. I remember when I first tried to edit the function the > grenade was bouncing on the > player too. I tried to play with the revert back to a previous version of > my > code but I didn't manage to have the grenade > to bounce on the player. > > It doesn't matter if the grenades go through the player or not, the > important thing is I want to be able to run > my function when I touch the grenade. > > I hope you can help me i any way. > > > Clement Mallard > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- -omega -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

