Quantcast

Jump to content

» «
Photo

[SA] Moving camera

1 reply to this topic
aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#1

Posted 09 July 2013 - 11:11 PM

I'm searching for a way to move the camera when player is aiming, with such method which allows controlled moving and ability to use crosshair effectively. What I mean, is, let's say when player is aiming, I want the camera to do 360 degree turn, and while turning, if the player shoots, the bullets land where the crosshair points at. Kind of like "simulating" joystick data.

toonskull
  • toonskull

    Necromancer

  • Members
  • Joined: 04 Aug 2009

#2

Posted 10 July 2013 - 07:43 AM

My brother did some camera panning tricks in our mod years ago.
This snippet is code from the cut scene he made from the "Path of the Snake" mission.
Don't try running this since it was part of a main.scm overhaul and not a Cleo script. biggrin.gif
CODE
//Cut Scene
092F: lock_camera_target_point 1
0930: lock_camera_position 1
0920: point_camera 1500.0133 -1725.0502 13.5469  transverse_to 1487.906 -1735.2297 13.5469 time 24000 mode 1
0936: set_camera 1508.917 -1713.3307 25.0  position_to 1471.0133 -1725.0502 13.5469  time 24000 drop_mode 1
fade 1 2000

:MISSN_08_125
wait 0
if        
not fading
else_jump @MISSN_08_125
0707: start_scene_skip_to @MISSN_08_CUT1
00BC: show_text_highpriority GXT 'POS01' time 8000 flag 1
wait 8000
00BC: show_text_highpriority GXT 'POS02' time 8000 flag 1
wait 8000
00BC: show_text_highpriority GXT 'POS03' time 8000 flag 1
wait 8000
0920: point_camera 1527.6476 -1713.7321 13.0321 transverse_to 1527.6476 -1693.7321 13.0321 time 15000 mode 1
0936: set_camera 1522.4 -1717.2471 16.5469  position_to 1522.4 -1706.278 16.5469  time 15000 drop_mode 1
00BC: show_text_highpriority GXT 'POS04' time 8000 flag 1
wait 8000
00BC: show_text_highpriority GXT 'POS05' time 10000 flag 1
wait 10000
:MISSN_08_CUT1
0701: end_scene_skip
//end cut scene


You can see how the cut scene plays out on this youtube video which was posted by a fan. The cut starts at 1:10 in this video. I don't know if this will work for what you have in mind?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users