.:: 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 > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
enemy detection: TraceHull
Old
  (#1)
Skeletor23
Member
 
Status: Offline
Posts: 2
Join Date: Feb 2006
Default enemy detection: TraceHull - 11-02-2006

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!
  
Reply With Quote
Re: enemy detection: TraceHull
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: enemy detection: TraceHull - 11-02-2006

#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, 1
#define VEC_DUCK_VIEW Vector( 0, 0, 12 )
  
Reply With Quote
Re: enemy detection: TraceHull
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: enemy detection: TraceHull - 20-02-2006

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 )
  
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