Quantcast

Jump to content

» «
Photo

[HELP] Sticky camera

Best Answer Sanmodder, 21 March 2018 - 09:04 PM

{$CLEO .cs}
//{0AB0:  key_pressed 221}

thread "Sticky_Camera"
while true
    repeat
    wait 0 
    until if  Player.Defined(0)
    if 0AB0:   key_pressed 219
    then
        if [email protected] == 1
        then
            WAIT 30
            Camera.Restore_WithJumpCut
            [email protected] = 0
        ELSE
            WAIT 50
            [email protected] = 1
            067C: put_camera_on_actor $PLAYER_ACTOR offset 0.1 -0.1 0.65 rotation 0.1 0.0 0.65 tilt 0.0 switchstyle 1
        END
    END
END
Go to the full post


7 replies to this topic
Magnun
  • Magnun

    Player Hater

  • Members
  • Joined: 21 Mar 2018
  • Brazil

#1

Posted 21 March 2018 - 07:59 PM

Hi again xd, i need help to convert this mod from vehicle to player, like sticky camera for player.

{$CLEO .cs}
thread "Sticky_Camera"

:Sticky_Camera_1
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
   Actor.Driving($PLAYER_ACTOR)
   not Actor.DrivingPlane($PLAYER_ACTOR)
else_jump @Sticky_Camera_1
[email protected] = Actor.CurrentCar($PLAYER_ACTOR)
if 
0AB0:   key_pressed 219
else_jump @Sticky_Camera_1

:Sticky_Camera_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
else_jump @Sticky_Camera_0 
wait 0 
   Player.Defined($PLAYER_CHAR)
else_jump @Sticky_Camera_0
0679: put_camera_on_car [email protected] with_offset 0.0 -5.0 1.8 rotation 0.0 0.0 0.0 tilt 0.0 switchstyle 2
jump @Sticky_Camera_5

:Sticky_Camera_5
if
0AB0:  key_pressed 221
else_jump @Sticky_Camera_2

:Sticky_Camera_0
Camera.Restore_WithJumpCut
jump @Sticky_Camera_1 


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#2

Posted 21 March 2018 - 08:57 PM

067C: put_camera_on_actor $PLAYER_ACTOR offset 0.1 -0.1 0.65 rotation 0.1 0.0 0.65 tilt 0.0 switchstyle 1


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#3

Posted 21 March 2018 - 09:04 PM   Best Answer

{$CLEO .cs}
//{0AB0:  key_pressed 221}

thread "Sticky_Camera"
while true
    repeat
    wait 0 
    until if  Player.Defined(0)
    if 0AB0:   key_pressed 219
    then
        if [email protected] == 1
        then
            WAIT 30
            Camera.Restore_WithJumpCut
            [email protected] = 0
        ELSE
            WAIT 50
            [email protected] = 1
            067C: put_camera_on_actor $PLAYER_ACTOR offset 0.1 -0.1 0.65 rotation 0.1 0.0 0.65 tilt 0.0 switchstyle 1
        END
    END
END

Magnun
  • Magnun

    Player Hater

  • Members
  • Joined: 21 Mar 2018
  • Brazil

#4

Posted 21 March 2018 - 09:47 PM

Thank you.

  • Sanmodder likes this

Magnun
  • Magnun

    Player Hater

  • Members
  • Joined: 21 Mar 2018
  • Brazil

#5

Posted 22 March 2018 - 12:57 PM

I forget something, opcode for camera like sniper, do you know something?


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#6

Posted 22 March 2018 - 01:18 PM

you must create the viewfinder's texture on the screen
but these are advanced scripts


Magnun
  • Magnun

    Player Hater

  • Members
  • Joined: 21 Mar 2018
  • Brazil

#7

Posted 22 March 2018 - 01:26 PM

it's for iron sight mod, is there any way to make a first person view?


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#8

Posted 22 March 2018 - 01:37 PM

yesterday I gave you the script on the first person
and only add the sniper finder and you aim at the weapon





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users