Author Topic: [Help] How to use GTA Code Creator for get angle camera  (Read 1912 times)

0 Members and 1 Guest are viewing this topic.

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
[Help] How to use GTA Code Creator for get angle camera
« on: September 13, 2011, 04:27:14 AM »
I was Kane help me
But I don't know use the tool CodeCreator for get angle camera
It can only get the location of Tommy but don't get the "angle" camera
I want to similar camera move in the clip
The Awakening
Oh no
For example
I go to here
IMG 1

And I want to camera move here
IMG 2

But in CodeCreator have only the pos of my player
IMG 3

And I don't know how to get camera move as iMG 2
Can You Help Me :(

Who can help me ?
Thank you!
« Last Edit: September 13, 2011, 06:24:47 AM by [CED]NeroChaos »

Offline A maid

  • Creator of Worlds
  • Senior Member
  • Posts: 9033
  • Defenestration penetration.
    • View Profile
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #1 on: September 13, 2011, 05:04:54 AM »
Coulda just posted this in your other topic..

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #2 on: September 13, 2011, 05:25:16 AM »
But I don't know use any tool in the topic
I want to use CodeCreator

Offline kaneda

  • Veteran Member
  • Posts: 2338
    • View Profile
    • @pump_upp - best crypto pumps on telegram !
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #3 on: September 13, 2011, 05:27:39 AM »
Use yourself to get the co-ord. Put yourself where you want the camera to point. If you can't get your player high enough, just increase your Z co-ord.

If you're looking to do something like in the intro to Awakening - I'm certain that was done with various camera_on opcodes:

camera_on_ped
camera_on_vehicle

Like that. In the case of cams like that you don't need co-ords to point to, just a car or actor.
« Last Edit: September 13, 2011, 05:31:26 AM by kaneda »

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #4 on: September 13, 2011, 06:20:19 AM »
Oh no
For example
I go to here
IMG 1

And I want to camera move here
IMG 2

But in CodeCreator have only the pos of my player
IMG 3

And I don't know how to get camera move as iMG 2
Can You Help Me :(
« Last Edit: September 13, 2011, 06:24:00 AM by [CED]NeroChaos »

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #5 on: September 13, 2011, 10:31:59 PM »
Up! Kan! Help me :(

Offline kaneda

  • Veteran Member
  • Posts: 2338
    • View Profile
    • @pump_upp - best crypto pumps on telegram !
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #6 on: September 13, 2011, 11:15:03 PM »
Okay, the above looks good so far. You're only using codecreator for the co-ords needed, so use the method you used in the above picture to get both co-ords - the first where you want the camera to be, and the second where you want the camera to point.

1. Start Codecreator. Use the point camera opcode in the top window of codecreator (as you did in the pics)

2. Start VC and go to the spot you want your camera to be placed (again, as you did) and press F5 to store those co-ords

3. Move your player slightly forward toward the building you're pointing at and press F5 to store those co-ords.

4. Hit Process in codecreator, and you'll have your two sets of co-ords in the bottom box.

Here's where it might get tricky. Your first set of co-ords is for set_camera_position, and the second is for point_camera, so you can copy the second opcode in the bottom window of codecreator straight into your script. The first opcode is simply there so you can copy the co-ords into your set_camera_position.

The reason you move slightly forward before storing your point_camera co-ords is so that the camera looks in that direction. You'll need to increase the Z axis of your point_camera to the desired height (try between 15 and 20 and adjust where necessary).

So let's say your first set of co-ords (camera position) is 1 2 3, and your second set (camera point) is 4 5 6 - then your code should read:

Code: [Select]
015F: set_camera_position  1!  2!  3!  0!  0!  0!
0160: point_camera  4!  5!  6!  2?

Keep in mind that the 2? at the end of point_camera isn't used for set_camera. Also, the last three digits of the set_camera (0! 0! 0!), refer to the cameras tilt, pan and roll. You can toy around with these, but I've never found them useful. The 2? at the end of point_camera determines different kinds of things. For example; 1? means the camera will have motion. You need two sets of camera positions and points to make this work effectively. You also need to use the set_camera_pointing_time opcode to determine how slow or fast the camera movement is (default is 1 second).

Code: [Select]
015F: set_camera_position  1!  2!  3!  0!  0!  0!
0160: point_camera  4!  5!  6!  2?
0001: wait  50?
0460: set_camera_pointing_time  0!  22000&
015F: set_camera_position  7!  8!  9!  0!  0!  0!
0160: point_camera  10!  11!  12!  1?

The above code sets the camera at 1 2 3, pointing at 4 5 6 - it then moves the camera's position to 7 8 9, pointing to 10 11 12, and the camera movement will take 22 seconds (22000& in the pointing_time opcode).

I hope all that helps.
« Last Edit: September 13, 2011, 11:17:16 PM by kaneda »

Offline kaneda

  • Veteran Member
  • Posts: 2338
    • View Profile
    • @pump_upp - best crypto pumps on telegram !
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #7 on: September 13, 2011, 11:20:52 PM »
Just a short foot-note: if you're ever curious about how something you see in the game is done, open a default script in Mission Builder and have a look around. Half of what I know about coding (limited as that is) is via mining the default game's script and copying what they've done. LC is probably better for this as the script is so much shorter but incorporates a lot of techniques that can be handy.

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #8 on: September 14, 2011, 01:30:38 AM »
Oh you is my savior :D
Dobule Thank you :P
I'm very thank you
This is the thanks of my country
Cảm ơn Kaneda rất nhiều!
Tôi đã làm được cách di chuyển camera rồi :D

Offline kaneda

  • Veteran Member
  • Posts: 2338
    • View Profile
    • @pump_upp - best crypto pumps on telegram !
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #9 on: September 14, 2011, 03:01:09 AM »
So you got the camera to work how you wanted it to?

Offline Nerochaos

  • Cyber End Dragon
  • Posts: 92
  • CED Crew
    • View Profile
    • My Profiles
Re: [Help] How to use GTA Code Creator for get angle camera
« Reply #10 on: September 14, 2011, 10:29:16 PM »
I want to make introing :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal