.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   Can't draw boxes around buyzones. (http://forums.bots-united.com/showthread.php?t=3694)

Austin 05-03-2005 01:03

Can't draw boxes around buyzones.
 
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 08:32

Re: Can't draw boxes around buyzones.
 
wiki, 'stin. Wiki.

http://wiki.bots-united.com/index.ph...lf-Life_engine


All times are GMT +2. The time now is 22:28.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.