.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
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 10:34..
  
Reply With Quote
Re: Can't draw boxes around buyzones.
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Can't draw boxes around buyzones. - 05-03-2005

wiki, 'stin. Wiki.

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com