[SNIPPET] Get aiming positionaim

Hi,
I just made/edited a little script to get the aiming position of the crosshair.

Use GOSUB @GET_AIMING_POS to get the aiming cordinates.
It will store the cordinates to 0@ 1@ 2[member=34438].[/member]

Heres an example wich creates a explosion at the aiming position if you rightclick:
Code:
{$CLEO .cs}
THREAD "AIM_EXPLOSION"
0662: NOP "www.youtube.com/OpcodeXe" 
0662: NOP "www.ugbase.eu" 

:START
wait 10
if
0AB0: KEY_PRESSING: 2 // RIGHT MOUSE BUTTON - AIMING
jf @START
GOSUB @GET_AIMING_POS // RETURNS AIMING AT POSITION TO: 0@ 1@ 2@
020C: create_explosion_with_radius 3 at 0@ 1@ 2@ 
Jump @START




:GET_AIMING_POS // PASTE THIS AT THE END OF THE SCRIPT
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0A9F: 5@ = current_thread_pointer 
5@ += 80 
0A8E: 6@ = 5@ + 12 // int 
0AA6: call_method 5327216 11989032 num_params 6 pop 0 6@ 5@ 3@ 2@ 1@ 4@  
if 
86BD:   not no_obstacles_between 1@ 2@ 3@ and 8@ 9@ 10@ solid 1 car 1 actor 0 object 1 particle 0 
else_jump @ADD 
jump @END_POS 

:ADD
4@ += 1.0 
if
  4@ > 250.0 
else_jump @GET_AIMING_POS 

:END_POS
0@ = 0.0
1@ = 0.0
2@ = 0.0
005B: 0@ += 8@ // (float) 
005B: 1@ += 9@ // (float) 
005B: 2@ += 10@ // (float)
4@ = 0.0 // RESET THE AIM RADIUS  
return

VIDEO EXAMPLE:
[youtube:v8z3k5za]http://www.youtube.com/watch?v=AZoiY6k760g[/youtube:v8z3k5za]
 

chota_bheem

Active member
Joined
Mar 18, 2013
Messages
41
Reaction score
0
Re: Get aiming position

erm..in what way it will help us? can u tell me pls...dont understand
and opcodeexe u havent replied to my topic..so here i ask u again do u have any cheats for maphack that we can use on anticheat servers script...i have the maphack.cs but is cleo detectable when anticheat is on? i have wallhack.asi too what abou that

sorry for being off topic
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Re: Get aiming position

erm..in what way it will help us? can u tell me pls...dont understand
and opcodeexe u havent replied to my topic..so here i ask u again do u have any cheats for maphack that we can use on anticheat servers script...i have the maphack.cs but is cleo detectable when anticheat is on? i have wallhack.asi too what abou that

sorry for being off topic

If you dont understand scm scripting then this is nothing for you.
Its just a Snippet, if you dont know what that is:
http://en.wikipedia.org/wiki/Snippet_%28programming%29
And i dont take a look at your topic because its useless....
 

Navshod

Active member
Joined
Feb 28, 2013
Messages
42
Reaction score
0
Re: Get aiming position

Opcode exe will this explosion script work for multiplayers?
Or is it just for single player?
 

Tiger

Member
Joined
Feb 22, 2013
Messages
5
Reaction score
0
Re: Get aiming position

Opcode exe will this explosion script work for multiplayers?
Or is it just for single player?
Nothing like this will ever work in the multiplayer because explosions and non server sided car creation isn't synced. All explosions need to be caused from a real thing (like blowing up the gas station) or server sided (scripted to explode). And all cars need to be server sided.

I'm afraid you won't find anything that actually 'spawns' or 'creates' cars. Only teleport them to you. Which is how they detect you hacking. And the explosions only appear for you.
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
Re: Get aiming position

Nothing like this will ever work in the multiplayer because explosions and non server sided car creation isn't synced. All explosions need to be caused from a real thing (like blowing up the gas station) or server sided (scripted to explode). And all cars need to be server sided.

I'm afraid you won't find anything that actually 'spawns' or 'creates' cars. Only teleport them to you. Which is how they detect you hacking. And the explosions only appear for you.

How does this cleo car light mod work if its not server sided? :? :?:?
Because on multiplayer other players can see your lights flashing.(?)
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
Re: Get aiming position

Hey opcode if u released that hack would it be synced
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Re: Get aiming position

what are you talking about ? This is a snippet, do you know what it is ? This is code help for coders, not "hack". you can't do anything with only this script.
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
Re: Get aiming position

i HAVE A GREAT IDEA

you remeber s0nictz? its got car picker
so i think we can pick car and exploit it lol :p :p:p
i will try it out
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
Re: Get aiming position

This get aim postition could maybe be used for an upgraded fugga so aim and you shoot that fugga laser thingy it is possible
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Re: Get aiming position

Dimitri this is not a .cs file, this is a script work which is shared for the cleo scripters in order to get aiming position. So that you can do some cleo scripts by using this snippet.
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
Re: Get aiming position

sorry for this bump , but is it possible to get other's aim position ?
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Re: Get aiming position

Not with this function, you could maybe with math but not very accurate calculate where the other player is pointing his gun.


:ugbase:
 
Top