1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  5. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  6. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  7. The results are out! Check them out.
    Dismiss Notice
  8. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  9. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

vJASS Gnomish Bomber 1.7.1

Submitted by Flame_Phoenix
This bundle is marked as approved. It works and satisfies the submission rules.
Hi guys. This is the bomber spell I was trying to do with some help. I finally ended it a few days ago(a lot of time by now, few moths/years for sure =P) . After submitting it to the script section no one gave any more advices, so I believe this is ready.
If there is anything to change, go ahead and let me know.
This should be more of a template than a simple spell, because it's structure was made to accommodate change, however, I only have 1 sample.
The code is commented, the spell is JESP (as usual) and I hope people like it.
This spell was remade from the start several times, I hope this version stands up.

Please note I followed a different approach from all my previous spells. Therefore I feel forced to make people know the main differences between this bombardment spell and other bombardment spells.

Differences:
- For the first time, your bomber can DIE !!! (lol) he is vulnerable to damage!
- You have a limited control on the planes flight plan ! (means you can turn him a little around).
- Bombs have realistic fall, this means they obey to the laws of physics when they fall.

This spell belongs to my project
Castle vs Castle Flame Edition and I hope you all enjoy it.


Description:
- A spell calls a gnomish plane from behind the caster. The plane will drop Incendiary bombs and burn the enemies.

Requirements:
- Jass NewGen Pack (uses vJASS)
- TimerUtils
- Table

History:

Version 1.0
- Public release
- Thanking all credits

Version 1.1
- Improved the bomb fall. Now all bombs take the same time to fall
- Simplified the code and made bombs independent from the plane, now if the plane dies, the released bombs will still fall
- Now the bomber is vulnerable to damage ! Now the bomber can die !
- Now you can control the flight of the bomber !
- Optimized the Incendiary bombs code and upgraded the documentation

Version 1.2
- Fixed the death of the plane. Now we all can see its death animation !
- Improved the documentation

Version 1.3
- Simplified the code by completely separating plane from bomb. Now the two off them are independent and even easier to use, hurray modularization!
- Improved the documentation

Version 1.5
- Version 1.4 was a test version that didn't got released
- In Version 1.5, the bomb and the plane are both in one single scope, thus you don't need 2 scopes for your spell.
- Also eliminated the spell "FireBomb" that is useless, now everything is coded!
- Made some small optimizations on the fall of the bombs, not the fall faster and the plane goes lower to drop them. Also changed the effect that appears when the bomber dies
- Added JESP document

Version 1.5b and 15c:
- Improved the comments and the credits

Version 1.6:
- Improved the terrain of the map a lot
- Added a read Me file that explains the code
- Now the plane won't stop when he hits camera bounds

Version 1.7
- Now the fires are not created when the bombs falls outside the camera bounds
- Made minor changes in the demo map

Version 1.7.1:
- Updated for patch 1.24

This spell took me years (yes years) to develop. I always dreamed to create it, but all my previous versions were never good enough. It is now, with version 1.5c, the best bomber spell I've ever seen in my entire life, and yes, I made a research for bombing spells.
I am very proud of it, and if this spell doesn't get 5/5 from the moderators in THW, I will surely want to kill some one, because this baby was approved with quality in Wc3c by Vexorian himself (yes, the God we all know =P ). This combines nearly all my knowledge of vJASS that I acquired since I entered Wc3c. If it gets approved, I am sure people will like it better than many other bombing spells.

Keywords:
CCFE, Flame_Phoenix, gnome, dwarf, bombardment, plane, bomber, bomb, fire, incendiary, napalm, vJASS, Castle vs Castle Flame Edition
Contents

Bombardment spells by Flame_Phoenix (Map)

