Quantcast

Jump to content

» «
Photo

Barton's First Person Camera

  • This topic is locked This topic is locked
57 replies to this topic
spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#1

Posted 04 July 2005 - 03:39 AM Edited by spaceeinstein, 22 July 2005 - 11:38 PM.

CONVERTED FOR SAN ANDREAS!

Created by Barton Waterduck for Vice City. Converted to San Andreas by spaceeinstein. This mod is a script mod that creates first person view while in car. First person as in being able to see the dashboard. Keep pressing CAMERA while in any vehicle until you get the first person view. Needs some tweaking for San An since this is a straight conversion from Vice City.

Installation for intermediate scripters only. Please download Barton's mission builder using Craig's link.

CODE
004F: create_thread ££CameraMod
004F: create_thread ££CameraModes

------------

:CameraModes
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££CameraModes
00D6: if  0
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false ££CameraModes
00D6: if  0
00E1:   key_pressed  0  13
004D: jump_if_false ££CameraModes

:CameraModesLoop
0001: wait  0 ms
00D6: if  0
80E1:   NOT   key_pressed  0  13
004D: jump_if_false ££CameraModesLoop
0008: $CameraMode +=  1;; integer values
00D6: if  0
0018:   $CameraMode >  5;; integer values
004D: jump_if_false ££CameraModesLoopEnd
0004: $CameraMode =  0;; integer values

:CameraModesLoopEnd
0002: jump ££CameraModes

:CameraMod
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££CameraMod
00D6: if  0
8118:   NOT   actor $PLAYER_ACTOR dead
004D: jump_if_false ££CameraMod
00D6: if  0
0038:   $CameraMode ==  2;; integer values
004D: jump_if_false ££CameraMod
00D6: if  1
80E1:   NOT   key_pressed  0  5
80E1:   NOT   key_pressed  0  7
004D: jump_if_false ££CameraMod
00D6: if  0
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false ££CameraMod
03C0: $CameraModCar = actor $PLAYER_ACTOR car
0005: $CameraHeight =  .65;; floating-point values (was .75)
0005: $CameraYOffset =  0.0;; floating-point values (was -.55)
0005: $CameraXOffset =  0.0;; floating-point values
00D6: if  0
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #COACH
004D: jump_if_false ££CAMERA1
0005: $CameraHeight =  2.0;; floating-point values
0005: $CameraYOffset =  2.0;; floating-point values

:CAMERA1
00D6: if  21
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #SQUALO
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #TROPIC
004D: jump_if_false ££CAMERA2
0005: $CameraHeight =  .95;; floating-point values

:CAMERA2
00D6: if  0
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #JETMAX
004D: jump_if_false ££CAMERA3
0005: $CameraHeight =  1.0;; floating-point values
0005: $CameraYOffset = -.5;; floating-point values

:CAMERA3
00D6: if  0
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #FAGGIO
004D: jump_if_false ££CAMERAAT
0005: $CameraYOffset = -.45;; floating-point values

:CAMERAAT
00D6: if  0
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #AT400
004D: jump_if_false ££CAMTANK
0005: $CameraYOffset =  0.7;; floating-point values

:CAMTANK
00D6: if  0
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #RHINO
004D: jump_if_false ££CAMTRAIS
0005: $CameraHeight =  2.2;; floating-point values
0005: $CameraYOffset =  0.3;; floating-point values

:CAMTRAIS
00D6: if  21
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #FREIGHT
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #STREAK
004D: jump_if_false ££CAMERA4
0005: $CameraXOffset =  5.0;; floating-point values

:CAMERA4
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££CameraModCleanup
00D6: if  0
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false ££CameraModCleanup
00D6: if  0
0038:   $CameraMode ==  2;; integer values
004D: jump_if_false ££CameraModCleanup
00D6: if  1
80E1:   NOT   key_pressed  0  5
80E1:   NOT   key_pressed  0  7
004D: jump_if_false ££CameraModCleanup
02E3: $TCCYfix = car $CameraModCar speed
0005: $CameraXOffset =  0.0;; floating-point values
0005: $CMYOffset2 =  6.0;; floating-point values

:CAMERA7
0015: $TCCYfix /=  30.0;; floating-point values
0059: $TCCYfix += $CameraYOffset;; floating-point values
04C4: create_coordinate $CameraXPos $CameraYPos $CameraZPos from_actor $PLAYER_ACTOR offset 0.0 $TCCYfix $CameraHeight
04C4: create_coordinate $CameraPXPos $CameraPYPos $CameraPZPos from_actor $PLAYER_ACTOR offset $CameraXOffset $CMYOffset2 $CameraHeight
015F: set_camera_position $CameraXPos $CameraYPos $CameraZPos 0.0 0.0 0.0
0160: point_camera $CameraPXPos $CameraPYPos $CameraPZPos 2
0002: jump ££CAMERA4

