.:: Bots United ::.  
filebase forums irc server wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps waypoints 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
vectors in hl1
Old
  (#1)
OMGCODING
Member
 
Status: Offline
Posts: 2
Join Date: Mar 2008
Default vectors in hl1 - 24-06-2008

hi i was looking a bot code for HL1 look i have this doubt

vec_t vecBegin + vec3_t (0, 0, 0);

ok i want to know if the vectors in half life are (x y z) right, so X is the plane, Y is the height and Z is depth, im not sure can you tellme, so that would be

vec_t vecBegin + vec3_t (x, y, z);

and vecBegin is

vecBegin[0] = x
vecBegin[1] = y
vecBegin[2] = z

i want to know these things about the sdk, i am exploring it
tellme if am i right

thanks
   
Reply With Quote
Re: vectors in hl1
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,416
Join Date: Apr 2004
Default Re: vectors in hl1 - 24-06-2008

z is hight, y is depth.
   
Reply With Quote
Re: vectors in hl1
Old
  (#3)
OMGCODING
Member
 
Status: Offline
Posts: 2
Join Date: Mar 2008
Default Re: vectors in hl1 - 24-06-2008

hi KWo

so is this correct
vec3_t (x, y, z); ====> vec3_t (ground, depth, height);

i mean to add a vector are the correct positions of x, y and z for adding vec1 = vec1 + vec3_t(x, y, z)????

vecBegin[0] = x
vecBegin[1] = y
vecBegin[2] = z

thanks
   
Reply With Quote
Re: vectors in hl1
Old
  (#4)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,416
Join Date: Apr 2004
Default Re: vectors in hl1 - 25-06-2008

Teoretically everything seems to be right, but the compiler may complain if ou are adding variables they are different (for compiler) types: vec_t and vec3_t... Instead asking, just try. It takes less time...
   
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 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com