• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code of vector
#1
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;
}
  Reply
#2
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] );
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 3,618 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,651 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,085 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,767 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,767 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,139 07-28-2013, 01:52
Last Post: First_Semyon
  problem with gsc code CheGuevara 5 5,050 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 3,760 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,352 04-05-2013, 01:47
Last Post: NyZzE
  Help error code [HARD] Tony. 2 2,782 03-23-2013, 00:19
Last Post: 8q4s8

Forum Jump:


Users browsing this thread: 1 Guest(s)