:CameraModCleanup
01C3: remove_references_to_car $CameraModCar;; Like turning a car into any random car
02EB: restore_camera_with_jumpcut
0002: jump ££CameraMod

Known glitches: Same glitches as in Vice City: the camera is not smooth as always.

Frolicated
  • Frolicated

    Player Hater

  • Members
  • Joined: 11 Jun 2005

#2

Posted 04 July 2005 - 04:59 AM

N00B question, how do I implement into the game. What tools do I need?

gta_matt
  • gta_matt

    Bond...James Bond

  • Members
  • Joined: 11 Jun 2005

#3

Posted 04 July 2005 - 06:21 AM

Well Mission Builder told me it couldn't define object coach,squalo,tropic and so on.So I threw this together.

DEFINE OBJECT COACH ; Object number -389
DEFINE OBJECT SQUALO ; Object number -390
DEFINE OBJECT TROPIC ; Object number -391
DEFINE OBJECT JETMAX ; Object number -392
DEFINE OBJECT FAGGIO ; Object number -393

then added at the top

DEFINE OBJECTS 394

It compiled ok but crashes when I start a new game.What should I do?

Roald
  • Roald

    Hustler

  • Members
  • Joined: 30 Nov 2004

#4

Posted 04 July 2005 - 11:43 AM

Any screenshots?
I don't get the concept...by pressing "V" you can get first person view in your car already. confused.gif

Bernard Jazz
  • Bernard Jazz

    Dud dats not gas, dats a chikn.

  • Members
  • Joined: 14 Apr 2004

#5

Posted 04 July 2005 - 11:47 AM

But with that mod you can see the steering wheel, dashboard, etc..

Craig Kostelecky
  • Craig Kostelecky

    GTA:LC Team Leader

  • The Connection
  • Joined: 28 Jan 2004
  • None

#6

Posted 04 July 2005 - 12:09 PM

QUOTE (gta_matt @ Jul 4 2005, 01:21)
Well Mission Builder told me it couldn't define object coach,squalo,tropic and so on.So I threw this together.

DEFINE OBJECT COACH ; Object number -389
DEFINE OBJECT SQUALO ; Object number -390
DEFINE OBJECT TROPIC ; Object number -391
DEFINE OBJECT JETMAX ; Object number -392
DEFINE OBJECT FAGGIO ; Object number -393

then added at the top

DEFINE OBJECTS 394

It compiled ok but crashes when I start a new game.What should I do?

Those shouldn't be defined as objects. They're referrences to the vehicle.ide ID numbers. If you copy the default.ide, peds.ide, and vehicles.ide (along with the american.gxt) to your MB folder, you can use the #PCJ600 type names. Or you can redownload MB from my site.

NDG474
  • NDG474

    VaiN

  • Members
  • Joined: 15 Jun 2005

#7

Posted 04 July 2005 - 07:13 PM Edited by NDG474, 04 July 2005 - 08:05 PM.

Why does this mod use camera modes 3 & 4?? Shouldn't it just use the first person mode? That's why when switching to the next mode, the camera can't be moved with the mouse... Kinda silly... sarcasm.gif

Also I noticed it uses the car's speed to keep the camera where it is, that's why it's jumpy.. Isn't there a way that you can lock the camera to an object without using a loop to keep it there?

In my opinion if you can't move the mouse to look around while in first person view, then it makes it pointless anyway. Without an IMAX view there's no peripheral vision and so you can't see crap. confused.gif
Would still be better than the default one though I guess.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#8

Posted 04 July 2005 - 08:54 PM

Hey, I just converted it from Vice City. For now I am just converting mods straight from Vice City. Later I (or others) will modify it.

Fro
  • Fro

    Mark Chump

  • Members
  • Joined: 30 Jan 2005

#9

Posted 04 July 2005 - 09:23 PM

Or..maybe you can give a download link?

GTA3Freak-2001
  • GTA3Freak-2001

    Run out of Cake.

  • Members
  • Joined: 25 Nov 2001

#10

Posted 05 July 2005 - 05:20 AM

QUOTE (Fro @ Jul 5 2005, 06:53)
Or..maybe you can give a download link?

You have to add the mission code to the mission.scm file.

Anyway if your so worried about it not being perfect then wait for stretchnutter to release his CamHack.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#11

Posted 05 July 2005 - 03:13 PM Edited by spaceeinstein, 05 July 2005 - 03:17 PM.

Damn I'm so dumb. I just realized that the camera freezing from afar is part of the mod.

I updated the code up there. It repositions the camera so it looks better in San An and in new vehicles of San An but I haven't got around doing it for the Rhino yet.

GameMaster90
  • GameMaster90

    Andolini Badfella

  • Members
  • Joined: 18 Jun 2003

