[Include] FirstPerson [0.3e]
#1

FirstPerson

[ame]http://www.youtube.com/watch?v=VVoMt9-GkuA&feature=player_embedded[/ame]

This include requires a file from the YSI library (y_hooks.inc) and can be found by clicking here.
This include provides basic functionality of FPS to users who are in need of it.
Camera has been disabled while inside vehicles because the aim of this include is provide simple functions, and it would require many offsets to be set for each vehicle.

The following functions are provided inside the include, and you require version 0.3e to use this include.
  • Function: SyncCamera(playerid)
    Description: This command is to be used when setting the players camera.
    Recommendation: You could use a thirty second loop to keep the camera synchronized.
    By default, the include already does this in three callbacks using y_hooks.
    OnPlayerStateChange and OnPlayerSpawn.

  • Function: SetThirdPerson(playerid, status)
    Description: This function sets the state of the player using ToggleThirdPerson.
    Disabled status forces the player back to First Person mode.
    Values, true or false are only valid for status parameter.

  • Function: ToggleThirdPerson(playerid)
    Description: This function toggles the state of the player using ToggleThirdPerson.
    If the players FirstPerson is disabled, you could use this function to toggle it which would enable it for the player.

  • Function: GetViewMode(playerid)
    Description: This function retrieves the current camera mode of the player.
    MODE_FIRSTPERSON = (1)
    MODE_THIRDPERSON = (2)

Enjoy, use it whatever way you want to.
Reply
#2

Great release.
Reply
#3

Sounds amazing.
Could you add some screens or maybe a video?
Reply
#4

Quote:
Originally Posted by Shetch
Посмотреть сообщение
Sounds amazing.
Could you add some screens or maybe a video?
I'm lazy to install 0.3e but I will try to do it asap.
Reply
#5

Thank you very much! It's sounds awesome! As Shetch said, a screenshot/video will be really helpful.
I personally don't think it's too useful, but okay.. Maybe there are some servers out there that needs it .
BTW: Do you mind uploading it to pastebin?
Thanks again .
Reply
#6

nice work dude...
Reply
#7

Quote:
Originally Posted by Jack_Wilson
Посмотреть сообщение
I'm lazy to install 0.3e but I will try to do it asap.
You're relasing a script that you didn't tested?
Reply
#8

Movie? Screen?
---------------
Nice filterscript ,
0.3e
Reply
#9

Is it working properly for bikes, police enforcer, bus as well?
Reply
#10

Quote:
Originally Posted by Rapgangsta
Посмотреть сообщение
You're relasing a script that you didn't tested?
I tested it of course, but this was ages ago in 0.3e R5.

Quote:
Originally Posted by Hanger
Посмотреть сообщение
Is it working properly for bikes, police enforcer, bus as well?
I haven't enabled it for vehicles, couldn't be bothered doing the offsets for each vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)