SA-MP Forums Archive
[FilterScript] Leans Helicopter Camera Mode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Leans Helicopter Camera Mode (/showthread.php?tid=562800)

Pages: 1 2


Leans Helicopter Camera Mode - lean1337 - 11.02.2015

https://www.youtube.com/watch?v=XpI2xCEyRHE
Just something I made, I rather keep it simpel and easy to use. This is actually very easy to script.
There is only one command; /helithermal


http://pastebin.com/TyiiiFmy


Tips and criticism on my code is always welcome!



Re: Leans Helicopter Camera Mode - iAnonymous - 11.02.2015

Neat work....


Re: Leans Helicopter Camera Mode - MasonPlay - 11.02.2015

It can be great for Roleplay servers. Good job.


Re: Leans Helicopter Camera Mode - Crayder - 11.02.2015

News helicopters! Car chases! Nice job. Rep4U.


Re: Leans Helicopter Camera Mode - lean1337 - 11.02.2015

Thank you evryone for the positiv comments


Re: Leans Helicopter Camera Mode - Skully82 - 12.02.2015

Neat,New,Creative
Well Done Brother;
+rep


Re: Leans Helicopter Camera Mode - JeaSon - 12.02.2015

nice it looks really good


Re: Leans Helicopter Camera Mode - Pottus - 12.02.2015

You don't even destroy any objects anywhere in the code this will eventually crash all the clients.


Re: Leans Helicopter Camera Mode - lean1337 - 12.02.2015

Quote:
Originally Posted by Skully82
Посмотреть сообщение
Neat,New,Creative
Well Done Brother;
+rep
Thank you! and thanks for the rep!!


Quote:
Originally Posted by Namer
Посмотреть сообщение
nice it looks really good
Thanks!


Quote:
Originally Posted by Pottus
Посмотреть сообщение
You don't even destroy any objects anywhere in the code this will eventually crash all the clients.
You might wanna take another peak at this code.

pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                new vehid = playerveh[playerid];
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[vehid]); // Destroying the light from the helicopter
                return 1;
}



Re: Leans Helicopter Camera Mode - lean1337 - 12.02.2015

Quote:
Originally Posted by NoSoap
View Post
That's amazing I've always wanted to have that on an RP server.

I'm assuming you can't zoom in at all? (would be nice If you could borrow the traits from the camera object to enable the zoom).

I wonder If you could add some of the drunk/drug effects to make it look a bit more 'thermally'
There is a way to zoom in but it would require the object to move in mid air wihch would look wierd for others. MoveObject

Adding setplayerdrunklevel is possible but I rather just keep it simple!

Thanks for your input anyways!


Re: Leans Helicopter Camera Mode - Michael B - 12.02.2015

Great! Keep it up!


Re: Leans Helicopter Camera Mode - lean1337 - 13.02.2015

Quote:
Originally Posted by R3N3X
View Post
Great! Keep it up!
Thanks!


Re: Leans Helicopter Camera Mode - Luicy. - 13.02.2015

Great work, This will be usefully for people that runs RolePlay Server.
+Reputation


Re: Leans Helicopter Camera Mode - Crayder - 13.02.2015

Quote:
Originally Posted by lean1337
Посмотреть сообщение
pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                new vehid = playerveh[playerid];
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[vehid]); // Destroying the light from the helicopter
                return 1;
}
Why are you doing "new vehid = playerveh"?

You can just simply use playerveh in place of it.
Quote:
Originally Posted by Crayder
pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[playerveh[playerid]]); // Destroying the light from the helicopter
                return 1;
}



Re: Leans Helicopter Camera Mode - lean1337 - 13.02.2015

Quote:
Originally Posted by Meller
View Post
Great work, This will be usefully for people that runs RolePlay Server.
+Reputation
Thank you for the rep!

Quote:
Originally Posted by Crayder
View Post
Why are you doing "new vehid = playerveh"?

You can just simply use playerveh in place of it.
DestroyObject(objectids[vehid]);
this looks much better than this

DestroyObject(objectids[playerveh[playerid]]);

atleast thats my opinion!


Re: Leans Helicopter Camera Mode - Alex Magaсa - 13.02.2015

Interesting, great job i like it + tested


Re: Leans Helicopter Camera Mode - lean1337 - 14.02.2015

Quote:
Originally Posted by Alex Magaсa
View Post
Interesting, great job i like it + tested
Im really glad you liked it, I hope you enjoy it as much as I do!


Re: Leans Helicopter Camera Mode - Crayder - 14.02.2015

Quote:
Originally Posted by lean1337
View Post
DestroyObject(objectids[vehid]);
this looks much better than this

DestroyObject(objectids[playerveh[playerid]]);
atleast thats my opinion!
That's not proper, your making a new variable just to replicate one that already exists. Obvious newb stuff. But it's fine until you learn more.


Re: Leans Helicopter Camera Mode - lean1337 - 14.02.2015

Quote:
Originally Posted by Crayder
View Post
That's not proper, your making a new variable just to replicate one that already exists. Obvious newb stuff. But it's fine until you learn more.


What happend?


Re: Leans Helicopter Camera Mode - Crayder - 14.02.2015

Quote:
Originally Posted by lean1337
View Post
What happend?
What happened? I looked at your code, that's what happened. I'm just trying to show you how to do that right, you said it looks better your way. Code is not supposed to just look good, it should be proper.