--
[ Picked text/plain from multipart/alternative ]
Alright I know I can just add

CBaseEntity::Create( "npc_headcrab", GetLocalOrigin(), QAngle(0,0,0) );

inside the first if that checks if the timer is up if I copy the code from
the Detonate function under

CGrenadeFrag::DelayThink()

inside GrenadeFrag.cpp That works ok unless you throw the grenade near a
wall, in which case the headcrab becomes stuck. I need to check a radius
around the LocalOrigin of the grenade to see if there are any walls inside
the radius, and if so move around and recheck position like the section
under

// Check if fire is in a wall, if so try shifting around a bit

in the fire.cpp . I tried to use that bit of code from fire.cpp as a guide
but I got lost along the way. I'd like to have something like Crabspawn() I
could stick after the if. Any help and or hits appreciated.
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to