View Single Post
Re: podbot grenade throwing bug
Old
  (#30)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: podbot grenade throwing bug - 02-10-2004

I think I've found a good way for nade throwing
NOTE: PHP tags because code tags are currently broken..
Code:
   // get a rough idea of how high it can be thrown
   vecMidPoint = vecSpot1 + (vecSpot2 - vecSpot1) * 0.5;
   TRACE_HULL (vecMidPoint, vecMidPoint + Vector (0, 0, 500), ignore_monsters, head_hull, pEdict, &tr);
   if (tr.flFraction != 1.0)
   {
      vecMidPoint = vecMidPoint + (tr.vecEndPos - vecMidPoint) * 0.75;
   }

Last edited by sPlOrYgOn; 18-10-2004 at 08:56..
  
Reply With Quote