Jump to content

Any way to increase the GTA SA fov and still use the camera?


Recommended Posts

The default game cam is connected to aiming and shooting

So a camera script that works like the default cam makes it hard to realize aiming and shooting

 

Try the cleo script below

It let the camera work like the default cam

at script beginn can you give the field of view radius

8@ = 23.0// field of view radius

 

-press T to activate the camera mod

-press [change camera button] to deactivate the camera mod ( V by default)

-the camera will be interrupted as long as you hold AIM key:

 

 

{$CLEO .cs}
thread  'CAMCIRC' 

8@ = 23.0// field of view radius 
 

while true
wait 0 
    if 
        0256:   player $PLAYER_CHAR defined 
    then
        0172: 4@ = actor $PLAYER_ACTOR Z_angle 
        if
            0AB0:   key_pressed 84// 	t key
        then

            while 0256:   player $PLAYER_CHAR defined
                wait 0                
                if
                    00E1:   player 0 pressed_key 6                        
                then
                    gosub @CLEANUP

                    repeat
                        wait 0
                    until  80E1: not  player 0 pressed_key 6

                else    
                    gosub @CAMERAVIEW
                end                

                if
                    00E1:   player 0 pressed_key 13  
                then
                    gosub @CLEANUP
                    break
                end                                                                  
                                 
            end
        end        
            
            
    end
end


:CAMERAVIEW
04C4: create_coordinate 0@ 1@ 2@ from_actor $PLAYER_ACTOR offset 0.0 1.0  0.5
0087: 9@ = 0@ // (float) 
0087: 10@ = 1@ // (float) 
0087: 11@ = 2@ // (float) 
0A4A: store_joystick_X_offset_to 5@ Y_offset_to 15@ 
005B: 4@ += 5@ // (float) 
02F6: 6@ = sine 4@ // (float) 
02F7: 7@ = cosine 4@ // (float) 
006B: 6@ *= 8@ // (float) 
006B: 7@ *= 8@ // (float) 
005B: 0@ += 6@ // (float) 
005B: 1@ += 7@ // (float) 
0063: 9@ -= 6@ // (float) 
0063: 10@ -= 7@ // (float) 
005B: 12@ += 15@ // (float) 
02F7: 13@ = cosine 12@ // (float) 
006B: 13@ *= 8@ // (float) 
005B: 2@ += 13@ // (float) 
0063: 11@ -= 13@ // (float) 
015F: set_camera_position 9@ 10@ 11@ rotation 0.0 0.0 0.0 
0160: set_camera_point_at 0@ 1@ 2@ mode 2
0087: 21@ = 9@ // copy cam x into a new var 
0087: 22@ = 10@ // copy cam y into a new var 
0063: 21@ -= 0@ // substract player_pos. x from cam x 
0063: 22@ -= 1@ // substract player_pos. y from cam y 
0013: 21@ *= -5.0 // multiplicate the result from above with a negativ value
0013: 22@ *= -5.0 //  to enlarge the player_pos.-cam_pos.-line in direction of the cam target
005B: 9@ += 21@ // add the x-result from above to the cam_pos. x 
005B: 10@ += 22@ // add the y-result from above to the cam_pos. y
0063: 9@ -= 0@ // substract player_pos. x from  x-result from above
0063: 10@ -= 1@ // substract player_pos. y from  y-result from above 
0604: get_Z_angle_for_point 9@ 10@ store_to 30@ 
return


:CLEANUP
0373: set_camera_directly_behind_player 
02EB: restore_camera_with_jumpcut
return

 

 

 

   

Edited by ZAZ
  • 3 years later...
On 10/28/2021 at 11:45 PM, ZAZ said:

The default game cam is connected to aiming and shooting

So a camera script that works like the default cam makes it hard to realize aiming and shooting

 

Try the cleo script below

It let the camera work like the default cam

at script beginn can you give the field of view radius

8@ = 23.0// field of view radius

 

-press T to activate the camera mod

-press [change camera button] to deactivate the camera mod ( V by default)

-the camera will be interrupted as long as you hold AIM key:

 

 

{$CLEO .cs}
thread  'CAMCIRC' 

8@ = 23.0// field of view radius 
 

while true
wait 0 
    if 
        0256:   player $PLAYER_CHAR defined 
    then
        0172: 4@ = actor $PLAYER_ACTOR Z_angle 
        if
            0AB0:   key_pressed 84// 	t key
        then

            while 0256:   player $PLAYER_CHAR defined
                wait 0                
                if
                    00E1:   player 0 pressed_key 6                        
                then
                    gosub @CLEANUP

                    repeat
                        wait 0
                    until  80E1: not  player 0 pressed_key 6

                else    
                    gosub @CAMERAVIEW
                end                

                if
                    00E1:   player 0 pressed_key 13  
                then
                    gosub @CLEANUP
                    break
                end                                                                  
                                 
            end
        end        
            
            
    end
end


:CAMERAVIEW
04C4: create_coordinate 0@ 1@ 2@ from_actor $PLAYER_ACTOR offset 0.0 1.0  0.5
0087: 9@ = 0@ // (float) 
0087: 10@ = 1@ // (float) 
0087: 11@ = 2@ // (float) 
0A4A: store_joystick_X_offset_to 5@ Y_offset_to 15@ 
005B: 4@ += 5@ // (float) 
02F6: 6@ = sine 4@ // (float) 
02F7: 7@ = cosine 4@ // (float) 
006B: 6@ *= 8@ // (float) 
006B: 7@ *= 8@ // (float) 
005B: 0@ += 6@ // (float) 
005B: 1@ += 7@ // (float) 
0063: 9@ -= 6@ // (float) 
0063: 10@ -= 7@ // (float) 
005B: 12@ += 15@ // (float) 
02F7: 13@ = cosine 12@ // (float) 
006B: 13@ *= 8@ // (float) 
005B: 2@ += 13@ // (float) 
0063: 11@ -= 13@ // (float) 
015F: set_camera_position 9@ 10@ 11@ rotation 0.0 0.0 0.0 
0160: set_camera_point_at 0@ 1@ 2@ mode 2
0087: 21@ = 9@ // copy cam x into a new var 
0087: 22@ = 10@ // copy cam y into a new var 
0063: 21@ -= 0@ // substract player_pos. x from cam x 
0063: 22@ -= 1@ // substract player_pos. y from cam y 
0013: 21@ *= -5.0 // multiplicate the result from above with a negativ value
0013: 22@ *= -5.0 //  to enlarge the player_pos.-cam_pos.-line in direction of the cam target
005B: 9@ += 21@ // add the x-result from above to the cam_pos. x 
005B: 10@ += 22@ // add the y-result from above to the cam_pos. y
0063: 9@ -= 0@ // substract player_pos. x from  x-result from above
0063: 10@ -= 1@ // substract player_pos. y from  y-result from above 
0604: get_Z_angle_for_point 9@ 10@ store_to 30@ 
return


:CLEANUP
0373: set_camera_directly_behind_player 
02EB: restore_camera_with_jumpcut
return

 

 

 

   

dude this doesn't even work. it says either unkown directive thread camcirc or something else

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.