AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Way to make....around a bounding box? (https://forums.alliedmods.net/showthread.php?t=50546)

mysticssjgoku4 01-28-2007 18:54

Way to make....around a bounding box?
 
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.

VEN 01-29-2007 07:31

Re: Way to make....around a bounding box?
 
Set a model, size, solidity, movetype.
See hlsdk_const.inc

XxAvalanchexX 01-30-2007 00:27

Re: Way to make....around a bounding box?
 
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"

lunarwolfx 01-30-2007 00:35

Re: Way to make....around a bounding box?
 
will that actually follow the player?

XxAvalanchexX 01-30-2007 00:48

Re: Way to make....around a bounding box?
 
Not unless you keep resending it. And if you do, I'd set the life to only 1.


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

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