#1 20-06-2009 20:01

angeloelibz24
Registered: 18-06-2009
Posts: 22

CLEO questions

I'm not sure if this is the right place for these questions but:
- Is it possible to have the game get the model number / ID of the nearest car so you can put it in a variable? If yes, how? The only one I know so far is getting the model number / ID of the nearest ped.
- Is it also possible to have the game detect the current game speed? If yes, how?

Currently working on a shape-shifting mod and a unique time travel mod for these ones. I'm guessing these involve the 0A8D opcode, which I little understand about.

Offline

#2 20-06-2009 23:17

solomsolomol
Registered: 20-06-2009
Posts: 4

Re: CLEO questions

0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 1@ closest_ped_to 0@

if you don't want the ped add this

01C2: remove_references_to_actor 0@

and if you don't want the car add this

01C3: remove_references_to_car 1@

as for the second request ,you can use :

02E3: 2@ = car 1@ speed

BTW did u ask the same question on the gta forums ,cuz i saw your topic there and i kinda stole your idea and made the shape-shifting thing ...yeah ,sorry ,but don't worry ,i'll send it to you on a pm just to save you the trouble ,and don't worry of me releasing it either wink

Offline

#3 21-06-2009 06:30

angeloelibz24
Registered: 18-06-2009
Posts: 22

Re: CLEO questions

solomsolomol wrote:

BTW did u ask the same question on the gta forums ,cuz i saw your topic there and i kinda stole your idea and made the shape-shifting thing ...yeah ,sorry ,but don't worry ,i'll send it to you on a pm just to save you the trouble ,and don't worry of me releasing it either wink

No worries. I'm making this for my own and probably my friends, but I won't be releasing it publicly. Also, there's already the Citizens mod by Dutchy3010 and PatrickW (I'm using it too). Releasing it would already be considered ripping. BUT it would be nice to give that one to me, that is if I can shape-shift a car with this.

As for the answer for the second question, I was referring to game speed, not car speed (these are two different things; game speed determines how fast the game runs, set it slower you'll have this bullet-time-like effect -- see my Quick Reflexes mod to try this one yourself -- and speed it up it will look like time is accelerated or put to fast-forward), but what would that also work?

Offline

#4 21-06-2009 09:30

Alien
Registered: 12-10-2008
Posts: 564

Re: CLEO questions

Getting of current game speed:

0A8D: $result = read_memory 0xB7CB64 size 4 virtual_protect 0

It's float: 1.0 in default.

Offline

#5 21-06-2009 16:03

angeloelibz24
Registered: 18-06-2009
Posts: 22

Re: CLEO questions

grin thx for info

SOW, is there any list of those memory data stuff (0xB7CB64) I can refer into? What I only know so far is getting the current weather and the current game speed.

Offline

#6 21-06-2009 20:49

Alien
Registered: 12-10-2008
Posts: 564

Re: CLEO questions

Offline

#7 22-06-2009 12:23

angeloelibz24
Registered: 18-06-2009
Posts: 22

Re: CLEO questions

:wow: Wow, BIG thanks, dude. Should have thought of searching there (I've been referring to GTAModding ever since I started modding).

Offline

#8 04-10-2009 07:39

angeloelibz24
Registered: 18-06-2009
Posts: 22

Re: CLEO questions

Sorry to bump this topic, but about my first question, I now wanted to use it for spawning. Unfortunately the 0AB5 code only makes reference to that car, not also getting its model number. Is it really possible to do so? If it is, how?

I'm currently working on a Transformers mod, mostly based from Michael Bay's films. At the moment, I'm currently using a menu of (personally-chosen) cars for the switching between cars, which is making the mod not only unstable but also inaccurate to the films/comics/TV shows. I want it like in the movies -- scan the device, copy it, and transform to it on the spot -- if it is possible.

Last edited by angeloelibz24 (04-10-2009 07:53)

Offline

#9 04-10-2009 11:15

Den_spb
From: Ленинград
Registered: 23-11-2008
Posts: 941
Website

Re: CLEO questions

You should use "Opcode search tool" in Sanny Builder: press Ctrl+Alt+2 and write "car model" to the line.

0441: 6@ = car $TEMPVAR_ACTOR_CAR model

This opcode gets ID number of car model.

Last edited by Den_spb (04-10-2009 11:18)

Offline

#10 19-10-2009 12:33

angeloelibz24
Registered: 18-06-2009
Posts: 22

Re: CLEO questions

I tried that code before. Never worked for me for some reason. That's why I'm asking the question in the first place. (note that not all opcodes/codes are listed in SB's opcode search tool like Actor.Blah(Actor: Handle) opcode)

Never mind anyways. The alternative opcode $MODELNUM = Car.Model(0@) worked. I'll be using this instead.

Last edited by angeloelibz24 (21-10-2009 15:12)

Offline

Board footer

Powered by FluxBB