IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the GTA IV Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

Pages: (3) [1] 2 3   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> Barton's First Person Camera, Me = SUCCESS!
 
spaceeinstein  
Posted: Jul 4 2005, 03:39
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




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.


This post has been edited by spaceeinstein on Jul 22 2005, 23:38
Users WebsitePM
  Top
 

 
Frolicated  
Posted: Jul 4 2005, 04:59
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 11, 2005

us.gif

XXXXX



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

 
gta_matt  
Posted: Jul 4 2005, 06:21
Quote Post


Bond...James Bond
Group Icon
Group: Members
Joined: Jun 11, 2005

jolly-roger.gif

XXXXX



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?
PM
  Top
 

 
Roald  
Posted: Jul 4 2005, 11:43
Quote Post


Hustler
Group Icon
Group: Members
Joined: Nov 30, 2004

nl.gif

XXXXX



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

 
Mealing  
Posted: Jul 4 2005, 11:47
Quote Post


Bugger..
Group Icon
Group: Members
Joined: Apr 14, 2004

en.gif

XXXXX



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

 
Craig Kostelecky  
Posted: Jul 4 2005, 12:09
Quote Post


Retired LC Modder
Group Icon
Group: The Connection
Joined: Jan 28, 2004

us.gif

Member Award




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.
Users WebsitePMAOLYahooICQ
  Top
 

 
NDG474  
Posted: Jul 4 2005, 19:13
Quote Post


VaiN
Group Icon
Group: Members
Joined: Jun 15, 2005

us.gif

XXXXX



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.


This post has been edited by NDG474 on Jul 4 2005, 20:05
Users WebsitePMYahoo
  Top
 

 
spaceeinstein  
Posted: Jul 4 2005, 20:54
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




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.
Users WebsitePM
  Top
 

 
Fro  
Posted: Jul 4 2005, 21:23
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Jan 30, 2005

XXXXX



Or..maybe you can give a download link?
PM
  Top
 

 
GTA3Freak-2001  
Posted: Jul 5 2005, 05:20
Quote Post


Run out of Cake.
Group Icon
Group: Moderators
Joined: Nov 25, 2001

au.gif

Member Award




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.
PMMSNXbox LivePlayStation Network
  Top
 

 
spaceeinstein  
Posted: Jul 5 2005, 15:13
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




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.


This post has been edited by spaceeinstein on Jul 5 2005, 15:17
Users WebsitePM
  Top
 

 
GameMaster90  
Posted: Jul 5 2005, 15:58
Quote Post


Andolini Badfella
Group Icon
Group: Members
Joined: Jun 18, 2003

XXXXX



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
PMMSN
  Top
 

 
Marklund  
Posted: Jul 5 2005, 22:28
Quote Post


GTAStunter
Group Icon
Group: Members
Joined: Jan 28, 2005

sd.gif

XXXXX



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?
Users WebsitePM
  Top
 

 
Fro  
Posted: Jul 6 2005, 00:50
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Jan 30, 2005

XXXXX



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.
PM
  Top
 

 
GTA3Freak-2001  
Posted: Jul 6 2005, 03:30
Quote Post


Run out of Cake.
Group Icon
Group: Moderators
Joined: Nov 25, 2001

au.gif

Member Award




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.
PMMSNXbox LivePlayStation Network
  Top
 

 
Heckler90210  
Posted: Jul 7 2005, 23:48
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 5, 2005

XXXXX



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.
PM
  Top
 

 
Fro  
Posted: Jul 8 2005, 01:02
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Jan 30, 2005

XXXXX



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.com/index.php?showtop...0&#entry1782668

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

 
Marklund  
Posted: Jul 8 2005, 11:18
Quote Post


GTAStunter
Group Icon
Group: Members
Joined: Jan 28, 2005

sd.gif

XXXXX



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.
Users WebsitePM
  Top
 

 
Heckler90210  
Posted: Jul 8 2005, 19:35
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 5, 2005

XXXXX



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.
PM
  Top
 

 
spaceeinstein  
Posted: Jul 9 2005, 15:09
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




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.
Users WebsitePM
  Top
 

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

Topic Options Pages: (3) [1] 2 3  Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG
     

 
     
Message Boards and Forums Directory