ItsMods

Full Version: Code of vector
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
}
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] );