[FilterScript] [FS]Flying Camera (Camhack) [V 2.0]
#1

[FS]Flying Camera (Camhack) [V 2.0]

Ok, i'm gonna be very short on this one:

What is is?
This Filterscript allows players to move/rotate their camera with their arrowkeys.
What is the diffence with the other camera-scripts: Well, unlike the others, this one moves the camera (forward/backward) to the point where you looking at.
Since V2.0 you can save the camerapostion too.


Test Server:
If you want to test this feature, you can join my test-server:
IP: 94.215.51.150:7777

[Note] This server not always online!

Commands & controlls:
  • /fc to enter/exit the Flying Camera Mode
  • /camerahelp Opens helpmenu in chat.
  • /lock (un)locks the camera, (un)freezes player.
  • /follow Toggles camera-following-player-mode on/off
  • /savecam [1-3] Saves current cameraview in one of the 3 available slots.
  • /loadcam [1-3] Loads the cameraview which was saved in the entered slot
  • /savecamtofile (or /sctf) Saves current cameraview into file (SavedCameraPositions.txt)
  • /saveclassselection (or /scs) Saves a complete OnPlayerRequest-class callback into file (SavedClassSelections.txt)
  • Arrow-keys: Move the camera forward/backward/left/right
  • Walk-key + Arrow-keys: Moves the camera up/down
  • Crouch-key + Arrow-keys: Rotates the camera up/down/left/right
  • Sprint-key + Other combination: Speeds up the movement/rotation
Screens:
All in one example.
Or click these links for other gif-images:
Movement Forward/Backward
Movement Left/Right
Movement Up/Down
Rotating Left/Right
Rotating Up/Down

[Note]: There images here above are examples. The camera moves very smooth ingame!


Download:
How to install:
  • Download the FC.pwn file and put it in your filterscrips-folder
  • Open it with your pawn-editor (and optional change the speed-values) and compile it.
  • Open your server.cfg and add "FC" after the 'filterscripts'-line
  • Save server.cfg and start your server
Credits:
  • Orb for GetCoordsOnLine3D-function.
  • Fallout for GetAngle-function.
  • Sandra for the rest of this filterscript.

Bugs:
  • In V2.0 i forgot to remove the /spawn command which sets the IsPlayerSpawned[playerid] to '1'

I hope you like it and please leave a comment!
Reply
#2

Great idea sandra, nice script again youve got there

BTW: First poster
Reply
#3

Awesome!, I will definitely give this a try
Reply
#4

Very Nice !!
Reply
#5

Does it allow us to tp to the cameras position/save the positions?
Reply
#6

The best PAWN Camhack yet .
Reply
#7

Thanks Sandra, Good Work

PD: Sorry i don't speak much english
Reply
#8

sandra is the maddest
Reply
#9

Wow!
Reply
#10

OMG... This is perfect
Reply
#11

Awesome. This is better than the normal Camhack. You don't need to grant permissions for it and to use it, there's just a little command.

Nice idea + work.
Reply
#12

Nice I like it I'm sure my players like it to, they make a lot of videos
Thx Sandra
Reply
#13

You are the best scripter ever, Sandra :O
Reply
#14

This is nice
Reply
#15

awesome great for film servers.
Reply
#16

just tried, this is AWESOME!!
Reply
#17

Thanks all.
Reply
#18

It's really really nice

Leopard
Reply
#19

New Version!!
Whats new:

/savecam [1-3]
This command allows players to save their current view in one of the 3 slots. Note that saving the data in a slot, will overwrite the old data in that same slot!!
Every player has 3 slots available!


/loadcam [1-3]
This command loads the cameraposition that was saved in the entered slot.
You will get errormessage when entered a slot which is empty.


/savecamtofile or /sctf [Rcon Admin Only]
This command saves the current camerapostion and lookat in the file "SavedCameraPositions.txt" in this format:
Quote:

SetPlayerCameraPos(playerid, 1497.42, -716.50, 103.31);
SetPlayerCameraLookAt(playerid, 1497.38, -711.66, 102.0;

/saveclassselection or /scs [Rcon Admin Only]
This command saves a complete OnPlayerRequestClass-callback, including PlayerPosition, PlayerFacingAngle, Interior, CameraPosition and CameraLookAt:

Example:
Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1837.12, -1435.42, 35.92);
SetPlayerFacingAngle(playerid, 234.02);
SetPlayerCameraPos(playerid, 1842.14, -1439.38, 35.49);
SetPlayerCameraLookAt(playerid, 1838.04, -1436.51, 36.85);
return 1;
}

Edit: 1000th post!
Reply
#20

Hey and thanks, Is it possible to teleport to the Cameras Position? That would be cool
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)