Raised This Month: $ Target: $400
 0% 

Way to make....around a bounding box?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 01-28-2007 , 18:54   Way to make....around a bounding box?
Reply With Quote #1

Is there an easy way to set the bounding box around an entity visible?

Like, so I spawn an entity, set the bounding box, and I want to set the bounding box visible somehow.

Thanks.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
VEN
Veteran Member
Join Date: Jan 2005
Old 01-29-2007 , 07:31   Re: Way to make....around a bounding box?
Reply With Quote #2

Set a model, size, solidity, movetype.
See hlsdk_const.inc
VEN is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-30-2007 , 00:27   Re: Way to make....around a bounding box?
Reply With Quote #3

Code:
new Float:mins[3], Float:maxs[3]; pev(ent,pev_absmin,mins); pev(ent,pev_absmax,maxs); message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(31); // TE_BOX write_coord(floatround(mins[0])); // boxmins write_coord(floatround(mins[1])); write_coord(floatround(mins[2])); write_coord(floatround(maxs[0])); // boxmaxs write_coord(floatround(maxs[1])); write_coord(floatround(maxs[2])); write_short(100); // life in 0.1 s write_byte(255); // r write_byte(0); // g write_byte(0); // b message_end();

If you display a lot of these, all of the dots might not actually appear. To allocate more dots, add this to your game launch parameters: "-particles 65000"
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 01-30-2007 at 00:33.
XxAvalanchexX is offline
lunarwolfx
Member
Join Date: Feb 2005
Old 01-30-2007 , 00:35   Re: Way to make....around a bounding box?
Reply With Quote #4

will that actually follow the player?
lunarwolfx is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-30-2007 , 00:48   Re: Way to make....around a bounding box?
Reply With Quote #5

Not unless you keep resending it. And if you do, I'd set the life to only 1.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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


All times are GMT -4. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode