.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   enemy detection: TraceHull (http://forums.bots-united.com/showthread.php?t=4937)

Skeletor23 11-02-2006 01:07

enemy detection: TraceHull
 
Hello,

I want to write an enemy detection for a cs-bot using
tracehull.
There are 4 different hull-types: point_hull, human_hull, large_hull, head_hull.

Can you tell me something about there sizes??

Where do I have to chose the start point of an hull?
And how do I chose the end point when I want to look as far as possible?

Is it possible to get all visible objects in the viewing frustum, or only the first one hit?

Thanks!

Whistler 11-02-2006 02:56

Re: enemy detection: TraceHull
 
#define VEC_HULL_MIN Vector(-16, -16, -36)
#define VEC_HULL_MAX Vector( 16, 16, 36)
#define VEC_HUMAN_HULL_MIN Vector( -16, -16, 0 )
#define VEC_HUMAN_HULL_MAX Vector( 16, 16, 72 )
#define VEC_HUMAN_HULL_DUCK Vector( 16, 16, 36 )

#define VEC_VIEW Vector( 0, 0, 28 )

#define VEC_DUCK_HULL_MIN Vector(-16, -16, -18 )
#define VEC_DUCK_HULL_MAX Vector( 16, 16, 18)
#define VEC_DUCK_VIEW Vector( 0, 0, 12 )

Whistler 20-02-2006 08:41

Re: enemy detection: TraceHull
 
or more exactly one:
( 0 0 0 ) ( 0 0 0 )
( -16 -16 -24 ) ( 16 16 32 )
( -32 -32 -32 ) ( 32 32 32 )
( -16 -16 -24 ) ( 16 16 32 )


All times are GMT +2. The time now is 18:55.

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