|
Re: TelePort Gun (swapping X,Y,Z coords) need help
[Re: immolat3]
#167031
11/12/07 23:55
11/12/07 23:55
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
I know this is jsut me talking to myself, but it may end up helping someone later on. I have it now so it teleports me to the object i shoot if its the right model.
function TeleportGun() { var theTarget;
vec_set(theTarget.x, vector(10000, 0, 0)); //shoots 10000 quants vec_rotate(theTarget.x, my.pan); //shoots in the direction of the player c_trace(my.x, theTarget.x, ignore_me + scan_texture); // Does the c_trace to the object
draw_text(tex_name,200,30,vector(100,100,255));
if(str_cmpi(tex_name, "SQUARE.MDL") == 1) { var tempX; var tempY; var tempZ; tempX = your.x; tempY = your.y; tempZ = your.z; my.x = tempX; my.y = tempY; my.z = tempZ; } }
however, theres still some aiming problems. it doesnt always aim right where it should, im not sure the camera pan thing is working like i thought it should.
|
|
|
Entire Thread
|
TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 07:17
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Michael_Schwarz
|
11/12/07 08:33
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 16:41
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 19:45
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:03
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 20:15
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 20:38
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 20:42
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:54
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:56
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:06
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:16
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:20
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:21
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:25
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:30
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:31
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:35
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:37
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:38
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:45
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:47
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:49
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:56
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:01
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:05
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:10
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:14
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Nems
|
11/12/07 22:58
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:03
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:46
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:55
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/13/07 00:23
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/13/07 01:28
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 21:30
|
|
|