![]() |
|
Code of vector - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Code of vector (/Thread-Code-of-vector.html) |
Code of vector - Bloodfocus - 06-23-2013 what this do? can u also say me how to setup a vector , cursorpos,bullettrace? Code: GetCursorPos(){
f=self getTagOrigin("tag_eye");
e=self Vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
l=BulletTrace(f,e,0,self)["position"];
return l;
}
vector_scal(vec, scale){vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}RE: Code of vector - Yamato - 06-23-2013 The GetCursorPos() function gives you the point which you are looking at and the second function makes bigger or smaller a vector (changes its size). Code: vectorexample = ( 1, 0, 0 );
vector2example = ( self.angles[0], 0, self.origin[2] ); |