Coding

 Reply to this postStart new topic

Don't change camera while using enex

ATP
post Oct 2 2011, 08:52 PM
Post #1


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



Hi,
when you place an enex in front of a door, CJ opens the door and the camera is set next to CJ if you enter the enex. This is the normal behavior.
Is there any way to prevent the camera from changing? I mean some sets in the enex line.

ATP


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Oct 2 2011, 10:11 PM
Post #2


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



I don't believe there's anything in the enex line to control this. Enex markers are pretty well documented aside from the bitfield. You could try tweaking that param and seeing what happens.

EDIT

From GTAG v2 Opcode Database:
QUOTE
098E


Sets the specified enex flag. This opcode is similar to 09B4.

Known Enex Flags
0x2 - Don't Make Player Perform "Walk Through Door" Task
0x200 - Don't Fade In After Teleport
0x1000 - Is Burglary House
0x4000 - Is Active


098E has nothing to do with interiors, really. It controls the enex marker itself. 09B4 does the same thing, except it determines which enex marker to alter based on it's position.


--------------------
Go to the top of the page
 
+Quote Post
ATP
post Oct 3 2011, 08:23 PM
Post #3


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



Hey Thanks for your hint.
I will check the flags when I have some time, if I get some usable results I will let you know tongue.gif


--------------------
Go to the top of the page
 
+Quote Post
Wesser
post Oct 4 2011, 07:10 AM
Post #4


The Assistant

Posts: 84
From: Matera, IT
Joined: 16-June 11



You could search for the address found here.
Go to the top of the page
 
+Quote Post
ATP
post Oct 4 2011, 03:30 PM
Post #5


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



Hey,
that adress would help me to create a "workarround" by using script. But if there is way to do it "the clean way" (by using enex flags, wich Deji mentioned above for example), I would prefer that way.
But if my enex flag researching will not be successful(what I expect at the moment unsure.gif) , I will create a script workarround, so thanks Wesser cool.gif


--------------------
Go to the top of the page
 
+Quote Post
Wesser
post Oct 4 2011, 03:49 PM
Post #6


The Assistant

Posts: 84
From: Matera, IT
Joined: 16-June 11



No, I was meaning to search for that address in the .exe, preferably into CCamera__process routine (0x52B730).

Edit: nope, there's no reference in that function. Copy'n'paste this line:
CODE
0A8C: write_memory 0x440390 size 2 value 0x46EB virtual_protect 1


This post has been edited by Wesser: Oct 4 2011, 04:21 PM
Go to the top of the page
 
+Quote Post
ATP
post Oct 4 2011, 04:24 PM
Post #7


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



Hey, big thx banana.gif
How you find that so fast?

This post has been edited by ATP: Oct 4 2011, 04:26 PM


--------------------
Go to the top of the page
 
+Quote Post
Wesser
post Oct 4 2011, 05:17 PM
Post #8


The Assistant

Posts: 84
From: Matera, IT
Joined: 16-June 11



Once I found that address, everything was much easier. A function using it has set-camera-position and set-camera-point routines into.
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

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