.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   vectors in hl1 (http://forums.bots-united.com/showthread.php?t=6827)

OMGCODING 24-06-2008 00:38

vectors in hl1
 
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

KWo 24-06-2008 18:15

Re: vectors in hl1
 
z is hight, y is depth.

OMGCODING 24-06-2008 19:01

Re: vectors in hl1
 
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

KWo 25-06-2008 09:18

Re: vectors in hl1
 
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...


All times are GMT +2. The time now is 03:31.

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