SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 20/07/2008, 01:15 PM   #1
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default [FS] Bombing Filterscript V0.97 - Lots of new features added!

More than a 1 1/2 years ago I released the first version 0.90, but I never stop working on my Scripts, even if there where some big breaks time after time.
Now I am releasing version 0.97. Here on SA-MP.com I skipped 0.96. I released it some weeks ago on SA-MP.de only, when this forum here was down.
I know this is a damn long text, but I like to write storys Just skip it if you only want the script.

Features
Now i will tell a bit about the features.
As said before, you can drop bombs from planes or helis and they detonate on the ground. There are different types of bombs to use, e.g. simple exploding bombs, fire bombs and clusterbombs! They all have different attributes like the explosion type, radius, bomb model id or accuracy. These values and many others are stored in an commented enum/array, so it is no problem to adjust their attributes or even to create own bombs. Also lots of other values like the bomb-falling-speed will be easily adjustable. Also the bomb arsenal of every single plane and heli can be changed, so server owners can change everything to make it fit perfectly to their servers.
The sourcecode is commented on important lines, to explain how to change some values. It is also very easy to add new bombtypes or vehicle supports.

In short:
  • drop bombs everywhere
  • 8 (9) different prefined bombtypes
  • choose the bomb you like using NUM_2 and NUM_8, and drop it using the HANDBRAKE key
  • every bomb has its own attributes, to name them, explosion type and radius, accuracy, model id and rotation, explosion delay, fire rate, number of bombs to drop at once and delay between them (if more then one is dropped)
  • own "bombprofiles" for every plane and heli
  • code, keys and attributes are easy to modify, to make it fit perfectly to your server
  • You can choose between two different Textdraw styles and the old chatstyle
  • The explosions are assigned to players. Your target dont just dies like he commits suicide, you really kill him

Installation
Installing it has become 1000 times easier in version 0.95. Now it uses Kye's MapAndreas Plugin for detecting the ground coordinate. This means you just have to install Kye's plugin, compile the pwn of my FS (pastebin below) or load the AMX-version, put the amx into your filterscripts directory and add the plugin and fs to your server's config.
Ready! You will now be able to drop bombs and blow up San Andreas from the air!


The Anti-Missile flare
I wasnt working only on the bombing and artillery script all the time, i also created a new one - a kind of SAM script. It is almost ready, and yes, the Anti-Missile flare is used for this FS. If you do not use the script, the flare is useless, only a visual effect, but if you want to activate it (it is disabled by default) you need to modify gVehicleBombs like this:
Code:
{476, 1, 1, 1, 0, 0, 0, 0, 1 (<-- this is the value you have to set from 0 to 1, bomb id 7)},
Of course you have to do this for every single vehicletype, like every other bomb.
Be sure to have lots of fun with it, when the new FS is finished


Changes in 0.97
  • Added new attributes for bombs: drops at once (drop more than one bomb with a keyhit) and the delay between those drops
  • Added 3 new bombtypes, the carpetbomb (lots of bombs in turn), the clusterbomb (lots of bombs at once), and the nuclear bomb (big circular explosion)
  • Kills by bombs now get assigned to the player who dropped them, so you can use bombs like normal weapons and dont have to fear that your kill does not count. (read the codeintro to see how to activate this, you only have to add 5 lines to your gamemode script)
  • Possibility to choose between 3 styles to display the armed bomb: classical (set USE_TEXTDRAWS 0), a full list (set USE_TEXTDRAWS 1) and a minimal Textdraw (set USE_TEXTDRAWS 2). Check the new screenshots for the two textdraw styles
  • Great code restructuring for better performance and overview, including an internal OnBombExplode callback, you might use it in your gm by adding a CallRemoteFunctionEx to the fs.

Known bugs
There unfortunately are some bugs atm, thats why i still call it version 0.97 and not 1.0

Sometimes the bombs are exploding directly after the drop, sometimes on the ground, sometimes on the plane. I could not spot the bug yet, but ill try to correct it in the future, just see it as a kind of backfire for more realism (Should be solved now)

Sometimes (luckily not often) when using the 'Normal bomb' or explosion id 11, on explosion the screen shakes very strong, and does not stop. It seems, at this is a GTA/SA-MP bug i cant fix. If you are experiencing this too often, replace thr explosion id 11 with any other you like.

There is a tag mismatch warning in line ~390, I know, please dont ask about this It does not affect the function in any way, just an enum/array misunderstanding by the compiler

The first drops it might be possible that the bombs are invisible. This seems to result from the Object loading time and should be gone after a few minutes or drops.


Copyright
You may use the filterscript on every server you like. It would be nice, if you would add my name to your credits then, becuase the filterscript was a lot of work. You also may modify the adjustable part of the code or small parts of the script code without my permission. If you want to change a lot of the code or use some parts for another code, please ask me before release and include my name in your credits. The same with the database data; you can use it for other purpose, but please do not forget my name in the credits, it was a lot of work to get it.


Special credits
At this place, I wanna thank some people for their work (just in chronological order, has nothing to do with how "much I thank you" )

Adrenaline-DJ for your MySQL plugin, it was the first and only one I used, and it (almost ) never made problems

