![]() |
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 |
Re: vectors in hl1
z is hight, y is depth.
|
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 |
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.