Jump to content

Barton's GTA2 Camera


Recommended Posts

spaceeinstein

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.

 

 

004F: create_thread ££MOD_CAMERA:MOD_CAMERA03A4: name_thread 'GTA2C':MOD_CAMERA10001: wait  10 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££MOD_CAMERA100D6: if  08965:   NOT actor $PLAYER_ACTOR swimming_in_water004D: jump_if_false ££MOD_CAMERA300D6: if  080DF:   NOT   actor $PLAYER_ACTOR driving004D: jump_if_false ££MOD_CAMERA200A0: store_actor $PLAYER_ACTOR position_to @1 @2 @300A0: store_actor $PLAYER_ACTOR position_to @4 @5 @6000B: @6 +=  15.0;; floating-point values000B: @2 +=  2.0;; floating-point values015F: set_camera_position @4 @5 @6  0.0  0.0  0.00160: point_camera @1 @2 @3  20002: jump ££MOD_CAMERA1:MOD_CAMERA20001: wait  10 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££MOD_CAMERA103C0: @0 = actor $PLAYER_ACTOR car00D6: if  000DB:   actor $PLAYER_ACTOR in_car @0004D: jump_if_false ££MOD_CAMERA102E3: @7 = car @0 speed0087: @8 = @7;; floating-point values only0017: @8 /=  2.0;; floating-point values0407: create_coordinate @1 @2 @3 from_car @0 offset  0.0 @8  0.00407: create_coordinate @4 @5 @6 from_car @0 offset  0.0 @8  0.0000B: @6 +=  15.0;; floating-point values005B: @6 += @7;; floating-point values000B: @2 +=  2.0;; floating-point values015F: set_camera_position @4 @5 @6  0.0  0.0  0.00160: point_camera @1 @2 @3  20002: jump ££MOD_CAMERA2:MOD_CAMERA302EB: restore camera with jumpcut0002: jump ££MOD_CAMERA1

 

Edited by spaceeinstein
Link to comment
https://gtaforums.com/topic/207666-bartons-gta2-camera/
Share on other sites

user posted image

 

user posted image

 

user posted image

 

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.

Link to comment
https://gtaforums.com/topic/207666-bartons-gta2-camera/#findComment-3061912
Share on other sites

  • 5 weeks later...
spaceeinstein

Late reply: Thanks for the comments biggrin.gif

 

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.

Edited by spaceeinstein
Link to comment
https://gtaforums.com/topic/207666-bartons-gta2-camera/#findComment-3165863
Share on other sites

  • 8 months later...
  • 4 weeks later...
  • 1 month later...
  • 3 months later...
  • 2 weeks later...

ok, ive added the code using a tutorial, now, when i start a new game i get the camera in gta2 style with cj in a grey background, the voices of the intro cutscene are still going and then after the voices go i cant do anything, the game has not frozen but i just cant move or skip the cutscene, can someone help me out please?

Link to comment
https://gtaforums.com/topic/207666-bartons-gta2-camera/#findComment-3947556
Share on other sites

sweet but until its not buggy i may not use it

and how did u get ure health bar so big?

and dertyjerzian how the hell did u get 700+posts in about 2 months???

since it's been bumped... And in case you are still wondering... I jsut lived this place last august. I f*cking love it.

Link to comment
https://gtaforums.com/topic/207666-bartons-gta2-camera/#findComment-3951429
Share on other sites

  • 2 years later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.