View Full Version: small code request

CheatSync.net Forums > Help > small code request



Title: small code request
Description: how to move the player forward, backw...


Prometheus - August 19, 2008 03:49 PM (GMT)
I know how to move the player, and playerobjekt in the cordiante-system of the map, but how am I able to move it forward, backward....... where forward is the direction I am looking and not something in the map-cordinates?

emcp - August 21, 2008 07:43 PM (GMT)
QUOTE (Prometheus @ Aug 19 2008, 03:49 PM)
I know how to move the player, and playerobjekt in the cordiante-system of the map, but how am I able to move it forward, backward....... where forward is the direction I am looking and not something in the map-cordinates?

http://en.wikipedia.org/wiki/Trigonometry

lol enjoy the read
im still on my holidays, i aint doing no maths, ill have plenty when i go back, stupid fuckin november GCSE's

Prometheus - August 22, 2008 11:36 AM (GMT)
thx for the link, but math isn`t the problem....... for this trigonometric functions I miss a angle: the angle between the direction vic is looking at and north (or whatever)
I have looked in the forum and google for hex-locations displaying such an angle, but I didn`d found any.....

all the best for your GCSE

emcp - August 22, 2008 03:24 PM (GMT)
QUOTE (Prometheus @ Aug 22 2008, 11:36 AM)
thx for the link, but math isn`t the problem.......      for this trigonometric functions I miss a angle: the angle between the direction vic is looking at and north (or whatever)
I have looked in the forum and google for hex-locations displaying such an angle, but I didn`d found any.....

all the best for your GCSE

mm, i may be wrong but the direction is in radians
and i can get you the address now, i guess freestyle still hasnt stickied it

nope it wasnt added to that thread

this should help you
http://www.cheatsync.net/app/?search=rotat...s=Player&order=

anyway there is a topic somewhere with this
we need to get this in one place, check out cheat development, vcs address, and post any addresses you come by please

Prometheus - August 22, 2008 09:29 PM (GMT)
..this helps, thx

I`ll post what I find

Freestyle - August 30, 2008 01:18 AM (GMT)
QUOTE (emcp @ Aug 22 2008, 07:24 AM)
QUOTE (Prometheus @ Aug 22 2008, 11:36 AM)
thx for the link, but math isn`t the problem.......      for this trigonometric functions I miss a angle: the angle between the direction vic is looking at and north (or whatever)
I have looked in the forum and google for hex-locations displaying such an angle, but I didn`d found any.....

all the best for your GCSE

mm, i may be wrong but the direction is in radians
and i can get you the address now, i guess freestyle still hasnt stickied it

nope it wasnt added to that thread

this should help you
http://www.cheatsync.net/app/?search=rotat...s=Player&order=

anyway there is a topic somewhere with this
we need to get this in one place, check out cheat development, vcs address, and post any addresses you come by please

Pinned. sese

Guest - August 30, 2008 10:28 AM (GMT)
thx for pinning...........

I have looked trough the supermen2 cheat and found some hex-locations, but that isn`t exactly what I need. I am alos lookinig for a hex-locations giving the angle of the direction the car or whatever vic is in. I think it`s obviosly that I am noob in this things....but I want to know about scripting for vcs........ pls help

Prometheus - August 30, 2008 10:29 AM (GMT)
forgot to log in, sry

Waterbottle - August 30, 2008 11:20 AM (GMT)
QUOTE (Guest @ Aug 30 2008, 12:28 PM)
thx for pinning...........

I have looked trough the supermen2 cheat and found some hex-locations, but that isn`t exactly what I need. I am alos lookinig for a hex-locations giving the angle of the direction the car or whatever vic is in. I think it`s obviosly that I am noob in this things....but I want to know about scripting for vcs........   pls help

pcar+0x70(I think) stores rotation speed, which you could use to rotate the car, but you can't tell the current rotation using it. There is a rotation matrix at pcar+0x0, which is very useful if you know how to use it.

Quick rotation matrix lesson:
0x0, 0x4 and 0x8 stores what the player's x axis is, so making the player move along this vector would be the same as making him move left/right.
0x10, 0x14 and 0x18 stores what the player's y axis is.
0x20, 0x24 and 0x28 stores what the player's z axis is.

Prometheus - August 30, 2008 01:45 PM (GMT)
thank you, thats a usefull answer :)

...btu I have some more questions, they are not really important, cause I think I`ll be able to find the answer by my self, .....but questioning is always a try...
what exactly is set by them?-a vector, a angle, or something like that....

......angles are in radians and they are the angles beteween player`s axes and the axes of the map-am I correct?

is it possible to move the player in order of hie axes and not with the map coordinates?couse I don`t think it`s easy to work here with a bit deeper math bay using the usual functions....




Hosted for free by InvisionFree