#1 GTA Modding » How do you disable automatic camera movements? » 26-11-2013 22:52

Hypersonic
Replies: 0

in-car
    -turret/special left/right: I want to disable the camera rotating around it's target(for vehicles w/o turrets)
    -camera facing toward moving direction after one second of not moving mouse

Is this stuff hard-coded in the exe? If so, does anyone know how to edit the exe to disable these actions?
The turret left/right camera movement interferes with the mod I'm working on.

#2 Re: GTA Modding » get_Z_angle_for_point only gives whole numbers » 23-11-2013 05:04

Thanks for all the info DK22Pac!

Regarding opcodes 02f6 & 02f7, these are just for VC and SA, correct?
Do you know cos,sin, or tan for GTA3 by chance?
Thanks for atan for GTA3!

Thanks for the info about 0AA5 and 0AE9! Found out what they do on the gtag dot gtagaming dot com site
Interesting, seems like you could program with CLEO just by using a few opcodes, such as
    0AA5 call
    0A8C: write_memory
    0A8D: read_memory
As long as you have a memory map handy.
If you know the start of structures you could easily figure out locations across exe versions as offsets from structure start usually stays the same.

For data memory maps I know gtamodding dot com has some good ones
I haven't come accross any memory maps of functions just yet.

#3 GTA Modding » get_Z_angle_for_point only gives whole numbers » 22-11-2013 18:43

Hypersonic
Replies: 2

get_Z_angle_for_point is basically arctan (given opposite and adjacent determine angle between hypotenuse and adjacent.) I don't see any arccos or arcsin functions.

Problem is that it only returns whole numbers, it omits the fraction, even if it is a float and not an integer. So there is only 360 direction precision, which makes for choppy motion if you try animate using this function. Any chance that this could be changed to not omit the fraction in future versions of Cleo for San Andreas?

On a side note I couldn't even find tan,cos,nor sin in the original 2001 GTA3, let alone atan,acos,asin. I had to make due creating rough approximation pseudo trig functions.

Board footer

Powered by FluxBB