Chaser98 for calling my attention to the MapAndreas plugin, and for creating the first version using it

Kye for the MapAndreas plugin. For me and my scripts it is the most useful plugin released till today. And of course for all your work on SA-mp itself


Download

The code
New Pastebin (0.97, 19.7.10, I strongly suggest to use this version and MapAndreas)
Pastebin (0.92, 30.8.09, use this only if you still wanna use MySQL instead of MapAndreas)
Souce .PWN + ready-to-use .AMX (0.97 now, 19.7.10)

Full San Andreas map (10x10) - Only for MySQL users
Zip


New pictures of 0.97:
http://img843.imageshack.us/g/samp043f.png/

First video and some screenshots (old versions)
http://youtube.com/watch?v=OR2qCBd3F3M#
http://img374.imageshack.us/my.php?image=bomb1fa6.jpg
http://img374.imageshack.us/my.php?image=bomg2qe1.jpg
http://img374.imageshack.us/my.php?image=bomb3av1.jpg
http://img374.imageshack.us/my.php?image=bomb4kp3.jpg
http://img374.imageshack.us/my.php?image=bomb5wz5.jpg


Thats it, i hope I forgot nothing. But I am still open for questions and suggestions

Mauzen

Last edited by Mauzen; 27/02/2011 at 07:56 PM. Reason: Corrected a link
Mauzen is online now   Reply With Quote
Old 20/07/2008, 02:20 PM   #2
CJoao
Huge Clucker
 
CJoao's Avatar
 
Join Date: Nov 2007
Location: Portugal, Madeira
Posts: 291
Reputation: 12
Default Re: [IN DEV] Ground-Bomber Filterscript

OMG...

Very Very Nice !!!
__________________
CJoao is offline   Reply With Quote
Old 20/07/2008, 02:54 PM   #3
GiP_YossI
Huge Clucker
 
Join Date: Mar 2008
Posts: 223
Reputation: 0
Default Re: [IN DEV] Ground-Bomber Filterscript

very cool,but how it's dropped bombs? by a command? or by a Key?
__________________

- - - - - - - - - - - - - - - - - - - - - - - - -
My site Soon
GiP_YossI is offline   Reply With Quote
Old 20/07/2008, 03:03 PM   #4
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default Re: [IN DEV] Ground-Bomber Filterscript

It works by key, atm its the handbrake key for dropping and numpad 8 and 2 for switching bombtypes
Mauzen is online now   Reply With Quote
Old 20/07/2008, 03:49 PM   #5
sebihunter
Gangsta
 
Join Date: Nov 2006
Posts: 575
Reputation: 3
Default Re: [IN DEV] Ground-Bomber Filterscript

wrong section since there is no download
sebihunter is offline   Reply With Quote
Old 21/07/2008, 01:28 AM   #6
Backwardsman97
High-roller
 
Backwardsman97's Avatar
 
Join Date: Nov 2007
Posts: 2,208
Reputation: 36
Default Re: [IN DEV] Ground-Bomber Filterscript

I dont see how you can map all that. Would take way to long. Doesnt seem to efficient but its still cool.
Backwardsman97 is offline   Reply With Quote
Old 21/07/2008, 05:41 AM   #7
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default Re: [IN DEV] Ground-Bomber Filterscript

yaeh, maybe it seems like this, but even with a mysql server running on my local machine it works without any delay fpr 4 players (couldnt test with more yet)
And if there should be any trouble i can still create a map with 10x10 squares, so the size would be reduced by factor 4, this should make absolutely make no trouble, even on highly visited servers.

@sebihunter: sorry, where should it be then? I saw another thread here with [in dev], so i thought it would be okay to post it here.
Mauzen is online now   Reply With Quote
Old 21/07/2008, 08:04 AM   #8
weedarr
High-roller
 
weedarr's Avatar
 
Join Date: Nov 2006
Location: Scotland Awesomeness: 1924 Occupation: Farmer
Posts: 2,295
Reputation: 368
Default Re: [IN DEV] Ground-Bomber Filterscript

That's awesome!! But Sebihunter is right, this board is for released scripts only, the only place you could post it is the off-topic section.

WeeDarr
__________________



weedarr is offline   Reply With Quote
Old 21/07/2008, 08:22 AM   #9
sebihunter
Gangsta
 
Join Date: Nov 2006
Posts: 575
Reputation: 3
Default Re: [IN DEV] Ground-Bomber Filterscript

oh I forgot to say, nice done
sebihunter is offline   Reply With Quote
Old 21/07/2008, 09:58 AM   #10
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default Re: [IN DEV] Ground-Bomber Filterscript

thanks^^
maybe a mod can move it to offtopic
Mauzen is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bombing run and airstrike help. DesertFoxNight Help Archive 0 06/03/2010 03:57 AM
Operation: Suicide Bombing - Win or Fail? OminouS Screenshots and Videos 2 01/03/2010 01:56 PM
Creating a ''bombing'' Script Rickzor14 Help Archive 2 04/01/2010 09:45 AM
Bombing Countdowns Tigerbeast11 Help Archive 35 29/12/2009 01:49 PM
How to create a Bombing script? Rickzor14 Help Archive 1 24/12/2009 09:35 AM


All times are GMT. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.