#12

Posted 05 July 2005 - 03:58 PM

QUOTE (GTA3Freak-2001 @ Jul 4 2005, 23:20)
QUOTE (Fro @ Jul 5 2005, 06:53)
Or..maybe you can give a download link?

You have to add the mission code to the mission.scm file.

Anyway if your so worried about it not being perfect then wait for stretchnutter to release his CamHack.

Oh, do you know if he is working on the Camhack for San Andreas right now?

Great mod btw, but would someone perhaps upload their SCM with this already installed? I'd gladly appreciate it. smile.gif

Marklund
  • Marklund

    GTAStunter

  • Members
  • Joined: 28 Jan 2005

#13

Posted 05 July 2005 - 10:28 PM

QUOTE (GameMaster90 @ Jul 5 2005, 15:58)
QUOTE (GTA3Freak-2001 @ Jul 4 2005, 23:20)
QUOTE (Fro @ Jul 5 2005, 06:53)
Or..maybe you can give a download link?

You have to add the mission code to the mission.scm file.

Anyway if your so worried about it not being perfect then wait for stretchnutter to release his CamHack.

Oh, do you know if he is working on the Camhack for San Andreas right now?

Great mod btw, but would someone perhaps upload their SCM with this already installed? I'd gladly appreciate it. smile.gif

I don't know if he is working on it now, but it's only going to be for CJ, not the vehicles. sad.gif
So bye bye awsome movies with camhack... That's what he told me.


Edit: Is stretchnutter s_racer?

Fro
  • Fro

    Mark Chump

  • Members
  • Joined: 30 Jan 2005

#14

Posted 06 July 2005 - 12:50 AM

See the thing is, I don't know how to install this into the .scm.

All the knowledge of the .scm I had was only limited to car spawn locations.

GTA3Freak-2001
  • GTA3Freak-2001

    Run out of Cake.

  • Members
  • Joined: 25 Nov 2001

#15

Posted 06 July 2005 - 03:30 AM

QUOTE (Marklund @ Jul 6 2005, 07:58)
QUOTE (GameMaster90 @ Jul 5 2005, 15:58)
QUOTE (GTA3Freak-2001 @ Jul 4 2005, 23:20)
QUOTE (Fro @ Jul 5 2005, 06:53)
Or..maybe you can give a download link?

You have to add the mission code to the mission.scm file.

Anyway if your so worried about it not being perfect then wait for stretchnutter to release his CamHack.

Oh, do you know if he is working on the Camhack for San Andreas right now?

Great mod btw, but would someone perhaps upload their SCM with this already installed? I'd gladly appreciate it. smile.gif

I don't know if he is working on it now, but it's only going to be for CJ, not the vehicles. sad.gif
So bye bye awsome movies with camhack... That's what he told me.


Edit: Is stretchnutter s_racer?

Yes Racer_S is his other alias, anyway he dropped a hint in his Advanced Controls program as to his starting work on the SA Camhack. I don't see why he would only do it for CJ because there's really not many more camera angles you can get besides a first person view.

@Fro - Either do I lol seriously thought there are tutorials on this in the Tutorials forum.

Heckler90210
  • Heckler90210

    Player Hater

  • Members
  • Joined: 05 Jul 2005

#16

Posted 07 July 2005 - 11:48 PM

Im kind of exited to try this out, I'm fairly skilled in scm but I have no idea whatsoever what to do with this, could spaceeinstein (or anyone for that matter) give it to us already compiled or at least give us some half ass instructions.

Fro
  • Fro

    Mark Chump

  • Members
  • Joined: 30 Jan 2005

#17

Posted 08 July 2005 - 01:02 AM

QUOTE (Heckler90210 @ Jul 7 2005, 23:48)
Im kind of exited to try this out, I'm fairly skilled in scm but I have no idea whatsoever what to do with this, could spaceeinstein (or anyone for that matter) give it to us already compiled or at least give us some half ass instructions.

http://www.gtaforums...0

A great tut. It helped me, it should help you.

Marklund
  • Marklund

    GTAStunter

  • Members
  • Joined: 28 Jan 2005

#18

Posted 08 July 2005 - 11:18 AM

QUOTE (GTA3Freak-2001 @ Jul 6 2005, 03:30)
QUOTE (Marklund @ Jul 6 2005, 07:58)
QUOTE (GameMaster90 @ Jul 5 2005, 15:58)
QUOTE (GTA3Freak-2001 @ Jul 4 2005, 23:20)
QUOTE (Fro @ Jul 5 2005, 06:53)
Or..maybe you can give a download link?

You have to add the mission code to the mission.scm file.

Anyway if your so worried about it not being perfect then wait for stretchnutter to release his CamHack.

