PDA

View Full Version : Can't draw boxes around buyzones.


Austin
05-03-2005, 02:03
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.

Pierre-Marie Baty
05-03-2005, 09:32
wiki, 'stin. Wiki.

http://wiki.bots-united.com/index.php/Display_beams_with_the_Half-Life_engine