View Single Post
Can't draw boxes around buyzones.
Old
  (#1)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Can't draw boxes around buyzones. - 05-03-2005

I am trying to draw lines around all of the buyzones in a mm plugin runing on a cz client.

So I "lifted" he, he
some code from PMB's pmtools_plugin

IT complies and runs fine but it doesn't draw lines around the buyzones?
Can some one tell me why?

edict_t *pEntity = NULL;
while ((pEntity = FIND_ENTITY_BY_CLASSNAME (pEntity, "func_buyzone")) != NULL)
{
if (FNullEnt (pEntity))
break; // break when the engine reports no more entities

UTIL_DrawBeam (Vector (pEntity->v.absmin.x, pEntity->v.absmin.y, pEntity->v.absmin.z), Vector (pEntity->v.absmin.x + pEntity->v.size.x, pEntity->v.absmin.y, pEntity->v.absmin.z), 2000, 10, 0, 0, 255, 0, 255, 0);
etc...
}

Thanks, and PM thanks for a great plugin...

>edit<
Wow, some great articles in the Wiki.
tx.

Last edited by Austin; 05-03-2005 at 09:34..
  
Reply With Quote