Oh, do you know if he is working on the Camhack for San Andreas right now?

Great mod btw, but would someone perhaps upload their SCM with this already installed? I'd gladly appreciate it. smile.gif

I don't know if he is working on it now, but it's only going to be for CJ, not the vehicles. sad.gif
So bye bye awsome movies with camhack... That's what he told me.


Edit: Is stretchnutter s_racer?

Yes Racer_S is his other alias, anyway he dropped a hint in his Advanced Controls program as to his starting work on the SA Camhack. I don't see why he would only do it for CJ because there's really not many more camera angles you can get besides a first person view.

@Fro - Either do I lol seriously thought there are tutorials on this in the Tutorials forum.

Oops, I meant he's only going to do it for the vehicles.
And I do hope he makes it just like the old one, so we can have free-cams and that stuff.

Heckler90210
  • Heckler90210

    Player Hater

  • Members
  • Joined: 05 Jul 2005

#19

Posted 08 July 2005 - 07:35 PM

Well now that I've tried this mod, its kind of a massive dissapointment, sure, it works in trains, the rain doesn't get inside ur car, you can see traffic lights through the windshield, and its pretty fun, but I just can't get by how if you go over 20 mph you're vision will be obstructed by the back of CJ's head, just driving on normal terrain shakes the sh*t out of you too, in al fairness, this mod would be alot better if the bumper cam was modified, opposed to making a whole new camera angle.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#20

Posted 09 July 2005 - 03:09 PM

It's not meant for this type of camera to actually move. This camera suppose to do simple camera movements while in scenes and such. So blame the code, not the mod.

stormm12
  • stormm12

    Crackhead

  • Members
  • Joined: 02 Sep 2002

#21

Posted 09 July 2005 - 10:31 PM

Sounds like a great mod, especially to wet our appetites until Camhack is released by Racer_S. Spaceinstein, it is very easy to be critical. You didn't have to spend the time converting the code, but you did, and it is greatly appreciated. Only thing is, I know myself and others have had trouble installing the code into the main.scm file (followed tutorials, and apparently I am a coding moron wink.gif ). Anyways, any chance you or someone else could post a compiled main.scm file with the new code in it?

Thanks in advance.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#22

Posted 09 July 2005 - 10:48 PM

Too many people asking this. Ok, first download the BW Mission Builder (search for Craig for a link). After that open main.scm with the mission builder. Wait until it finishes and you'll see plain English coding. CTRL+F "004F". Now you see a bunch of 004F: create_thread ???. Right after the last 004F, add my 004F: create_thread only. After that CTRL+F "Mission 0". Add the rest of my code right BEFORE that. Now click "Run" and click "Compile". After that's finished, start new game. Same goes for 90% of all create_thread mods.

stormm12
  • stormm12

    Crackhead

  • Members
  • Joined: 02 Sep 2002

#23

Posted 10 July 2005 - 03:27 AM

Thanks a lot spaceeinstein - good diredctions - it worked!

Gtazzer
  • Gtazzer

    Player Hater

  • Members
  • Joined: 24 Jun 2005

#24

Posted 12 July 2005 - 04:58 PM

How retarded is this? First Person in the car? Who cares.. I want First Person on foot. First Person in car is already implimented in the game.. who wants to see the crappy dashboard textures anyways

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#25

Posted 12 July 2005 - 08:20 PM Edited by spaceeinstein, 19 July 2005 - 12:04 AM.

---

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#26

Posted 19 July 2005 - 12:09 AM

First person camera code updated. It comes right before San An's first person view. If it doesn't, make San An's FPV in a car and hop into a train. Then keep pressing CAMERA until you get this FPV. That's how you fix it. This FPV also uses San An's FPV if you press LOOK RIGHT/LEFT/BEHIND buttons.

GTA_Don Times
  • GTA_Don Times

    Player Hater

  • Members
  • Joined: 09 Jan 2006

#27

Posted 09 January 2006 - 02:02 PM Edited by GTA_Don Times, 09 January 2006 - 05:49 PM.

Hi Ppl!!! im new here and hopefully will be regular! smile.gif

i just want to know how to enable the dashboard in first person camera. i read the posts above and im completely lost. can someone help me out? thnx! wink.gif

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#28

Posted 09 January 2006 - 07:25 PM

This mod is outdated. I found a new opcode that creates a better first person view.

GTA_Don Times
  • GTA_Don Times

    Player Hater

  • Members
  • Joined: 09 Jan 2006

#29

Posted 10 January 2006 - 04:17 PM

can u please share it with me?

Zelius
  • Zelius

    Mack Pimp

  • Members
  • Joined: 19 Jan 2002

#30

Posted 10 January 2006 - 07:12 PM

Damn, and here you had me thinking you created a first person view while on foot. tounge.gif

Good work though! smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users