IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 controlling crosshair/aiming

 
HeresOtis  
Posted: Monday, Sep 10 2012, 18:29
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



Are there any memory/function addresses that allow the aiming/crosshair be controllable? Let's say I have XYZ world coordinates and I want the crosshair to aim at those coordinates or I want to get the closest vehicle's tire position and have the crosshair be at that position or be able to aim at tires.
PM
  Top
 

 
Deji  
Posted: Monday, Sep 10 2012, 18:43
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



For auto aim or manual?
Users WebsitePM
  Top
 

 
HeresOtis  
Posted: Monday, Sep 10 2012, 18:48
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



Both.
PM
  Top
 

 
Deji  
Posted: Monday, Sep 10 2012, 22:01
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



The crosshair uses user input. The game does not compute a position for the crosshair in order to set the X/Y axis'.

The function at 0x60DC50 picks an entity for auto aim, but I'm not sure how easy it would be to get it to work on a car tyre, since it's not an object. You could probably simplify things by creating a collision-less object at the car's tyres and making it targettable with:
CODE
035D: make_object_targettable $1754[0] 1
Users WebsitePM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG