|
 |
|
|
|
|
|
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
|
Barton's GTA2 Camera, Me = SUCCESS!
 |
|
 |
| |
spaceeinstein  |
|
Chocolate

Group: Members
Joined: Jul 17, 2003



|
CONVERTED FOR SAN ANDREAS!
Created by Barton Waterduck for Vice City. Conveted by me for San Andreas. This mod lets you play the game using a simulated version of GTA3's top-down view camera. If you have a joystick, use it. The on-foot camera is similar to GTA3's top-down view.
Installation for intermediate scripters only. Please download Barton's mission builder using Craig's link.
| CODE | 004F: create_thread ££MOD_CAMERA
:MOD_CAMERA 03A4: name_thread 'GTA2C'
:MOD_CAMERA1 0001: wait 10 ms 00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false ££MOD_CAMERA1 00D6: if 0 8965: NOT actor $PLAYER_ACTOR swimming_in_water 004D: jump_if_false ££MOD_CAMERA3 00D6: if 0 80DF: NOT actor $PLAYER_ACTOR driving 004D: jump_if_false ££MOD_CAMERA2 00A0: store_actor $PLAYER_ACTOR position_to @1 @2 @3 00A0: store_actor $PLAYER_ACTOR position_to @4 @5 @6 000B: @6 += 15.0;; floating-point values 000B: @2 += 2.0;; floating-point values 015F: set_camera_position @4 @5 @6 0.0 0.0 0.0 0160: point_camera @1 @2 @3 2 0002: jump ££MOD_CAMERA1
:MOD_CAMERA2 0001: wait 10 ms 00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false ££MOD_CAMERA1 03C0: @0 = actor $PLAYER_ACTOR car 00D6: if 0 00DB: actor $PLAYER_ACTOR in_car @0 004D: jump_if_false ££MOD_CAMERA1 02E3: @7 = car @0 speed 0087: @8 = @7;; floating-point values only 0017: @8 /= 2.0;; floating-point values 0407: create_coordinate @1 @2 @3 from_car @0 offset 0.0 @8 0.0 0407: create_coordinate @4 @5 @6 from_car @0 offset 0.0 @8 0.0 000B: @6 += 15.0;; floating-point values 005B: @6 += @7;; floating-point values 000B: @2 += 2.0;; floating-point values 015F: set_camera_position @4 @5 @6 0.0 0.0 0.0 0160: point_camera @1 @2 @3 2 0002: jump ££MOD_CAMERA2
:MOD_CAMERA3 02EB: restore camera with jumpcut 0002: jump ££MOD_CAMERA1 | This post has been edited by spaceeinstein on Sep 5 2005, 03:44
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Premium  |
|
The Pref.

Group: Members
Joined: Mar 29, 2002

|



The camera is glitchy if you tap accelerate/reverse when driving, It zoom's in/out in large jumps depending on which button you're tapping. The camera seems to work alot better if you keep your accelerator held down and avoid hard breaking. It's also slightly jumpy when driving at high speeds as the camera tries to catch up to the car. On foot seems to work fine as long as you set the controller config to joypad, so that you can have ps2 style aiming. I havent tried flying anything yet but im off to try that now. I also noticed when driving off the edge of liberty that the camera zoomed pretty damn far away from the car, creating a pretty cool effect. I assume it'll do the same when driving off chilliad and such, so i'll go give that a go aswell. It's pretty sweet to have a gta 2/3 style camera to play around with. Nice work on the conversion, but yeah, a little work is needed.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
spaceeinstein  |
|
Chocolate

Group: Members
Joined: Jul 17, 2003



|
Late reply: Thanks for the comments
I updated the code. I changed the global vars to local vars, partly restored the camera if CJ is swimming, and with some other minor fixes. This post has been edited by spaceeinstein on Sep 5 2005, 03:47
|
|
|
|
|
 |
|
 |
|
|
|
|