![]() |
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. |
Re: Can't draw boxes around buyzones.
|
All times are GMT +2. The time now is 09:44. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.