SA-MP Forums Archive
[Include] Southclaw's Balloon Script! - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Southclaw's Balloon Script! (/showthread.php?tid=294815)



Southclaw's Balloon Script! - [HLF]Southclaw - 03.11.2011

Southclaw's Balloon Script

I guessed there would be a load of balloon scripts after the object was added in 0.3d
But what the hell, they might all do different things! Mine just adds a balloon that you can ride from one place to another, and back again!

This script uses my Button script to activate the balloons, this can be found here
How to use
There's one simple function you put in your script:

CreateBalloon(Float1, Float:y1, Float:z1, Float:r1, Float2, Float:y2, Float:z2, Float:r2)

First set of co-ordinates is where the balloon will spawn, and the second set is where it will fly to


You just jump into the basket and press F/Enter (Default Controls) and it will begin flight to wherever the destination is!

Planned Updates:
- Player controlled balloons (to an extent, once above a certain altitude, and can only land at landing spots)
- Might make a version that doesn't require by button script
- any suggestions given to me by users
Video

[ame]http://www.youtube.com/watch?v=KYbBH6YhtGw[/ame]

Download
GitHub




Hope you like this script, any bugs please tell me and I will get to work fixing them



Re: Southclaw's Balloon Script! - TheArcher - 03.11.2011

Very amazing, i'm gonna try it out.


Re: Southclaw's Balloon Script! - [HLF]Southclaw - 03.11.2011

Video added


Respuesta: Southclaw's Balloon Script! - SuperMarioRol - 04.11.2011

Great, +rep.

The tittle in the post isnt correct


Re: Southclaw's Balloon Script! - andrewgrob - 02.01.2012

hi great script mate. can u add were the player pays 100 pound to ride it or say 1,000

this would be good for my new gamemode


Re: Southclaw's Balloon Script! - [HLF]Southclaw - 02.01.2012

Sure, I'll add a separate script to my pastebin page with an edit for costs, give me a minute...


Re: Southclaw's Balloon Script! - Ronaldo_raul™ - 02.01.2012

Well, I really like the smoothness of this.Really great script. +rep.


Re: Southclaw's Balloon Script! - [HLF]Southclaw - 02.01.2012

@andrewgrob
Done, not tested, but it's a simple code so it should work!
(Although I usually make simple mistakes!)

http://pastebin.com/gXLdE0WV

I'll also add it to the main page and credit you for the idea

@Ronaldo_raul™
Thanks for the comment Much appreciated!


Re: Southclaw's Balloon Script! - Toreno - 03.01.2012

Unique idea, really loved it. Will be so amazing on role play servers.
I mean, wonderful work, good job.


Re: Southclaw's Balloon Script! - davve95 - 12.01.2012

Could you make a finshed file so I can download?? Just tricky with the error codes xD


Re: Southclaw's Balloon Script! - [HLF]Southclaw - 12.01.2012

I've updated the pastebin pages now!

My compiler used certain parameters so it ignored some errors for some reason!
Fixed now, it was just if you didn't use the functions that were hooked it gave an error, fixed by changing them from direct function calls to CallRemoteFunction.

And changed 'switchbool' to the Logical 'NOT' operator '!' this should be faster, and I forgot to include the switchbool macro anyway!

Thanks for the report!


Re: Southclaw's Balloon Script! - John Rockie - 12.01.2012

Nice


Re: Southclaw's Balloon Script! - Min - 13.01.2012

Wow, good job dude


Re: Southclaw's Balloon Script! - davve95 - 20.03.2012

I would download if u could steer it to anywhere..
Anyway awesome job.


Re: Southclaw's Balloon Script! - petrolhead - 20.03.2012

wow,this is awesome. Nice job.


Re: Southclaw's Balloon Script! - [HLF]Southclaw - 20.03.2012

Quote:
Originally Posted by davve95
Посмотреть сообщение
I would download if u could steer it to anywhere..
Anyway awesome job.
I will add something like that!

I didn't add support for full control because I didn't want the balloon to go inside objects and buildings etc!
I will think of a way though, maybe having areas with basic height-maps (I'm not too keen on using MapAndreas for this)

Update coming soon


Re: Southclaw's Balloon Script! - Lordzy - 01.07.2012

Cool.
I'll surely use this.