Reviews
Moderator
16:14, 14th Nov 2008 Dr Super Good: Approved: Extreemly good spell, lagged my PC a bit but that was purly the affect used and my PC being slow. Code wise it seems nearly flawless. Also appears very easy to use and I could not notice a single...
  1. 16:14, 14th Nov 2008
    Dr Super Good:
    Approved:
    Extreemly good spell, lagged my PC a bit but that was purly the affect used and my PC being slow. Code wise it seems nearly flawless. Also appears very easy to use and I could not notice a single problem with it.

    I can definatly recommend people to use this spell if it is what they are after.
     
  2. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    Ok guys, here is the new spell from my own project. I hope all you people enjoy it and have fun with it.
    Please credit me or the project if you use this spell.
     
  3. Element of Water

    Element of Water

    Joined:
    Aug 3, 2008
    Messages:
    2,298
    Resources:
    5
    Spells:
    3
    Tutorials:
    1
    JASS:
    1
    Resources:
    5
    Very nice... but years??? It doesn't seem that complicated to me... Only problem I can see is the effects lag a bit...
     
  4. Dynasti

    Dynasti

    Joined:
    Oct 18, 2007
    Messages:
    877
    Resources:
    4
    Maps:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    4
    I found an ugly bug :S if you cast like 2 times after eachother ( 1 seccond ) and the planes go to the camera bounds or whatever, only the first pilot does have (SetUnitPathing("Plane",false))!!!!

    Btw: It is not the best, looks kinda wierd :p and that bug is awful. I cannot rate more that 4/5 for it. sorry
     
  5. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    Those are not effects. In order to make the SETUP section easy for the common user I use units instead. Because units are way heavier than effects, I believe that is the reason.
    Also, it took me years to learn how to JASS and vJASS, and this spell was made in many versions. What you see now is the final product of many hours of coding and simplification so it could be efficient and easy o use. I appreciate the fact you think this is something easy when the algorithm behind it was initially very complex. Thx =)

    I have some stuff to say about that:
    1 - the bug you describe does not exist, i tested myself, please post a replay
    2 - Again, you didn't see my code. Besides affirming I have I bug which doesn't exist you also invented a cause for the problem. My plane NEVER uses SetUnitPathing("Plane",false)), only my bombs do.
    So, I believe your question is: Why does the plane stop when he hits the boundary ?? Well, that is a safety system. It comes not from me, but from Blizzard. To move a unit with timers we can either use "SetUnitX(u) and SetUnitY(u)" or "SetUnitPosition(x, y, u)".There is a CRUCIAL difference between this two ways, in the first one, the plane would be allowed to exit the map boundaries, however that would cause an instant game crash; in the second way (which I use) when the plane meets the boundaries of the terrain, he just doesn't get over them and so the game won't crash.
    This is a safety system implemented by Blizzard that I always use. This should be an extra reason for 5/5 and not for 4/5, but since your rating was based on ignorance you are apologized. You still have a lot to learn, I don't mind helping, but there is a path you must take first...

    Anyway, this can have many more bombing spells, hope you all like it and thx for the comments.
     
  6. Herman

    Herman

    Joined:
    Aug 20, 2007
    Messages:
    877
    Resources:
    0
    Resources:
    0
    If the unit flys out of bounds it does not cause an instant crash, there are camera bounds. If the camera bounds are totally set to the perimeter, yes it will cause a crash.

    If you'd like players to see the bombers fly out off the mp (which I think would look cool :grin:), You could just involve some method for getting the map boundaries, and make sure the user knows he needs camera boundaries,
    and have an if/then for when the unit flys to the map boundaries that it is removed (by that point it would be off the map, or invisible past the camera bounds)

    Side Note - Calling people ignorant makes you look cocky
     
  7. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    That is what my code was made t avoid...


    This is a security parameter that is not my responsibility. My responsibility as a code maker is to ensure the code runs on all situations, and it does run in all situations.
    Now about the boundaries, this is something the importer that is going to use the spell needs to care, not me.
    There is no need for such an improvement, since it would only improve the complexity of the code and decrease its efficiency, when this is a something that the users should be careful with and not me.

    learn how to read decently.
    I didn't say Dynasti was an ignorant, I only said that his rating was based on ignorance, and that is a fact that no one can deny.

    It seems many people don't want the plane to be stooped, I will see if I can find a good solution for both sides.
     
    Last edited: Nov 14, 2008
  8. Herman

    Herman

    Joined:
    Aug 20, 2007
    Messages:
    877
    Resources:
    0
    Resources:
    0
    If I'm not mistaken you need to 'not know something' in order to make an assumption based on 'not knowing something'. Ignorance is a lack of knowledge, or 'not knowing something'.

    The point is you are telling him wrong simply because you think you are more knowledgeable than him, which I see as cocky, as you could very well be wrong for fallacious reasons that seem infallible.

    Putting that aside, (if I've insulted you, I apologize), the people who download and use your spells & systems must be the ones you're thinking of when you make your spell. It may not be your 'responsibility' to make this improvement, whether or not it improves the spell, but it should be your desire to make the spell as delectable as possible to the average downloader.

    I'm not telling you need to do anything, merely giving friendly suggestions as a spell-downloader. About the problem itself I would at least let the downloader know there is that option, and using magnificent problem-solving skills that all programmers possess, develop a simple and efficient method for incorporating this option.
     
  9. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    I made no fallacy. Please note all my arguments were based upon facts which are immutable, he made a comment about a problem that doesn't exist and he created a reason that doesn't exist either. When commenting codes you better know what you are talking about, or you better shut up because you will look an idiot. Giving suggestions on a spell is one thing, making wrong criticism to the code is another (specially when you didn't even see the code, which you NEED to see before commenting its bugs and efficiency). I can only conclude that you should review your arguments Herman.

    You are right, that is why this first sample is a very simple sample that even th newest JASS newbie can use and learn =)
    I will however add improvements to documentation as suggested and to the map as suggested so the user has more fun learning and using the spell.

    Well, what would you prefer ?? To let the game crash or to make the plane look silly ? I think this is quite an obvious choice...

    Anyway, I will make some updates soon, hope all you people like them =P
    Thx for approval =P
     
  10. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    Ok guys, the spell was not updated for the version 1.6
    In this version I improved everything the mods suggested. Also added a new feature to the plane, now he can move out of camera bounds without looking silly. Know that the rest of what you do is your responsibility, not mine.

    I am confident most people will like the new improvements.

    Regards, Flame_Phoenix
     
  11. Darkt3mpl3r

    Darkt3mpl3r

    Joined:
    Jan 6, 2006
    Messages:
    201
    Resources:
    1
    Spells:
    1
    Resources:
    1
    When throwing a bomb outta bounds it looks really sucky now. The Bomb itself is being throwed correctly, but the explosion itself isn't. Why don't you just fade out the airplane when reaching boundaries? who needs bombs outside boundaries anyways...

    Also add "call PreloadStart()" below line 302 + use RAD instead of converting from DEG to RAD
     
  12. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    That's because we can't create units outside camera bounds. as I said, this is not my responsibility, if you want to use spells in your map you should always make sure you have a reasonable distance between the edge and the playable area.
    I already fixed a lot of stuff. Besides if I kill the plane the bombs will still be thrown and will still fall, thus still creating the fires, so if you really want to solve the problem, you have to solve it in the SETUP section by making a condition that checks the creation location of the fire. This is merely a demo map, real implementation must be followed by you and not by me.

    Absolute no need for such...

    Well, I could do it but then it would be harder to read (at least for me). Besides that change would force me to make some inner changes in the spell, and it wouldn't be such a great boost in efficiency anyway, so I guess there is no real need for such.

    Anyway, thx for your comment, hope you liked the spell.

    EDIT EDIT EDIT
    Ok guys, I made a few changes for version 1.7. Now if the bombs fall outside the camera bounds the fires won't be created.
    Version 1.7 is not released yet, but it will soon be.
     
  13. William1995

    William1995

    Joined:
    Sep 18, 2008
    Messages:
    25
    Resources:
    0
    Resources:
    0
    I loved it!!! It's really cool!!! Just want to say... The bomber really fits and fair to have 50 hp!!! otherwise it could be counted as cheating... Anyway, for people who are viewing this, let me give you all an advice =)... This spell is cool if it is used by some kind of jet fighter model in war maps... Then also change the model of the bombs... There, this spell can be used like that... I will definitely give 5/5 then!!! I liked this!!! ^^
     
  14. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    Ok people Version 1.7 was now released. Please see the History for more information.

    Thx for liking my spell. About your advice well, again (I am kinda tired of saying this lol) it is not my duty. I release the spell and the code, you people can do anything with it as long as you credit me or my project.
    Personally I agree with you, but I think I prefer the small little gnomish plane dropping little cute destructive bombs <3 =P Soon my project will have this spell as well as some expansions to it =)

    I hope this version is now Ok and stops people complaining about the bombs. This is a fix for good, no more bomb problems =D

    Btw, thx for rating =)
     
  15. Herman

    Herman

    Joined:
    Aug 20, 2007
    Messages:
    877
    Resources:
    0
    Resources:
    0
    This spell shows true expertise. 5/5 :)
     
  16. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    He he, thx =P
    Version 1.7 has nearly all suggestions you people gave so I am happy you like it now =P
     
  17. ikillforeyou

    ikillforeyou

    Joined:
    Jun 10, 2008
    Messages:
    1,341
    Resources:
    33
    Models:
    22
    Icons:
    9
    Packs:
    1
    Tutorials:
    1
    Resources:
    33
    hey sry if this sounds noobish but... i dont know jass and when i try testing the map or copying the triggers there is a list of errors 1 mile long how do i test it?
     
  18. Flame_Phoenix

    Flame_Phoenix

    Joined:
    May 4, 2007
    Messages:
    2,283
    Resources:
    11
    Tools:
    1
    Maps:
    1
    Spells:
    6
    Tutorials:
    3
    Resources:
    11
    It is Ok to ask.
    First of all this is not JASS, it is vJASS (an expansion to the language). This means that you need to have JNGP installed on your computer to change this map. If you want to import it, than your project must use JNGP as well. You can download the program by clicking on the first link.

    To run this map, simple download it, open it with regular world editor, and then click in the icon that says "test map".
     
  19. ikillforeyou

    ikillforeyou

    Joined:
    Jun 10, 2008
    Messages:
    1,341
    Resources:
    33
    Models:
    22
    Icons:
    9
    Packs:
    1
    Tutorials:
    1
    Resources:
    33
    kk found it :) gj i likey i likey and what happend to all the other bombers in the previous version? like the nuke bomber and stuff.
    and in v 1.6 how can i make the plane fly farther? like for the nuke spell i want to use it in my world war map :)
     
    Last edited: Dec 16, 2008