You are not logged in.
Pages: 1
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
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
Offline
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
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
Getting of current game speed:
0A8D: $result = read_memory 0xB7CB64 size 4 virtual_protect 0
It's float: 1.0 in default.
Offline
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
:wow: Wow, BIG thanks, dude. Should have thought of searching there (I've been referring to GTAModding ever since I started modding).
Offline
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
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
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
Pages: 1