[FilterScript] [FS] Bombing Filterscript V0.95
#1

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:
Код:
{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:
/imageshack/g/samp043f.png/

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


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

Mauzen
Reply
#2

OMG...

Very Very Nice !!!
Reply
#3

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

It works by key, atm its the handbrake key for dropping and numpad 8 and 2 for switching bombtypes
Reply
#5

wrong section since there is no download
Reply
#6

I dont see how you can map all that. Would take way to long. Doesnt seem to efficient but its still cool.
Reply
#7

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.
Reply
#8

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
Reply
#9

oh I forgot to say, nice done
Reply
#10

thanks^^
maybe a mod can move it to offtopic
Reply
#11

it's the FS that I even seen!!!
u r a fuckin' good scripter!!
Reply
#12

It is well it video but us that one wants it is the FS lool.
Reply
#13

Niceeeee :P :P
Reply
#14

I had a hdd crash while using new hardware and lost two days of work since the last backup
And now im working on my old emergency machine
But i think i can release it in the next few days. To tell a date, ill just say saturday this week, but probably its earlier
Reply
#15

cool :/
Reply
#16

You should have sent me a PM to see this. Great work. I hope you are releasing it soon
Reply
#17

Super cool idea, goodluck finishing it.
Reply
#18

COOOOOL!!!!!
Make please without MYSQL
Reply
#19

Atm it isnt possible without Mysql, sorry. Its the only way to detect where the ground is. Maybe ill do a Sqlite version after this, but its very slow and could cause lag on bg servers.
But it isnt very difficult to get it running with mysql, the only problem is that your server needs to support it
Reply
#20

And when the script will be ready?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)