diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..9473a1acc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Build Release Artifacts + +on: + release: + types: [created] + +jobs: + build-sdz: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: FranzDiebold/github-env-vars-action@v2.3.0 + - run: sudo apt install -y zip + - run: zip -r repo.sdz * -x .git @ + - uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./repo.sdz + asset_name: ${{ env.CI_REPOSITORY_NAME }}-${{ env.CI_REF_NAME }}.sdz + asset_content_type: application/zip diff --git a/CC-BY-SA-4.0.txt b/CC-BY-SA-4.0.txt new file mode 100644 index 000000000..3b7b82d0d --- /dev/null +++ b/CC-BY-SA-4.0.txt @@ -0,0 +1,427 @@ +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git "a/Creative Commons \342\200\224 Attribution-ShareAlike 4.0 International \342\200\224 CC BY-SA 4.pdf" "b/Creative Commons \342\200\224 Attribution-ShareAlike 4.0 International \342\200\224 CC BY-SA 4.pdf" deleted file mode 100644 index 55dc821f9..000000000 Binary files "a/Creative Commons \342\200\224 Attribution-ShareAlike 4.0 International \342\200\224 CC BY-SA 4.pdf" and /dev/null differ diff --git a/DummyCommit.txt b/DummyCommit.txt index 1cb0b83de..bdbe4075c 100644 --- a/DummyCommit.txt +++ b/DummyCommit.txt @@ -1 +1 @@ -VERSION{v13.03} \ No newline at end of file +VERSION{v15.01} \ No newline at end of file diff --git a/GPL-2.0.txt b/GPL-2.0.txt new file mode 100644 index 000000000..d159169d1 --- /dev/null +++ b/GPL-2.0.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/Gamedata/alldefs_post.lua b/Gamedata/alldefs_post.lua index 4aff4aec1..d698a7574 100644 --- a/Gamedata/alldefs_post.lua +++ b/Gamedata/alldefs_post.lua @@ -19,14 +19,17 @@ SaveDefsToCustomParams = false ------------------------- --- Process relevant modoptions first +-- Process relevant modoptions and gamewide features first ------------------------- unitHealthModifier = tonumber(Spring.GetModOptions().unithealthmodifier) if unitHealthModifier == nil then - unitHealthModifier = 200 + unitHealthModifier = 500 end + unitHealthModifier = unitHealthModifier * 0.01 +canAnyUnitsReclaim = false + ------------------------- -- DEFS POST PROCESSING ------------------------- @@ -140,6 +143,8 @@ function UnitDef_Post(name, uDef) local radius = 8 * sqrt((fx * fx) + (fz * fz)) if uDef.customparams and uDef.customparams.decloakradiusmodifier then uDef.mincloakdistance = (radius * uDef.customparams.decloakradiusmodifier) + elseif uDef.customparams and uDef.customparams.decloakradiushalved then + uDef.mincloakdistance = (radius * 3) else uDef.mincloakdistance = (radius * 6) end @@ -162,6 +167,14 @@ function UnitDef_Post(name, uDef) if uDef.usegrounddecal == true and uDef.customparams and uDef.customparams.customgrounddecal ~= true then if uDef.customparams and uDef.customparams.factionname == "ateran" then uDef.buildinggrounddecaltype = "groundplate.dds" + --Make decals sizing easy + if uDef.footprintx ~= nil and uDef.footprintz ~= nil then + uDef.buildinggrounddecalsizex = uDef.footprintx + 2 + uDef.buildinggrounddecalsizey = uDef.footprintz + 2 + uDef.buildinggrounddecaldecayspeed = 0.9 + else + Spring.Echo("[AllDefsPost] " .. uDef.name .. " Does not have it's footprint defined") + end end if uDef.customparams and uDef.customparams.factionname == "zaal" then uDef.buildinggrounddecaltype = "zgroundtexture2.dds" @@ -178,6 +191,14 @@ function UnitDef_Post(name, uDef) uDef.shownanospray = false end + -------------------------------------------------------------------------------- + -------------------------------------------------------------------------------- Make units unable to be built in the water + if uDef.maxwaterdepth then + uDef.maxwaterdepth = 25 + end + if uDef.floater then + uDef.floater = false + end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Turn off Chicken Egg drops @@ -185,6 +206,18 @@ function UnitDef_Post(name, uDef) uDef.corpse = "" end + if string.find(name, '_scav') then + VFS.Include("gamedata/scavengers/unitdef_post.lua") + uDef = scav_Udef_Post(name, uDef) + end + + -------------------------------------------------------------------------------- + -------------------------------------------------------------------------------- + -- Use per piece collision volumes + -- !Potentially very expensive! + -- I'm using this to save myself a boatload of time + uDef.usePieceCollisionVolumes = false + end -------------------------------------------------------------------------------- @@ -196,6 +229,8 @@ function WeaponDef_Post(name, wDef) --wDef.cylindertargeting = 128 --wDef.heightmod = 1 + wDef.name = wDef.weapontype + --Use targetborderoverride in weapondef customparams to override this global setting --Controls whether the weapon aims for the center or the edge of its target's collision volume. Clamped between -1.0 - target the far border, and 1.0 - target the near border. if wDef.customparams and wDef.customparams.targetborderoverride == nil then @@ -216,10 +251,18 @@ function WeaponDef_Post(name, wDef) --Potentially fix times when weapons explode without doing damage if tonumber(wDef.areaofeffect) ~= nil and tonumber(wDef.areaofeffect) <= 25 then - wDef.areaofeffect = 25 + if wDef.customparams and wDef.customparams.aoeoverride == true then + wDef.areaofeffect = wDef.areaofeffect + else + wDef.areaofeffect = 25 + end end if tonumber(wDef.areaofeffect) ~= nil and tonumber(wDef.areaofeffect) <= 25 then - wDef.edgeeffectiveness = 1 + if wDef.customparams and wDef.customparams.edgeeffectiveness == true then + wDef.edgeeffectiveness = wDef.edgeeffectiveness + else + wDef.edgeeffectiveness = 1 + end end --Override map gravity for all weapons @@ -265,7 +308,11 @@ function WeaponDef_Post(name, wDef) wDef.energypershot = math.floor(wDef.damage.default * 0.05 * wDef.projectiles * ((wDef.areaofeffect * 0.001) + 1) * wDef.range^0.25 * 0.5 * 10 + 0.5) * 0.1 end - + -------------------------------------------------------------------------------- + -------------------------------------------------------------------------------- Turn off waterweapons + if wDef.waterweapon then + wDef.waterweapon = false + end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Disable Friendly Fire Completely @@ -273,6 +320,11 @@ function WeaponDef_Post(name, wDef) wDef.customparams.nofriendlyfire = 1 end + if string.find(name, '_scav') then + VFS.Include("gamedata/scavengers/weapondef_post.lua") + wDef = scav_Wdef_Post(name, wDef) + end + end @@ -307,11 +359,16 @@ function ModOptions_Post (UnitDefs, WeaponDefs) -- Set building Hitpoints -- Ateran - if unitDef.customparams and unitDef.customparams.factionname == "ateran" then + if unitDef.customparams and unitDef.customparams.factionname == "ateran" + or unitDef.customparams and unitDef.customparams.factionname == "Federation of Kala" + or unitDef.customparams and unitDef.customparams.factionname == "Loz Alliance" then if unitDef.customparams then if unitDef.customparams.unittype == "building" then unitDef.maxdamage = unitDef.buildcostmetal * 5 end + if unitDef.customparams.unittype == "factory" then + unitDef.maxdamage = unitDef.buildcostmetal * 30 + end if unitDef.customparams.unittype == "turret" then unitDef.maxdamage = unitDef.buildcostmetal * 5 end @@ -333,21 +390,21 @@ function ModOptions_Post (UnitDefs, WeaponDefs) if unitDef.maxdamage then --Spring.Echo(uDef.name) --Spring.Echo(uDef.maxdamage) - unitDef.maxdamage = unitDef.maxdamage * unitHealthModifier + unitDef.maxdamage = unitDef.maxdamage * unitHealthModifier --Look in the top of this file for default health modifier --Spring.Echo(uDef.name) --Spring.Echo(uDef.maxdamage) end end - -- Make sure that land based defense weapons are scaled up to match - for id,wDef in pairs(WeaponDefs) do - if wDef.customparams and wDef.customparams.effectedbyunithealthmodifier == true then - if wDef.damage.default then - wDef.damage.default = wDef.damage.default * unitHealthModifier - end - --Spring.Echo(wDef.damage.default) - end - end + -- Make sure that land based defense weapons and turrets are scaled up to match + -- for id,wDef in pairs(WeaponDefs) do + -- if wDef.customparams and wDef.customparams.effectedbyunithealthmodifier == true then + -- if wDef.damage.default then + -- wDef.damage.default = wDef.damage.default * (unitHealthModifier * 0.33) + -- end + -- --Spring.Echo(wDef.damage.default) + -- end + -- end -------------------------------------------------------------------------------- -- Process Upgrades -- @@ -373,6 +430,12 @@ function ModOptions_Post (UnitDefs, WeaponDefs) uDef.maxvelocity = uDef.maxvelocity * 0.85 end end + if uDef.customparams and uDef.customparams.isupgraded == "boss" then + uDef.maxdamage = uDef.maxdamage * 2.50 + if uDef.maxvelocity then + uDef.maxvelocity = uDef.maxvelocity * 0.75 + end + end end for id,wDef in pairs(WeaponDefs) do @@ -398,6 +461,13 @@ function ModOptions_Post (UnitDefs, WeaponDefs) wDef.shieldpower = wDef.shieldpower * 1.50 end end + if wDef.customparams and wDef.customparams.isupgraded == "boss" then + wDef.reloadtime = wDef.reloadtime * 0.5 + wDef.damage.default = wDef.damage.default * 10 + if wDef.exteriorshield == true and wDef.shieldpower < 0 then + wDef.shieldpower = wDef.shieldpower * 2.50 + end + end --Handle Shields if wDef.customparams and wDef.customparams.isshieldupgraded == "1" then @@ -415,6 +485,11 @@ function ModOptions_Post (UnitDefs, WeaponDefs) wDef.shieldpower = wDef.shieldpower * 1.50 end end + if wDef.customparams and wDef.customparams.isshieldupgraded == "boss" then + if wDef.exteriorshield == true then + wDef.shieldpower = wDef.shieldpower * 2.50 + end + end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- @@ -513,6 +588,9 @@ function ModOptions_Post (UnitDefs, WeaponDefs) if unitDef.customparams and unitDef.customparams.noenergycost == true then unitDef.buildcostenergy = 0 end + if unitDef.customparams and unitDef.customparams.buildcostenergyoverride ~= nil then + unitDef.buildcostenergy = unitDef.customparams.buildcostenergyoverride + end end -- Set Rules for Zaal race @@ -531,6 +609,9 @@ function ModOptions_Post (UnitDefs, WeaponDefs) if unitDef.customparams and unitDef.customparams.noenergycost == true then unitDef.buildcostenergy = 0 end + if unitDef.customparams and unitDef.customparams.buildcostenergyoverride ~= nil then + unitDef.buildcostenergy = unitDef.customparams.buildcostenergyoverride + end end -- This is a catchall for units that don't have a factionname declared @@ -544,6 +625,14 @@ function ModOptions_Post (UnitDefs, WeaponDefs) if unitDef.workertime and unitDef.workertime >= 8 then unitDef.workertime = 8 end + -- Set reclaimspeed to be a multiple of workertime. This relies on max defaults set in featuredefs post. Without some max defaults there, this will be a funny result. + unitDef.reclaimspeed = unitDef.workertime + + if canAnyUnitsReclaim == false then + if unitDef.canreclaim == true then + unitDef.canreclaim = false + end + end end end end \ No newline at end of file diff --git a/Gamedata/configs/damageTypes.lua b/Gamedata/configs/damageTypes.lua index 5d5ba68b1..2028a90c3 100644 --- a/Gamedata/configs/damageTypes.lua +++ b/Gamedata/configs/damageTypes.lua @@ -4,507 +4,106 @@ local damageClasses = { -- classes with armor classes for weapons damageTypes = { - nonexistent = { - AIRLIGHT = 0.1, - AIRARMORED = 0.1, - ARMORED = 0.1, - LIGHT = 0.1, - BUILDING = 0.1, - }, - - pdlaser = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 0.5, - }, - ---------------------------------------------------------------------------- - -- Overseers with weapons - ecommanderbattle = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.1, - }, - -- Overseers with weapons - ecommandermeteor = { - AIRLIGHT = 1, - AIRARMORED = 1, + -- + light = { -- These values should always mirror antilight and vice versa + LIGHT = 1.5, ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - - -- Start H-Bots - ehbotpeewee = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - ehbotthud = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - ehbotsniper = { - AIRLIGHT = 0.5, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.5, - BUILDING = 0.5, - }, - ehbotrocko = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, + BUILDING = 1, + AIR = 1, }, - ehbotkarganneth = { - AIRLIGHT = 1, - AIRARMORED = 1, + antilight = { + LIGHT = 1.5, ARMORED = 1, - LIGHT = 1, - BUILDING = 1, + BUILDING = 1, + AIR = 1, }, - - -- Start Hovers - eaatank = { - AIRLIGHT = 0.66, - AIRARMORED = 1, + -- + turretantilight = { + LIGHT = 1.5, ARMORED = 1, - LIGHT = 0.66, - BUILDING = 0.66, - }, - eartytank = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, - LIGHT = 0.25, - BUILDING = 1, - }, - eartytank_saturation = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, - LIGHT = 0.25, - BUILDING = 1, - }, - ebomb = { - AIRLIGHT = 0.5, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 0.5, - BUILDING = 1, + BUILDING = 0.1, + AIR = 1, }, - efatso = { - AIRLIGHT = 0.125, - AIRARMORED = 0.125, - ARMORED = 0.125, - LIGHT = 0.125, - BUILDING = 1, - }, - eflametank = { - AIRLIGHT = 0.5, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 0.5, - BUILDING = 1, - }, - elighttank3 = { - AIRLIGHT = 1, - AIRARMORED = 0.6, - ARMORED = 0.6, - LIGHT = 0.6, - BUILDING = 1, - }, - eheavytank3 = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, + turretantiarmored = { LIGHT = 1, - BUILDING = 0.33, + ARMORED = 1.5, + BUILDING = 0.1, + AIR = 1, }, - emediumtank3 = { - AIRLIGHT = 0.5, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.5, - BUILDING = 0.5, - }, - emissiletank = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, + antiarmored = { LIGHT = 1, - BUILDING = 0.5, + ARMORED = 1.5, + BUILDING = 1, + AIR = 1, }, - eriottank2 = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - eriottank2shotgun = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.25, - }, - elacerator = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - -- End Hovers - - -- Start All Terrains - eallterrheavy = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 0.5, - }, - eallterrlight = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - eallterrmed = { - AIRLIGHT = 0.5, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.5, - BUILDING = 0.5, - }, - eallterraa = { - AIRLIGHT = 0.66, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.66, - BUILDING = 0.66, - }, - eallterrriot = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - eallterrriotshotgun = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.25, - }, - eallterrassault = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, - LIGHT = 0.25, - BUILDING = 1, - }, - eallterranarchid = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - eallterranarchidflame = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - -- End All Terrains - - -- Start Amphibs - eamphibbuggy = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 1, - }, - eamphibriot = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - eamphibneedle = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - eamphibriotshotgun = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.25, - }, - eamphibaa = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, + antibuilding = { LIGHT = 1, - BUILDING = 0.5, - }, - eamphibmedtank = { - AIRLIGHT = 1, - AIRARMORED = 1, ARMORED = 1, - LIGHT = 1, - BUILDING = 0.5, - }, - eamphibrock = { - AIRLIGHT = 0.5, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.5, - BUILDING = 0.5, + BUILDING = 1.5, + AIR = 1, }, - eamphibarty = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, + antibuildingarty = { LIGHT = 0.25, - BUILDING = 1, - }, - eamphibleveler = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - -- End Amphibs - - -- Start Aircraft - edrone = { - AIRLIGHT = 0.5, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 0.5, - BUILDING = 1, - }, - eraider = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.5, - }, - efighter = { - AIRLIGHT = 1, - AIRARMORED = 0.25, ARMORED = 0.25, - LIGHT = 1, - BUILDING = 0.25, + BUILDING = 1.5, + AIR = 0.25, }, - egunship2 = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, + antiair = { LIGHT = 1, - BUILDING = 0.25, - }, - egunship2torpedo = { - AIRLIGHT = 1, - AIRARMORED = 1, ARMORED = 1, - LIGHT = 1, - BUILDING = 0.25, - }, - ebomber = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, - LIGHT = 0.25, - BUILDING = 1, + BUILDING = 1, + AIR = 1.5, }, - ekrow = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, + antilightarmored = { + LIGHT = 1.5, + ARMORED = 1.5, + BUILDING = 1, + AIR = 1, }, - -- End Aircraft - - -- Start Experimentals - eexkrabgroth = { - AIRLIGHT = 0.1, - AIRARMORED = 0.1, - ARMORED = 0.1, - LIGHT = 0.1, - BUILDING = 1, - }, - eextankdestroyer = { - AIRLIGHT = 1, - AIRARMORED = 1, + antilightbuilding = { + LIGHT = 1.5, ARMORED = 1, - LIGHT = 1, - BUILDING = 0.1, + BUILDING = 1.5, + AIR = 1, }, - eexnukearty = { - AIRLIGHT = 0.5, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 0.5, - BUILDING = 1, - }, - -- End Experimentals - - -- Start Buildings - elightturret2 = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 1, - BUILDING = 0.1, - }, - eheavyturret2 = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, + antiarmoredbuilding = { LIGHT = 1, - BUILDING = 0.1, + ARMORED = 1.5, + BUILDING = 1.5, + AIR = 1, }, - elaserbattery = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, + antibuildingair = { LIGHT = 1, - BUILDING = 0.1, - }, - elrpc = { - AIRLIGHT = 0.25, - AIRARMORED = 0.25, - ARMORED = 0.25, - LIGHT = 0.25, - BUILDING = 1, - }, - euwturret = { - AIRLIGHT = 1, - AIRARMORED = 1, ARMORED = 1, - LIGHT = 1, - BUILDING = 0.1, - }, - emine = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 0, + BUILDING = 1.5, + AIR = 1.5, }, - -- End Buildings - - -- Start Zaal - zlightswarm = { - AIRLIGHT = 1, - AIRARMORED = 0.5, - ARMORED = 0.5, + antiarmoredair = { LIGHT = 1, - BUILDING = 0.5, + ARMORED = 1.5, + BUILDING = 1, + AIR = 1.5, }, - zmedswarm = { - AIRLIGHT = 0.5, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 0.5, - BUILDING = 0.5, - }, - zskirmisher = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, + turretantilightarmored = { + LIGHT = 1.5, + ARMORED = 1.5, + BUILDING = 0.1, + AIR = 1, }, - zpyro = { - AIRLIGHT = 0.5, - AIRARMORED = 0.5, - ARMORED = 0.5, - LIGHT = 0.5, - BUILDING = 1, - }, - zarty = { - AIRLIGHT = 0, - AIRARMORED = 0, - ARMORED = 0, - LIGHT = 0, - BUILDING = 1, - }, - zassault = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 1, - }, - -- End Zaal - - -- Start Miscellaneous - queenbeam = { - AIRLIGHT = 0.1, - AIRARMORED = 0.1, - ARMORED = 0.1, - LIGHT = 0.1, - BUILDING = 1, - }, - queenflames = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 0.1, - }, - queencannon = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, - LIGHT = 1, - BUILDING = 0.1, - }, - -- End Miscellaneous default = { - AIRLIGHT = 1, - AIRARMORED = 1, - ARMORED = 1, LIGHT = 1, - BUILDING = 1, + ARMORED = 1, + BUILDING = 1, + AIR = 1, }, }, armorDefs = { - "AIRLIGHT", - "AIRARMORED", "LIGHT", "ARMORED", "BUILDING", + "AIR", }, } return damageClasses; \ No newline at end of file diff --git a/Gamedata/explosions/Steam.lua b/Gamedata/explosions/Steam.lua index a61df2f6b..720b86f49 100644 --- a/Gamedata/explosions/Steam.lua +++ b/Gamedata/explosions/Steam.lua @@ -28,7 +28,6 @@ return { sizemod = 0.9, texture = [[new_dirta]], useairlos = false, - colorchange = "stuffs", }, }, }, diff --git a/Gamedata/explosions/blacksmoke.lua b/Gamedata/explosions/blacksmoke.lua index ed051b9c0..b00fdb24f 100644 --- a/Gamedata/explosions/blacksmoke.lua +++ b/Gamedata/explosions/blacksmoke.lua @@ -29,7 +29,6 @@ return { sizemod = 0.9, texture = [[new_dirta]], useairlos = false, - colorchange = "stuffs", }, }, @@ -60,7 +59,6 @@ return { sizemod = 0.9, texture = [[randdots]], useairlos = false, - colorchange = "stuffs", }, }, }, diff --git a/Gamedata/explosions/dirt.lua b/Gamedata/explosions/dirt.lua index 17ab06bda..64f96b44e 100644 --- a/Gamedata/explosions/dirt.lua +++ b/Gamedata/explosions/dirt.lua @@ -2,6 +2,38 @@ return { ["dirt"] = { + dirtg = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.7, + --alwaysvisible = true, + colormap = [[0.25 0.20 0.10 1.0 0 0 0 0.0]], + directional = true, + emitrot = 90, + emitrotspread = 0, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.3 r0.3, 0]], + numparticles = 0, + particlelife = 15, + particlelifespread = 20, + particlesize = [[12 r4]], + particlesizespread = 10, + particlespeed = 1, + particlespeedspread = 6, + pos = [[r-0.5 r0.5, 1 r2, r-0.5 r0.5]], + sizegrowth = 1.2, + sizemod = 1.0, + texture = [[new_dirta]], + useairlos = false, + }, + }, + }, + + + ["dirtoriginal"] = { dirtg = { air = true, class = [[CSimpleParticleSystem]], @@ -28,7 +60,6 @@ return { sizemod = 1.0, texture = [[new_dirta]], useairlos = false, - colorchange = "stuffs", }, }, dirtw = { @@ -57,7 +88,6 @@ return { sizemod = 1.0, texture = [[randdots]], useairlos = false, - colorchange = "stuffs", }, }, }, @@ -90,7 +120,6 @@ return { sizemod = 1.0, texture = [[new_dirta]], useairlos = false, - colorchange = "stuffs", }, }, dirtw = { diff --git a/Gamedata/explosions/empty.lua b/Gamedata/explosions/empty.lua index 2ae84af9d..cd82d4c29 100644 --- a/Gamedata/explosions/empty.lua +++ b/Gamedata/explosions/empty.lua @@ -30,6 +30,36 @@ return { }, }, }, + + ["emptydirt"] = { + empty = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.97, + colormap = [[1 1 1 1 1 1 1 1]], + directional = true, + emitrot = 0, + emitrotspread = 0, + emitvector = [[dir]], + gravity = [[0, -0.5, 0]], + numparticles = 0, + particlelife = 0, + particlelifespread = 0, + particlesize = 0, + particlesizespread = 0, + particlespeed = 0, + particlespeedspread = 0, + pos = [[0, 0, 0]], + sizegrowth = 0, + sizemod = 0, + texture = [[shell]], + }, + }, + }, } diff --git a/Gamedata/explosions/fusionreaction.lua b/Gamedata/explosions/fusionreaction.lua index b92220dfc..eb26133d0 100644 --- a/Gamedata/explosions/fusionreaction.lua +++ b/Gamedata/explosions/fusionreaction.lua @@ -437,6 +437,72 @@ return { }, }, }, + + ["fusionreactionstoragenew-small"] = { + electricarcs1 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 1, + --alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0.5 0 0 0.01 0.8 0.5 0 0.01 0 0 0 0.01]], + directional = true, + emitrot = 0, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = 70, + particlelifespread = 1, + particlesize = 0.5, + particlesizespread = 0, + particlespeed = 0.1, + particlespeedspread = 0.5, + pos = [[0, 2, 0]], + sizegrowth = 0.3, + sizemod = 1, + texture = [[plasmaball]], + useairlos = false, + }, + }, + }, + + ["fusionreactionstoragenew-blue-small"] = { + electricarcs1 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 1, + --alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0 0 0.5 0.01 0 0.5 0.8 0.01 0 0 0 0.01]], + directional = true, + emitrot = 0, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = 70, + particlelifespread = 1, + particlesize = 0.5, + particlesizespread = 0, + particlespeed = 0.1, + particlespeedspread = 0.5, + pos = [[0, 2, 0]], + sizegrowth = 0.3, + sizemod = 1, + texture = [[plasmaball]], + useairlos = false, + }, + }, + }, ["fusionreactionburrow"] = { electricarcs1 = { diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue-emp.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue-emp.lua index e87a2f747..837b40390 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue-emp.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue-emp.lua @@ -101,7 +101,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -314,7 +313,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -528,7 +526,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -742,7 +739,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue.lua index bfdffeae1..0b64209be 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-blue.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-green.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-green.lua index a630078be..b0021bae4 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-green.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-green.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-purple.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-purple.lua index f3da1b99f..d9380448e 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-purple.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-purple.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-red.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-red.lua index 05324c58a..ccd79ad5f 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-red.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-red.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-white.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-white.lua index b2a6b9b89..5730f2c42 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-white.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion-white.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion.lua b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion.lua index ba024d61c..083be0290 100644 --- a/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion.lua +++ b/Gamedata/explosions/generic-building-explosions/genericbuildingexplosion.lua @@ -87,7 +87,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], startsize = 10, }, @@ -312,7 +311,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r2, 0.1 r1, r-3 r2]], startsize = 10, }, @@ -537,7 +535,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r1, 0.1 r1, r-3 r1]], startsize = 10, }, @@ -762,7 +759,6 @@ return { pos = [[r-60 r60, 24, r-60 r60]], size = 10, sizeexpansion = 0.6, - sizegrowth = 15, speed = [[r-3 r3, 0.1 r1, r-3 r3]], startsize = 10, }, diff --git a/Gamedata/explosions/lootboxes.lua b/Gamedata/explosions/lootboxes.lua new file mode 100644 index 000000000..2ac058d4e --- /dev/null +++ b/Gamedata/explosions/lootboxes.lua @@ -0,0 +1,101 @@ +-- lootbox beacons + +return { + ["LootboxBeaconBronze"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx0]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconSilver"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx1]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconGold"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx2]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconPlatinum"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.8 1 1 1 0.7 1 1 1 0.3 0 0 0 0.01]], + size = 38, + ttl = 54, + sizegrowth = 0.4, + texture = [[circlefx3]], + alwaysvisible = true, + }, + }, + }, + ["LootboxLightGold"] = { + useAirLos = false, + usedefaultexplosions = false, + ["heatcloud"] = { + air = true, + water = true, + ground = true, + unit = true, + count = 3, + properties = { + --alwaysVisible = true, + heat = 30, + texture = [[glow2]], + maxheat = 30, + heatFalloff = 1.4, + size = [[4.0 r0.4]], + sizeGrowth = [[-0.02 r0.02]], + sizemod = 0, + sizemodmod = 0, + speed = [[0.05 r-0.05, 0.05 r-0.05, 0.05 r-0.05]], + pos = [[0, 0.0, 0]], + useAirLos = false, + }, + }, + }, +} \ No newline at end of file diff --git a/Gamedata/explosions/lootboxes/lootbox-trail.lua b/Gamedata/explosions/lootboxes/lootbox-trail.lua new file mode 100644 index 000000000..9bffbc172 --- /dev/null +++ b/Gamedata/explosions/lootboxes/lootbox-trail.lua @@ -0,0 +1,208 @@ +-- Spawntrail for Lootbox Drops + +return { + ["lootbox-trail"] = { + usedefaultexplosions = false, + engine = { + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[1 0.75 0.1 0.01 0.9 0.55 0.08 0.01 0.8 0.35 0.05 0.01 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[none]], + length = [[-15 r3.5]], + sidetexture = [[muzzleside]], + size = 15.5, + sizegrowth = [[0.2 r0.9]], + ttl = 1, + }, + }, + fireglow = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 1, + colormap = [[0.95 0.75 0 0.01 0 0 0 0.01]], + directional = false, + emitrot = 0, + emitrotspread = 0, + emitvector = [[0.0, 0.0, 0.0]], + gravity = [[0.0, 0.1, 0.0]], + numparticles = 1, + particlelife = 2, + particlelifespread = 1, + particlesize = 40, + particlesizespread = 12, + particlespeed = 0, + particlespeedspread = 0, + pos = [[0.0, 0, 0.0]], + sizegrowth = -0.5, + sizemod = 1, + texture = [[dirt]], + useairlos = true, + }, + }, + exhale = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.95 0.75 0 0.1 0.45 0.32 0 0.1 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.2, 0]], + numparticles = 1, + particlelife = 40, + particlelifespread = 15, + particlesize = 19, + particlesizespread = 6, + particlespeed = 0.25, + particlespeedspread = 1.2, + pos = [[0, 1, 0]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + exhale2 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.8 0.6 0 0.15 0.55 0.40 0 0.1 0.028 0.020 0 0.15 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.65, 0]], + numparticles = 2, + particlelife = 30, + particlelifespread = 15, + particlesize = 7, + particlesizespread = 6, + particlespeed = 0.25, + particlespeedspread = 1.9, + pos = [[0, 1, 0]], + sizegrowth = -0.07, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + trail = { + + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[0 0 0 0.01 0.035 0.025 0.015 0.10 0.035 0.025 0.015 0.08 0.035 0.025 0.015 0.05 0.035 0.025 0.015 0.04 0.035 0.025 0.015 0.02 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[trans]], + length = -20, + sidetexture = [[smoketrail]], + size = 2.0, + sizegrowth = 0.05, + ttl = 40, + }, + }, + smoke = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.92, + colormap = [[0.006 0.006 0.006 0.05 0.05 0.04 0.033 0.66 0.04 0.038 0.034 0.56 0.04 0.036 0.032 0.44 0.025 0.025 0.025 0.28 0.014 0.014 0.014 0.13 0.006 0.006 0.006 0.05 0 0 0 0.01]], + directional = true, + emitrot = -180, + emitrotspread = 7, + emitvector = [[dir]], + gravity = [[0.0, -0.02, 0.0]], + numparticles = [[1.5 r1]], + particlelife = 15, + particlelifespread = 40, + particlesize = 4.6, + particlesizespread = 6.2, + particlespeed = 1.5, + particlespeedspread = 2.5, + pos = [[-15 r30, -15 r30, -15 r30]], + sizegrowth = 0.32, + sizemod = 1, + texture = [[smoke]], + useairlos = true, + }, + }, + dustparticles = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + underwater = true, + water = true, + properties = { + airdrag = 0.77, + colormap = [[0.9 0.66 0.4 0.8 1 0.74 0.48 0.9 0.75 0.45 0.25 0.5 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, -0.011, 0]], + numparticles = 1, + particlelife = 9, + particlelifespread = 6, + particlesize = 4, + particlesizespread = 0.8, + particlespeed = 0.05, + particlespeedspread = 0.6, + pos = [[0, 0, 0]], + sizegrowth = 0.03, + sizemod = 1.0, + texture = [[randomdots]], + }, + }, + spikes = { + air = true, + class = [[explspike]], + count = 2, + ground = true, + water = true, + properties = { + alpha = 0.6, + alphadecay = 0.08, + color = [[1.0, 0.5, 0.2]], + dir = [[-10 r20,-10 r20,-10 r20]], + length = 2, + width = 9, + }, + }, + }, + +} + diff --git a/Gamedata/explosions/lootboxes/lootboxes.lua b/Gamedata/explosions/lootboxes/lootboxes.lua new file mode 100644 index 000000000..2ac058d4e --- /dev/null +++ b/Gamedata/explosions/lootboxes/lootboxes.lua @@ -0,0 +1,101 @@ +-- lootbox beacons + +return { + ["LootboxBeaconBronze"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx0]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconSilver"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx1]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconGold"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.6 1 1 1 0.3 0 0 0 0.01]], + size = 36, + ttl = 46, + sizegrowth = 0.4, + texture = [[circlefx2]], + alwaysvisible = true, + }, + }, + }, + ["LootboxBeaconPlatinum"] = { + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = true, + underwater = true, + properties = { + colormap = [[0 0 0 0.01 1 1 1 0.9 1 1 1 0.8 1 1 1 0.7 1 1 1 0.3 0 0 0 0.01]], + size = 38, + ttl = 54, + sizegrowth = 0.4, + texture = [[circlefx3]], + alwaysvisible = true, + }, + }, + }, + ["LootboxLightGold"] = { + useAirLos = false, + usedefaultexplosions = false, + ["heatcloud"] = { + air = true, + water = true, + ground = true, + unit = true, + count = 3, + properties = { + --alwaysVisible = true, + heat = 30, + texture = [[glow2]], + maxheat = 30, + heatFalloff = 1.4, + size = [[4.0 r0.4]], + sizeGrowth = [[-0.02 r0.02]], + sizemod = 0, + sizemodmod = 0, + speed = [[0.05 r-0.05, 0.05 r-0.05, 0.05 r-0.05]], + pos = [[0, 0.0, 0]], + useAirLos = false, + }, + }, + }, +} \ No newline at end of file diff --git a/Gamedata/explosions/scavengers/generic-scavenger-explosion-purple.lua b/Gamedata/explosions/scavengers/generic-scavenger-explosion-purple.lua new file mode 100644 index 000000000..580393fd4 --- /dev/null +++ b/Gamedata/explosions/scavengers/generic-scavenger-explosion-purple.lua @@ -0,0 +1,960 @@ +-- genericscavengerbuildingexplosion-small-purple +-- genericscavengerbuildingexplosion-large-purple +-- genericscavengerbuildingexplosion-medium-purple +-- genericscavengerbuildingexplosion-huge-purple + +return { + ["genericscavengerbuildingexplosion-small-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 5, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:scavenger_lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[200]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 8, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 0.5, + flashalpha = 0.6, + flashsize = 200, + ground = true, + ttl = 200, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + + smoke = { + air = true, + count = 8, + ground = true, + water = true, + underwater = true, + properties = { + agespeed = 0.01, + alwaysvisible = true, + color = 0.1, + pos = [[r-60 r60, 24, r-60 r60]], + size = 10, + sizeexpansion = 0.6, + speed = [[r-3 r0.5, 0.1 r1, r-3 r0.5]], + startsize = 10, + }, + }, + + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.25 0.25 0.5 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 30, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 30, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.9, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 16, + particlelife = 10, + particlelife = 10, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 12, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 10, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + unitpoofs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.2, + alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0.11 0 0.29 0.01 0.1 0.1 0.1 0.01]], + directional = false, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.05, 0]], + numparticles = 8, + particlelife = 5, + particlelifespread = 16, + particlesize = 20, + particlesizespread = 0, + particlespeed = 48, + particlespeedspread = 1, + pos = [[0, 2, 0]], + sizegrowth = 0.8, + sizemod = 1, + texture = [[randomdots]], + useairlos = false, + }, + }, + }, + + ["genericscavengerbuildingexplosion-large-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 12, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:scavenger_lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[200]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 8, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 2, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 2, + flashalpha = 0.6, + flashsize = 600, + ground = true, + ttl = 200, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + + smoke = { + air = true, + count = 8, + ground = true, + water = true, + underwater = true, + properties = { + agespeed = 0.01, + alwaysvisible = true, + color = 0.1, + pos = [[r-60 r60, 24, r-60 r60]], + size = 10, + sizeexpansion = 0.6, + speed = [[r-3 r2, 0.1 r1, r-3 r2]], + startsize = 10, + }, + }, + + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.25 0.25 0.5 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 120, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 10, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 120, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 10, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.9, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 16, + particlelife = 10, + particlelife = 10, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 20, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 30, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + unitpoofs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.2, + alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0.11 0 0.29 0.01 0.1 0.1 0.1 0.01]], + directional = false, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.05, 0]], + numparticles = 8, + particlelife = 5, + particlelifespread = 16, + particlesize = 20, + particlesizespread = 0, + particlespeed = 48, + particlespeedspread = 1, + pos = [[0, 2, 0]], + sizegrowth = 0.8, + sizemod = 1, + texture = [[randomdots]], + useairlos = false, + }, + }, + }, + + ["genericscavengerbuildingexplosion-medium-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 8, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:scavenger_lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[200]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 8, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 1, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 1, + flashalpha = 0.6, + flashsize = 400, + ground = true, + ttl = 200, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + + smoke = { + air = true, + count = 8, + ground = true, + water = true, + underwater = true, + properties = { + agespeed = 0.01, + alwaysvisible = true, + color = 0.1, + pos = [[r-60 r60, 24, r-60 r60]], + size = 10, + sizeexpansion = 0.6, + speed = [[r-3 r1, 0.1 r1, r-3 r1]], + startsize = 10, + }, + }, + + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.25 0.25 0.5 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 60, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 5, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 60, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 5, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.9, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 16, + particlelife = 10, + particlelife = 10, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 16, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 15, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + unitpoofs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.2, + alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0.11 0 0.29 0.01 0.1 0.1 0.1 0.01]], + directional = false, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.05, 0]], + numparticles = 8, + particlelife = 5, + particlelifespread = 16, + particlesize = 20, + particlesizespread = 0, + particlespeed = 48, + particlespeedspread = 1, + pos = [[0, 2, 0]], + sizegrowth = 0.8, + sizemod = 1, + texture = [[randomdots]], + useairlos = false, + }, + }, + }, + + ["genericscavengerbuildingexplosion-huge-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 18, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:scavenger_lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[200]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 8, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 3, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 3, + flashalpha = 0.6, + flashsize = 800, + ground = true, + ttl = 200, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + + smoke = { + air = true, + count = 8, + ground = true, + water = true, + underwater = true, + properties = { + agespeed = 0.01, + alwaysvisible = true, + color = 0.1, + pos = [[r-60 r60, 24, r-60 r60]], + size = 10, + sizeexpansion = 0.6, + speed = [[r-3 r3, 0.1 r1, r-3 r3]], + startsize = 10, + }, + }, + + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.25 0.25 0.5 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 160, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 14, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 160, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 14, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.9, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 16, + particlelife = 10, + particlelife = 10, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 26, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 40, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + unitpoofs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.2, + alwaysvisible = true, + colormap = [[1.0 1.0 1.0 0.04 0.11 0 0.29 0.01 0.1 0.1 0.1 0.01]], + directional = false, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.05, 0]], + numparticles = 8, + particlelife = 5, + particlelifespread = 16, + particlesize = 20, + particlesizespread = 0, + particlespeed = 48, + particlespeedspread = 1, + pos = [[0, 2, 0]], + sizegrowth = 0.8, + sizemod = 1, + texture = [[randomdots]], + useairlos = false, + }, + }, + }, + +} + diff --git a/Gamedata/explosions/scavengers/generic-scavenger-helper-explosions.lua b/Gamedata/explosions/scavengers/generic-scavenger-helper-explosions.lua new file mode 100644 index 000000000..5c71e3a7e --- /dev/null +++ b/Gamedata/explosions/scavengers/generic-scavenger-helper-explosions.lua @@ -0,0 +1,47 @@ +-- scavenger_lightning_stormbolt + +return { + ["scavenger_lightning_stormbolt"] = { + groundflash = { + circlealpha = 1, + circlegrowth = 0, + flashalpha = 0.3, + flashsize = 46, + ttl = 3, + color = { + [1] = 1, + [2] = 1, + [3] = 1, + }, + }, + lightningballs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 1, + colormap = [[0 0 0 0.01 1 1 1 0.01 0.5 0 0.5 0.01 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 0, + emitvector = [[0, 1, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = 3, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 20, + particlespeed = 0.01, + particlespeedspread = 0, + pos = [[-10 r10, 1.0, -10 r10]], + sizegrowth = 0, + sizemod = 1.0, + texture = [[lightbw]], + }, + }, + }, +} + diff --git a/Gamedata/explosions/scavengers/generic-scavenger-projectile-cegs.lua b/Gamedata/explosions/scavengers/generic-scavenger-projectile-cegs.lua new file mode 100644 index 000000000..48b553551 --- /dev/null +++ b/Gamedata/explosions/scavengers/generic-scavenger-projectile-cegs.lua @@ -0,0 +1,33 @@ +return { + ["scavengercegtag"] = { + smokeandfire = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.70, + alwaysvisible = true, + colormap = [[0.5 0.25 0.5 0.05 0.25 0.25 0.25 0.05 0 0 0 0.01]], + directional = true, + emitrot = 90, + emitrotspread = 0, + emitvector = [[0.0, 1, 0.0]], + gravity = [[0.0, 0.0, 0.0]], + numparticles = 2, + particlelife = 10, + particlelifespread = 4, + particlesize = 1, + particlesizespread = 15, + particlespeed = 1, + particlespeedspread = 1, + pos = [[0.0, 1, 0.0]], + sizegrowth = -0.1, + sizemod = 1, + texture = [[dirt]], + useairlos = true, + }, + }, + }, +} \ No newline at end of file diff --git a/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-lightning.lua b/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-lightning.lua new file mode 100644 index 000000000..05e49a2e5 --- /dev/null +++ b/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-lightning.lua @@ -0,0 +1,397 @@ +-- genericscavengershellexplosion-medium-lightning +-- genericscavengershellexplosion-small-lightning +-- genericscavengershellexplosion-large-lightning + +return { + ["genericscavengershellexplosion-medium-lightning"] = { + blueelectricityspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.03 0.5 0.5 0.9 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 10, + particlesizespread = 0, + particlespeed = 8, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[whitelightb]], + useairlos = false, + }, + }, + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 8, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 6, + flashalpha = 0.9, + flashsize = 100, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0, + [2] = 0.5, + [3] = 1, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[1 1 1 0.05 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 10, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[whitelightb]], + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 15, + speed = [[0, 1 0, 0]], + texture = [[brightblueexplo]], + }, + }, + }, + + ["genericscavengershellexplosion-small-lightning"] = { + blueelectricityspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.03 0.5 0.5 0.9 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 10, + particlesizespread = 0, + particlespeed = 3, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[whitelightb]], + useairlos = false, + }, + }, + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 5, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 3, + flashalpha = 0.9, + flashsize = 50, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0, + [2] = 0.5, + [3] = 1, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[1 1 1 0.05 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 5, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[whitelightb]], + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 10, + speed = [[0, 1 0, 0]], + texture = [[brightblueexplo]], + }, + }, + }, + + ["genericscavengershellexplosion-large-lightning"] = { + blueelectricityspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.03 0.5 0.5 0.9 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 10, + particlesizespread = 0, + particlespeed = 12, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[whitelightb]], + useairlos = false, + }, + }, + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 12, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 10, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:lightning_stormbolt]], + pos = [[-100 r200, 1, -100 r200]], + }, + }, + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 12, + flashalpha = 0.9, + flashsize = 150, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0, + [2] = 0.5, + [3] = 1, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[1 1 1 0.05 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 20, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[whitelightb]], + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 30, + speed = [[0, 1 0, 0]], + texture = [[brightblueexplo]], + }, + }, + }, + +} + diff --git a/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-purple.lua b/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-purple.lua new file mode 100644 index 000000000..5ed7fc8f4 --- /dev/null +++ b/Gamedata/explosions/scavengers/generic-scavenger-shell-explosion-purple.lua @@ -0,0 +1,529 @@ +-- genericscavengershellexplosion-medium-purple +-- genericscavengershellexplosion-small-purple +-- genericscavengershellexplosion-large-purple + +return { + ["genericscavengershellexplosion-medium-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 8, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[20]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 4, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 6, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 6, + flashalpha = 0.9, + flashsize = 100, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.20 0.10 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 60, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 5, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 60, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 5, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 8, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 15, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + }, + + ["genericscavengershellexplosion-small-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 5, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[20]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 2, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 3, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 3, + flashalpha = 0.9, + flashsize = 50, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.20 0.10 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 30, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 30, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 2, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 3, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 10, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + }, + + ["genericscavengershellexplosion-large-purple"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.3, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 12, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + + -- put this next to groundflash + explosionwave = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.10999999940395 0 0.28999999165535 0.05 0 0 0 0.0]], -- same as groundflash colors + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 0, 0]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = [[20]], -- same as groundflash ttl + particlelifespread = 0, + particlesize = 6, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8 + particlesizespread = 1, + particlespeed = [[8]], + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 12, -- same as groundflash circlegrowth + sizemod = 1.0, + texture = [[explosionwave]], + }, + }, + + groundflash = { + air = true, + alwaysvisible = true, + circlealpha = 0.6, + circlegrowth = 12, + flashalpha = 0.9, + flashsize = 150, + ground = true, + ttl = 20, + water = true, + underwater = true, + color = { + [1] = 0.50999999940395, + [2] = 0, + [3] = 0.68999999165535, + }, + }, + kickedupdirt = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.25 0.20 0.10 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 120, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 10, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + kickedupwater = { + class = [[CSimpleParticleSystem]], + count = 1, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + alwaysvisible = true, + colormap = [[0.7 0.7 0.9 0.35 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.1, 0]], + numparticles = 120, + particlelife = 2, + particlelifespread = 30, + particlesize = 2, + particlesizespread = 1, + particlespeed = 10, + particlespeedspread = 6, + pos = [[0, 1, 0]], + sizegrowth = 0.5, + sizemod = 1.0, + texture = [[wake]], + }, + }, + orangeexplosionspikes = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.8, + alwaysvisible = true, + colormap = [[0.7 0.8 0.9 0.03 0.9 0.5 0.2 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 8, + particlelife = 8, + particlelifespread = 0, + particlesize = 1, + particlesizespread = 0, + particlespeed = 12, + particlespeedspread = 2, + pos = [[0, 2, 0]], + sizegrowth = 1, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 2, + ground = true, + water = true, + underwater = true, + properties = { + alwaysvisible = true, + heat = 10, + heatfalloff = 1.1, + maxheat = 20, + pos = [[r-2 r2, 5, r-2 r2]], + size = 1, + sizegrowth = 30, + speed = [[0, 1 0, 0]], + texture = [[purplenovaexplo]], + }, + }, + }, + +} + diff --git a/Gamedata/explosions/scavengers/scaspawn-greentrail.lua b/Gamedata/explosions/scavengers/scaspawn-greentrail.lua new file mode 100644 index 000000000..89e0dbeb2 --- /dev/null +++ b/Gamedata/explosions/scavengers/scaspawn-greentrail.lua @@ -0,0 +1,207 @@ +-- Spawntrail for Scavenger Droppods + +return { + ["scaspawn-greentrail"] = { + usedefaultexplosions = false, + engine = { + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[0.00 1.00 0.00 0.01 0.00 1.00 0.00 0.01 0.00 1.00 0.00 0.01 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[none]], + length = [[-15 r3.5]], + sidetexture = [[muzzleside]], + size = 15.5, + sizegrowth = [[0.2 r0.3]], + ttl = 1, + }, + }, + fireglow = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 1, + colormap = [[0.00 1.00 0.00 0.01 0 0 0 0.01]], + directional = false, + emitrot = 0, + emitrotspread = 0, + emitvector = [[0.0, 0.0, 0.0]], + gravity = [[0.0, 0.1, 0.0]], + numparticles = 1, + particlelife = 2, + particlelifespread = 1, + particlesize = 40, + particlesizespread = 12, + particlespeed = 0, + particlespeedspread = 0, + pos = [[0.0, 0, 0.0]], + sizegrowth = -0.5, + sizemod = 1, + texture = [[dirt]], + useairlos = true, + }, + }, + exhale = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.00 0.80 0.00 0.1 0.00 0.50 0.00 0.05 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.2, 0]], + numparticles = 1, + particlelife = 40, + particlelifespread = 15, + particlesize = 15, + particlesizespread = 12, + particlespeed = 0.25, + particlespeedspread = 1.3, + pos = [[0, 1, 0]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + exhale2 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.00 1.00 0.00 0.15 0.00 1.00 0.00 0.1 0.00 1.00 0.00 0.15 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.75, 0]], + numparticles = 2, + particlelife = 30, + particlelifespread = 15, + particlesize = 4, + particlesizespread = 6, + particlespeed = 0.4, + particlespeedspread = 3, + pos = [[0, 1, 0]], + sizegrowth = -0.07, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + trail = { + + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[0 0 0 0.01 0.00 0.70 0.00 0.10 0.00 0.60 0.00 0.08 0.00 0.50 0.00 0.05 0.00 0.40 0.00 0.04 0.00 0.15 0.00 0.02 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[trans]], + length = -20, + sidetexture = [[smoketrail]], + size = 2.0, + sizegrowth = 0.05, + ttl = 40, + }, + }, + smoke = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.92, + colormap = [[0.00 1.00 0.00 0.05 0.00 0.90 0.00 0.66 0.00 0.75 0.00 0.56 0.00 0.60 0.00 0.44 0.00 0.45 0.00 0.28 0.00 0.30 0.00 0.13 0.00 0.15 0.00 0.05 0 0 0 0.01]], + directional = true, + emitrot = -180, + emitrotspread = 7, + emitvector = [[dir]], + gravity = [[0.0, -0.06, 0.0]], + numparticles = [[1.5 r1]], + particlelife = 15, + particlelifespread = 40, + particlesize = 4.6, + particlesizespread = 6.2, + particlespeed = 1.5, + particlespeedspread = 2.5, + pos = [[-15 r30, -15 r30, -15 r30]], + sizegrowth = 0.32, + sizemod = 1, + texture = [[smoke]], + useairlos = true, + }, + }, + dustparticles = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + underwater = true, + water = true, + properties = { + airdrag = 0.77, + colormap = [[0.00 1.00 0.00 0.8 0.00 1.00 0.00 0.9 0.00 1.00 0.00 0.5 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, -0.011, 0]], + numparticles = 1, + particlelife = 9, + particlelifespread = 6, + particlesize = 4, + particlesizespread = 0.8, + particlespeed = 0.05, + particlespeedspread = 0.6, + pos = [[0, 0, 0]], + sizegrowth = 0.03, + sizemod = 1.0, + texture = [[randomdots]], + }, + }, + spikes = { + air = true, + class = [[explspike]], + count = 2, + ground = true, + water = true, + properties = { + alpha = 0.6, + alphadecay = 0.08, + color = [[0.00 1.00 0.00]], + dir = [[-10 r20,-10 r20,-10 r20]], + length = 2, + width = 9, + }, + }, + }, + +} diff --git a/Gamedata/explosions/scavengers/scaspawn-trail.lua b/Gamedata/explosions/scavengers/scaspawn-trail.lua new file mode 100644 index 000000000..8b93b6890 --- /dev/null +++ b/Gamedata/explosions/scavengers/scaspawn-trail.lua @@ -0,0 +1,207 @@ +-- Spawntrail for Scavenger Droppods + +return { + ["scaspawn-trail"] = { + usedefaultexplosions = false, + engine = { + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[1 0.7 0.4 0.01 1.0 0.6 0.2 0.01 1.0 0.4 0.1 0.01 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[none]], + length = [[-15 r3.5]], + sidetexture = [[muzzleside]], + size = 15.5, + sizegrowth = [[0.2 r0.3]], + ttl = 1, + }, + }, + fireglow = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 1, + colormap = [[0.85 0.05 1.0 0.01 0 0 0 0.01]], + directional = true, + emitrot = 0, + emitrotspread = 0, + emitvector = [[0.0, 0.0, 0.0]], + gravity = [[0.0, 0, 0.0]], + numparticles = 1, + particlelife = 2, + particlelifespread = 1, + particlesize = 40, + particlesizespread = 12, + particlespeed = 0, + particlespeedspread = 0, + pos = [[0.0, 20, 0.0]], + sizegrowth = -0.5, + sizemod = 1, + texture = [[dirt]], + useairlos = true, + }, + }, + exhale = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.75 0.08 1.0 0.1 0.45 0.04 0.6 0.1 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.2, 0]], + numparticles = 2, + particlelife = 40, + particlelifespread = 15, + particlesize = 19, + particlesizespread = 14, + particlespeed = 0.25, + particlespeedspread = 1.2, + pos = [[0, 1, 0]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + exhale2 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.8 0.1 1.0 0.15 0.55 0.06 0.7 0.1 0.028 0.005 0.04 0.15 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.8, 0]], + numparticles = 2, + particlelife = 30, + particlelifespread = 15, + particlesize = 7, + particlesizespread = 6, + particlespeed = 0.25, + particlespeedspread = 1.9, + pos = [[0, 1, 0]], + sizegrowth = -0.07, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + trail = { + + air = true, + class = [[CBitmapMuzzleFlame]], + count = 1, + ground = true, + underwater = 1, + water = true, + properties = { + alwaysVisible = true, + colormap = [[0 0 0 0.01 0.035 0.025 0.015 0.10 0.035 0.025 0.015 0.08 0.035 0.025 0.015 0.05 0.035 0.025 0.015 0.04 0.035 0.025 0.015 0.02 0 0 0 0.01]], + dir = [[dir]], + frontoffset = 0, + fronttexture = [[trans]], + length = -20, + sidetexture = [[smoketrail]], + size = 2.0, + sizegrowth = 0.05, + ttl = 40, + }, + }, + smoke = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.92, + colormap = [[0.006 0.006 0.006 0.05 0.05 0.04 0.033 0.66 0.04 0.038 0.034 0.56 0.04 0.036 0.032 0.44 0.025 0.025 0.025 0.28 0.014 0.014 0.014 0.13 0.006 0.006 0.006 0.05 0 0 0 0.01]], + directional = true, + emitrot = -180, + emitrotspread = 7, + emitvector = [[dir]], + gravity = [[0.0, -0.02, 0.0]], + numparticles = [[1.5 r1]], + particlelife = 15, + particlelifespread = 40, + particlesize = 4.6, + particlesizespread = 6.2, + particlespeed = 1.5, + particlespeedspread = 2.5, + pos = [[-15 r30, -15 r30, -15 r30]], + sizegrowth = 0.32, + sizemod = 1, + texture = [[smoke]], + useairlos = true, + }, + }, + dustparticles = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + underwater = true, + water = true, + properties = { + airdrag = 0.77, + colormap = [[0.85 0.66 0.4 0.8 1 0.74 0.48 0.9 0.75 0.45 0.25 0.5 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, -0.011, 0]], + numparticles = 1, + particlelife = 9, + particlelifespread = 6, + particlesize = 4, + particlesizespread = 0.8, + particlespeed = 0.05, + particlespeedspread = 0.6, + pos = [[0, 0, 0]], + sizegrowth = 0.03, + sizemod = 1.0, + texture = [[randomdots]], + }, + }, + spikes = { + air = true, + class = [[explspike]], + count = 2, + ground = true, + water = true, + properties = { + alpha = 0.6, + alphadecay = 0.08, + color = [[1.0, 0.5, 0.2]], + dir = [[-10 r20,-10 r20,-10 r20]], + length = 2, + width = 9, + }, + }, + }, + +} \ No newline at end of file diff --git a/Gamedata/explosions/scavengers/scav-effects.lua b/Gamedata/explosions/scavengers/scav-effects.lua new file mode 100644 index 000000000..b53813763 --- /dev/null +++ b/Gamedata/explosions/scavengers/scav-effects.lua @@ -0,0 +1,812 @@ +-- Effects for Scavengers + +return { + ["scavradiation"] = { + usedefaultexplosions = false, + grounddust = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + unit = false, + properties = { + airdrag = 0.96, + colormap = [[0 0 0 0.0 0.30 0.016 0.6 0.18 0.14 0.007 0.37 0.09 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 60, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.035, 0]], + numparticles = 6, + particlelife = 180, + particlelifespread = 120, + particlesize = 150, + particlesizespread = 450, + particlespeed = 6.5, + particlespeedspread = 4.5, + pos = [[-200 r900, -50 r50, -200 r900]], + sizegrowth = 0.3, + sizemod = 1, + texture = [[smoke_puff]], + alwaysvisible = true, + }, + }, + }, + ["scav_commander_explosion"] = { + centerflare = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + heat = 10, + heatfalloff = 1.2, + maxheat = 14, + pos = [[r-2 r2, 10, r-2 r2]], + size = 4.8, + sizegrowth = 14, + speed = [[0, 1 0, 0]], + texture = [[flare]], + }, + }, + groundflash_small = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = false, + underwater = false, + properties = { + colormap = [[0.6 0.15 1 0.4 0 0 0 0.01]], + size = 200, + sizegrowth = -1.5, + ttl = 26, + texture = [[groundflash]], + }, + }, + groundflash_large = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = false, + underwater = false, + properties = { + colormap = [[0.6 0.15 1 0.175 0 0 0 0.01]], + size = 250, + sizegrowth = -1.5, + ttl = 26, + texture = [[groundflash]], + }, + }, + groundflash_white = { + class = [[CSimpleGroundFlash]], + count = 1, + air = true, + ground = true, + water = false, + underwater = false, + properties = { + colormap = [[0.6 0.15 1 0.77 0 0 0 0.01]], + size = 190, + sizegrowth = 0, + ttl = 7, + texture = [[groundflash]], + }, + }, + pop1 = { + class=[[explo]], + air=1, + water=1, + ground=1, + count=2, + properties ={ + alwaysVisible=1, + texture=[[explo]], + heat = 10, + maxheat = 10, + heatFalloff = 1.1, + size = 18, + sizeGrowth = 20, + pos = [[r-10 r10, 20, r-10 r10]], + speed=[[0, 0, 0]], + }, + }, + explosion = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.87, + colormap = [[0.6 0.15 1 0.11 0.5 0.12 0.9 0.08 0.35 0.05 0.66 0.033 0.27 0.03 0.55 0.011 0 0 0 0]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0, 1.1, 0]], + gravity = [[0, -0.01, 0]], + numparticles = 15, + particlelife = 2.3, + particlelifespread = 15, + particlesize = 16.5, + particlesizespread = 16, + particlespeed = 6.8, + particlespeedspread = 5.3, + pos = [[0, 2, 0]], + sizegrowth = 0.4, + sizemod = 1, + texture = [[flashside2]], + useairlos = false, + }, + }, + dustparticles = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + underwater = true, + water = true, + properties = { + airdrag = 0.88, + colormap = [[1 0.85 0.6 0.22 1 0.63 0.3 0.12 1 0.52 0.2 0.06 0 0 0 0.01]], + directional = true, + emitrot = 45, + emitrotspread = 32, + emitvector = [[0.5, 1, 0.5]], + gravity = [[0, -0.011, 0]], + numparticles = 5, + particlelife = 11.6, + particlelifespread = 4.5, + particlesize = 6.5, + particlesizespread = 1.6, + particlespeed = 4.75, + particlespeedspread = 0.8, + pos = [[0, 0, 0]], + sizegrowth = 2.2, + sizemod = 1.0, + texture = [[randomdots]], + }, + }, + innersmoke = { + class = [[CSimpleParticleSystem]], + water=0, + air=1, + ground=1, + count=1, + properties = { + airdrag=0.80, + alwaysVisible = 0, + sizeGrowth = 0.66, + sizeMod = 1, + pos = [[r-1 r2, 0, r-1 r2]], + emitRot=33, + emitRotSpread=50, + emitVector = [[0, 1, 0]], + gravity = [[0, 0.02, 0]], + colormap=[[1 0.66 0.4 0.45 0.3 0.2 0.13 0.4 0.18 0.15 0.11 0.35 0.13 0.12 0.1 0.32 0.11 0.1 0.093 0.25 0.063 0.062 0.058 0.17 0 0 0 0.01]], + Texture=[[graysmoke]], + particleLife=35, + particleLifeSpread=80, + numparticles=7, + particleSpeed=7, + particleSpeedSpread=9, + particleSize=14, + particleSizeSpread=23, + directional=0, + }, + }, + outersmoke = { + class = [[CSimpleParticleSystem]], + water=0, + air=1, + ground=1, + count=1, + properties = { + airdrag=0.7, + alwaysVisible = 0, + sizeGrowth = 0.35, + sizeMod = 1, + pos = [[r-1 r2, 0, r-1 r2]], + emitRot=33, + emitRotSpread=50, + emitVector = [[0, 1, 0]], + gravity = [[0, -0.02, 0]], + colormap=[[1 0.66 0.4 0.45 0.3 0.2 0.13 0.4 0.18 0.15 0.11 0.35 0.13 0.12 0.1 0.32 0.11 0.1 0.093 0.25 0.063 0.062 0.058 0.17 0 0 0 0.01]], + Texture=[[graysmoke]], + particleLife=25, + particleLifeSpread=60, + numparticles=4, + particleSpeed=5, + particleSpeedSpread=8, + particleSize=31, + particleSizeSpread=23, + directional=0, + }, + }, + sparks = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.85, + colormap = [[0.6 0.15 1 0.017 0.4 0.05 0.8 0.011 0 0 0 0]], + directional = true, + emitrot = 30, + emitrotspread = 40, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.05, 0]], + numparticles = 7, + particlelife = 14, + particlelifespread = 18, + particlesize = 44, + particlesizespread = 38, + particlespeed = 19.5, + particlespeedspread = 11.4, + pos = [[0, 4, 0]], + sizegrowth = 1, + sizemod = 0.78, + texture = [[gunshotxl]], + useairlos = false, + }, + }, + shockwave = { + class = [[CSpherePartSpawner]], + count = 1, + ground = true, + water = true, + underwater = true, + air = true, + properties = { + alpha = 0.6, + ttl = 11, + expansionSpeed = 12, + color = [[0.6, 0.15, 1]], + --alwaysvisible = true, + }, + }, + dirt = { + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + unit = false, + water = false, + air = false, + underwater = false, + properties = { + airdrag = 1, + colormap = [[0.04 0.03 0.01 0 0.1 0.07 0.033 0.66 0.1 0.07 0.033 0.58 0.1 0.07 0.033 0.5 0.1 0.07 0.033 0.4 0 0 0 0 ]], + directional = true, + emitrot = 15, + emitrotspread = 36, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.33, 0]], + numparticles = 9, + particlelife = 32, + particlelifespread = 7, + particlesize = 1.95, + particlesizespread = -1.4, + particlespeed = 3.3, + particlespeedspread = 3, + pos = [[0, 6, 0]], + sizegrowth = -0.01, + sizemod = 1, + texture = [[bigexplosmoke]], + useairlos = false, + }, + }, + dirt2 = { + class = [[CSimpleParticleSystem]], + count = 1, + ground = false, + unit = false, + nounit = true, + water = false, + air = false, + underwater = false, + properties = { + airdrag = 1, + colormap = [[0.04 0.03 0.01 0 0.1 0.07 0.033 0.66 0.1 0.07 0.033 0.58 0.1 0.07 0.033 0.5 0.1 0.07 0.033 0.4 0 0 0 0 ]], + directional = true, + emitrot = 1, + emitrotspread = 13, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.33, 0]], + numparticles = 5, + particlelife = 35, + particlelifespread = 8, + particlesize = 1.9, + particlesizespread = -1.4, + particlespeed = 3.6, + particlespeedspread = 3.4, + pos = [[0, 6, 0]], + sizegrowth = -0.01, + sizemod = 1, + texture = [[bigexplosmoke]], + useairlos = false, + }, + }, + shard1 = { + class = [[CSimpleParticleSystem]], + count = 1, + unit = true, + nounit = false, + underwater = false, + properties = { + airdrag = 0.93, + colormap = [[1 0.55 0.45 1 0.55 0.44 0.38 1 0.36 0.34 0.33 1 0 0 0 0.01]], + directional = true, + emitrot = 35, + emitrotspread = 30, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.3, 0]], + numparticles = [[1 r2]], + particlelife = 36, + particlelifespread = 0, + particlesize = 2.0, + particlesizespread = 2.3, + particlespeed = 2.5, + particlespeedspread = 4, + pos = [[0, 2, 0]], + sizegrowth = 0, + sizemod = 1, + texture = [[shard1]], + useairlos = false, + }, + }, + shard2 = { + class = [[CSimpleParticleSystem]], + count = 1, + unit = true, + nounit = false, + underwater = false, + properties = { + airdrag = 0.93, + colormap = [[1 0.55 0.45 1 0.55 0.44 0.38 1 0.36 0.34 0.33 1 0 0 0 0.01]], + directional = true, + emitrot = 35, + emitrotspread = 30, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.3, 0]], + numparticles = [[1 r2]], + particlelife = 36, + particlelifespread = 0, + particlesize = 2, + particlesizespread = 2.35, + particlespeed = 2.5, + particlespeedspread = 4, + pos = [[0, 2, 0]], + sizegrowth = 0, + sizemod = 1, + texture = [[shard2]], + useairlos = false, + }, + }, + shard3 = { + class = [[CSimpleParticleSystem]], + count = 1, + unit = true, + nounit = false, + underwater = false, + properties = { + airdrag = 0.93, + colormap = [[1 0.55 0.45 1 0.55 0.44 0.38 1 0.36 0.34 0.33 1 0 0 0 0.01]], + directional = true, + emitrot = 35, + emitrotspread = 30, + emitvector = [[0, 1, 0]], + gravity = [[0, -0.3, 0]], + numparticles = [[1 r1.5]], + particlelife = 36, + particlelifespread = 0, + particlesize = 2, + particlesizespread = 2.35, + particlespeed = 2.5, + particlespeedspread = 4, + pos = [[0, 2, 0]], + sizegrowth = 0, + sizemod = 1, + texture = [[shard3]], + useairlos = false, + }, + }, + clouddust = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + properties = { + airdrag = 0.92, + colormap = [[0 0 0 0.01 0.025 0.02 0.02 0.033 0.06 0.055 0.055 0.072 0.043 0.04 0.04 0.055 0.0238 0.022 0.022 0.03 0 0 0 0.01]], + directional = false, + emitrot = 45, + emitrotspread = 4, + emitvector = [[0.5, 1, 0.5]], + gravity = [[0, 0.025, 0]], + numparticles = 2, + particlelife = 75, + particlelifespread = 120, + particlesize = 66, + particlesizespread = 44, + particlespeed = 1.2, + particlespeedspread = 2.5, + pos = [[0, 4, 0]], + sizegrowth = 0.18, + sizemod = 1.0, + texture = [[bigexplosmoke]], + }, + }, + outerflash = { + air = true, + class = [[heatcloud]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + heat = 14, + heatfalloff = 1.1, + maxheat = 40, + pos = [[r-2 r2, 4, r-2 r2]], + size = 17, + sizegrowth = 1.1, + speed = [[0, 1 0, 0]], + texture = [[orangenovaexplo]], + }, + }, + }, + ["scavradiation-beacon"] = { + usedefaultexplosions = false, + grounddust = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + unit = false, + properties = { + airdrag = 0.95, + colormap = [[0 0 0 0.0 0.40 0.020 0.8 0.18 0.14 0.007 0.37 0.09 0 0 0 0.0]], + directional = false, + emitrot = 90, + emitrotspread = 60, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.035, 0]], + numparticles = 3, + particlelife = 140, + particlelifespread = 100, + particlesize = 50, + particlesizespread = 125, + particlespeed = 4.5, + particlespeedspread = 3.5, + pos = [[0 r150, 100 r50, 0 r150]], + sizegrowth = 0.3, + sizemod = 1, + texture = [[smoke_puff]], + useairlos = true, + --alwaysvisible = true, + }, + }, + }, + ["scavradiation-lightning"] = { + usedefaultexplosions = false, + electricstorm = { + air = true, + class = [[CExpGenSpawner]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + delay = [[10 r200]], + explosiongenerator = [[custom:lightning_storm_scav]], + pos = [[-50 r100, 20, -50 r100]], + }, + }, + electricstormxl = { + air = true, + class = [[CExpGenSpawner]], + count = 1, + ground = true, + water = false, + underwater = false, + properties = { + delay = [[50 r120]], + explosiongenerator = [[custom:lightning_stormflares_scav]], + pos = [[-50 r250, 50 r25, -50 r250]], + }, + }, + }, + ["lightning_storm_scav"] = { + groundflash = { + circlealpha = 1, + circlegrowth = 0, + flashalpha = 0.17, + flashsize = 40, + ttl = 3, + color = { + [1] = 0.66, + [2] = 0.66, + [3] = 1, + }, + alwaysvisible = true, + }, + lightningballs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 1, + colormap = [[0 0 0 0.01 0.66 0.66 1 0.05 0.66 0.66 1 0.01 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 120, + emitvector = [[1, 1, 1]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = 2, + particlelifespread = 5, + particlesize = 96, + particlesizespread = 100, + particlespeed = 0.06, + particlespeedspread = 0, + pos = [[-10 r10, 1.0, -10 r10]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[whitelightb]], + alwaysvisible = true, + }, + }, + }, + ["lightning_stormflares_scav"] = { + groundflash = { + circlealpha = 0.9, + circlegrowth = -0.05, + flashalpha = 0.80, + flashsize = 300, + ttl = 80, + color = { + [1] = 0.4, + [2] = 0.1, + [3] = 0.8, + }, + alwaysvisible = true, + }, + lightningballs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 0.92, + colormap = [[0 0 0 0.01 0.3 0.05 0.6 0.025 0.45 0.1 0.8 0.01 0.3 0.05 0.6 0.005 0 0 0 0.01]], + directional = false, + emitrot = 80, + emitrotspread = 120, + emitvector = [[1, 1, 1]], + gravity = [[0, 0.4, 0]], + numparticles = 2, + particlelife = 33, + particlelifespread = 45, + particlesize = 16, + particlesizespread = 200, + particlespeed = 0.12, + particlespeedspread = 0.32, + pos = [[-10 r25, 1.0, -10 r25]], + sizegrowth = -0.4, + sizemod = 1.0, + texture = [[flare1]], + alwaysvisible = true, + }, + }, + }, + ["scav-damage"] = { + usedefaultexplosions = false, + -- engine = { + -- air = true, + -- class = [[CBitmapMuzzleFlame]], + -- count = 1, + -- ground = true, + -- underwater = 1, + -- water = true, + -- properties = { + -- alwaysVisible = true, + -- colormap = [[1 0.7 0.4 0.01 1.0 0.6 0.2 0.01 1.0 0.4 0.1 0.01 0 0 0 0.01]], + -- dir = [[dir]], + -- frontoffset = 0, + -- fronttexture = [[none]], + -- length = [[-15 r3.5]], + -- sidetexture = [[muzzleside]], + -- size = 15.5, + -- sizegrowth = [[0.2 r0.3]], + -- ttl = 1, + -- }, + -- }, + lightningballs = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + underwater = true, + properties = { + airdrag = 1, + colormap = [[0 0 0 0.01 0.66 0.66 1 0.10 0.66 0.66 1 0.01 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 120, + emitvector = [[1, 1, 1]], + gravity = [[0, 0, 0]], + numparticles = 1, + particlelife = 3, + particlelifespread = 5, + particlesize = 13, + particlesizespread = 40, + particlespeed = 0.04, + particlespeedspread = 0, + pos = [[-10 r10, -25, -10 r10]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[whitelightb]], + }, + }, + fireglow = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 1, + colormap = [[0.9 0.15 1.0 0.5 0 0 0 0.01]], + directional = true, + emitrot = 0, + emitrotspread = 0, + emitvector = [[0.0, 0.0, 0.0]], + gravity = [[0.0, 0, 0.0]], + numparticles = 1, + particlelife = 2, + particlelifespread = 1, + particlesize = 20, + particlesizespread = 12, + particlespeed = 0, + particlespeedspread = 0, + pos = [[0.0, 0, 0.0]], + sizegrowth = -0.5, + sizemod = 1, + texture = [[dirt]], + useairlos = true, + }, + }, + exhale = { + + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.8 0.15 1.0 0.3 0.6 0.06 0.8 0.2 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.2, 0]], + numparticles = 2, + particlelife = 40, + particlelifespread = 15, + particlesize = 11, + particlesizespread = 14, + particlespeed = 0.25, + particlespeedspread = 1.2, + pos = [[0, 1, 0]], + sizegrowth = -0.2, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + exhale2 = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + alwaysVisible = true, + airdrag = 0.87, + colormap = [[0.8 0.1 1.0 0.25 0.55 0.06 0.7 0.1 0.028 0.005 0.04 0.25 0.0 0.0 0.0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 5, + emitvector = [[0, 1, 0]], + gravity = [[0, 0.5, 0]], + numparticles = 2, + particlelife = 30, + particlelifespread = 15, + particlesize = 6, + particlesizespread = 6, + particlespeed = 0.25, + particlespeedspread = 1.9, + pos = [[0, 1, 0]], + sizegrowth = -0.07, + sizemod = 1.0, + texture = [[smoke-chickens]], + }, + }, + smoke = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + water = true, + properties = { + airdrag = 0.92, + colormap = [[0.012 0.012 0.012 0.05 0.10 0.08 0.066 0.66 0.08 0.076 0.086 0.56 0.08 0.076 0.084 0.44 0.05 0.05 0.05 0.28 0.028 0.028 0.028 0.13 0.012 0.012 0.012 0.05 0 0 0 0.01]], + directional = true, + emitrot = -180, + emitrotspread = 7, + emitvector = [[dir]], + gravity = [[0.0, 0.02, 0.0]], + numparticles = [[1.5 r1]], + particlelife = 15, + particlelifespread = 40, + particlesize = 4.6, + particlesizespread = 6.2, + particlespeed = 1.5, + particlespeedspread = 2.5, + pos = [[-15 r30, -15 r30, -15 r30]], + sizegrowth = 0.32, + sizemod = 1, + texture = [[smoke]], + useairlos = true, + }, + }, + dustparticles = { + air = true, + class = [[CSimpleParticleSystem]], + count = 1, + ground = true, + underwater = true, + water = true, + properties = { + airdrag = 0.77, + colormap = [[0.85 0.66 0.4 0.8 1 0.74 0.48 0.9 0.75 0.45 0.25 0.5 0 0 0 0.01]], + directional = true, + emitrot = 80, + emitrotspread = 15, + emitvector = [[dir]], + gravity = [[0, -0.011, 0]], + numparticles = 1, + particlelife = 9, + particlelifespread = 6, + particlesize = 4, + particlesizespread = 0.8, + particlespeed = 0.05, + particlespeedspread = 0.6, + pos = [[0, 0, 0]], + sizegrowth = 0.06, + sizemod = 1.0, + texture = [[randomdots]], + }, + }, + }, + +} \ No newline at end of file diff --git a/Gamedata/featuredefs_post.lua b/Gamedata/featuredefs_post.lua index 0afcd710d..d2617896d 100644 --- a/Gamedata/featuredefs_post.lua +++ b/Gamedata/featuredefs_post.lua @@ -19,35 +19,61 @@ local function istable(x) return (type(x) == 'table') end local function isnumber(x) return (type(x) == 'number') end local function isstring(x) return (type(x) == 'string') end local spGetModOptions = Spring.GetModOptions - -------------------------------------------------------------------------------- if spGetModOptions then for name, fd in pairs(FeatureDefs) do - if( - ( - tonumber(fd["footprintz"]) <= 8 + + if fd["footprintz"] == 0 or fd["footprintz"] == nil then + fd["footprintz"] = 1 + end + if fd["footprintx"] == 0 or fd["footprintx"] == nil then + fd["footprintx"] = 1 + end + + if fd["footprintz"] ~= nil and fd["footprintx"] ~= nil then + if tonumber(fd["footprintz"]) <= 8 or tonumber(fd["footprintx"]) <= 8 or string.lower(fd["category"]) == "vegitation" - or string.lower(fd["category"]) == "vegetation" - ) - and (not fd["name"] or string.lower(fd["name"]) ~= "ammobox") - ) then - fd["blocking"] = false - if (not fd.customparams) then - fd.customparams = {} + or string.lower(fd["category"]) == "vegetation" then + + fd["blocking"] = false + if (not fd.customparams) then + fd.customparams = {} + end + + -- if (not fd.customparams.provide_cover) then + -- fd.customparams.provide_cover = 1 + -- end end - if (not fd.customparams.provide_cover) then - fd.customparams.provide_cover = 1 --- Spring.Echo("Feature["..name.."] is providing cover!") - end end -end - -for name, fd in pairs(FeatureDefs) do - fd.metal = 0 - fd.energy = 0 + + -- Set Reclaimtime that isn't insane. Default engine reclaimtime is (m+e) * 6 which is arbitrary as all hell. + if tonumber(fd["metal"]) == nil or tonumber(fd["metal"]) == 0 then + fd.metal = 1 + end + if tonumber(fd["energy"]) == nil or tonumber(fd["energy"]) == 0 then + fd.energy = 1 + end + + local reclaimvalue = (tonumber(fd["metal"]) + tonumber(fd["energy"])) / 4 + + fd.reclaimtime = reclaimvalue + + -- Reset maximum feature values + -- if tonumber(fd["metal"]) == nil or tonumber(fd["metal"]) == 0 then + -- fd.metal = 100 + -- end + -- if tonumber(fd["metal"]) > 100 then + -- fd.metal = 100 + -- end + -- if tonumber(fd["energy"]) == nil or tonumber(fd["energy"]) == 0 then + -- fd.energy = 100 + -- end + -- if tonumber(fd["energy"]) > 1 then + -- fd.energy = 100 + -- end end diff --git a/Gamedata/icontypes.lua b/Gamedata/icontypes.lua index 273b0f4e1..c84db57cc 100644 --- a/Gamedata/icontypes.lua +++ b/Gamedata/icontypes.lua @@ -219,13 +219,13 @@ local icontypes = { radar = { bitmap='icons/radar.png', - size=3.5, + size=1, radiusadjust=0, }, radarjam = { bitmap='icons/radarjam.png', - size=3.5, + size=1, radiusadjust=0, }, @@ -292,7 +292,7 @@ local icontypes = { commander = { bitmap='icons/commander.png', - size=3, + size=1, radiusadjust=3, }, diff --git a/Gamedata/modrules.lua b/Gamedata/modrules.lua index 30328067e..9f1da3641 100644 --- a/Gamedata/modrules.lua +++ b/Gamedata/modrules.lua @@ -21,7 +21,7 @@ local modrules = { allowCrushingAlliedUnits = false, -- defaults to false allowUnitCollisionDamage = false, -- defaults to false allowUnitCollisionOverlap = true, -- defaults to true -- this lets units clump close together when moving, after which they are pushed apart - allowGroundUnitGravity = false, + allowGroundUnitGravity = false, }, construction = { @@ -32,12 +32,12 @@ local modrules = { reclaim = { - multiReclaim = 1, -- defaults to 0 + multiReclaim = 0, -- defaults to 0 reclaimMethod = 0, -- defaults to 1 unitMethod = 0, -- defaults to 1 unitEnergyCostFactor = 0, -- defaults to 0 - unitEfficiency = 0, -- defaults to 1 + unitEfficiency = 1, -- defaults to 1 featureEnergyCostFactor = 0, -- defaults to 0 allowEnemies = false, -- defaults to true @@ -64,8 +64,9 @@ local modrules = { requireSonarUnderWater = false, -- defaults to true los = { - losMipLevel = 3, -- defaults to 1 - airMipLevel = 4, -- defaults to 2 + losMipLevel = 1, -- defaults to 1 + airMipLevel = 1, -- defaults to 2 + radarMipLevel = 2, }, }, diff --git a/Gamedata/morph_defs.lua b/Gamedata/morph_defs.lua index 282f6533f..a888e8c9f 100644 --- a/Gamedata/morph_defs.lua +++ b/Gamedata/morph_defs.lua @@ -23,70 +23,107 @@ local morphDefs = { --beginig of morphDefs local devolution = (-1 > 0) -local energyCost_ecommander = 200 +local energyCost_ecommander = 100 local timeToBuild_ecommander = energyCost_ecommander * 0.10 -local energyCost_ecommandercloak = 200 +local energyCost_ecommanderhealer = 100 +local timeToBuild_ecommanderhealer = energyCost_ecommanderhealer * 0.10 + +local energyCost_ecommandercloak = 100 local timeToBuild_ecommandercloak = energyCost_ecommandercloak * 0.10 -local energyCost_ecommandershield = 200 +local energyCost_ecommandershield = 100 local timeToBuild_ecommandershield = energyCost_ecommandershield * 0.10 -local energyCost_ecommanderbuild = 200 +local energyCost_ecommanderbuild = 100 local timeToBuild_ecommanderbuild = energyCost_ecommanderbuild * 0.10 -local energyCost_ecommanderfactory = 200 +local energyCost_ecommanderfactory = 100 local timeToBuild_ecommanderfactory = energyCost_ecommanderfactory * 0.10 -local energyCost_ecommanderbattle = 200 +local energyCost_ecommanderbattle = 3000 local timeToBuild_ecommanderbattle = energyCost_ecommanderbattle * 0.10 -local energyCost_ecommandermeteor = 12000 -local timeToBuild_ecommandermeteor = energyCost_ecommandermeteor * 0.01 +local energyCost_ecommandermeteor = 6000 +local timeToBuild_ecommandermeteor = energyCost_ecommandermeteor * 0.10 + +local energyCost_eradar2_up1 = 450 +local timeToBuild_eradar2_up1 = energyCost_eradar2_up1 * 0.10 -local energyCost_factory_up1 = 1200 +local energyCost_factory_up1 = 600 local timeToBuild_factory_up1 = energyCost_factory_up1 * 0.10 -local energyCost_etech2 = 1200 +local energyCost_etech2 = 600 local timeToBuild_etech2 = energyCost_etech2 * 0.10 -local energyCost_etech3 = 4000 +local energyCost_etech3 = 2000 local timeToBuild_etech3 = energyCost_etech3 * 0.10 -local energyCost_zlair = 600 -local timeToBuild_zlair = energyCost_zlair * 0.20 +local energyCost_zarmtech1 = 300 +local timeToBuild_zarmtech1 = energyCost_zarmtech1 * 0.10 + +local energyCost_zarmtech2 = 600 +local timeToBuild_zarmtech2 = energyCost_zarmtech2 * 0.10 -local energyCost_zhive = 2000 -local timeToBuild_zhive = energyCost_zhive * 0.20 +local energyCost_zarmtech3 = 2000 +local timeToBuild_zarmtech3 = energyCost_zarmtech3 * 0.10 local energyCost_zespire4 = 200 -local timeToBuild_zespire4 = energyCost_zespire4 * 0.20 +local timeToBuild_zespire4 = energyCost_zespire4 * 0.10 local energyCost_zespire5 = 200 -local timeToBuild_zespire5 = energyCost_zespire5 * 0.20 +local timeToBuild_zespire5 = energyCost_zespire5 * 0.10 -local energyCost_elightturret2 = 150 +local energyCost_elightturret2 = 75 local timeToBuild_elightturret2 = energyCost_elightturret2 * 0.10 -local energyCost_eheavyturret2 = 250 +local energyCost_eheavyturret2 = 125 local timeToBuild_eheavyturret2 = energyCost_eheavyturret2 * 0.10 -local energyCost_euwturret = 100 +local energyCost_euwturret = 50 local timeToBuild_euwturret = energyCost_euwturret * 0.10 -local energyCost_emetalextractor_up1 = 1200 -local timeToBuild_emetalextractor_up1 = energyCost_emetalextractor_up1 * 0.10 +local energyCost_eflakturret = 60 * 10 +local timeToBuild_eflakturret = energyCost_eflakturret / 10 + +-- energycost = time * rate +-- time = energycost / rate + +--Loz Commander Upgrades + +local energyCost_lozcommander_up1 = 60 * 10 +local timeToBuild_lozcommander_up1 = energyCost_lozcommander_up1 / 10 + +local energyCost_lozcommander_up2 = 180 * 25 +local timeToBuild_lozcommander_up2 = energyCost_lozcommander_up2 / 25 + +local energyCost_lozcommander_up3 = 300 * 50 +local timeToBuild_lozcommander_up3 = energyCost_lozcommander_up3 / 50 + +local energyCost_lozcommander_up4 = 480 * 100 +local timeToBuild_lozcommander_up4 = energyCost_lozcommander_up4 / 100 + +-- + +local energyCost_emetalextractor_up1 = 60 * 2 +local timeToBuild_emetalextractor_up1 = energyCost_emetalextractor_up1 / 2 -local energyCost_zmex_up1 = 600 -local timeToBuild_zmex_up1 = energyCost_zmex_up1 * 0.20 +local energyCost_emetalextractor_up2 = 300 * 25 +local timeToBuild_emetalextractor_up2 = energyCost_emetalextractor_up2 / 25 + +local energyCost_emetalextractor_up3 = 480 * 50 +local timeToBuild_emetalextractor_up3 = energyCost_emetalextractor_up3 / 50 + +local energyCost_zmex_up1 = 1200 +local timeToBuild_zmex_up1 = energyCost_zmex_up1 * 0.10 local energyCost_xmetalextractor = 1200 local timeToBuild_xmetalextractor = energyCost_xmetalextractor * 0.10 -local energyCost_eorb = 300 +local energyCost_eorb = 150 local timeToBuild_eorb = energyCost_eorb * 0.10 -local energyCost_eartyturret = 800 +local energyCost_eartyturret = 400 local timeToBuild_eartyturret = energyCost_eartyturret * 0.10 local energyCost_ehbotturret = 0 @@ -95,7 +132,7 @@ local timeToBuild_ehbotturret = 2 local energyCost_ehbot = 0 local timeToBuild_ehbot = 10 -local energyCost_eartytanksauration = 300 +local energyCost_eartytanksauration = 150 local timeToBuild_eartytanksauration = energyCost_eartytanksauration * 0.10 local energyCost_kargannethturret = 0 @@ -105,7 +142,74 @@ local energyCost_karganneth = 0 local timeToBuild_karganneth = 10 local morphDefs = { + +--lozcommander + + lozcommander = { + { + into = 'lozcommander_up1', + time = timeToBuild_lozcommander_up1, + cmdname = [[Tech 1]], + energy = energyCost_lozcommander_up1, + metal = 0, + text = 'Evolve Tech 1 with upgraded weapons and armor', + }, + }, + + lozcommander_up1 = { + { + into = 'lozcommander_up2', + time = timeToBuild_lozcommander_up2, + cmdname = [[Tech 2]], + energy = energyCost_lozcommander_up2, + metal = 0, + text = 'Evolve Tech 2 with upgraded weapons and armor', + require = [[tech1]], + }, + }, + + lozcommander_up2 = { + { + into = 'lozcommander_up3', + time = timeToBuild_lozcommander_up3, + cmdname = [[Tech 3]], + energy = energyCost_lozcommander_up3, + metal = 0, + text = 'Evolve Tech 3 with upgraded weapons and armor', + require = [[tech2]], + }, + }, + + lozcommander_up3 = { + { + into = 'lozcommander_up4', + time = timeToBuild_lozcommander_up4, + cmdname = [[Tech 3 + BattleMech]], + energy = energyCost_lozcommander_up4, + metal = 0, + text = 'Evolve into a BattleMech with Devestating weapons and armor', + require = [[tech3]], + }, + }, + +-- + + + + + ecommander = { + { + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, + cmdname = [[Healer +Overseer]], + energy = energyCost_ecommanderhealer, + metal = 0, + text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', + require = [[tech2]], + }, { into = 'ecommandercloak', time = timeToBuild_ecommandercloak, @@ -123,7 +227,7 @@ Overseer]], Overseer]], energy = energyCost_ecommandershield, metal = 0, - text = 'Evolve into Shielded Overseer: Gains a large shield which does not cost energy to maintain.', + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', require = [[tech2]], }, { @@ -133,19 +237,19 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.', - require = [[tech2]], - }, - { - into = 'ecommanderfactory', - time = timeToBuild_ecommanderfactory, - cmdname = [[Factory -Overseer]], - energy = energyCost_ecommanderfactory, - metal = 0, - text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower and larger build radius.', require = [[tech2]], }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- require = [[tech2]], + -- }, { into = 'ecommanderbattle', time = timeToBuild_ecommanderbattle, @@ -153,18 +257,18 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbattle, metal = 0, - text = 'Evolve into Battle Overseer: Loses EMP ability, gains a machinegun that does heavy damage to Light units and Buildings. No longer grants supply.', + text = 'Evolve into Battle Overseer: Upgraded machinegun that does heavy damage to Light Units. No longer grants supply.', require = [[tech2]], }, }, ecommandercloak = { { - into = 'ecommander', - time = timeToBuild_ecommander, + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, cmdname = [[Healer -Overseer]], - energy = energyCost_ecommander, + Overseer]], + energy = energyCost_ecommanderhealer, metal = 0, text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', }, @@ -175,7 +279,7 @@ Overseer]], Overseer]], energy = energyCost_ecommandershield, metal = 0, - text = 'Evolve into Shielded Overseer: Gains a large shield which does not cost energy to maintain.', + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', }, { into = 'ecommanderbuild', @@ -184,17 +288,17 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.', - }, - { - into = 'ecommanderfactory', - time = timeToBuild_ecommanderfactory, - cmdname = [[Factory -Overseer]], - energy = energyCost_ecommanderfactory, - metal = 0, - text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower and larger build radius.', }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- }, { into = 'ecommanderbattle', time = timeToBuild_ecommanderbattle, @@ -202,18 +306,17 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbattle, metal = 0, - text = 'Evolve into Battle Overseer: Loses EMP ability, gains a machinegun that does heavy damage to Light units and Buildings. No longer grants supply.', - require = [[tech1]], + text = 'Evolve into Battle Overseer: Upgraded Beam Laser that does heavy damage to Light and Armored units. No longer grants supply.', }, }, ecommandershield = { { - into = 'ecommander', - time = timeToBuild_ecommander, - cmdname = [[Healer + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, + cmdname = [[Healer Overseer]], - energy = energyCost_ecommander, + energy = energyCost_ecommanderhealer, metal = 0, text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', }, @@ -233,17 +336,17 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.', - }, - { - into = 'ecommanderfactory', - time = timeToBuild_ecommanderfactory, - cmdname = [[Factory -Overseer]], - energy = energyCost_ecommanderfactory, - metal = 0, - text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower and larger build radius.', }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- }, { into = 'ecommanderbattle', time = timeToBuild_ecommanderbattle, @@ -251,18 +354,17 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbattle, metal = 0, - text = 'Evolve into Battle Overseer: Loses EMP ability, gains a machinegun that does heavy damage to Light units and Buildings. No longer grants supply.', - require = [[tech1]], + text = 'Evolve into Battle Overseer: Upgraded Beam Laser that does heavy damage to Light and Armored units. No longer grants supply.', }, }, ecommanderbuild = { { - into = 'ecommander', - time = timeToBuild_ecommander, + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, cmdname = [[Healer -Overseer]], - energy = energyCost_ecommander, + Overseer]], + energy = energyCost_ecommanderhealer, metal = 0, text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', }, @@ -282,17 +384,17 @@ Overseer]], Overseer]], energy = energyCost_ecommandershield, metal = 0, - text = 'Evolve into Shielded Overseer: Gains a large shield which does not cost energy to maintain.', - }, - { - into = 'ecommanderfactory', - time = timeToBuild_ecommanderfactory, - cmdname = [[Factory -Overseer]], - energy = energyCost_ecommanderfactory, - metal = 0, - text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- }, { into = 'ecommanderbattle', time = timeToBuild_ecommanderbattle, @@ -300,18 +402,17 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbattle, metal = 0, - text = 'Evolve into Battle Overseer: Loses EMP ability, gains a machinegun that does heavy damage to Light units and Buildings. No longer grants supply.', - require = [[tech1]], + text = 'Evolve into Battle Overseer: Upgraded Beam Laser that does heavy damage to Light and Armored units. No longer grants supply.', }, }, ecommanderfactory = { { - into = 'ecommander', - time = timeToBuild_ecommander, + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, cmdname = [[Healer -Overseer]], - energy = energyCost_ecommander, + Overseer]], + energy = energyCost_ecommanderhealer, metal = 0, text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', }, @@ -331,7 +432,7 @@ Overseer]], Overseer]], energy = energyCost_ecommandershield, metal = 0, - text = 'Evolve into Shielded Overseer: Gains a large shield which does not cost energy to maintain.', + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', }, { into = 'ecommanderbuild', @@ -340,7 +441,7 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x4 buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower and larger build radius.', }, { into = 'ecommanderbattle', @@ -349,8 +450,7 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbattle, metal = 0, - text = 'Evolve into Battle Overseer: Loses EMP ability, gains a machinegun that does heavy damage to Light units and Buildings. No longer grants supply.', - require = [[tech1]], + text = 'Evolve into Battle Overseer: Upgraded Beam Laser that does heavy damage to Light and Armored units. No longer grants supply.', }, }, ecommanderbattle = { @@ -361,15 +461,15 @@ Overseer]], Overseer]], energy = energyCost_ecommandermeteor, metal = 0, - text = 'Evolve into Meteor Overseer: Overseer can call down devastating meteor showers.', + text = 'Evolve into Meteor Overseer: Overseer can call down devastating meteor showers. !THIS CHANGE IS PERMANENT!', require = [[tech3]], }, { - into = 'ecommander', - time = timeToBuild_ecommander, + into = 'ecommanderhealer', + time = timeToBuild_ecommanderhealer, cmdname = [[Healer Overseer]], - energy = energyCost_ecommander, + energy = energyCost_ecommanderhealer, metal = 0, text = 'Evolve into Healer Overseer: Overseer has a very strong AOE heal in it\'s immediate vicinity.', }, @@ -389,7 +489,7 @@ Overseer]], Overseer]], energy = energyCost_ecommandershield, metal = 0, - text = 'Evolve into Shielded Overseer: Gains a large shield which does not cost energy to maintain.', + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', }, { into = 'ecommanderbuild', @@ -398,16 +498,82 @@ Overseer]], Overseer]], energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower.', + }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- }, + }, + + ecommanderhealer = { + { + into = 'ecommanderbattle', + time = timeToBuild_ecommanderbattle, + cmdname = [[Battle +Overseer]], + energy = energyCost_ecommanderbattle, + metal = 0, + text = 'Evolve into Battle Overseer: Upgraded Beam Laser that does heavy damage to Light and Armored units. No longer grants supply.', + require = [[tech2]], }, { - into = 'ecommanderfactory', - time = timeToBuild_ecommanderfactory, - cmdname = [[Factory + into = 'ecommandercloak', + time = timeToBuild_ecommandercloak, + cmdname = [[Cloaking Overseer]], - energy = energyCost_ecommanderfactory, + energy = energyCost_ecommandercloak, + metal = 0, + text = 'Evolve into Cloaking Overseer: Gains a large cloaking field which also cloaks the Overseer.', + }, + { + into = 'ecommandershield', + time = timeToBuild_ecommandershield, + cmdname = [[Shield +Overseer]], + energy = energyCost_ecommandershield, + metal = 0, + text = 'Evolve into Shielded Overseer: Gains a large shield which recharges quickly.', + }, + { + into = 'ecommanderbuild', + time = timeToBuild_ecommanderbuild, + cmdname = [[Builder +Overseer]], + energy = energyCost_ecommanderbuild, metal = 0, - text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + text = 'Evolve into Builder Overseer: Gains 16x buildpower.', + }, + -- { + -- into = 'ecommanderfactory', + -- time = timeToBuild_ecommanderfactory, + -- cmdname = [[Factory +-- Overseer]], + -- energy = energyCost_ecommanderfactory, + -- metal = 0, + -- text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.', + -- }, + }, + + +---------------------------------------------------------- +---------------------------------------------------------- +--Radar + eradar2 = { + { + into = 'eradar2_up1', + --require = 'etech2', + time = timeToBuild_eradar2_up1, + cmdname = [[Evolve to Tech2]], + energy = energyCost_eradar2_up1, + metal = 0, + text = [[Increases Radar/Sensing Range]], + require = [[tech2]], }, }, @@ -416,38 +582,50 @@ Overseer]], --Economy emetalextractor = { { - into = 'emetalextractor_up3', + into = 'emetalextractor_up1', --require = 'etech2', time = timeToBuild_emetalextractor_up1, cmdname = [[Evolve 2x Income]], energy = energyCost_emetalextractor_up1, metal = 0, text = [[x2 Metal Extraction rate]], - require = [[tech2]], + require = [[tech1]], }, }, - zmex = { + emetalextractor_up1 = { { - into = 'zmex_up3', + into = 'emetalextractor_up2', --require = 'etech2', - time = timeToBuild_zmex_up1, - cmdname = [[Evolve 2x Income]], - energy = energyCost_zmex_up1, + time = timeToBuild_emetalextractor_up2, + cmdname = [[Evolve 4x Income]], + energy = energyCost_emetalextractor_up2, metal = 0, - text = [[x2 Metal Extraction rate]], + text = [[x4 Metal Extraction rate]], require = [[tech2]], }, }, - xmetalextractor = { + emetalextractor_up2 = { { - into = 'xmetalextractormoho', + into = 'emetalextractor_up3', --require = 'etech2', - time = timeToBuild_xmetalextractor, + time = timeToBuild_emetalextractor_up3, + cmdname = [[Evolve 8x Income]], + energy = energyCost_emetalextractor_up3, + metal = 0, + text = [[x8 Metal Extraction rate]], + require = [[tech3]], + }, + }, + zmex = { + { + into = 'zmex_up3', + --require = 'etech2', + time = timeToBuild_zmex_up1, cmdname = [[Evolve 2x Income]], - energy = energyCost_xmetalextractor, + energy = energyCost_zmex_up1, metal = 0, text = [[x2 Metal Extraction rate]], - require = [[tech1]], + require = [[tech2]], }, }, ---------------------------------------------------------- @@ -457,6 +635,18 @@ Overseer]], ---------------------------------------------------------- ---------------------------------------------------------- + elaserbattery = { + { + into = 'eflakturret', + time = timeToBuild_eflakturret, + cmdname = [[Evolve Flak Turret]], + energy = energyCost_eflakturret, + metal = 0, + text = [[Evolve Projectile Based Flak with more Range and AOE Damage]], + require = [[tech2]], + }, + }, + -- elightturret2 = { -- { -- into = 'elightturret2_up1', @@ -713,29 +903,36 @@ Evolution]], ---------------------------------------------------------- ---------------------------------------------------------- - zhatch = { + zarm = { { - into = 'zhatch_up1', - time = timeToBuild_zlair, - cmdname = [[Lair -Evolution]], - energy = energyCost_zlair, + into = 'zarm_up1', + time = timeToBuild_zarmtech1, + cmdname = [[Evolve Tech 1]], + energy = energyCost_zarmtech1, metal = 0, - text = 'Evolve into a Lair.', + text = 'Evolve Tech 1', }, }, - zhatch_up1 = { + zarm_up1 = { { - into = 'zhatch_up2', - time = timeToBuild_zhive, - cmdname = [[Hive -Evolution]], - energy = energyCost_zhive, + into = 'zarm_up2', + time = timeToBuild_zarmtech2, + cmdname = [[Evolve Tech 2]], + energy = energyCost_zarmtech2, metal = 0, - text = 'Evolve into a Hive.', + text = 'Evolve Tech 2', + }, + }, + zarm_up2 = { + { + into = 'zarm_up3', + time = timeToBuild_zarmtech3, + cmdname = [[Evolve Tech 3]], + energy = energyCost_zarmtech3, + metal = 0, + text = 'Evolve Tech 3', }, }, - ---------------------------------------------------------- ---------------------------------------------------------- @@ -812,19 +1009,6 @@ Evolution]], require = [[tech1]], }, }, - eallterrriot_shotgun = { - { - into = 'eallterrriot', - --require = 'etech1', - time = 2, - cmdname = [[Evolve - EMP]], - energy = 0, - metal = 0, - text = [[Shotgun]], - require = [[tech1]], - }, - }, eamphibriot = { { @@ -838,19 +1022,6 @@ Evolution]], text = [[Shotgun]], require = [[tech1]], }, - }, - eamphibriot_shotgun = { - { - into = 'eamphibriot', - --require = 'etech1', - time = 2, - cmdname = [[Evolve - EMP]], - energy = 0, - metal = 0, - text = [[Shotgun]], - require = [[tech1]], - }, }, } diff --git a/Gamedata/movedefs_classes.lua b/Gamedata/movedefs_classes.lua index 16cbc660d..6d483ccab 100644 --- a/Gamedata/movedefs_classes.lua +++ b/Gamedata/movedefs_classes.lua @@ -1,5 +1,5 @@ if Spring.GetModOptions and Spring.GetModOptions().unitheat ~= nil then - unitHeat = Spring.GetModOptions().unitheat * 0.0001 + unitHeat = Spring.GetModOptions().unitheat * 0.0042 else unitHeat = 0.0042 end @@ -8,20 +8,20 @@ flowMappingToggle = true local genericDepthmodParams = { minHeight = 0, - maxHeight = 5000, - maxScale = 1.25, + maxHeight = 25, + maxScale = 2, quadraticCoeff = 0, linearCoeff = 0, -- deprecates "depthMod" - constantCoeff = 1.25, + constantCoeff = 2, } local amphibDepthmodParams = { minHeight = 0, - maxHeight = 5000, - maxScale = 1, + maxHeight = 25, + maxScale = 2, quadraticCoeff = 0, linearCoeff = 0, -- deprecates "depthMod" - constantCoeff = 1, + constantCoeff = 2, } local moveDefs = { @@ -32,7 +32,7 @@ local moveDefs = { footprintx=2, footprintz=2, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -48,7 +48,7 @@ local moveDefs = { footprintx=3, footprintz=3, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -64,7 +64,7 @@ local moveDefs = { footprintx=4, footprintz=4, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -80,7 +80,7 @@ local moveDefs = { footprintx=5, footprintz=5, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -96,7 +96,7 @@ local moveDefs = { footprintx=6, footprintz=6, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -111,7 +111,7 @@ local moveDefs = { ORBHOVERTANK6 = { footprintx=6, footprintz=6, - maxslope=30, + maxslope=47, maxwaterdepth=5000, maxwaterslope=255, badwaterslope=255, @@ -129,11 +129,27 @@ local moveDefs = { --hBot-- + HOVERHBOT2 = { + footprintx=2, + footprintz=2, + maxslope=47, + maxwaterdepth=25, + maxwaterslope=255, + badwaterslope=255, + crushstrength=20, + depthModParams = genericDepthmodParams, + minwaterdepth=10, + heatmod=unitHeat, + slopemod=3, + allowRawMovement=true, + flowMapping=flowMappingToggle, + }, + HOVERHBOT3 = { footprintx=3, footprintz=3, - maxslope=90, - maxwaterdepth=10, + maxslope=47, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -148,8 +164,8 @@ local moveDefs = { HOVERHBOT4 = { footprintx=4, footprintz=4, - maxslope=90, - maxwaterdepth=10, + maxslope=47, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -164,8 +180,8 @@ local moveDefs = { HOVERHBOT5 = { footprintx=5, footprintz=5, - maxslope=90, - maxwaterdepth=10, + maxslope=47, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -180,8 +196,8 @@ local moveDefs = { HOVERHBOT6 = { footprintx=6, footprintz=6, - maxslope=90, - maxwaterdepth=10, + maxslope=47, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -196,8 +212,8 @@ local moveDefs = { HOVERHBOT8 = { footprintx=8, footprintz=8, - maxslope=90, - maxwaterdepth=10, + maxslope=47, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, crushstrength=20, @@ -214,10 +230,24 @@ local moveDefs = { --All Terrain-- + ALLTERRTANK2 = { + footprintx=2, + footprintz=2, + maxslope=47, + maxwaterdepth=30, + crushstrength=20, + depthModParams = genericDepthmodParams, + minwaterdepth=10, + heatmod=unitHeat, + slopemod=4, + allowRawMovement=true, + flowMapping=flowMappingToggle, + }, + ALLTERRTANK3 = { footprintx=3, footprintz=3, - maxslope=90, + maxslope=47, maxwaterdepth=30, crushstrength=20, depthModParams = genericDepthmodParams, @@ -231,7 +261,7 @@ local moveDefs = { ALLTERRTANK4 = { footprintx=4, footprintz=4, - maxslope=90, + maxslope=47, maxwaterdepth=30, crushstrength=20, depthModParams = genericDepthmodParams, @@ -245,7 +275,7 @@ local moveDefs = { ALLTERRTANK5 = { footprintx=5, footprintz=5, - maxslope=90, + maxslope=47, maxwaterdepth=30, crushstrength=20, depthModParams = genericDepthmodParams, @@ -259,7 +289,7 @@ local moveDefs = { ALLTERRTANK6 = { footprintx=6, footprintz=6, - maxslope=90, + maxslope=47, maxwaterdepth=30, crushstrength=20, depthModParams = genericDepthmodParams, @@ -295,7 +325,7 @@ local moveDefs = { footprintx=2, footprintz=2, maxslope=30, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=26, badwaterslope=26, crushstrength=20, @@ -428,7 +458,7 @@ local moveDefs = { EXPERIMENTALTANK12 = { footprintx=12, footprintz=12, - maxslope=90, + maxslope=47, maxwaterdepth=80, crushstrength=100, depthModParams = genericDepthmodParams, @@ -447,7 +477,22 @@ local moveDefs = { COMMANDERTANK4 = { footprintx=4, footprintz=4, - maxslope=90, + maxslope=47, + crushstrength=20, + maxwaterdepth=5000, + maxwaterslope=255, + badwaterslope=255, + depthModParams = genericDepthmodParams, + minwaterdepth=10, + heatmod=unitHeat, + slopemod=4, + allowRawMovement=true, + flowMapping=flowMappingToggle, + }, + COMMANDERTANK6 = { + footprintx=6, + footprintz=6, + maxslope=47, crushstrength=20, maxwaterdepth=5000, maxwaterslope=255, @@ -464,7 +509,7 @@ local moveDefs = { footprintz=4, maxslope=30, crushstrength=20, - maxwaterdepth=10, + maxwaterdepth=25, maxwaterslope=255, badwaterslope=255, depthModParams = genericDepthmodParams, diff --git a/Gamedata/scavengers/unitdef_changes.lua b/Gamedata/scavengers/unitdef_changes.lua new file mode 100644 index 000000000..5e1bb7081 --- /dev/null +++ b/Gamedata/scavengers/unitdef_changes.lua @@ -0,0 +1,924 @@ +-- (note that alldefs_post.lua is still ran afterwards if you change anything there) + +-- Special rules: +-- you only need to put the things you want changed in comparison with the regular unitdef. (use the same table structure) +-- since you cant actually remove parameters normally, it will do it when you set string: 'nil' as value +-- normally an empty table as value will be ignored when merging, but not here, it will overwrite what it had with an empty table + +customDefs = {} + + +local scavUnit = {} +for name,uDef in pairs(UnitDefs) do + scavUnit[#scavUnit+1] = name..'_scav' +end + +-- Use this commented out BAR part as example + + customDefs.ecommander = { + buildoptions = scavUnit, + workertime = 10, + repairspeed = 10, + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + customparams = { + providetech = [[tech0, tech1, tech2, tech3]], + }, + } + + customDefs.eamphibbuggybig = { + maxdamage = 2500, + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + weapondefs = { + lightbeamlaser = { + thickness = 20, + }, + }, + } + + + customDefs.eallterranarchid = { + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + } + + customDefs.eamphibleveler = { + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + } + + customDefs.ehbotkarganneth = { + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + } + + customDefs.ekrow = { + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + } + + customDefs.elacerator = { + explodeas = "mediumScavengerExplosionNuke", + selfdestructas = "mediumScavengerExplosionNuke", + } + + customDefs.eallterranarchidboss = { + explodeas = "bossScavengerExplosionNuke", + selfdestructas = "bossScavengerExplosionNuke", + } + + customDefs.eamphiblevelerboss = { + explodeas = "bossScavengerExplosionNuke", + selfdestructas = "bossScavengerExplosionNuke", + } + + customDefs.ehbotkargannethboss = { + explodeas = "bossScavengerExplosionNuke", + selfdestructas = "bossScavengerExplosionNuke", + } + + customDefs.ekrowboss = { + explodeas = "bossScavengerExplosionNuke", + selfdestructas = "bossScavengerExplosionNuke", + } + + customDefs.elaceratorboss = { + explodeas = "bossScavengerExplosionNuke", + selfdestructas = "bossScavengerExplosionNuke", + } + + + + + + + + + +-- Scav Commanders + +-- customDefs.corcom = { + -- autoheal = 15, + -- buildoptions = scavUnit, + -- builddistance = 1000, + -- cloakcost = 50, + -- cloakcostmoving = 100, + -- collisionvolumescales = "64 52 64", + -- explodeas = "bantha", + -- footprintx = 4, + -- footprintz = 4, + -- hidedamage = true, + -- idleautoheal = 20, + -- maxdamage = 4500, + -- maxvelocity = 2, + -- mincloakdistance = 20, + -- movementclass = "SCAVCOMMANDERKBOT", + -- showplayername = false, + -- stealth = false, + -- workertime = 1000, -- can get multiplied in unitdef_post + -- customparams = { + -- iscommander = 'nil', -- since you cant actually remove parameters normally, it will do it when you set string: 'nil' as value + -- }, + -- featuredefs = { + -- dead = { + -- resurrectable = 0, + -- metal = 1500, + -- }, + -- heap = { + -- resurrectable = 0, + -- metal = 750, + -- }, + -- }, + -- weapondefs = { + -- disintegrator = { + -- commandfire = false, + -- reloadtime = 10, + -- weaponvelocity = 350, + -- damage = { + -- default = 2250, + -- commanders = 225, + -- }, + -- }, + -- }, + -- -- Extra Shield + -- -- weapons = { + -- -- [4] = { + -- -- def = "REPULSOR1", + -- -- }, + -- -- }, +-- } + +-- customDefs.armcom = { + -- autoheal = 15, + -- buildoptions = scavUnit, + -- builddistance = 1000, + -- cloakcost = 50, + -- cloakcostmoving = 100, + -- collisionvolumescales = "64 52 64", + -- explodeas = "bantha", + -- footprintx = 4, + -- footprintz = 4, + -- hidedamage = true, + -- idleautoheal = 20, + -- maxdamage = 4500, + -- maxvelocity = 2, + -- mincloakdistance = 20, + -- movementclass = "SCAVCOMMANDERKBOT", + -- showplayername = false, + -- stealth = false, + -- workertime = 900, -- can get multiplied in unitdef_post + -- customparams = { + -- iscommander = 'nil', -- since you cant actually remove parameters normally, it will do it when you set string: 'nil' as value + -- }, + -- featuredefs = { + -- dead = { + -- resurrectable = 0, + -- metal = 1500, + -- }, + -- heap = { + -- resurrectable = 0, + -- metal = 750, + -- }, + -- }, + -- weapondefs = { + -- disintegrator = { + -- commandfire = false, + -- reloadtime = 10, + -- weaponvelocity = 350, + -- damage = { + -- default = 2250, + -- commanders = 225, + -- }, + -- }, + -- }, + -- -- Extra Shield + -- --weapons = { + -- -- [4] = { + -- -- def = "REPULSOR1", + -- -- }, + -- -- }, +-- } + +-- -- M/E storages T1 give rewarding amounts of metal / energy for reclaim + +-- customDefs.armmstor = { + -- explodeas = "decoycommander", + -- --buildcostmetal = 1500, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "3000 Metal Lootbox", + -- damage = 3000, + -- metal = 3000, --50% reduction for being scav? + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "1500 Metal Lootbox (Damaged)", + -- damage = 1500, + -- metal = 1500, --50% reduction for being scav? + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + +-- customDefs.armestor = { + -- explodeas = "decoycommander", + -- --buildcostenergy = 3000, + -- featuredefs = { + -- dead = { + -- category = "corpses", + -- collisionvolumescales = "26 26 26", + -- description = "6000 Energy Lootbox", + -- damage = 3000, + -- energy = 6000, --50% reduction for being scav? + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- -- customparams = { + -- -- normaltex = "unittextures/Core_normal.dds", + -- -- }, + -- }, + -- heap = { + -- category = "corpses", + -- collisionvolumescales = "26 26 26", + -- description = "3000 Energy Lootbox Damaged", + -- damage = 1500, + -- energy = 3000, --50% reduction for being scav? + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- -- customparams = { + -- -- normaltex = "unittextures/Core_normal.dds", + -- -- }, + -- }, + -- }, +-- } + +-- customDefs.cormstor = { + -- explodeas = "decoycommander", + -- --buildcostmetal = 1500, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "3000 Metal Lootbox", + -- damage = 3000, + -- metal = 3000, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "1500 Metal Lootbox Damaged", + -- damage = 1500, + -- metal = 1500, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + +-- customDefs.corestor = { + -- explodeas = "decoycommander", + -- --buildcostenergy = 3000, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "6000 Energy Lootbox", + -- damage = 3000, + -- energy = 6000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "3000 Energy Lootbox Damaged", + -- damage = 1500, + -- energy = 3000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- }, + -- }, +-- } + +-- -- M/E storages T2 give rewarding amounts of metal / energy for reclaim + +-- customDefs.armuwadvms = { + -- explodeas = "decoycommander", + -- --buildcostmetal = 5000, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "Big 10000 Metal Lootbox", + -- damage = 4500, + -- metal = 10000, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "Big 5000 Metal Lootbox Damaged", + -- damage = 2250, + -- metal = 5000, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + +-- customDefs.armuwadves = { + -- explodeas = "decoycommander", + -- --buildcostenergy = 20000, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "Big 10000 Energy Lootbox", + -- damage = 4500, + -- energy = 10000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "Big 5000 Energy Lootbox Damaged", + -- damage = 2250, + -- energy = 5000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + +-- customDefs.coruwadvms = { + -- explodeas = "decoycommander", + -- --buildcostmetal = 5000, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "Big 10000 Metal Lootbox", + -- damage = 4500, + -- metal = 10000, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "Big 5000 Metal Lootbox Damaged", + -- damage = 2250, + -- metal = 5000, --50% reduction for being scav + -- energy = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + +-- customDefs.coruwadves = { + -- explodeas = "decoycommander", + -- --buildcostenergy = 20000, + -- featuredefs = { + -- dead = { + -- category = "loot", + -- description = "Big 10000 Energy Lootbox", + -- damage = 4500, + -- energy = 10000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- heap = { + -- category = "loot", + -- description = "Big 5000 Energy Lootbox Damaged", + -- damage = 2250, + -- energy = 5000, --50% reduction for being scav + -- metal = 0, + -- object = "scavs/scavcrate.s3o", + -- resurrectable = 0, + -- smokeTime = 0, + -- }, + -- }, +-- } + + +-- ----CUSTOM UNITS--- + +-- -- Bladewing do damage instead of paralyzer +-- customDefs.corbw = { + -- weapondefs = { + -- bladewing_lyzer = { + -- paralyzer = false, + -- reloadtime = 0.1, + -- damage = { + -- default = 3, + -- }, + -- }, + -- }, +-- } + +-- -- Faster rockets with Accel - Lower DMG - higher pitched sound +-- customDefs.corstorm = { + -- weapondefs = { + -- core_kbot_rocket = { + -- soundstart = "rocklit1scav", + -- startvelocity = 64, + -- weaponacceleration = 480, + -- weaponvelocity = 380, + -- damage = { + -- default = 105, + -- subs = 5, + -- }, + -- }, + -- }, +-- } + +-- -- Faster rockets with Accel - Lower DMG - higher pitched sound +-- customDefs.armrock = { + -- weapondefs = { + -- arm_kbot_rocket = { + -- soundstart = "rocklit1scav", + -- startvelocity = 64, + -- weaponacceleration = 480, + -- weaponvelocity = 380, + -- damage = { + -- default = 105, + -- subs = 5, + -- }, + -- }, + -- }, +-- } + +-- -- Rapid Fire AK + Cloak +-- customDefs.corak = { + -- cloakcost = 3, + -- mincloakdistance = 144, + -- maxvelocity = 3, + -- weapondefs = { + -- gator_laser = { + -- beamtime = 0.13, + -- beamttl = 0, + -- reloadtime = 0.2, + -- soundstart = "lasrlit3scav", + -- damage = { + -- bombers = 1.6, + -- default = 20, + -- fighters = 1.6, + -- subs = 0.4, + -- vtol = 1.6, + -- }, + -- }, + -- }, +-- } + +-- -- Heavy Slow Fire Warrior + Cloak +-- customDefs.armwar = { + -- cloakcost = 3, + -- mincloakdistance = 144, + -- script = "scavs/ARMWARSCAV.cob", + -- weapondefs = { + -- armwar_laser = { + -- beamtime = 0.23, + -- energypershot = 60, + -- laserflaresize = 9.2, + -- reloadtime = 1.2, + -- soundstart = "lasrfir4scav", + -- targetborder = 0.2, + -- thickness = 2.5, + -- damage = { + -- bombers = 36, + -- default = 242, + -- fighters = 36, + -- subs = 48, + -- vtol = 36, + -- }, + -- }, + -- }, +-- } + +-- -- Cloaked Radar + +-- customDefs.armrad = { + -- cloakcost = 6, + -- mincloakdistance = 144, +-- } + +-- customDefs.armarad = { + -- cloakcost = 12, + -- mincloakdistance = 144, +-- } + +-- customDefs.corrad = { + -- cloakcost = 6, + -- mincloakdistance = 144, +-- } + +-- customDefs.corarad = { + -- cloakcost = 12, + -- mincloakdistance = 144, +-- } + + +-- -- Cloaked Jammers + +-- customDefs.armjamt = { + -- cloakcost = 10, + -- mincloakdistance = 144, +-- -- radardistancejam = 700, + -- sightdistance = 250, +-- } + +-- customDefs.armveil = { + -- cloakcost = 25, + -- mincloakdistance = 288, +-- -- radardistancejam = 900, + -- sightdistance = 310, +-- } + +-- customDefs.corjamt = { + -- cloakcost = 10, + -- mincloakdistance = 144, +-- -- radardistancejam = 700, + -- sightdistance = 250, +-- } + +-- customDefs.corshroud = { + -- cloakcost = 25, + -- mincloakdistance = 288, +-- -- radardistancejam = 900, + -- sightdistance = 310, +-- } + +-- -- Cloaked Constructors + +-- customDefs.correcl = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armrecl = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corck = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corcv = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.cormuskrat = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corack = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.coracv = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corca = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.coraca = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armck = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armcv = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armbeaver = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armack = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armacv = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armca = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armaca = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- -- Cloaked Radar/Jammer Units + +-- customDefs.armaser = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armmark = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armjam = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armseer = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corspec = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corvoyr = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.coreter = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corvrad = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + + +-- -- Cloaked Combat Units + +-- customDefs.corcrash = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.coraak = { + -- cloakcost = 6, + -- mincloakdistance = 144, +-- } + +-- customDefs.armjeth = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armaak = { + -- cloakcost = 6, + -- mincloakdistance = 144, +-- } + +-- customDefs.corgator = { + -- cloakcost = 6, + -- mincloakdistance = 144, +-- } + +-- customDefs.cortermite = { + -- cloakcost = 12, + -- mincloakdistance = 144, +-- } + +-- customDefs.cormando = { + -- cloakcost = 12, + -- mincloakdistance = 144, +-- } + +-- customDefs.corhrk = { + -- cloakcost = 12, + -- mincloakdistance = 160, +-- } + +-- customDefs.armzeus = { + -- cloakcost = 12, + -- mincloakdistance = 144, +-- } + +-- customDefs.corroach = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.armvader = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- -- Cloaked + Stealh Units + +-- customDefs.corkarg = { + -- cloakcost = 24, + -- stealth = true, + -- mincloakdistance = 144, +-- } + +-- customDefs.corroach = { + -- cloakcost = 3, + -- mincloakdistance = 144, +-- } + +-- customDefs.corsktl = { + -- cloakcost = 6, + -- stealth = true, + -- mincloakdistance = 144, +-- } + +-- -- Cloaked Defenses + +-- -- Faster LLT - unique sound - shorter beamtime +-- customDefs.corllt = { + -- cloakcost = 6, + -- mincloakdistance = 144, + -- weapondefs = { + -- core_lightlaser = { + -- beamtime = 0.08, + -- energypershot = 10, + -- reloadtime = 0.36, + -- soundstart = "lasrfir3scav", + -- damage = { + -- bombers = 3.75, + -- default = 105, + -- fighters = 3.75, + -- subs = 1.5, + -- vtol = 3.75, + -- }, + -- }, + -- }, +-- } + +-- -- Custom HLLT - low laser = faster - high laser is slower - unique sounds +-- customDefs.corhllt = { + -- cloakcost = 9, + -- mincloakdistance = 144, + -- weapondefs = { + -- hllt_bottom = { + -- beamtime = 0.07, + -- energypershot = 7.5, + -- reloadtime = 0.24, + -- soundstart = "lasrfir3scav", + -- damage = { + -- bombers = 2.5, + -- default = 70, + -- fighters = 2.5, + -- subs = 1, + -- vtol = 2.5, + -- }, + -- }, + -- hllt_top = { + -- beamtime = 0.28, + -- energypershot = 30, + -- reloadtime = 1.92, + -- soundstart = "lasrfir4scav", + -- thickness = 3, + -- damage = { + -- bombers = 20, + -- commanders = 400, + -- default = 300, + -- fighters = 20, + -- subs = 12, + -- vtol = 20, + -- }, + -- }, + -- }, + -- } + +-- customDefs.corhlt = { + -- cloakcost = 18, + -- mincloakdistance = 288, +-- } + +-- customDefs.armhlt = { + -- cloakcost = 18, + -- mincloakdistance = 288, +-- } + +-- -- Faster LLT - unique sound - shorter beamtime +-- customDefs.armllt = { + -- cloakcost = 6, + -- mincloakdistance = 144, + -- weapondefs = { + -- arm_lightlaser = { + -- beamtime = 0.08, + -- energypershot = 10, + -- reloadtime = 0.36, + -- soundstart = "lasrfir3scav", + -- damage = { + -- bombers = 3.75, + -- default = 105, + -- fighters = 3.75, + -- subs = 1.5, + -- vtol = 3.75, + -- }, + -- }, + + -- }, +-- } + +-- --Custom Nanoturrets - 25% more range +-- customDefs.armnanotc = { + -- cloakcost = 6, + -- mincloakdistance = 144, + -- builddistance = 500, +-- } + +-- customDefs.cornanotc = { + -- cloakcost = 6, + -- mincloakdistance = 144, + -- builddistance = 500, +-- } + +-- customDefs.corsilo = { + -- cloakcost = 100, + -- mincloakdistance = 144, +-- } + +-- customDefs.armsilo = { + -- cloakcost = 100, + -- mincloakdistance = 144, +-- } + +-- -- customDefs.armbeamer = { +-- -- cloakcost = 6, +-- -- mincloakdistance = 144, +-- -- } + +-- customDefs.corvipe = { + -- cloakcost = 20, + -- mincloakdistance = 288, +-- } + +-- customDefs.cortoast = { + -- cloakcost = 20, + -- mincloakdistance = 288, +-- } + +-- customDefs.corint = { + -- cloakcost = 75, + -- mincloakdistance = 432, +-- } + +-- customDefs.cordoom = { + -- cloakcost = 50, + -- mincloakdistance = 432, +-- } + +-- customDefs.armrectr = { + -- workertime = 400, -- can get multiplied in unitdef_post +-- } + +-- customDefs.cornecro = { + -- workertime = 400, -- can get multiplied in unitdef_post +-- } diff --git a/Gamedata/scavengers/unitdef_post.lua b/Gamedata/scavengers/unitdef_post.lua new file mode 100644 index 000000000..800a32600 --- /dev/null +++ b/Gamedata/scavengers/unitdef_post.lua @@ -0,0 +1,173 @@ +-- this file gets included in alldefs_post.lua + +local scavUnit = {} +for name,uDef in pairs(UnitDefs) do + scavUnit[#scavUnit+1] = name..'_scav' +end + +local rana = math.random(3,1000) +local ranb = math.random(2,a) +local ranc = math.random(1,b) + + + +function scav_Udef_Post(name, uDef) + if not uDef.customparams then + uDef.customparams = {} + end + + if not uDef.customParams then + uDef.customParams = {} + end + ----------------- EVO stuff + + if uDef.customParams then + --uDef.customParams.ProvideTech = [[tech0, tech1, tech2, tech3]] + uDef.customparams.supply_granted = 1 + uDef.customparams.supply_cost = 0 + end + ----------------- End of EVO stuff + + + + -- add unit category + uDef.category = uDef.category..' SCAVENGER' + + -- add model vertex displacement + + --local udefVertDisp = uDef.customparams.vertdisp1 or 0 + --uDef.customparams.vertdisp = 2.0 * udefVertDisp + uDef.customparams.healthlookmod = 0.40 + + -- make barrelshot purple + + if uDef.sfxtypes then + -- make barrelshot purple + -- if uDef.sfxtypes.explosiongenerators then + -- for k,v in pairs(uDef.sfxtypes.explosiongenerators) do + -- if string.find(v, 'barrelshot') then + -- uDef.sfxtypes.explosiongenerators[k] = v..'-purple' + -- end + -- end + -- end + -- make deathcegs purple + -- if uDef.sfxtypes.pieceexplosiongenerators then + -- for k,v in pairs(uDef.sfxtypes.pieceexplosiongenerators) do + -- if string.find(v, 'deathceg') then + -- uDef.sfxtypes.pieceexplosiongenerators[k] = v..'-purple' + -- end + -- end + -- end + end + -- make unit explosion purple + if uDef.explodeas and uDef.explodeas ~= "bossScavengerExplosionNuke" and uDef.explodeas ~= "mediumScavengerExplosionNuke" then + uDef.explodeas = "mediumScavengerExplosionGeneric" + end + if uDef.selfdestructas and uDef.selfdestructas ~= "bossScavengerExplosionNuke" and uDef.selfdestructas ~= "mediumScavengerExplosionNuke" then + uDef.selfdestructas = "mediumScavengerExplosionGeneric" + end + + -- replace buillists with _scav units + if uDef.buildoptions then + for k, v in pairs(uDef.buildoptions) do + if UnitDefs[v..'_scav'] then + uDef.buildoptions[k] = v..'_scav' + end + end + end + + -- add Scavenger name prefix to wrecks + if uDef.featuredefs then + if uDef.featuredefs.dead then + if uDef.featuredefs.dead.description then + uDef.featuredefs.dead.description = "Scavenger "..uDef.featuredefs.dead.description + end + -- if uDef.featuredefs.dead.metal then + -- uDef.featuredefs.dead.metal = math.ceil(uDef.featuredefs.dead.metal*0.5) + -- end + end + if uDef.featuredefs.heap then + if uDef.featuredefs.heap.description then + uDef.featuredefs.heap.description = "Scavenger "..uDef.featuredefs.heap.description + end + -- if uDef.featuredefs.heap.metal then + -- uDef.featuredefs.heap.metal = math.ceil(uDef.featuredefs.heap.metal*0.5) + -- end + end + end + + -- add Scavenger name prefix to units + if uDef.name then + uDef.name = "Scavenger "..uDef.name + end + + + + if uDef.buildcostenergy then + uDef.buildcostenergy = math.ceil(uDef.buildcostenergy*2) + end + + if uDef.buildcostmetal then + uDef.buildcostmetal = math.ceil(uDef.buildcostmetal*2) + end + + if uDef.energymake then + uDef.energymake = math.ceil(uDef.energymake*2) + end + + if uDef.metalmake then + uDef.metalmake = math.ceil(uDef.metalmake*2) + end + + if uDef.maxdamage then + uDef.maxdamage = math.ceil(uDef.maxdamage*1) + end + + if uDef.maxvelocity then + uDef.maxvelocity = uDef.maxvelocity*0.5 + end + + if uDef.maxreversevelocity then + uDef.maxreversevelocity = uDef.maxreversevelocity*0.1 + end + + if uDef.sightdistance then + uDef.sightdistance = math.ceil(uDef.sightdistance*1.5) + end + + if uDef.radardistancejam then + uDef.radardistancejam = math.ceil(uDef.radardistancejam*1.5) + end + + if uDef.maxdamage then + uDef.autoheal = math.ceil(math.sqrt(uDef.maxdamage/60)) + uDef.idleautoheal = math.ceil(math.sqrt(uDef.maxdamage/60)) + else + uDef.autoheal = 3 + uDef.idleautoheal = 3 + end + + if uDef.turnrate then + uDef.turnrate = uDef.turnrate*0.1 + end + + if uDef.turninplaceanglelimit then + uDef.turninplaceanglelimit = 360 + end + + -- don't let players get scav constructors + if uDef.buildoptions then + uDef.capturable = false + if uDef.featuredefs then + if uDef.featuredefs.dead then + uDef.featuredefs.dead.resurrectable = 0 + end + if uDef.featuredefs.heap then + uDef.featuredefs.heap.resurrectable = 0 + end + end + end + + return uDef + +end diff --git a/Gamedata/scavengers/weapondef_post.lua b/Gamedata/scavengers/weapondef_post.lua new file mode 100644 index 000000000..60444f7b4 --- /dev/null +++ b/Gamedata/scavengers/weapondef_post.lua @@ -0,0 +1,60 @@ +-- this file gets included in alldefs_post.lua +function convertToPurple(value) + value = string.gsub(value, '-red', '-purple') + value = string.gsub(value, '-green', '-purple') + value = string.gsub(value, '-blue', '-purple') + value = string.gsub(value, '-yellow', '-purple') + return value +end + +local function split(s, separator) + local results = {} + for part in s:gmatch("[^"..separator.."]+") do + results[#results + 1] = part + end + return results +end + +function scav_Wdef_Post(name, wDef) + if wDef.weapontype == "Cannon" then + --Spring.Echo(wDef.name,wDef.weapontype) + wDef.rgbcolor = {0.96, 0.42, 1} + if wDef.explosiongenerator then + --wDef.explosiongenerator = "custom:genericscavengershellexplosion-medium-purple" + end + if wDef.cegtag then + wDef.cegtag = "scavengercegtag" + end + elseif wDef.weapontype == "MissileLauncher" or wDef.weapontype == "StarburstLauncher" then + if wDef.explosiongenerator then + --wDef.explosiongenerator = "custom:genericscavengershellexplosion-medium-purple" + end + if wDef.cegtag then + wDef.cegtag = "scavengercegtag" + end + elseif wDef.weapontype == "LightningCannon" then + wDef.rgbcolor = {0.95, 0.32, 1} + wDef.customparams.expl_light_color = {0.95, 0.32, 1} + wDef.customparams.light_color = {0.95, 0.32, 1} + --wDef.rgbcolor = {0.95, 0.0, 1} Damgam Candy mode + --wDef.customparams.expl_light_color = {0.95, 0.0, 1} Damgam Candy mode + --wDef.customparams.light_color = {0.95, 0.0, 1} Damgam Candy mode + --wDef.explosiongenerator = "custom:genericscavengershellexplosion-medium-lightning" + elseif wDef.weapontype == "BeamLaser" or wDef.weapontype == "LaserCannon" or wDef.weapontype == "DGun" then + wDef.rgbcolor = {0.95, 0.32, 1} + --wDef.rgbcolor = {0.95, 0.0, 1} Damgam Candy mode + wDef.rgbcolor2 = {1, 0.8, 1} + end + -- make lighting purple (sort of: by switching around the rgb values) + if wDef.customparams then + for k, v in pairs(wDef.customparams) do + if type(v) == 'string' and string.find(k, 'light_color') then + local colors = split(v, ' ') + if colors[1] and colors[3] and colors[1] == '1' then + wDef.customparams[k] = colors[2]..' '..colors[3]..' '..colors[1] + end + end + end + end + return wDef +end diff --git a/Gamedata/sidedata.lua b/Gamedata/sidedata.lua index d0ee2a229..e4d29534e 100644 --- a/Gamedata/sidedata.lua +++ b/Gamedata/sidedata.lua @@ -1,8 +1,39 @@ local sideData = { + -- [1] = { + -- name = 'Ateran', + -- startunit = 'ecommander', + -- startunitai = 'ecommanderai', + -- uiSets = { + -- Main = {0.40, 0.20, 0.70, 1}, + -- Trim = {1.00, 0.80, 0.00, 1}, + -- Rank = {1.00, 0.90, 0.50, 1}, + -- }, + -- }, + -- [2] = { + -- name = 'Zaal', + -- startunit = 'zarm', + -- startunitai = 'zarm', + -- uiSets = { + -- Main = {0.40, 0.20, 0.70, 1}, + -- Trim = {1.00, 0.80, 0.00, 1}, + -- Rank = {1.00, 0.90, 0.50, 1}, + -- }, + -- }, + -- [3] = { + -- name = 'Pattern', + -- startunit = 'xcommander', + -- startunitai = 'xcommander', + -- uiSets = { + -- Main = {0.40, 0.20, 0.70, 1}, + -- Trim = {1.00, 0.80, 0.00, 1}, + -- Rank = {1.00, 0.90, 0.50, 1}, + -- }, + -- }, + [1] = { - name = 'Ateran', - startunit = 'ecommander', - startunitai = 'ecommanderai', + name = 'Federation of Kala', + startunit = 'fedcommander', + startunitai = 'fedcommanderai', uiSets = { Main = {0.40, 0.20, 0.70, 1}, Trim = {1.00, 0.80, 0.00, 1}, @@ -10,19 +41,9 @@ local sideData = { }, }, [2] = { - name = 'Zaal', - startunit = 'zarm', - startunitai = 'zarm', - uiSets = { - Main = {0.40, 0.20, 0.70, 1}, - Trim = {1.00, 0.80, 0.00, 1}, - Rank = {1.00, 0.90, 0.50, 1}, - }, - }, - [3] = { - name = 'Pattern', - startunit = 'xcommander', - startunitai = 'xcommander', + name = 'Loz Alliance', + startunit = 'fedcommander', + startunitai = 'fedcommanderai', uiSets = { Main = {0.40, 0.20, 0.70, 1}, Trim = {1.00, 0.80, 0.00, 1}, diff --git a/Gamedata/sounds.lua b/Gamedata/sounds.lua index 8720c40df..9a3f5ba0f 100644 --- a/Gamedata/sounds.lua +++ b/Gamedata/sounds.lua @@ -108,6 +108,15 @@ local Sounds = { gainmod = 0, pitchmod = 0, }, + + dothis = { + --- always play on the front speaker(s) + file = "sounds/acknowledgements/dothis.wav", + in3d = true, + maxconcurrent = 1, + gainmod = 0, + pitchmod = 0, + }, IncomingChat = { --- always play on the front speaker(s) @@ -116,6 +125,10 @@ local Sounds = { maxconcurrent = 1, }, +--------------------------------------------------- +--Unit Selections---------------------------------- +--------------------------------------------------- + UnitSelect = { --- always play on the front speaker(s) file = "sounds/miscfx/unitselect.wav", @@ -123,6 +136,15 @@ local Sounds = { maxconcurrent = 1, }, + EngineIdle = { + --- always play on the front speaker(s) + file = "sounds/unitselections/engineidle.wav", + in3d = true, + maxconcurrent = 1, + }, + + + BugSelect = { --- always play on the front speaker(s) file = "sounds/ui/zaal/bugselect.wav", @@ -252,65 +274,65 @@ local Sounds = { }, } -local files = VFS.DirList("sounds/deathsounds/generic/") -local t = Sounds.SoundItems -for i=1,#files do - local fileName = files[i] - t[fileName] = { - file = fileName; - pitchmod = 0.3; - --gainmod = 0.2; - maxconcurrent = 16; - rolloff = 2, - dopplerscale = 2, - in3d = true, - } -end +-- local files = VFS.DirList("sounds/deathsounds/generic/") +-- local t = Sounds.SoundItems +-- for i=1,#files do + -- local fileName = files[i] + -- t[fileName] = { + -- file = fileName; + -- pitchmod = 0.3; + ----gainmod = 0.2; + -- maxconcurrent = 16; + -- rolloff = 2, + -- dopplerscale = 2, + -- in3d = true, + -- } +-- end -local files = VFS.DirList("sounds/explosions/") -local t = Sounds.SoundItems -for i=1,#files do - local fileName = files[i] - t[fileName] = { - file = fileName; - pitchmod = 0.3; - --gainmod = 0.2; - maxconcurrent = 16; - rolloff = 2, - dopplerscale = 2, - in3d = true, - } -end +-- local files = VFS.DirList("sounds/explosions/") +-- local t = Sounds.SoundItems +-- for i=1,#files do + -- local fileName = files[i] + -- t[fileName] = { + -- file = fileName; + -- pitchmod = 0.3; + ----gainmod = 0.2; + -- maxconcurrent = 16; + -- rolloff = 2, + -- dopplerscale = 2, + -- in3d = true, + -- } +-- end -local files = VFS.DirList("sounds/deathsounds/nuke/") -local t = Sounds.SoundItems -for i=1,#files do - local fileName = files[i] - t[fileName] = { - file = fileName; - pitchmod = 0.3; - --gainmod = 0.2; - maxconcurrent = 16; - rolloff = 2, - dopplerscale = 2, - in3d = true, - } -end +-- local files = VFS.DirList("sounds/deathsounds/nuke/") +-- local t = Sounds.SoundItems +-- for i=1,#files do + -- local fileName = files[i] + -- t[fileName] = { + -- file = fileName; + -- pitchmod = 0.3; + ----gainmod = 0.2; + -- maxconcurrent = 16; + -- rolloff = 2, + -- dopplerscale = 2, + -- in3d = true, + -- } +-- end -local files = VFS.DirList("sounds/weapons/") -local t = Sounds.SoundItems -for i=1,#files do - local fileName = files[i] - t[fileName] = { - file = fileName; - pitchmod = 0.2; - --gainmod = 0.2; - maxconcurrent = 16; - rolloff = 2, - dopplerscale = 1.5, - in3d = true, - } -end +-- local files = VFS.DirList("sounds/weapons/") +-- local t = Sounds.SoundItems +-- for i=1,#files do + -- local fileName = files[i] + -- t[fileName] = { + -- file = fileName; + -- pitchmod = 0.2; + ----gainmod = 0.2; + -- maxconcurrent = 16; + -- rolloff = 2, + -- dopplerscale = 1.5, + -- in3d = true, + -- } +-- end local files = VFS.DirList("sounds/selfdcountdown/") local t = Sounds.SoundItems diff --git a/Gamedata/unitdefs_post.lua b/Gamedata/unitdefs_post.lua index ac3d98c44..ffca6f5f4 100644 --- a/Gamedata/unitdefs_post.lua +++ b/Gamedata/unitdefs_post.lua @@ -8,6 +8,62 @@ VFS.Include("gamedata/alldefs_post.lua") -- load functionality for saving to custom params VFS.Include("gamedata/post_save_to_customparams.lua") +function deepcopy(orig) + local orig_type = type(orig) + local copy + if orig_type == 'table' then + copy = {} + for orig_key, orig_value in next, orig, nil do + copy[deepcopy(orig_key)] = deepcopy(orig_value) + end + setmetatable(copy, deepcopy(getmetatable(orig))) + else -- number, string, boolean, etc + copy = orig + end + return copy +end + +-- special tablemerge: +-- converts value string 'nil' to an actual nil +-- normally an empty table as value will be ignored when merging, but not here, it will overwrite what it had with an empty table +function tableMergeSpecial(t1, t2) + for k,v in pairs(t2) do + if type(v) == "table" then + if next(v) == nil then + t1[k] = v + else + if type(t1[k] or false) == "table" then + tableMergeSpecial(t1[k] or {}, t2[k] or {}) + else + t1[k] = v + end + end + else + t1[k] = v + end + end + return t1 +end + + +-- create scavenger units +VFS.Include("gamedata/scavengers/unitdef_changes.lua") +local scavengerUnitDefs = {} + +for name,uDef in pairs(UnitDefs) do + local faction = string.sub(name, 1, 3) + if not string.find(name, '_scav') then + if customDefs[name] ~= nil then + scavengerUnitDefs[name..'_scav'] = tableMergeSpecial(deepcopy(uDef), deepcopy(customDefs[name])) + else + scavengerUnitDefs[name..'_scav'] = deepcopy(uDef) + end + end +end +for name,ud in pairs(scavengerUnitDefs) do + UnitDefs[name] = ud +end + -- handle unitdefs and the weapons they contain for name,ud in pairs(UnitDefs) do UnitDef_Post(name,ud) diff --git a/Gamedata/unitdefs_pre.lua b/Gamedata/unitdefs_pre.lua index 28b66c2a4..523989096 100644 --- a/Gamedata/unitdefs_pre.lua +++ b/Gamedata/unitdefs_pre.lua @@ -22,12 +22,84 @@ Shared.buildList = { [[eshieldgen]], [[esilo]], [[escoutdrone]], - [[ebox]], [[ehbotengineer]], [[eorb]], + [[eamphibleveler]], + [[ehbotkarganneth]], + [[eallterranarchid]], + [[elacerator]], + [[ekrow]], + -- [[ecommander]], +} + +Shared.buildListFed = { + [[f1landfac]], + [[eairplant]], + [[etech1]], + [[emetalextractor]], + [[esolar2]], + [[egeothermal]], + [[efusion2]], + [[estorage]], + [[eradar2]], + [[ejammer2]], + [[ekmar]], + [[emine]], + [[elightturret2]], + [[eheavyturret2]], + [[elaserbattery]], + [[eartyturret]], + -- [[euwturret]], + [[eshieldgen]], + [[esilo]], + [[escoutdrone]], + [[fedengineer]], + [[fedorb]], + [[ehbotkarganneth]], + [[eallterranarchid]], + [[ekrow]], + -- [[ecommander]], +} + +Shared.buildListLoz = { + [[f2landfac]], + [[eairplant]], + [[etech1]], + [[emetalextractor]], + [[esolar2]], + [[egeothermal]], + [[efusion2]], + [[estorage]], + [[eradar2]], + [[ejammer2]], + [[ekmar]], + [[emine]], + [[elightturret2]], + [[eheavyturret2]], + [[elaserbattery]], + [[eartyturret]], + -- [[euwturret]], + [[eshieldgen]], + [[esilo]], + [[escoutdrone]], + [[lozengineer]], + [[lozorb]], + [[eamphibleveler]], + [[elacerator]], + [[ekrow]], -- [[ecommander]], } +Shared.fedOrb = { + [[fedorb]], + [[fedengineer]], +} + +Shared.lozOrb = { + [[lozorb]], + [[lozengineer]], +} + Shared.buildListeCommanderFactory = { [[ehbotengineer]], [[eorb]], @@ -42,17 +114,22 @@ Shared.buildListeCommanderFactory = { [[ehbotthud]], [[ehbotsniper]], [[eallterrlight]], - [[eallterrriot]], + [[eallterrriot_shotgun]], [[eallterrheavy]], [[elighttank3]], - [[eriottank2]], + [[eriottank2_shotgun]], [[eheavytank3]], [[eamphibbuggy]], - [[eamphibriot]], + [[eamphibriot_shotgun]], [[eamphibmedtank]], [[efighter]], [[egunship2]], [[ebomber]], + [[eamphibleveler]], + [[ehbotkarganneth]], + [[eallterranarchid]], + [[elacerator]], + [[ekrow]], } Shared.buildListZaal = { @@ -62,7 +139,6 @@ Shared.buildListZaal = { [[zpyro]], [[zassault]], [[zarty]], - [[zkamikaze]], [[zqueen]], [[zairscout]], [[zairtoairfighter]], @@ -70,7 +146,8 @@ Shared.buildListZaal = { [[zairbomber]], } -Shared.buildListZaalArm = { +Shared.buildListZaalConstructor = { + [[zconstructor]], [[ztenticle]], [[zhatch]], [[zmex]], @@ -78,29 +155,12 @@ Shared.buildListZaalArm = { [[ztiberium]], } -Shared.buildListZaalTumor = { - [[ztumor]], -} - -Shared.buildListXCommander = { - [[xklab]], - [[xkconstructor]], - [[xmetalextractor]], - [[xsolar]], - [[xstorage]], - [[xllt]], - [[xrocketturret]], - [[xantinuke]], - [[xnukesilo]], +Shared.buildListZaalArm = { + [[zconstructor]], } -Shared.buildListXKLab = { - [[xskulk]], - [[xhammer]], - [[xrocko]], - [[xwarrior]], - [[xcrasher]], - [[xflea]], +Shared.buildListZaalTumor = { + [[ztumor]], } local turrets = { @@ -128,17 +188,22 @@ local factory = { [[ehbotthud]], [[ehbotsniper]], [[eallterrlight]], - [[eallterrriot]], + [[eallterrriot_shotgun]], [[eallterrheavy]], [[elighttank3]], - [[eriottank2]], + [[eriottank2_shotgun]], [[eheavytank3]], [[eamphibbuggy]], - [[eamphibriot]], + [[eamphibriot_shotgun]], [[eamphibmedtank]], [[efighter]], [[egunship2]], [[ebomber]], + [[eamphibleveler]], + [[ehbotkarganneth]], + [[eallterranarchid]], + [[elacerator]], + [[ekrow]], } Shared.buildListFactory = {} @@ -184,9 +249,40 @@ end ----------------------------- --Buildlists for factories +Shared.buildListf1landfac = { + [[eallterrlight]], + [[ehbotpeewee]], + [[eallterrriot_shotgun]], + [[ehbotthud]], + [[eallterrassault]], + [[eallterrshield]], + [[eallterrmed]], + [[ehbotsniper]], + [[eallterrheavy]], + [[ehbotrocko]], + [[fedengineer]], + [[eorb]], + +} + +Shared.buildListf2landfac = { + [[eamphibbuggy]], + [[elighttank3]], + [[eriottank2_shotgun]], + [[eamphibneedle]], + [[eartytank]], + [[ebox]], + [[eamphibmedtank]], + [[eheavytank3]], + [[eamphibrock]], + [[emissiletank]], + [[lozengineer]], + [[eorb]], +} + Shared.buildListHoverFactory = { [[elighttank3]], - [[eriottank2]], + [[eriottank2_shotgun]], [[eheavytank3]], [[emissiletank]], [[eartytank]], @@ -225,7 +321,7 @@ Shared.buildListHoverFactory_up3 = { Shared.buildListAmphibFactory = { [[eamphibbuggy]], - [[eamphibriot]], + [[eamphibriot_shotgun]], [[eamphibneedle]], [[eamphibmedtank]], [[eamphibrock]], @@ -268,7 +364,7 @@ Shared.buildListAmphibFactory_up3 = { Shared.buildListAllTerrainFactory = { [[eallterrlight]], - [[eallterrriot]], + [[eallterrriot_shotgun]], [[eallterrmed]], [[eallterrheavy]], [[eallterrassault]], @@ -373,3 +469,15 @@ Shared.buildListHbotFactory_up3 = { [[ehbotrocko_up3]], [[ehbotkarganneth_up3]], } + +----------------------------- +----------------------------- +--Buildlists for T3/Experimentals + +Shared.buildListT3 = { + [[eamphibleveler]], + [[ehbotkarganneth]], + [[eallterranarchid]], + [[elacerator]], + [[ekrow]], +} \ No newline at end of file diff --git a/LGPL-3.0.txt b/LGPL-3.0.txt new file mode 100644 index 000000000..0a041280b --- /dev/null +++ b/LGPL-3.0.txt @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/LuaAI.lua b/LuaAI.lua index 7646e0132..1fedaf087 100644 --- a/LuaAI.lua +++ b/LuaAI.lua @@ -8,14 +8,34 @@ -- return { - { - name = 'DAI', - desc = 'Shard by AF for Spring Lua', - }, - { - name = 'Sandbox', - desc = 'Does absolutely Nothing', - }, + -- { + -- name = 'DAI', + -- desc = 'Shard by AF for Spring Lua', + -- }, + { + name = 'ScavengersAI', + desc = 'scavs', + }, + { + name = 'Sandbox', + desc = 'Does absolutely Nothing', + }, + { + name = 'SimpleAI', + desc = 'EasyAI (Simple)', + }, + { + name = 'SimpleCheaterAI', + desc = 'EasyAI (Cheater)', + }, + { + name = 'SimpleDefenderAI', + desc = 'EasyAI (Defender)', + }, + { + name = 'SimpleConstructorAI', + desc = 'EasyAI (Constructor)', + }, } diff --git a/LuaIntro/Addons/bg_logo.lua b/LuaIntro/Addons/bg_logo.lua index 3378c4066..394904bc0 100644 --- a/LuaIntro/Addons/bg_logo.lua +++ b/LuaIntro/Addons/bg_logo.lua @@ -118,7 +118,7 @@ local shader = gl.CreateShader({ ]], }) -Spring.Echo(gl.GetShaderLog()) +--Spring.Echo(gl.GetShaderLog()) diff --git a/LuaIntro/main.lua b/LuaIntro/main.lua index a48e40ffe..10f074ff0 100644 --- a/LuaIntro/main.lua +++ b/LuaIntro/main.lua @@ -35,7 +35,7 @@ else Spring.Log = function(name, level, ...) if (type(level) == "string")and(level == "info") then - Spring.Echo(("[%s]"):format(name), ...) + --Spring.Echo(("[%s]"):format(name), ...) else origSpringLog(name, level, ...) end diff --git a/LuaRules/Configs/MetalSpots/defaultLayout.lua b/LuaRules/Configs/MetalSpots/defaultLayout.lua index 9f3c18208..283af030a 100644 --- a/LuaRules/Configs/MetalSpots/defaultLayout.lua +++ b/LuaRules/Configs/MetalSpots/defaultLayout.lua @@ -1,12 +1,19 @@ --math.randomseed(Game.GameID) -- This only works in 104+ math.random(); math.random(); math.random() local mapx, mapz = Game.mapSizeX * 0.5, Game.mapSizeZ * 0.5 --- Params +-- Lets sq root the map size into a digestable number for later. We're doing some math here to account for the fact that spring does not work with add numbers. Only even ones. So, for that reason we cant to get the square root in numbers that comport to how we normally thing about maps. For example, a 16 x 16 map sqrt is 256, so that is our basis. + +local mapWidthX = (Game.mapSizeX * 2) / 1024 +local mapLengthZ = (Game.mapSizeZ * 2) / 1024 +local mapSQRT = mapWidthX * mapLengthZ + +-- Params local size = math.max(mapx, mapz) -- Spring.Echo("[Default Mex Layout] Map size is: " .. size) +Spring.Echo("[Default Mex Layout] Map square root size is: " .. mapSQRT) local count = #Spring.GetTeamList() - 1 local allycount = #Spring.GetAllyTeamList() - 1 -- for i = 1, #players do @@ -22,7 +29,7 @@ teamIDCount = Spring.GetGameRulesParam("peopleCount") Spring.Echo("[Default Mex Layout] Number of teamIDs in this match: " .. teamIDCount) -- -local placeMexesInWater = Spring.GetModOptions().allowmexesinwater or "enabled" +local placeMexesInWater = Spring.GetModOptions().allowmexesinwater or "disabled" local maxMexElevationDiff = tonumber(Spring.GetModOptions().maximummexelevationdifference) or 50 local mexSpotsPerSideMultiplier = tonumber(Spring.GetModOptions().mexspotspersidemultiplier) or 100 local mexRandomLayout = Spring.GetModOptions().mexrandomlayout or "standard" @@ -247,19 +254,39 @@ if mexRandomLayout == "legacy4" then end if mexRandomLayout == "standard" then - if teamIDCount <= 2 then - mexSpotsPerSide = 10 - elseif teamIDCount > 2 and teamIDCount <= 4 then - mexSpotsPerSide = 15 - elseif teamIDCount > 4 and teamIDCount <= 6 then - mexSpotsPerSide = 20 - elseif teamIDCount > 6 then - mexSpotsPerSide = 25 - end - local mapSize = size * 2 - if mapSize <= 6144 then -- An exception for 10x10 and smaller maps + + mexSpotsPerSide = 12 + + if mapSQRT <= 144 then -- An exception for 12x12 and smaller maps mexSpotsPerSide = mexSpotsPerSide * 0.5 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") + end + + if mapSQRT > 144 and mapSQRT <= 196 then -- An exception for 14x14 maps + mexSpotsPerSide = mexSpotsPerSide * 0.75 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") end + + if mapSQRT > 196 and mapSQRT <= 256 then -- An exception for 16x16 maps + mexSpotsPerSide = mexSpotsPerSide * 1 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") + end + + if mapSQRT > 256 and mapSQRT <= 400 then -- An exception for 20x20 maps + mexSpotsPerSide = mexSpotsPerSide * 1.5 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") + end + + if mapSQRT > 400 and mapSQRT <= 576 then -- An exception for 24x24 maps + mexSpotsPerSide = mexSpotsPerSide * 1.75 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") + end + + if mapSQRT > 576 then -- An exception for 28x28 maps + mexSpotsPerSide = mexSpotsPerSide * 2 + Spring.Echo("[Default Mex Layout] Map Square Root size is " .. mapSQRT .. " with a teamIDCount of " .. teamIDCount.. ". Placing " .. mexSpotsPerSide .. " mex points per quadrant (This is usually rounded up to the next whole number).") + end + randomMirrored = true padding = 100 pointRadius = 100 -- TODO: change this into how big a metal circle is diff --git a/LuaRules/Configs/ScavengerBlueprints/Constructor/placeholder.lua b/LuaRules/Configs/ScavengerBlueprints/Constructor/placeholder.lua deleted file mode 100644 index 2a27ef8b6..000000000 --- a/LuaRules/Configs/ScavengerBlueprints/Constructor/placeholder.lua +++ /dev/null @@ -1,71 +0,0 @@ - --- table.insert(ScavengerBlueprintsT0,FunctionName) --- table.insert(ScavengerBlueprintsT1,FunctionName) --- table.insert(ScavengerBlueprintsT2,FunctionName) --- table.insert(ScavengerBlueprintsT3,FunctionName) - --- example blueprint: --- local function a(posx, posy, posz, GaiaTeamID, radiusCheck) --- local posradius = 120 - -- if radiusCheck then - -- return posradius - -- else - -- Spring.CreateUnit("unitname", posx, posy, posz, math.random(0,3),GaiaTeamID) - -- Spring.CreateUnit("unitname", posx-100, posy, posz, math.random(0,3),GaiaTeamID) - -- Spring.CreateUnit("unitname", posx+100, posy, posz, math.random(0,3),GaiaTeamID) - -- Spring.CreateUnit("unitname", posx, posy, posz-100, math.random(0,3),GaiaTeamID) - -- Spring.CreateUnit("unitname", posx, posy, posz+100, math.random(0,3),GaiaTeamID) - -- end --- end --- table.insert(ScavengerBlueprintsT1,a) - -local UDN = UnitDefNames - -local function placeholderradar1(scav, posx, posy, posz, GaiaTeamID, radiusCheck) -local posradius = 150 - if radiusCheck then - return posradius - else - Spring.GiveOrderToUnit(scav, -(UDN.eradar2.id), {posx, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx-200, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx+200, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx, posy, posz-200, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx, posy, posz+200, 0}, {"shift"}) - end -end -table.insert(ScavengerConstructorBlueprintsT0,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT1,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT2,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT3,placeholderradar1) - -local function placeholderradar2(scav, posx, posy, posz, GaiaTeamID, radiusCheck) -local posradius = 150 - if radiusCheck then - return posradius - else - Spring.GiveOrderToUnit(scav, -(UDN.eradar2.id), {posx, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx-200, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx+200, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx, posy, posz-200, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx, posy, posz+200, 0}, {"shift"}) - end -end -table.insert(ScavengerConstructorBlueprintsT2,placeholderradar2) -table.insert(ScavengerConstructorBlueprintsT3,placeholderradar2) - -local function placeholderradar1(scav, posx, posy, posz, GaiaTeamID, radiusCheck) -local posradius = 150 - if radiusCheck then - return posradius - else - Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx-100, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx+100, posy, posz, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz-100, 0}, {"shift"}) - Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz+100, 0}, {"shift"}) - end -end -table.insert(ScavengerConstructorBlueprintsT0,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT1,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT2,placeholderradar1) -table.insert(ScavengerConstructorBlueprintsT3,placeholderradar1) \ No newline at end of file diff --git a/LuaRules/Configs/ScavengerBlueprints/Constructor/readme.txt b/LuaRules/Configs/ScavengerBlueprints/Constructor/readme.txt deleted file mode 100644 index dc35e1b8c..000000000 --- a/LuaRules/Configs/ScavengerBlueprints/Constructor/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Blueprints for scavenger contstructor unit \ No newline at end of file diff --git a/LuaRules/Configs/ScavengerBlueprints/readme.txt b/LuaRules/Configs/ScavengerBlueprints/readme.txt deleted file mode 100644 index 4954ea2dc..000000000 --- a/LuaRules/Configs/ScavengerBlueprints/readme.txt +++ /dev/null @@ -1,2 +0,0 @@ ---CURRENTLY UNUSED, USE CONSTRUCTOR FOLDER INSTEAD -You can add more files with blueprints into this folder. Script will automatically load all of them \ No newline at end of file diff --git a/LuaRules/Configs/lups_shield_fxs.lua b/LuaRules/Configs/lups_shield_fxs.lua index 00670c7b0..7629edfea 100644 --- a/LuaRules/Configs/lups_shield_fxs.lua +++ b/LuaRules/Configs/lups_shield_fxs.lua @@ -3,7 +3,7 @@ local ShieldSphereBase = { life = 10000, size = 350, radius = 350, - colormap1 = {{0.1, 0.1, 1, 0.2}, {1, 0.1, 0.1, 0.05}}, + colormap1 = {{0.1, 0.1, 1, 0.1}, {1, 0.1, 0.1, 0.05}}, colormap2 = {{0.2, 0.9, 1, 0.0}, {1, 0.9, 0.2, 0.0}}, repeatEffect = true, drawBack = 0.7, @@ -57,7 +57,7 @@ for unitDefID = 1, #UnitDefs do myShield.drawBackMargin = 3 myShield.margin = 1.35 myShield.hitResposeMult = 0.6 - myShield.colormap1[1][4] = 0.22 + myShield.colormap1[1][4] = 0.1 myShield.colormap1[2][4] = 0.1 else myShield.shieldSize = "small" diff --git a/LuaRules/Gadgets/GRTS_repair.locals.lua b/LuaRules/Gadgets/GRTS_repair.locals.lua index 88e87f0a9..a9d68122d 100644 --- a/LuaRules/Gadgets/GRTS_repair.locals.lua +++ b/LuaRules/Gadgets/GRTS_repair.locals.lua @@ -38,7 +38,7 @@ local repairUnits= { [UnitDefNames.eorb_up2.id] = {radius=1000,strength=3.0}, [UnitDefNames.eorb_up3.id] = {radius=1000,strength=4.0}, [UnitDefNames.ehbotengineer_turret.id] = {radius=1000,strength=2.0}, - [UnitDefNames.ecommander.id] = {radius=300,strength=10.0}, + [UnitDefNames.ecommanderhealer.id] = {radius=1000,strength=10.0}, [UnitDefNames.ecommanderbattleai.id] = {radius=1000,strength=5.0}, [UnitDefNames.ecommanderhealerai.id] = {radius=1000,strength=50.0}, [UnitDefNames.ecommandershieldai.id] = {radius=1000,strength=10.0}, diff --git a/LuaRules/Gadgets/GreenBean_sell.locals.lua b/LuaRules/Gadgets/GreenBean_sell.locals.lua index 4cfb5f55b..377acdce6 100644 --- a/LuaRules/Gadgets/GreenBean_sell.locals.lua +++ b/LuaRules/Gadgets/GreenBean_sell.locals.lua @@ -27,7 +27,7 @@ function gadget:GetInfo() date = "2008-06-12", license = "Public Domain", layer = 300, - enabled = true + enabled = false } end diff --git a/LuaRules/Gadgets/ai/EvoRTS/spothandler.lua b/LuaRules/Gadgets/ai/EvoRTS/spothandler.lua index 9d3e13fcc..e447a6d54 100644 --- a/LuaRules/Gadgets/ai/EvoRTS/spothandler.lua +++ b/LuaRules/Gadgets/ai/EvoRTS/spothandler.lua @@ -154,7 +154,7 @@ end function NoMex(x,z, batchextracts,teamID) -- Is there any better mex at this location (returns false if there is) local mexesatspot = Spring.GetUnitsInCylinder(x,z,128) for ct, uid in pairs(mexesatspot) do - if (string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "emetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "xmetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zhive") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zhatch") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zlair")) and (teamID and Spring.AreTeamsAllied(Spring.GetUnitTeam(uid), teamID)) then + if (string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "emetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "xmetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zmex")) and (teamID and Spring.AreTeamsAllied(Spring.GetUnitTeam(uid), teamID)) then return false end end @@ -164,7 +164,7 @@ end function EnemyMex(x,z, batchextracts,teamID) -- Is there any better mex at this location (returns false if there is) local mexesatspot = Spring.GetUnitsInCylinder(x,z,128) for ct, uid in pairs(mexesatspot) do - if (string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "emetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "xmetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zhive") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zhatch") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zlair")) and (teamID and not Spring.AreTeamsAllied(Spring.GetUnitTeam(uid), teamID)) then + if (string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "emetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "xmetalextractor") or string.find(UnitDefs[Spring.GetUnitDefID(uid)].name, "zmex")) and (teamID and not Spring.AreTeamsAllied(Spring.GetUnitTeam(uid), teamID)) then return true end end @@ -180,7 +180,7 @@ function MetalSpotHandler:ClosestFreeSpot(unittype,position,maxdis) local p = v local dist = distance(position,p) if NoMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "emetalextractor"), teamID) or NoMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "xmetalextractor"), teamID) or NoMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zhive"), teamID) or NoMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zhatch"), teamID) or NoMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zlair"), teamID) then - if EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "emetalextractor"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "xmetalextractor"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zhive"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zhatch"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zlair"), teamID) == false then + if EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "emetalextractor"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "xmetalextractor"), teamID) or EnemyMex(p.x, p.z, string.find(UnitDefs[unittype.id].name, "zmex"), teamID) == false then if dist < bestDistance then bestDistance = dist pos = p diff --git a/LuaRules/Gadgets/ai/EvoRTS/taskqueues.lua b/LuaRules/Gadgets/ai/EvoRTS/taskqueues.lua index 4905804dd..427ba18c5 100644 --- a/LuaRules/Gadgets/ai/EvoRTS/taskqueues.lua +++ b/LuaRules/Gadgets/ai/EvoRTS/taskqueues.lua @@ -1149,6 +1149,9 @@ local function ZaalBuildEnergy(tqb, ai, unit) Spring.Echo("Energytime: Fuckit, let's make a tenticle!") return "ztenticle" end + elseif mi >= mp then + Spring.Echo("Hatchtime: Metalincome amount is greater than metal pull!") + return "ztenticle" else Spring.Echo("Energytime: Fuckit, let's make a mex!") return "zmex" @@ -1171,6 +1174,9 @@ local function ZaalBuildSupply(tqb, ai, unit) elseif su > sm - 35 and sm ~= MaximumSupply then Spring.Echo("Supplytime: Supply used is greater than supply max - 35 and supplymax is not equal to maximum supply!") return "ztiberium" + elseif mi >= mp then + Spring.Echo("Hatchtime: Metalincome amount is greater than metal pull!") + return "ztenticle" else Spring.Echo("Supplytime: Fuckit, let's make a mex!") return "zmex" @@ -1192,6 +1198,7 @@ local ZaalHive3 = { } local ZaalArm = { + "ztenticle", ZaalBuildMetal, ZaalBuildSupply, ZaalBuildEnergy, diff --git a/LuaRules/Gadgets/ai_prevent_take.lua b/LuaRules/Gadgets/ai_prevent_take.lua deleted file mode 100644 index be825bdfe..000000000 --- a/LuaRules/Gadgets/ai_prevent_take.lua +++ /dev/null @@ -1,35 +0,0 @@ -function gadget:GetInfo() - return { - name = "AI Prevent Take", - desc = "Prevent players from taking AI tema units with /take", - author = "Floris", - date = "September 2018", - license = "GPL", - layer = 1, - enabled = true - } -end - -if (not gadgetHandler:IsSyncedCode()) then - return -- No Unsynced -end - -local aiTeams = {} -local aiCount = 0 -for _,teamID in ipairs(Spring.GetTeamList()) do - if select(4,Spring.GetTeamInfo(teamID)) then -- is AI? - aiCount = aiCount + 1 - aiTeams[teamID] = true - end -end -if aiCount == 0 then - return -end - -function gadget:AllowUnitTransfer(unitID, unitDefID, oldTeam, newTeam, capture) - if aiTeams[oldTeam] then - return false - else - return true - end -end \ No newline at end of file diff --git a/LuaRules/Gadgets/ai_scav_loader.lua b/LuaRules/Gadgets/ai_scav_loader.lua new file mode 100644 index 000000000..a7644d947 --- /dev/null +++ b/LuaRules/Gadgets/ai_scav_loader.lua @@ -0,0 +1,130 @@ +local enabled = false +local scavengersEnabled = false +local teams = Spring.GetTeamList() +for i = 1,#teams do + local luaAI = Spring.GetTeamLuaAI(teams[i]) + if luaAI and luaAI ~= "" and string.sub(luaAI, 1, 12) == 'ScavengersAI' then + scavengersAIEnabled = true + scavengerAITeamID = i - 1 + break + end +end +if scavengersAIEnabled or (Spring.GetModOptions and (tonumber(Spring.GetModOptions().scavengers) or 0) ~= 0) then + enabled = true +end + +function gadget:GetInfo() + return { + name = "loader for Scavenger mod", + desc = "123", + author = "Damgam", + date = "2019", + layer = -100, + enabled = enabled, + } +end + + +function gadget:GameOver() + gadgetHandler:RemoveGadget(self) +end + +if not gadgetHandler:IsSyncedCode() then + + local isSpec = Spring.GetSpectatingState() + local myTeamID = Spring.GetMyTeamID() + local myPlayerID = Spring.GetMyPlayerID() + local myAllyTeamID = Spring.GetMyAllyTeamID() + function gadget:PlayerChanged(playerID) + isSpec = Spring.GetSpectatingState() + myTeamID = Spring.GetMyTeamID() + myPlayerID = Spring.GetMyPlayerID() + myAllyTeamID = Spring.GetMyAllyTeamID() + end + + function SendMessage(_,msg) + if tonumber(Spring.GetConfigInt("scavmessages",1) or 1) == 1 then + if Script.LuaUI("GadgetAddMessage") then + Script.LuaUI.GadgetAddMessage(msg) + end + end + end + function SendNotification(_,msg) + if tonumber(Spring.GetConfigInt("scavmessages",1) or 1) == 1 then + if Script.LuaUI("EventBroadcast") then + Script.LuaUI.EventBroadcast("SoundEvents "..msg.." "..myPlayerID) + end + end + end + + local addedNotifications = false + function addNotifications() + if Script.LuaUI("AddNotification") then + addedNotifications = true + local unlisted = true -- prevent these notifications showing in the game settings notifications tab + + -- ID, file.wav, timeout time, exact duration of the .wav, written message, is unlisted? + Script.LuaUI.AddNotification('scav_scavcomdetected', 'scavengers/scavcomdetected.wav', 20, 1.87, "Scavenger commander detected.", unlisted) + Script.LuaUI.AddNotification('scav_unidentifiedObjectsDetected', 'scavengers/unidentifiedObjectsDetected.wav', 999999, 3.7, "Unidentified objects have been detected in the vicinity...", unlisted) + Script.LuaUI.AddNotification('scav_classifiedAsScavengers', 'scavengers/classifiedAsScavengers.wav', 999999, 3.87, "Unidentified objects are now classified as Scavengers.", unlisted) + Script.LuaUI.AddNotification('scav_scavadditionalcomdetected', 'scavengers/scavadditionalcomdetected.wav', 20, 3.14, "An additional Scavenger Commander detected.", unlisted) + Script.LuaUI.AddNotification('scav_scavanotherscavcomdetected', 'scavengers/scavanotherscavcomdetected.wav', 20, 3.3, "Another Scavenger Commander detected in the area.", unlisted) + Script.LuaUI.AddNotification('scav_scavnewcomentered', 'scavengers/scavnewcomentered.wav', 20, 2.94, "New Scavenger Commander entered this location.", unlisted) + Script.LuaUI.AddNotification('scav_scavcomspotted', 'scavengers/scavcomspotted.wav', 20, 2.82, "An extra Scavenger Commander has been spotted.", unlisted) + Script.LuaUI.AddNotification('scav_scavcomnewdetect', 'scavengers/scavcomnewdetect.wav', 20, 1.89, "New Scav Commander detected.", unlisted) + Script.LuaUI.AddNotification('scav_droppodsDetectedInArea', 'scavengers/droppodsDetectedInArea.wav', 20, 1.43, "Scavenger Droppods detected in the area.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinalattack', 'scavengers/scavfinalattack.wav', 20, 4.8, "Scavengers are unleashing all they have. Their final assault has started.", unlisted) + Script.LuaUI.AddNotification('scav_droppingUnits', 'scavengers/droppingUnits.wav', 20, 3.31, "Scavengers are dropping units in our area.", unlisted) + + Script.LuaUI.AddNotification('scav_scavfinalvictory', 'scavengers/scavfinalvictory.wav', 20, 10.5, "Good work commander. You survived all scavenger attacks. You are victorius! Celebrate and then try and annihilate them on the next map.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal12remain', 'scavengers/scavfinal12remain.wav', 20, 3.93, "12.5 minutes remaining. Still a long fight ahead.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal10remain', 'scavengers/scavfinal10remain.wav', 20, 1.49, "10 minutes remaining.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal09remain', 'scavengers/scavfinal09remain.wav', 20, 2.7, "9 minutes remaining. Hold your line.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal08remain', 'scavengers/scavfinal08remain.wav', 20, 1.43, "8 minutes remaining.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal07remain', 'scavengers/scavfinal07remain.wav', 20, 3.6, "Still 7 minutes remaining. Fight your way through them.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal06remain', 'scavengers/scavfinal06remain.wav', 20, 1.67, "6 minutes remaining.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal05remain', 'scavengers/scavfinal05remain.wav', 20, 1.47, "5 minutes remaining. You are almost there.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal04remain', 'scavengers/scavfinal04remain.wav', 20, 1.44, "Only 4 minutes remaining.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal03remain', 'scavengers/scavfinal03remain.wav', 20, 1.44, "3 minute mark.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal02remain', 'scavengers/scavfinal02remain.wav', 20, 1.82, "Only 2 minutes remaining.", unlisted) + Script.LuaUI.AddNotification('scav_scavfinal01remain', 'scavengers/scavfinal01remain.wav', 20, 1.43, "1 minute remaining.", unlisted) + + Script.LuaUI.AddNotification('scav_scavheavyairdetected', 'scavengers/scavheavyairdetected.wav', 20, 3, "", unlisted) -- "Danger... high tech aircraft detected." + Script.LuaUI.AddNotification('scav_scavbossdetected', 'scavengers/scavbossdetected.wav', 20, 8.45, "Critical danger! Scavengers have dropped a highly lethal boss unit in the area, destroy it before it reaches your base.", unlisted) + Script.LuaUI.AddNotification('scav_scavtech3', 'scavengers/scavtech3.wav', 20, 5.34, "", unlisted) + Script.LuaUI.AddNotification('scav_scavtech3b', 'scavengers/scavtech3b.wav', 20, 5.2, "", unlisted) + Script.LuaUI.AddNotification('scav_scavtech3c', 'scavengers/scavtech3c.wav', 20, 5.14, "", unlisted) + Script.LuaUI.AddNotification('scav_scavtech3d', 'scavengers/scavtech3d.wav', 20, 4.67, "", unlisted) + Script.LuaUI.AddNotification('scav_scavtech3e', 'scavengers/scavtech3e.wav', 20, 3.18, "", unlisted) + Script.LuaUI.AddNotification('scav_scavheavyshipsdetected', 'scavengers/scavheavyshipsdetected.wav', 20, 3.28, "Alert. Heavy ships detected in the area.", unlisted) + --Script.LuaUI.AddNotification('scav_', 'scavengers/.wav', 20, 3, "", unlisted) + + end + end + + function gadget:Initialize() + gadgetHandler:AddSyncAction("SendMessage", SendMessage) + gadgetHandler:AddSyncAction("SendNotification", SendNotification) + + addNotifications() + end + + function gadget:Update() + if not addedNotifications then + addNotifications() + end + end + + function gadget:Shutdown() + gadgetHandler:RemoveSyncAction("SendMessage") + gadgetHandler:RemoveSyncAction("SendNotification") + end + + +else + + if enabled then + VFS.Include('luarules/gadgets/scavengers/boot.lua') + end + +end \ No newline at end of file diff --git a/LuaRules/Gadgets/ai_simpleai.lua b/LuaRules/Gadgets/ai_simpleai.lua new file mode 100644 index 000000000..7ab3bca34 --- /dev/null +++ b/LuaRules/Gadgets/ai_simpleai.lua @@ -0,0 +1,670 @@ +local enabled = false +local teams = Spring.GetTeamList() +local SimpleAITeamIDs = {} +local SimpleAITeamIDsCount = 0 +local SimpleCheaterAITeamIDs = {} +local SimpleCheaterAITeamIDsCount = 0 +local UDN = UnitDefNames +local wind = Game.windMax +local mapsizeX = Game.mapSizeX +local mapsizeZ = Game.mapSizeZ + +local gameShortName = Game.gameShortName + +-- team locals +SimpleFactoriesCount = {} +SimpleFactories = {} +SimpleT1Mexes = {} +SimpleFactoryDelay = {} + +for i = 1, #teams do + local teamID = teams[i] + local luaAI = Spring.GetTeamLuaAI(teamID) + if luaAI and luaAI ~= "" and (string.sub(luaAI, 1, 8) == 'SimpleAI' or string.sub(luaAI, 1, 15) == 'SimpleCheaterAI' or string.sub(luaAI, 1, 16) == 'SimpleDefenderAI' or string.sub(luaAI, 1, 19) == 'SimpleConstructorAI') then + enabled = true + SimpleAITeamIDsCount = SimpleAITeamIDsCount + 1 + SimpleAITeamIDs[SimpleAITeamIDsCount] = teamID + + SimpleFactoriesCount[teamID] = 0 + SimpleFactories[teamID] = {} + SimpleT1Mexes[teamID] = 0 + SimpleFactoryDelay[teamID] = 0 + + if string.sub(luaAI, 1, 15) == 'SimpleCheaterAI' or string.sub(luaAI, 1, 16) == 'SimpleDefenderAI' or string.sub(luaAI, 1, 19) == 'SimpleConstructorAI' then + SimpleCheaterAITeamIDsCount = SimpleCheaterAITeamIDsCount + 1 + SimpleCheaterAITeamIDs[SimpleCheaterAITeamIDsCount] = teamID + end + end +end + +function gadget:GetInfo() + return { + name = "SimpleAI", + desc = "123", + author = "Damgam", + date = "2020", + layer = -100, + enabled = enabled, + } +end + +-------- lists +BadUnitsList = {} +if gameShortName == "BYAR" then + BadUnitsList = { + -- transports + "armthovr", + "corthovr", + "armatlas", + "armtship", + "corvalk", + "cortship", + "armdfly", + "corseah", + "corint", + + -- stockpilers + "armscab", + "armemp", + "armjuno", + "armamd", + "armmercury", + "armsilo", + "armcarry", + "corfmd", + "corjuno", + "corscreamer", + "corsilo", + "cortron", + "corcarry", + "cormabm", + + -- minelayers + "armmlv", + "cormlv", + + -- depth charge launchers + "armdl", + "cordl", + + -- walls + "armdrag", + "cordrag", + } +end + +if gameShortName == "EvoRTS" then + BadUnitsList = {} +end + +local BadUnitDefs = {} +local SimpleCommanderDefs = {} +local SimpleFactoriesDefs = {} +local SimpleConstructorDefs = {} +local SimpleExtractorDefs = {} +local SimpleGeneratorDefs = {} +local SimpleConverterDefs = {} +local SimpleTurretDefs = {} +local SimpleUndefinedBuildingDefs = {} +local SimpleUndefinedUnitDefs = {} + +for unitDefID, unitDef in pairs(UnitDefs) do + BadUnitDef = false + for a = 1,#BadUnitsList do + if BadUnitsList[a] == unitDef.name then + BadUnitDef = true + break + else + BadUnitDef = false + end + end + if BadUnitDef == false then + if unitDef.name == "armcom" or unitDef.name == "corcom" or unitDef.name == "armdecom" or unitDef.name == "cordecom" then + SimpleCommanderDefs[#SimpleCommanderDefs + 1] = unitDefID + elseif unitDef.isFactory and #unitDef.buildOptions > 0 then + SimpleFactoriesDefs[#SimpleFactoriesDefs + 1] = unitDefID + elseif unitDef.canMove and unitDef.isBuilder and #unitDef.buildOptions > 0 then + SimpleConstructorDefs[#SimpleConstructorDefs + 1] = unitDefID + elseif unitDef.extractsMetal > 0 or (unitDef.customParams and unitDef.customParams.metal_extractor) then + SimpleExtractorDefs[#SimpleExtractorDefs + 1] = unitDefID + elseif (unitDef.energyMake > 19 and (not unitDef.energyUpkeep or unitDef.energyUpkeep < 10)) or (unitDef.windGenerator > 0 and wind > 10) or unitDef.tidalGenerator > 0 or (unitDef.customParams and unitDef.customParams.solar) then + SimpleGeneratorDefs[#SimpleGeneratorDefs + 1] = unitDefID + elseif unitDef.customParams and unitDef.customParams.energyconv_capacity and unitDef.customParams.energyconv_efficiency then + SimpleConverterDefs[#SimpleConverterDefs + 1] = unitDefID + elseif unitDef.isBuilding and #unitDef.weapons > 0 then + SimpleTurretDefs[#SimpleTurretDefs + 1] = unitDefID + + + elseif not unitDef.canMove then + SimpleUndefinedBuildingDefs[#SimpleUndefinedBuildingDefs + 1] = unitDefID + else + SimpleUndefinedUnitDefs[#SimpleUndefinedUnitDefs + 1] = unitDefID + end + end +end + +-------- functions + +local function SimpleGetClosestMexSpot(x, z) + local bestSpot + local bestDist = math.huge + local metalSpots = GG.metalSpots + if metalSpots then + for i = 1, #metalSpots do + local spot = metalSpots[i] + local dx, dz = x - spot.x, z - spot.z + local dist = dx * dx + dz * dz + local units = Spring.GetUnitsInCylinder(spot.x, spot.z, 128) + --local height = Spring.GetGroundHeight(spot.x, spot.z) + if dist < bestDist and #units == 0 then + --and height > 0 then + bestSpot = spot + bestDist = dist + end + end + end + return bestSpot +end + +local function SimpleBuildOrder(cUnitID, building) + searchRange = 0 + for b2 = 1,20 do + searchRange = searchRange + 300 + local team = Spring.GetUnitTeam(cUnitID) + local cunitposx, _, cunitposz = Spring.GetUnitPosition(cUnitID) + local units = Spring.GetUnitsInCylinder(cunitposx, cunitposz, searchRange, team) + if #units > 1 then + local buildnear = units[math.random(1, #units)] + local refDefID = Spring.GetUnitDefID(buildnear) + local isBuilding = UnitDefs[refDefID].isBuilding + local isCommander = (UnitDefs[refDefID].name == "armcom" or UnitDefs[refDefID].name == "corcom") + local isExtractor = UnitDefs[refDefID].extractsMetal > 0 + if (isBuilding or isCommander) then-- and not isExtractor then + local refx, refy, refz = Spring.GetUnitPosition(buildnear) + local reffootx = UnitDefs[refDefID].xsize * 8 + local reffootz = UnitDefs[refDefID].zsize * 8 + local spacing = math.random(64, 128) + local testspacing = spacing * 0.75 + local buildingDefID = building + local r = math.random(0, 3) + if r == 0 then + local bposx = refx + local bposz = refz + reffootz + spacing + local bposy = Spring.GetGroundHeight(bposx, bposz)--+100 + local testpos = Spring.TestBuildOrder(buildingDefID, bposx, bposy, bposz, r) + local nearbyunits = Spring.GetUnitsInRectangle(bposx - testspacing, bposz - testspacing, bposx + testspacing, bposz + testspacing) + if testpos == 2 and #nearbyunits <= 0 then + Spring.GiveOrderToUnit(cUnitID, -buildingDefID, { bposx, bposy, bposz, r }, { "shift" }) + break + end + elseif r == 1 then + local bposx = refx + reffootx + spacing + local bposz = refz + local bposy = Spring.GetGroundHeight(bposx, bposz)--+100 + local testpos = Spring.TestBuildOrder(buildingDefID, bposx, bposy, bposz, r) + local nearbyunits = Spring.GetUnitsInRectangle(bposx - testspacing, bposz - testspacing, bposx + testspacing, bposz + testspacing) + if testpos == 2 and #nearbyunits <= 0 then + Spring.GiveOrderToUnit(cUnitID, -buildingDefID, { bposx, bposy, bposz, r }, { "shift" }) + break + end + elseif r == 2 then + local bposx = refx + local bposz = refz - reffootz - spacing + local bposy = Spring.GetGroundHeight(bposx, bposz)--+100 + local testpos = Spring.TestBuildOrder(buildingDefID, bposx, bposy, bposz, r) + local nearbyunits = Spring.GetUnitsInRectangle(bposx - testspacing, bposz - testspacing, bposx + testspacing, bposz + testspacing) + if testpos == 2 and #nearbyunits <= 0 then + Spring.GiveOrderToUnit(cUnitID, -buildingDefID, { bposx, bposy, bposz, r }, { "shift" }) + break + end + elseif r == 3 then + local bposx = refx - reffootx - spacing + local bposz = refz + local bposy = Spring.GetGroundHeight(bposx, bposz)--+100 + local testpos = Spring.TestBuildOrder(buildingDefID, bposx, bposy, bposz, r) + local nearbyunits = Spring.GetUnitsInRectangle(bposx - testspacing, bposz - testspacing, bposx + testspacing, bposz + testspacing) + if testpos == 2 and #nearbyunits <= 0 then + Spring.GiveOrderToUnit(cUnitID, -buildingDefID, { bposx, bposy, bposz, r }, { "shift" }) + break + end + end + end + --local buildingDefID = UnitDefNames.building.id + --local testpos = Spring.TestBuildOrder(buildingDefID, bposx, bposy, bposz, facing) + end + end +end + +local function SimpleConstructionProjectSelection(unitID, unitDefID, unitName, unitTeam, allyTeamID, units, allunits, type) + success = false + + local mcurrent, mstorage, _, mincome, mexpense = Spring.GetTeamResources(unitTeam, "metal") + local ecurrent, estorage, _, eincome, eexpense = Spring.GetTeamResources(unitTeam, "energy") + local unitposx, unitposy, unitposz = Spring.GetUnitPosition(unitID) + + local unitCommands = Spring.GetCommandQueue(unitID, 0) + local buildOptions = UnitDefs[unitDefID].buildOptions + -- Builders + for b1 = 1,10 do + if type == "Builder" or type == "Commander" then + SimpleFactoryDelay[unitTeam] = SimpleFactoryDelay[unitTeam]-1 + local r = math.random(0, 20) + local mexspotpos = SimpleGetClosestMexSpot(unitposx, unitposz) + if (mexspotpos and SimpleT1Mexes[unitTeam] < 3) and type == "Commander" then + local project = SimpleExtractorDefs[math.random(1, #SimpleExtractorDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + Spring.GiveOrderToUnit(unitID, -project, { mexspotpos.x, mexspotpos.y, mexspotpos.z, 0 }, { "shift" }) + --Spring.Echo("Success! Project Type: Extractor.") + success = true + break + end + end + elseif ecurrent < estorage * 0.75 or r == 0 then + local project = SimpleGeneratorDefs[math.random(1, #SimpleGeneratorDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + SimpleBuildOrder(unitID, project) + --Spring.Echo("Success! Project Type: Generator.") + success = true + break + end + end + + elseif mcurrent < mstorage * 0.30 or r == 1 then + -- if type == "Commander" then + -- for t = 1,10 do + -- local targetUnit = units[math.random(1,#units)] + -- if UnitDefs[Spring.GetUnitDefID(targetUnit)].isBuilding == true then + -- local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + -- Spring.GiveOrderToUnit(unitID, CMD.MOVE, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, { "shift", "alt", "ctrl" }) + -- success = true + -- break + -- end + -- end + -- elseif + if (not mexspotpos) and (ecurrent > estorage * 0.85 or r == 1) then + local project = SimpleConverterDefs[math.random(1, #SimpleConverterDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + SimpleBuildOrder(unitID, project) + --Spring.Echo("Success! Project Type: Converter.") + success = true + break + end + end + elseif mexspotpos then + local project = SimpleExtractorDefs[math.random(1, #SimpleExtractorDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + Spring.GiveOrderToUnit(unitID, -project, { mexspotpos.x, mexspotpos.y, mexspotpos.z, 0 }, { "shift" }) + --Spring.Echo("Success! Project Type: Extractor.") + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x+100, mexspotpos.y, mexspotpos.z, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x-100, mexspotpos.y, mexspotpos.z, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x, mexspotpos.y, mexspotpos.z-100, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x, mexspotpos.y, mexspotpos.z-100, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x+100, mexspotpos.y, mexspotpos.z+100, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x-100, mexspotpos.y, mexspotpos.z+100, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x+100, mexspotpos.y, mexspotpos.z-100, math.random(0,3) }, { "shift" }) + break + end + end + for i3 = 1,50 do + local projectturret = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + if buildOptions[i3] == projectturret then + Spring.GiveOrderToUnit(unitID, -projectturret, { mexspotpos.x-100, mexspotpos.y, mexspotpos.z-100, math.random(0,3) }, { "shift" }) + break + end + end + success = true + break + end + end + + end + elseif r == 2 or r == 3 or r == 4 or r == 5 then + local project = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + SimpleBuildOrder(unitID, project) + --Spring.Echo("Success! Project Type: Turret.") + success = true + break + end + end + elseif SimpleFactoriesCount[unitTeam] < 1 or ((mcurrent > mstorage * 0.75 and ecurrent > estorage * 0.75) and SimpleFactoryDelay[unitTeam] <= 0) then + local project = SimpleFactoriesDefs[math.random(1, #SimpleFactoriesDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project and (not SimpleFactories[unitTeam][project]) then + SimpleBuildOrder(unitID, project) + SimpleFactoryDelay[unitTeam] = 30 + --Spring.Echo("Success! Project Type: Factory.") + success = true + break + end + end + elseif r == 11 then + for t = 1,10 do + local targetUnit = units[math.random(1,#units)] + if UnitDefs[Spring.GetUnitDefID(targetUnit)].isBuilding == true then + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + Spring.GiveOrderToUnit(unitID, CMD.MOVE, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, { "shift", "alt", "ctrl" }) + success = true + break + end + end + elseif r == 12 and type ~= "Commander" then + local mapcenterX = mapsizeX/2 + local mapcenterZ = mapsizeZ/2 + local mapcenterY = Spring.GetGroundHeight(mapcenterX, mapcenterZ) + local mapdiagonal = math.ceil(math.sqrt((mapsizeX*mapsizeX)+(mapsizeZ*mapsizeZ))) + Spring.GiveOrderToUnit(unitID, CMD.RECLAIM,{mapcenterX+math.random(-100,100),mapcenterY,mapcenterZ+math.random(-100,100),mapdiagonal}, 0) + success = true + elseif r == 13 and type ~= "Commander" then + local mapcenterX = mapsizeX/2 + local mapcenterZ = mapsizeZ/2 + local mapcenterY = Spring.GetGroundHeight(mapcenterX, mapcenterZ) + local mapdiagonal = math.ceil(math.sqrt((mapsizeX*mapsizeX)+(mapsizeZ*mapsizeZ))) + Spring.GiveOrderToUnit(unitID, CMD.REPAIR,{mapcenterX+math.random(-100,100),mapcenterY,mapcenterZ+math.random(-100,100),mapdiagonal}, 0) + success = true + else + local r2 = math.random(0, 1) + if r2 == 0 then + local project = SimpleUndefinedBuildingDefs[math.random(1, #SimpleUndefinedBuildingDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + SimpleBuildOrder(unitID, project) + --Spring.Echo("Success! Project Type: Other.") + success = true + break + end + end + else + local project = SimpleTurretDefs[math.random(1, #SimpleTurretDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + SimpleBuildOrder(unitID, project) + --Spring.Echo("Success! Project Type: Turret.") + success = true + break + end + end + end + end + elseif type == "Factory" then + if #Spring.GetFullBuildQueue(unitID, 0) < 5 then + local r = math.random(0, 5) + local luaAI = Spring.GetTeamLuaAI(unitTeam) + if r == 0 or string.sub(luaAI, 1, 19) == 'SimpleConstructorAI' then + local project = SimpleConstructorDefs[math.random(1, #SimpleConstructorDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + local x, y, z = Spring.GetUnitPosition(unitID) + Spring.GiveOrderToUnit(unitID, -project, { x, y, z, 0 }, 0) + --Spring.Echo("Success! Project Type: Constructor.") + success = true + break + end + end + else + local project = SimpleUndefinedUnitDefs[math.random(1, #SimpleUndefinedUnitDefs)] + for i2 = 1,#buildOptions do + if buildOptions[i2] == project then + local x, y, z = Spring.GetUnitPosition(unitID) + Spring.GiveOrderToUnit(unitID, -project, { x, y, z, 0 }, 0) + --Spring.Echo("Success! Project Type: Unit.") + success = true + break + end + end + end + else + success = true + end + end + if success == true then + break + end + end +end + +function gadget:GameOver() + gadgetHandler:RemoveGadget(self) +end + +if gadgetHandler:IsSyncedCode() then + + function gadget:GameFrame(n) + if n % 15 == 0 then + for i = 1, SimpleAITeamIDsCount do + if n%(15*SimpleAITeamIDsCount) == 15*(i-1) then + local teamID = SimpleAITeamIDs[i] + local _, _, isDead, _, faction, allyTeamID = Spring.GetTeamInfo(teamID) + local mcurrent, mstorage, _, mincome, mexpense = Spring.GetTeamResources(teamID, "metal") + local ecurrent, estorage, _, eincome, eexpense = Spring.GetTeamResources(teamID, "energy") + for j = 1, #SimpleCheaterAITeamIDs do + if teamID == SimpleCheaterAITeamIDs[j] then + -- --cheats + if mcurrent < mstorage * 0.20 then + Spring.SetTeamResource(teamID, "m", mstorage * 0.25) + end + if ecurrent < estorage * 0.20 then + Spring.SetTeamResource(teamID, "e", estorage * 0.25) + end + end + end + + local units = Spring.GetTeamUnits(teamID) + local allunits = Spring.GetAllUnits() + for k = 1, #units do + local unitID = units[k] + local unitDefID = Spring.GetUnitDefID(unitID) + local unitName = UnitDefs[unitDefID].name + local unitTeam = teamID + local unitHealth, unitMaxHealth, _, _, unitBuildProgress = Spring.GetUnitHealth(unitID) + local unitMaxRange = Spring.GetUnitMaxRange(unitID) + local unitCommands = Spring.GetCommandQueue(unitID, 0) + local unitposx, unitposy, unitposz = Spring.GetUnitPosition(unitID) + --Spring.Echo(faction) + + --if faction == "arm" then + + -- builders + for u = 1, #SimpleCommanderDefs do + if unitDefID == SimpleCommanderDefs[u] then + local nearestEnemyCloak = Spring.GetUnitNearestEnemy(unitID, 2000, false) + if nearestEnemyCloak and ecurrent > 1000 then + Spring.GiveOrderToUnit(unitID, 37382, {1}, 0) + else + Spring.GiveOrderToUnit(unitID, 37382, {0}, 0) + end + + + local nearestEnemy = Spring.GetUnitNearestEnemy(unitID, 250, true) + local unitHealthPercentage = (unitHealth/unitMaxHealth)*100 + + if nearestEnemy and unitHealthPercentage > 30 then + if ecurrent < estorage*0.9 then + Spring.SetTeamResource(teamID, "e", estorage*0.9) + end + Spring.GiveOrderToUnit(unitID, CMD.DGUN, {nearestEnemy}, 0) + local nearestEnemies = Spring.GetUnitsInCylinder(unitposx, unitposz, 300) + for x = 1,#nearestEnemies do + local enemy = nearestEnemies[x] + if Spring.GetUnitTeam(enemy) == Spring.GetUnitTeam(nearestEnemy) and enemy ~= nearestEnemy then + Spring.GiveOrderToUnit(unitID, CMD.DGUN, {enemy}, {"shift"}) + end + end + Spring.GiveOrderToUnit(unitID, CMD.MOVE, {unitposx, unitposy, unitposz}, {"shift"}) + elseif nearestEnemy then + for x = 1,10 do + local targetUnit = units[math.random(1,#units)] + if UnitDefs[Spring.GetUnitDefID(targetUnit)].isBuilding == true then + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + Spring.GiveOrderToUnit(unitID, CMD.MOVE, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, 0) + break + end + end + end + end + end + + for u = 1, #SimpleConstructorDefs do + if unitDefID == SimpleConstructorDefs[u] then + local unitHealthPercentage = (unitHealth/unitMaxHealth)*100 + local nearestEnemy = Spring.GetUnitNearestEnemy(unitID, 500, true) + if nearestEnemy and unitHealthPercentage > 90 then + Spring.GiveOrderToUnit(unitID, CMD.RECLAIM, {nearestEnemy}, 0) + elseif nearestEnemy then + for x = 1,100 do + local targetUnit = units[math.random(1,#units)] + if UnitDefs[Spring.GetUnitDefID(targetUnit)].isBuilding == true then + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + Spring.GiveOrderToUnit(unitID, CMD.MOVE, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, 0) + break + end + end + end + end + end + + if unitCommands == 0 then + for u = 1, #SimpleConstructorDefs do + if unitDefID == SimpleConstructorDefs[u] then + SimpleConstructionProjectSelection(unitID, unitDefID, unitName, unitTeam, allyTeamID, units, allunits, "Builder") + break + end + end + for u = 1, #SimpleCommanderDefs do + if unitDefID == SimpleCommanderDefs[u] then + SimpleConstructionProjectSelection(unitID, unitDefID, unitName, unitTeam, allyTeamID, units, allunits, "Commander") + break + end + end + + for u = 1, #SimpleFactoriesDefs do + if unitDefID == SimpleFactoriesDefs[u] then + SimpleConstructionProjectSelection(unitID, unitDefID, unitName, unitTeam, allyTeamID, units, allunits, "Factory") + break + end + end + + -- army + + for u = 1, #SimpleUndefinedUnitDefs do + + if unitDefID == SimpleUndefinedUnitDefs[u] then + local luaAI = Spring.GetTeamLuaAI(teamID) + if string.sub(luaAI, 1, 16) == 'SimpleDefenderAI' then + for t = 1,10 do + local targetUnit = allunits[math.random(1,#allunits)] + if Spring.GetUnitAllyTeam(targetUnit) == allyTeamID then + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + Spring.GiveOrderToUnit(unitID, CMD.FIGHT, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, { "shift", "alt", "ctrl" }) + break + end + end + else + local targetUnitNear = Spring.GetUnitNearestEnemy(unitID, 2000, false) + if targetUnitNear then + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnitNear) + Spring.GiveOrderToUnit(unitID, CMD.FIGHT, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, { "shift", "alt", "ctrl" }) + elseif n%3600 <= 15*SimpleAITeamIDsCount then + local targetUnit = Spring.GetUnitNearestEnemy(unitID, 999999, false) + local tUnitX, tUnitY, tUnitZ = Spring.GetUnitPosition(targetUnit) + Spring.GiveOrderToUnit(unitID, CMD.FIGHT, { tUnitX + math.random(-100, 100), tUnitY, tUnitZ + math.random(-100, 100) }, { "shift", "alt", "ctrl" }) + end + break + end + end + end + end + end + end + end + end + end + + function gadget:UnitCreated(unitID, unitDefID, unitTeam, builderID) + local unitName = UnitDefs[unitDefID].name + for i = 1, SimpleAITeamIDsCount do + if SimpleAITeamIDs[i] == unitTeam then + for u = 1, #SimpleFactoriesDefs do + if unitDefID == SimpleFactoriesDefs[u] then + SimpleFactoriesCount[unitTeam] = SimpleFactoriesCount[unitTeam] + 1 + SimpleFactories[unitTeam][unitDefID] = true + break + end + end + for u = 1, #SimpleExtractorDefs do + if unitDefID == SimpleExtractorDefs[u] then + SimpleT1Mexes[unitTeam] = SimpleT1Mexes[unitTeam] + 1 + break + end + end + end + end + end + + function gadget:UnitDestroyed(unitID, unitDefID, unitTeam, attackerID, attackerDefID, attackerTeam) + local unitName = UnitDefs[unitDefID].name + for i = 1, SimpleAITeamIDsCount do + if SimpleAITeamIDs[i] == unitTeam then + for u = 1, #SimpleFactoriesDefs do + if unitDefID == SimpleFactoriesDefs[u] then + SimpleFactoriesCount[unitTeam] = SimpleFactoriesCount[unitTeam] - 1 + SimpleFactories[unitTeam][unitDefID] = nil + break + end + end + for u = 1, #SimpleExtractorDefs do + if unitDefID == SimpleExtractorDefs[u] then + SimpleT1Mexes[unitTeam] = SimpleT1Mexes[unitTeam] - 1 + break + end + end + end + end + end + + +end diff --git a/LuaRules/Gadgets/ai_supply_drops.lua b/LuaRules/Gadgets/ai_supply_drops.lua new file mode 100644 index 000000000..93f31f854 --- /dev/null +++ b/LuaRules/Gadgets/ai_supply_drops.lua @@ -0,0 +1,216 @@ +lootBoxSpawns = tonumber(Spring.GetModOptions().lootboxes) +if Spring.GetModOptions then + if lootBoxSpawns == nil or lootBoxSpawns == 1 then + lootboxSpawnEnabled = true + Spring.Echo("[Scavengers] Lootbox Spawns are Enabled") + elseif lootBoxSpawns == 0 then + lootboxSpawnEnabled = false + Spring.Echo("[Scavengers] Lootbox Spawns are Disabled") + end +else + lootboxSpawnEnabled = true + Spring.Echo("[Scavengers] Lootbox Spawns are Enabled") +end + +function gadget:GetInfo() + return { + name = "supply drops", + desc = "123", + author = "Damgam", + date = "2020", + layer = -100, + enabled = true, + } +end + +if (not gadgetHandler:IsSyncedCode()) then + return false +end + +local lootboxesListLow = { + "lootboxbronze", + "lootboxbronze", +} + +local lootboxesListMid = { + "lootboxbronze", + "lootboxbronze", + "lootboxsilver", +} + +local lootboxesListHigh = { + "lootboxbronze", + "lootboxbronze", + "lootboxbronze", + "lootboxsilver", + "lootboxsilver", + "lootboxsilver", + "lootboxgold", +} + +local lootboxesListTop = { + "lootboxsilver", + "lootboxsilver", + "lootboxsilver", + "lootboxsilver", + "lootboxsilver", + "lootboxgold", + "lootboxgold", + "lootboxgold", + "lootboxgold", + "lootboxplatinum", +} + + + + + + + +-- locals +local spGetUnitTeam = Spring.GetUnitTeam +local spNearestEnemy = Spring.GetUnitNearestEnemy +local spNearestAlly = Spring.GetUnitNearestAlly +local spSeparation = Spring.GetUnitSeparation +local spPosition = Spring.GetUnitPosition +local spTransfer = Spring.TransferUnit +local mapsizeX = Game.mapSizeX +local mapsizeZ = Game.mapSizeZ +local xBorder = math.floor(mapsizeX/5) +local zBorder = math.floor(mapsizeZ/5) +local math_random = math.random +local spGroundHeight = Spring.GetGroundHeight +local spGaiaTeam = Spring.GetGaiaTeamID() +local spCreateUnit = Spring.CreateUnit +local spGetCylinder = Spring.GetUnitsInCylinder + +local aliveLootboxes = {} +local aliveLootboxesCount = 0 + +local QueuedSpawns = {} +local QueuedSpawnsFrames = {} + + + + + + +-- functions + +local function QueueSpawn(unitName, posx, posy, posz, facing, team, frame) + local QueueSpawnCommand = {unitName, posx, posy, posz, facing, team} + local QueueFrame = frame + if #QueuedSpawnsFrames > 0 then + for i = 1, #QueuedSpawnsFrames do + local CurrentQueueFrame = QueuedSpawnsFrames[i] + if (not(CurrentQueueFrame < QueueFrame)) or i == #QueuedSpawnsFrames then + table.insert(QueuedSpawns, i, QueueSpawnCommand) + table.insert(QueuedSpawnsFrames, i, QueueFrame) + break + end + end + else + table.insert(QueuedSpawns, QueueSpawnCommand) + table.insert(QueuedSpawnsFrames, QueueFrame) + end +end + +local function SpawnFromQueue(n) + local QueuedSpawnsForNow = #QueuedSpawns + if QueuedSpawnsForNow > 0 then + for i = 1,QueuedSpawnsForNow do + if n == QueuedSpawnsFrames[1] then + local createSpawnCommand = QueuedSpawns[1] + spCreateUnit(QueuedSpawns[1][1],QueuedSpawns[1][2],QueuedSpawns[1][3],QueuedSpawns[1][4],QueuedSpawns[1][5],QueuedSpawns[1][6]) + table.remove(QueuedSpawns, 1) + table.remove(QueuedSpawnsFrames, 1) + else + break + end + end + end +end + + + + + + +-- callins + +function gadget:GameFrame(n) + if n > 1 then + SpawnFromQueue(n) + end + + if n%30 == 0 and n > 2 then + + if #aliveLootboxes > 0 then + for j = 1,#aliveLootboxes do + local unitID = aliveLootboxes[j] + local unitTeam = spGetUnitTeam(unitID) + local unitEnemy = spNearestEnemy(unitID, 384, false) + if unitEnemy then + local enemyTeam = spGetUnitTeam(unitEnemy) + --if enemyTeam ~= spGaiaTeam then + local posx, posy, posz = spPosition(unitID) + Spring.MarkerErasePosition(posx, posy, posz) + spTransfer(unitID, enemyTeam, false) + Spring.SetUnitNeutral(unitID, true) + --end + end + end + end + if math_random(0,300) == 0 and lootboxSpawnEnabled then + for k = 1,1000 do + local posx = math.floor(math_random(xBorder,mapsizeX-xBorder)/16)*16 + local posz = math.floor(math_random(zBorder,mapsizeZ-zBorder)/16)*16 + local posy = spGroundHeight(posx, posz) + local unitsCyl = spGetCylinder(posx, posz, 384) + if #unitsCyl == 0 then + --QueueSpawn("lootdroppod_gold", posx, posy, posz, math_random(0,3),spGaiaTeam, n) + --QueueSpawn(lootboxesList[math_random(1,#lootboxesList)], posx, posy, posz, math_random(0,3),spGaiaTeam, n+600) + if aliveLootboxesCount < 2 then + spCreateUnit(lootboxesListLow[math_random(1,#lootboxesListLow)], posx, posy, posz, math_random(0,3), spGaiaTeam) + --Spring.MarkerAddPoint(posx, posy, posz, "Resource Generator Detected", true) + elseif aliveLootboxesCount < 4 then + spCreateUnit(lootboxesListMid[math_random(1,#lootboxesListMid)], posx, posy, posz, math_random(0,3), spGaiaTeam) + --Spring.MarkerAddPoint(posx, posy, posz, "Resource Generator Detected", true) + elseif aliveLootboxesCount < 6 then + spCreateUnit(lootboxesListHigh[math_random(1,#lootboxesListHigh)], posx, posy, posz, math_random(0,3), spGaiaTeam) + --Spring.MarkerAddPoint(posx, posy, posz, "Resource Generator Detected", true) + else + spCreateUnit(lootboxesListTop[math_random(1,#lootboxesListTop)], posx, posy, posz, math_random(0,3), spGaiaTeam) + --Spring.MarkerAddPoint(posx, posy, posz, "Resource Generator Detected", true) + end + + break + end + end + end + end +end + + +function gadget:UnitCreated(unitID, unitDefID, unitTeam) + local unitName = UnitDefs[unitDefID].name + if string.find(unitName, "lootbox") then + table.insert(aliveLootboxes,unitID) + aliveLootboxesCount = aliveLootboxesCount + 1 + Spring.SetUnitNeutral(unitID, true) + end +end + + +function gadget:UnitDestroyed(unitID, unitDefID, unitTeam) + local unitName = UnitDefs[unitDefID].name + if string.find(unitName, "lootbox") then + for i = 1,#aliveLootboxes do + if unitID == aliveLootboxes[i] then + aliveLootboxesCount = aliveLootboxesCount - 1 + table.remove(aliveLootboxes,i) + break + end + end + end +end \ No newline at end of file diff --git a/LuaRules/Gadgets/gaia_scavenger_spawner.lua b/LuaRules/Gadgets/gaia_scavenger_spawner.lua deleted file mode 100644 index 9551a1cac..000000000 --- a/LuaRules/Gadgets/gaia_scavenger_spawner.lua +++ /dev/null @@ -1,541 +0,0 @@ -function gadget:GetInfo() - return { - name = "gaia scavenger unit spawner", - desc = "Spawner of units", - author = "Damgam", - date = "2019", - layer = -100, - enabled = true, - } -end - -local devswitch = 0 - --- synced only -if (not gadgetHandler:IsSyncedCode()) then - return false -end - - -ScavengerBlueprintsT0 = {} -ScavengerBlueprintsT1 = {} -ScavengerBlueprintsT2 = {} -ScavengerBlueprintsT3 = {} -ScavengerConstructorBlueprintsT0 = {} -ScavengerConstructorBlueprintsT1 = {} -ScavengerConstructorBlueprintsT2 = {} -ScavengerConstructorBlueprintsT3 = {} - -ConfigsList = VFS.DirList('LuaRules/Configs/ScavengerBlueprints/','*.lua') -for i = 1,#ConfigsList do - VFS.Include(ConfigsList[i]) - Spring.Echo("Direction: " ..ConfigsList[i]) -end - -ConfigsList2 = VFS.DirList('LuaRules/Configs/ScavengerBlueprints/Constructor/','*.lua') -for i = 1,#ConfigsList2 do - VFS.Include(ConfigsList2[i]) - Spring.Echo("Direction: " ..ConfigsList2[i]) -end - ------------------------------------------------------------------------- - -local GaiaTeamID = Spring.GetGaiaTeamID() -local _,_,_,_,_,GaiaAllyTeamID = Spring.GetTeamInfo(GaiaTeamID) -local teamcount = #Spring.GetTeamList() - 2 -local mapsizeX = Game.mapSizeX -local mapsizeZ = Game.mapSizeZ -local deathwater = Game.waterDamage ---local spawnmultiplier = 1 -local spawnmultiplier = tonumber(Spring.GetModOptions().scavengers) or 0 -if devswitch == 1 then - spawnmultiplier = 1 -end -local failcounter = 0 ---local discoscavengers = tonumber(Spring.GetModOptions().discoscavengers) or 0 - -local BonusUnits = {"scavcommanderateran", "eorb", "ehbotengineer", "ebox", "escoutdrone", "eallterrshield", "zairscout",} - -local T0Units = { --- Z -"zlightswarm", -"zmedswarm", -"zpyro", --- AllTerr -"eallterrlight", -"eallterrassault", -"eallterrriot", -"eallterrriot_shotgun", --- Amphib -"eamphibarty", -"eamphibbuggy", -"eamphibneedle", -"eamphibriot", -"eamphibriot_shotgun", --- Hbot -"ehbotpeewee", -"ehbotthud", --- Hover -"eartytank", -"elighttank3", -"eriottank2", -"eriottank2_shotgun", - -} - -local T1Units = { --- Z -"zlightswarm", -"zmedswarm", -"zpyro", --- AllTerr -"eallterrlight_up1", -"eallterrassault_up1", -"eallterrriot_up1", -"eallterrriot_shotgun_up1", --- Amphib -"eamphibarty_up1", -"eamphibbuggy_up1", -"eamphibneedle_up1", -"eamphibriot_up1", -"eamphibriot_shotgun_up1", --- Hbot -"ehbotpeewee_up1", -"ehbotthud_up1", --- Hover -"eartytank_up1", -"elighttank3_up1", -"eriottank2_up1", -"eriottank2_shotgun_up1", -} - -local T2Units = { --- Z -"zlightswarm", -"zmedswarm", -"zpyro", -"zairbomber", -"zairtoairfighter", -"zairtogroundfighter", -"zskirmisher", --- Air -"efighter_up2", -"egunship2_up2", -"ebomber2_up2", --- AllTerr -"eallterrlight_up2", -"eallterrassault_up2", -"eallterrriot_up2", -"eallterrriot_shotgun_up2", -"eallterrmed_up2", -"eallterrheavy_up2", --- Amphib -"eamphibarty_up2", -"eamphibbuggy_up2", -"eamphibneedle_up2", -"eamphibriot_up2", -"eamphibriot_shotgun_up2", -"eamphibmedtank_up2", -"eamphibrock_up2", --- Hbot -"ehbotpeewee_up2", -"ehbotthud_up2", -"ehbotsniper_up2", -"ehbotrocko_up2", --- Hover -"eartytank_up2", -"eartytank_saturation_up2", -"elighttank3_up2", -"eriottank2_up2", -"eriottank2_shotgun_up2", -"eheavytank3_up2", -"emissiletank_up2", -} - -local T3Units = { --- Z -"zlightswarm", -"zmedswarm", -"zpyro", -"zairbomber", -"zairtoairfighter", -"zairtogroundfighter", -"zskirmisher", -"zassault", -"zkamikaze", -"zqueen", --- Air -"efighter_up3", -"egunship2_up3", -"ebomber2_up3", -"eairemp_up3", -"ekrow_up3", --- AllTerr -"eallterrlight_up3", -"eallterrassault_up3", -"eallterrriot_up3", -"eallterrriot_shotgun_up3", -"eallterrmed_up3", -"eallterrheavy_up3", -"eallterranarchid_up3", --- Amphib -"eamphibarty_up3", -"eamphibbuggy_up3", -"eamphibneedle_up3", -"eamphibriot_up3", -"eamphibriot_shotgun_up3", -"eamphibmedtank_up3", -"eamphibrock_up3", -"eamphibleveler_up3", --- Hbot -"ehbotpeewee_up3", -"ehbotthud_up3", -"ehbotsniper_up3", -"ehbotrocko_up3", -"ehbotkarganneth_up3", --- Hover -"eartytank_up3", -"eartytank_saturation_up3", -"elighttank3_up3", -"eriottank2_up3", -"eriottank2_shotgun_up3", -"eheavytank3_up3", -"emissiletank_up3", -"elacerator_up3", -} - ---local timer = Spring.GetGameSeconds() - -local dx = {} -local dy = {} -local dz = {} -local olddx = {} -local olddy = {} -local olddz = {} -local isScavCommander = {} -local selfdestructcounter = 0 -local posx = 0 -local posy = 0 -local posz = 0 -local posradius = 0 -local canSpawnHere = false -local canBuildHere = false -local canConstructHere = false -local blueprint = 0 -local radiusCheck = false -local FailedToGiveBlueprint = 0 - - - ------------------------------------------------------------------------- - -function gadget:Initialize() - -- local mo = Spring.GetModOptions() - -- if mo and tonumber(mo.scavengers)==0 then - -- Spring.Echo("[scavengers] Disabled via ModOption") - -- gadgetHandler:RemoveGadget(self) - -- end - -end - --- function gadget:UnitCreated(unitID, unitDefID, unitTeam) - -- if unitTeam == GaiaTeamID then - -- if string.find(UnitDefs[unitDefID].name,"scavcommander") then - -- isScavCommander[unitID] = true - -- else - -- isScavCommander[unitID] = false - -- end - -- end --- end - -local function posCheck(posx, posy, posz, posradius) - -- if true then can spawn - local testpos1 = Spring.GetGroundHeight((posx + posradius), (posz + posradius) ) - local testpos2 = Spring.GetGroundHeight((posx + posradius), (posz - posradius) ) - local testpos3 = Spring.GetGroundHeight((posx - posradius), (posz + posradius) ) - local testpos4 = Spring.GetGroundHeight((posx - posradius), (posz - posradius) ) - local testpos5 = Spring.GetGroundHeight((posx + posradius), posz ) - local testpos6 = Spring.GetGroundHeight(posx, (posz + posradius) ) - local testpos7 = Spring.GetGroundHeight((posx - posradius), posz ) - local testpos8 = Spring.GetGroundHeight(posx, (posz - posradius) ) - if deathwater > 0 and posy <= 0 then - return false - elseif testpos1 < posy - 50 or testpos1 > posy + 50 then - return false - elseif testpos2 < posy - 50 or testpos2 > posy + 50 then - return false - elseif testpos3 < posy - 50 or testpos3 > posy + 50 then - return false - elseif testpos4 < posy - 50 or testpos4 > posy + 50 then - return false - elseif testpos5 < posy - 50 or testpos5 > posy + 50 then - return false - elseif testpos6 < posy - 50 or testpos6 > posy + 50 then - return false - elseif testpos7 < posy - 50 or testpos7 > posy + 50 then - return false - elseif testpos8 < posy - 50 or testpos8 > posy + 50 then - return false - else - return true - end -end - -local function posOccupied(posx, posy, posz, posradius) - -- if true then can spawn - local unitcount = #Spring.GetUnitsInRectangle(posx-posradius, posz-posradius, posx+posradius, posz+posradius) - if unitcount > 0 then - return false - else - return true - end -end - -local function posLosCheck(posx, posy, posz, posradius) - -- if true then can spawn - for _,allyTeamID in ipairs(Spring.GetAllyTeamList()) do - if allyTeamID ~= GaiaAllyTeamID then - if Spring.IsPosInLos(posx, posy, posz, allyTeamID) == true or - Spring.IsPosInLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or - Spring.IsPosInLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInLos(posx - posradius, posy, posz - posradius, allyTeamID) == true or - Spring.IsPosInRadar(posx, posy, posz, allyTeamID) == true or - Spring.IsPosInRadar(posx + posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInRadar(posx + posradius, posy, posz - posradius, allyTeamID) == true or - Spring.IsPosInRadar(posx - posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInRadar(posx - posradius, posy, posz - posradius, allyTeamID) == true or - Spring.IsPosInAirLos(posx, posy, posz, allyTeamID) == true or - Spring.IsPosInAirLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInAirLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or - Spring.IsPosInAirLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or - Spring.IsPosInAirLos(posx - posradius, posy, posz - posradius, allyTeamID) == true then - return false - end - end - end - return true -end - ---local function buildBlueprint(blueprint) - --blueprint ---end - -function gadget:GameFrame(n) - if spawnmultiplier > 0 then - if n%10 == 0 and n > 3000 then - Spring.SetTeamColor(GaiaTeamID, math.random(0,255)/255, math.random(0,255)/255, math.random(0,255)/255) - end - if n == 100 then - Spring.SetTeamResource(GaiaTeamID, "ms", 100000) - Spring.SetTeamResource(GaiaTeamID, "es", 100000) - Spring.SetGlobalLos(GaiaAllyTeamID, false) - end - if n%3000 == 0 then - Spring.SetTeamResource(GaiaTeamID, "m", 100000) - Spring.SetTeamResource(GaiaTeamID, "e", 100000) - end - -- if n%90 == 0 and n > 3000 then - -- local gaiaUnitCount = Spring.GetTeamUnitCount(GaiaTeamID) - -- local spawnchance = math.random(0,20) - -- if spawnchance == 0 or canBuildHere == false then - -- posx = math.random(200,mapsizeX-200) - -- posz = math.random(200,mapsizeZ-200) - -- posy = Spring.GetGroundHeight(posx, posz) - -- --blueprint = ScavengerBlueprintsStart[math.random(1,#ScavengerBlueprintsStart)] - -- if n > 54000 then - -- local r = math.random(0,1) - -- if r == 0 then - -- blueprint = ScavengerBlueprintsT3[math.random(1,#ScavengerBlueprintsT3)] - -- else - -- blueprint = ScavengerBlueprintsT2[math.random(1,#ScavengerBlueprintsT2)] - -- end - -- elseif n > 36000 then - -- local r = math.random(0,2) - -- if r == 0 then - -- blueprint = ScavengerBlueprintsT2[math.random(1,#ScavengerBlueprintsT2)] - -- elseif r == 1 then - -- blueprint = ScavengerBlueprintsT1[math.random(1,#ScavengerBlueprintsT1)] - -- else - -- blueprint = ScavengerBlueprintsT0[math.random(1,#ScavengerBlueprintsT0)] - -- end - -- elseif n > 18000 then - -- local r = math.random(0,1) - -- if r == 0 then - -- blueprint = ScavengerBlueprintsT1[math.random(1,#ScavengerBlueprintsT1)] - -- else - -- blueprint = ScavengerBlueprintsT0[math.random(1,#ScavengerBlueprintsT0)] - -- end - -- else - -- blueprint = ScavengerBlueprintsT0[math.random(1,#ScavengerBlueprintsT0)] - -- end - -- posradius = blueprint(posx, posy, posz, GaiaTeamID, true) - -- canBuildHere = posLosCheck(posx, posy, posz, posradius) - -- if canBuildHere then - -- canBuildHere = posOccupied(posx, posy, posz, posradius) - -- end - -- if canBuildHere then - -- canBuildHere = posCheck(posx, posy, posz, posradius) - -- end - - -- if canBuildHere then - -- -- let's do this shit - -- blueprint(posx, 5000, posz, GaiaTeamID, false) - -- end - -- end - -- end - - if n%30 == 0 and n > 5400 then - local gaiaUnitCount = Spring.GetTeamUnitCount(GaiaTeamID) - local spawnchance = math.random(0,math.ceil((((gaiaUnitCount)/teamcount)+2)*(#Spring.GetAllyTeamList() - 1)/spawnmultiplier)) - --local spawnchance = 0 -- dev purpose - if spawnchance == 0 or canSpawnHere == false then - -- check positions - local posx = math.random(200,mapsizeX-200) - local posz = math.random(200,mapsizeZ-200) - local posy = Spring.GetGroundHeight(posx, posz) - local posradius = 200 - canSpawnHere = posCheck(posx, posy, posz, posradius) - if canSpawnHere then - canSpawnHere = posLosCheck(posx, posy, posz,posradius) - end - if canSpawnHere then - canSpawnHere = posOccupied(posx, posy, posz, posradius) - end - --spawn units - if canSpawnHere then - --Spring.Echo("Spawning Scav Group") - local groupsize = (((n)+#Spring.GetAllUnits())*spawnmultiplier*teamcount)/(#Spring.GetAllyTeamList()) - if Spring.GetGameSeconds() < 450 then - spawnunit = T0Units[math.random(1,#T0Units)] - elseif Spring.GetGameSeconds() >= 450 and Spring.GetGameSeconds() < 900 then - spawnunit = T1Units[math.random(1,#T1Units)] - elseif Spring.GetGameSeconds() >= 900 and Spring.GetGameSeconds() < 1800 then - spawnunit = T2Units[math.random(1,#T2Units)] - elseif Spring.GetGameSeconds() >= 1800 then - spawnunit = T3Units[math.random(1,#T3Units)] - end - - local cost = UnitDefNames[spawnunit].metalCost*40 - local groupsize = math.ceil(groupsize/cost) - Spring.CreateUnit(BonusUnits[math.random(1,#BonusUnits)], posx+math.random(-groupsize*10,groupsize*10), posy, posz+math.random(-groupsize*10,groupsize*10), math.random(0,3),GaiaTeamID) - for i=1, groupsize do - Spring.CreateUnit(spawnunit, posx+math.random(-groupsize*10,groupsize*10), posy, posz+math.random(-groupsize*10,groupsize*10), math.random(0,3),GaiaTeamID) - end - if devswitch == 1 then - Spring.Echo("Spawned Scavenger group: " ..groupsize.. " " ..UnitDefNames[spawnunit].humanName.. "s") - end - end - end - --move idle units - local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) - if scavengerunits then - for i = 1,#scavengerunits do - local scav = scavengerunits[i] - local scavDef = Spring.GetUnitDefID(scav) - local scavStructure = UnitDefs[scavDef].isBuilding - if string.find(UnitDefs[scavDef].name, "scavcommander") then - scavStructure = true - end - if not scavStructure and n%900 == 0 then - if dx[scav] then - olddx[scav] = dx[scav] - end - if dy[scav] then - olddy[scav] = dy[scav] - end - if dz[scav] then - olddz[scav] = dz[scav] - end - dx[scav],dy[scav],dz[scav] = Spring.GetUnitPosition(scav) - if (olddx[scav] and olddy[scav] and olddz[scav]) and (olddx[scav] > dx[scav]-10 and olddx[scav] < dx[scav]+10) and (olddy[scav] > dy[scav]-10 and olddy[scav] < dy[scav]+10) and (olddz[scav] > dz[scav]-10 and olddz[scav] < dz[scav]+10) then - Spring.DestroyUnit(scav, true, false) - selfdestructcounter = selfdestructcounter + 1 - end - end - if (not scavStructure and Spring.GetCommandQueue(scav, 0) <= 1) or (string.find(UnitDefs[scavDef].name, "scavcommander") and Spring.GetCommandQueue(scav, 0) <= 1) then - - if string.find(UnitDefs[scavDef].name,"scavcommander") then - local x,y,z = Spring.GetUnitPosition(scav) - local posx = math.random(x-1000,x+1000) - local posz = math.random(z-1000,z+1000) - local posy = Spring.GetGroundHeight(posx, posz) - if n > 54000 then - local r = math.random(0,1) - if r == 0 then - blueprint = ScavengerConstructorBlueprintsT3[math.random(1,#ScavengerConstructorBlueprintsT3)] - else - blueprint = ScavengerConstructorBlueprintsT2[math.random(1,#ScavengerConstructorBlueprintsT2)] - end - elseif n > 36000 then - local r = math.random(0,2) - if r == 0 then - blueprint = ScavengerConstructorBlueprintsT2[math.random(1,#ScavengerConstructorBlueprintsT2)] - elseif r == 1 then - blueprint = ScavengerConstructorBlueprintsT1[math.random(1,#ScavengerConstructorBlueprintsT1)] - else - blueprint = ScavengerConstructorBlueprintsT0[math.random(1,#ScavengerConstructorBlueprintsT0)] - end - elseif n > 18000 then - local r = math.random(0,1) - if r == 0 then - blueprint = ScavengerConstructorBlueprintsT1[math.random(1,#ScavengerConstructorBlueprintsT1)] - else - blueprint = ScavengerConstructorBlueprintsT0[math.random(1,#ScavengerConstructorBlueprintsT0)] - end - else - blueprint = ScavengerConstructorBlueprintsT0[math.random(1,#ScavengerConstructorBlueprintsT0)] - end - - posradius = blueprint(scav, posx, posy, posz, GaiaTeamID, true) - canConstructHere = posOccupied(posx, posy, posz, posradius) - if canConstructHere then - canConstructHere = posCheck(posx, posy, posz, posradius) - end - if canConstructHere then - -- let's do this shit - blueprint(scav, posx, posy, posz, GaiaTeamID, false) - local x = math.random(100,mapsizeX-100) - local z = math.random(100,mapsizeZ-100) - local y = Spring.GetGroundHeight(x,z) - Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) - local x = math.random(x-100,x+100) - local z = math.random(z-100,z+100) - local y = Spring.GetGroundHeight(x,z) - Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) - else - local x,y,z = Spring.GetUnitPosition(scav) - local x = math.random(x-500,x+500) - local z = math.random(z-500,z+500) - local y = Spring.GetGroundHeight(x,z) - Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) - end - else - local nearest = Spring.GetUnitNearestEnemy(scav, 200000, false) - local x,y,z = Spring.GetUnitPosition(nearest) - local x = x + math.random(-50,50) - local z = z + math.random(-50,50) - Spring.GiveOrderToUnit(scav, CMD.FIGHT,{x,y,z}, {"shift"}) - end - end - end - if selfdestructcounter and selfdestructcounter > 0 and devswitch == 1 then - Spring.Echo("Self Destructed "..selfdestructcounter.." Scavenger units.") - selfdestructcounter = 0 - end - end - end - end -end - -function gadget:UnitDestroyed(unitID, unitDefID, unitTeam) - if unitTeam == GaiaTeamID then - dx[unitID] = nil - dy[unitID] = nil - dz[unitID] = nil - olddx[unitID] = nil - olddy[unitID] = nil - olddz[unitID] = nil - isScavCommander[unitID] = nil - end -end diff --git a/LuaRules/Gadgets/game_autocolors.lua b/LuaRules/Gadgets/game_autocolors.lua new file mode 100644 index 000000000..e6f74ec65 --- /dev/null +++ b/LuaRules/Gadgets/game_autocolors.lua @@ -0,0 +1,372 @@ +if gadgetHandler:IsSyncedCode() then + return +end + +function gadget:GetInfo() + return { + name = "AutoColorPicker", + desc = "Automatically assigns colors to teams", + author = "Damgam", + date = "2021", + layer = -100, + enabled = true, + } +end + +local spGetTeamInfo = Spring.GetTeamInfo +local spGetTeamList = Spring.GetTeamList +local spGetAllyTeamList= Spring.GetAllyTeamList +local spGetMyTeamID = Spring.GetMyTeamID +local spGetMyAllyTeamID = Spring.GetMyAllyTeamID +local spSetTeamColor = Spring.SetTeamColor +local spGetTeamLuaAI = Spring.GetTeamLuaAI +local spGetGaiaTeamID = Spring.GetGaiaTeamID +local spGetSpectatingState = Spring.GetSpectatingState +local spGetConfigInt = Spring.GetConfigInt +local spGetLastUpdateSeconds = Spring.GetLastUpdateSeconds + +local myPlayerID = Spring.GetMyPlayerID() + + + +local ffaCounter = 0 +local allyCounter = 0 +local enemyCounter = 0 +local simpleColorsUpdateCounter = 0 + +SimpleColorsEnabled = Spring.GetConfigInt("simple_auto_colors", 0) -- Floris plz add option here +local DynamicTeamColorsEnabledModoption = (Spring.GetModOptions and Spring.GetModOptions().teamcolors_dynamic) or "enabled" +if DynamicTeamColorsEnabledModoption == "enabled" then + DynamicTeamColorsEnabled = true +else + DynamicTeamColorsEnabled = false +end +local AnonymousModeEnabledModoption = (Spring.GetModOptions and Spring.GetModOptions().teamcolors_anonymous_mode) or "disabled" +if AnonymousModeEnabledModoption == "enabled" then + AnonymousModeEnabled = true +else + AnonymousModeEnabled = false +end +local IconDevModeEnabledModoption = (Spring.GetModOptions and Spring.GetModOptions().teamcolors_icon_dev_mode) or "disabled" +if IconDevModeEnabledModoption == "disabled" then + IconDevModeEnabled = false +else + if IconDevModeEnabledModoption == "armblue" then + IconDevModeColor = {0, 80, 255} + elseif IconDevModeEnabledModoption == "corred" then + IconDevModeColor = {255, 16, 5} + elseif IconDevModeEnabledModoption == "scavpurp" then + IconDevModeColor = {97, 36, 97} + elseif IconDevModeEnabledModoption == "chickenorange" then + IconDevModeColor = {255, 125, 32} + elseif IconDevModeEnabledModoption == "gaiagray" then + IconDevModeColor = {127, 127, 127} + end + IconDevModeEnabled = true +end + +SimplePlayerColor = {0, 80, 255} -- Armada Blue +SimpleAllyColor = {0,255,0} -- Full Green +SimpleEnemyColor = {255, 16, 5} -- Cortex Red + +-- FFA +FFAColors = { + [1] = {82, 151, 255 }, -- Blue + [2] = {255, 0, 0 }, -- Red + [3] = {10, 232, 18 }, -- Green + [4] = {255, 232, 22 }, -- Yellow + [5] = {94, 9, 178 }, -- Purple + [6] = {255, 125, 32 }, -- Orange + [7] = {47, 66, 238 }, -- Darker Blue + [8] = {229, 18, 120 }, -- Pink + [9] = {191, 169, 255 }, -- Lavender + [10] ={255, 243, 135 }, -- Bleached Yellow + [11] ={0, 170, 99 }, -- Grass + [12] ={166, 14, 5 }, -- Blood + [13] ={178, 255, 227 }, -- Aqua + [14] ={251, 167, 120 }, -- Skin? lol + [15] ={8, 37, 190 }, -- Dark Blue + [16] ={118, 39, 6 }, -- Brown +} + + +AllyColors = { + [2] = { -- Two Teams + [1] = {0, 80, 255 }, -- Armada Blue + [2] = {10, 232, 18 }, -- Green + [3] = {147, 226, 251 }, -- Light Blue + [4] = {82, 151, 255 }, -- Darker Blue + [5] = {191, 169, 255 }, -- Lavender + [6] = {0, 170, 99 }, -- Grass + [7] = {117, 253, 147 }, -- Aqua Green + [8] = {8, 37, 190 }, -- Dark Blue + }, + [3] = { -- Three Teams + [1] = {82, 151, 255 }, + [2] = {47, 66, 238 }, + [3] = {147, 226, 251 }, + [4] = {8, 37, 190 }, + [5] = {35, 11, 129 }, + }, + [4] = { -- Four Teams + [1] = {82, 151, 255 }, + [2] = {47, 66, 238 }, + [3] = {147, 226, 251 }, + [4] = {8, 37, 190 }, + }, + [5] = { -- Five Teams + [1] = {82, 151, 255 }, + [2] = {47, 66, 238 }, + [3] = {147, 226, 251 }, + }, + [6] = { -- Six Teams + [1] = {82, 151, 255 }, + [2] = {47, 66, 238 }, + }, +} + +EnemyColors = { + [2] = { -- Two Teams + [1] = { + [1] = {200, 16, 5 }, -- Cortex Red + [2] = {255, 232, 22 }, -- Yellow + [3] = {255, 125, 32 }, -- Orange + [4] = {229, 18, 120 }, -- Pink + [5] = {255, 243, 135 }, -- Bleached Yellow + [6] = {166, 14, 5 }, -- Blood + [7] = {251, 167, 120 }, -- Skin? lol + [8] = {118, 39, 6 }, -- Brown + }, + }, + [3] = { -- Three Teams + [1] = { -- First Enemy Team + [1] = {231, 0, 0 }, + [2] = {255, 125, 32 }, + [3] = {255, 232, 22 }, + [4] = {166, 14, 5 }, + [5] = {118, 39, 6 }, + }, + [2] = { -- Second Enemy Team + [1] = {10, 232, 32 }, + [2] = {10, 142, 7 }, + [3] = {117, 253, 147 }, + [4] = {5, 84, 13 }, + [5] = {45, 57, 9 }, + }, + }, + [4] = { -- Four Teams + [1] = { -- First Enemy Team + [1] = {231, 0, 0 }, + [2] = {255, 125, 32 }, + [3] = {255, 232, 22 }, + [4] = {166, 14, 5 }, + }, + [2] = { -- Second Enemy Team + [1] = {10, 232, 32 }, + [2] = {10, 142, 7 }, + [3] = {117, 253, 147 }, + [4] = {5, 84, 13 }, + }, + [3] = { -- Third Enemy Team + [1] = {200, 102, 246 }, + [2] = {134, 10, 232 }, + [3] = {191, 169, 255 }, + [4] = {94, 9, 178 }, + }, + }, + [5] = { -- Five Teams + [1] = { -- First Enemy Team + [1] = {231, 0, 0 }, + [2] = {255, 125, 32 }, + [3] = {166, 14, 5 }, + }, + [2] = { -- Second Enemy Team + [1] = {10, 232, 32 }, + [2] = {10, 142, 7 }, + [3] = {117, 253, 147 }, + }, + [3] = { -- Third Enemy Team + [1] = {200, 102, 246 }, + [2] = {134, 10, 232 }, + [3] = {191, 169, 255 }, + }, + [4] = { -- Fourth Enemy Team + [1] = {255, 232, 22 }, + [2] = {191, 151, 8 }, + [3] = {255, 243, 135 }, + }, + }, + [6] = { -- Six Teams + [1] = { -- First Enemy Team + [1] = {231, 0, 0 }, + [2] = {166, 14, 5 }, + }, + [2] = { -- Second Enemy Team + [1] = {10, 232, 32 }, + [2] = {10, 142, 7 }, + }, + [3] = { -- Third Enemy Team + [1] = {200, 102, 246 }, + [2] = {134, 10, 232 }, + }, + [4] = { -- Fourth Enemy Team + [1] = {255, 232, 22 }, + [2] = {191, 151, 8 }, + }, + [5] = { -- Fifth Enemy Team + [1] = {255, 161, 73 }, + [2] = {222, 93, 0 }, + }, + }, +} + +ScavColor = {97, 36, 97} +GaiaColor = {127, 127, 127} + +local function MissingColorHandler(teamID, allyTeam) + local myTeam = spGetMyTeamID() + local myAllyTeam = spGetMyAllyTeamID() + if teamID == myTeam then + spSetTeamColor(teamID, SimplePlayerColor[1]/255, SimplePlayerColor[2]/255, SimplePlayerColor[3]/255) + elseif allyTeam == myAllyTeam then + spSetTeamColor(teamID, SimpleAllyColor[1]/255, SimpleAllyColor[2]/255, SimpleAllyColor[3]/255) + else + spSetTeamColor(teamID, SimpleEnemyColor[1]/255, SimpleEnemyColor[2]/255, SimpleEnemyColor[3]/255) + end +end + +local function EnemyColorHandler(teamID, allyTeam, allyTeamCount, myTeam, myAllyTeam) + if not EATeams[allyTeam] then + EATeams[allyTeam] = true + if EACountNumber then + EACount[allyTeam] = EACountNumber + 1 + EACountNumber = EACountNumber + 1 + else + EACount[allyTeam] = 1 + EACountNumber = 1 + end + EATeamsCount[allyTeam] = 0 + end + EATeamsCount[allyTeam] = EATeamsCount[allyTeam] + 1 + --Spring.Echo("allyTeamCount "..allyTeamCount) + --Spring.Echo("EACount[allyTeam] "..EACount[allyTeam]) + --Spring.Echo("EATeams[allyTeam] "..EATeams[allyTeam]) + --Spring.Echo("EATeamsCount[allyTeam] "..EATeamsCount[allyTeam]) + if EnemyColors[allyTeamCount] then + if EnemyColors[allyTeamCount][EACount[allyTeam]] then + if EnemyColors[allyTeamCount][EACount[allyTeam]][EATeamsCount[allyTeam]] then + spSetTeamColor( + teamID, + EnemyColors[allyTeamCount][EACount[allyTeam]][EATeamsCount[allyTeam]][1] /255, + EnemyColors[allyTeamCount][EACount[allyTeam]][EATeamsCount[allyTeam]][2] /255, + EnemyColors[allyTeamCount][EACount[allyTeam]][EATeamsCount[allyTeam]][3] /255 + ) + else + MissingColorHandler(teamID, allyTeam) + end + else + MissingColorHandler(teamID, allyTeam) + end + else + MissingColorHandler(teamID, allyTeam) + end + -- planned +end + +local function UpdatePlayerColors() + local teams = spGetTeamList() + local allyteams = spGetAllyTeamList() + local myTeam = spGetMyTeamID() + local myAllyTeam = spGetMyAllyTeamID() + local spectator = spGetSpectatingState() + EATeams = {} + EACount = {} + EATeamsCount = {} + for i = 1,#teams do + local teamID = teams[i] + local _, leader, isDead, isAiTeam, side, allyTeam, incomeMultiplier, customTeamKeys = spGetTeamInfo(teamID) + local luaAI = spGetTeamLuaAI(teamID) + if isAiTeam and (luaAI and (string.find(luaAI, "Scavenger"))) then + if string.find(luaAI, "Scavenger") then + spSetTeamColor(teamID, ScavColor[1]/255, ScavColor[2]/255, ScavColor[3]/255) + end + elseif spGetGaiaTeamID() == teamID then + spSetTeamColor(teamID, GaiaColor[1]/255, GaiaColor[2]/255, GaiaColor[3]/255) + else + if SimpleColorsEnabled == 1 then -- SimpleColors + MissingColorHandler(teamID, allyTeam) + elseif (AnonymousModeEnabled and allyTeam ~= myAllyTeam) and (not spectator) then + spSetTeamColor(teamID, SimpleEnemyColor[1]/255, SimpleEnemyColor[2]/255, SimpleEnemyColor[3]/255) + elseif #teams == #allyteams then -- FFA + ffaCounter = ffaCounter+1 + if AnonymousModeEnabled and teamID == myTeam and (not spectator) then + spSetTeamColor(teamID, SimplePlayerColor[1]/255, SimplePlayerColor[2]/255, SimplePlayerColor[3]/255) + elseif FFAColors[ffaCounter] then + spSetTeamColor(teamID, FFAColors[ffaCounter][1] /255, FFAColors[ffaCounter][2] /255, FFAColors[ffaCounter][3] /255) + else + MissingColorHandler(teamID, allyTeam) + end + else + if spectator or (not AnonymousModeEnabled and (not DynamicTeamColorsEnabled)) then + myTeam = 0 + myAllyTeam = 0 + end + if allyTeam == myAllyTeam then + allyCounter = allyCounter+1 + if AllyColors[#allyteams-1] then + if AllyColors[#allyteams-1][allyCounter] then + spSetTeamColor(teamID, AllyColors[#allyteams-1][allyCounter][1] /255, AllyColors[#allyteams-1][allyCounter][2] /255, AllyColors[#allyteams-1][allyCounter][3] /255) + else + MissingColorHandler(teamID, allyTeam) + end + else + MissingColorHandler(teamID, allyTeam) + end + else + EnemyColorHandler(teamID, allyTeam, #allyteams-1, myTeam, myAllyTeam) + end + end + end + if IconDevModeEnabled == true then + spSetTeamColor(teamID, IconDevModeColor[1] /255, IconDevModeColor[2] /255, IconDevModeColor[3] /255) + end + end + myTeam = nil + myAllyTeam = nil + ffaCounter = 0 + allyCounter = 0 + EATeams = nil + EACount = nil + EATeamsCount = nil + EACountNumber = nil +end + +function gadget:Initialize() + UpdatePlayerColors() +end + +function gadget:PlayerChanged(playerID) + if playerID == myPlayerID then + UpdatePlayerColors() + end +end + +function gadget:Update() + simpleColorsUpdateCounter = simpleColorsUpdateCounter + spGetLastUpdateSeconds() + if simpleColorsUpdateCounter > 1 then + simpleColorsUpdateCounter = 0 + local PreviousSimpleColorsEnabled = SimpleColorsEnabled + SimpleColorsEnabled = spGetConfigInt("simple_auto_colors", 0) + if PreviousSimpleColorsEnabled ~= SimpleColorsEnabled then + UpdatePlayerColors() + end + end + + if math.random(0,60) == 0 then + UpdatePlayerColors() + end +end + + + + diff --git a/LuaRules/Gadgets/game_over.lua b/LuaRules/Gadgets/game_end_over.lua similarity index 99% rename from LuaRules/Gadgets/game_over.lua rename to LuaRules/Gadgets/game_end_over.lua index de6c66b9d..ca5bf9aba 100644 --- a/LuaRules/Gadgets/game_over.lua +++ b/LuaRules/Gadgets/game_end_over.lua @@ -42,7 +42,7 @@ local spTransferUnit = Spring.TransferUnit local spKillTeam = Spring.KillTeam local spGameOver = Spring.GameOver -local COMM_VALUE = UnitDefNames.ecommander.metalCost or 500 +local COMM_VALUE = 500 local ECON_SUPREMACY_MULT = 25 -------------------------------------------------------------------------------- diff --git a/LuaRules/Gadgets/game_team_com_ends.lua b/LuaRules/Gadgets/game_end_team_com_ends.lua similarity index 100% rename from LuaRules/Gadgets/game_team_com_ends.lua rename to LuaRules/Gadgets/game_end_team_com_ends.lua diff --git a/LuaRules/Gadgets/game_featureReclaim.lua b/LuaRules/Gadgets/game_featureReclaim.lua index 6856a1930..89fef9e13 100644 --- a/LuaRules/Gadgets/game_featureReclaim.lua +++ b/LuaRules/Gadgets/game_featureReclaim.lua @@ -6,7 +6,7 @@ function gadget:GetInfo() date = "December, 2008", license = "public domain", layer = 0, - enabled = true -- loaded by default? + enabled = false -- loaded by default? } end @@ -26,10 +26,10 @@ if gadgetHandler:IsSyncedCode() then reclaimLeft[featureID] = (reclaimLeft[featureID] or 0.1) + part if (reclaimLeft[featureID] <= 0) then Spring.DestroyFeature(featureID) - Spring.AddTeamResource(builderTeam, "e", 10) + --Spring.AddTeamResource(builderTeam, "e", 1) local fx, fy, fz = GetFeaturePosition(featureID) - Spring.PlaySoundFile("sounds/miscfx/reclaimed.wav", 1, fx, fy, fz) - SpawnCEG("sparklegreenplus10energy", fx, fy, fz) + Spring.PlaySoundFile("sounds/miscfx/reclaimed.wav", 0.5, fx, fy, fz) + SpawnCEG("sparklegreen", fx, fy, fz) end return false end diff --git a/LuaRules/Gadgets/game_resourceGifts.lua b/LuaRules/Gadgets/game_resourceGifts.lua index 1ea4df56a..215cb4ac1 100644 --- a/LuaRules/Gadgets/game_resourceGifts.lua +++ b/LuaRules/Gadgets/game_resourceGifts.lua @@ -14,7 +14,7 @@ local MEX_INCOME = 1 -- income of each mex local modOptions = Spring.GetModOptions(); -- Give resources to teams -local baseIncome = Spring.GetModOptions().basicincome or 5 +local baseIncome = Spring.GetModOptions().basicincome or 1 local baseIncomeIncrease = Spring.GetModOptions().basicincomeincrease or 1 -- add this each 1cycle if Spring.GetModOptions().basicincomeinterval ~= nil then diff --git a/LuaRules/Gadgets/game_spawn.lua b/LuaRules/Gadgets/game_spawn.lua index c7f3ba986..5c3bcbeed 100644 --- a/LuaRules/Gadgets/game_spawn.lua +++ b/LuaRules/Gadgets/game_spawn.lua @@ -35,32 +35,39 @@ end -------------------------------------------------------------------------------- local aiStartUnits = { - ["ecommander"] = { + ["fedcommander"] = { "ecommanderbattleai", - "ecommanderbuildai", - "ecommandercloakai", - "ecommanderfactoryai", - "ecommandershieldai", - "ecommanderhealerai", + -- "ecommanderbuildai", + -- "ecommandercloakai", + -- "ecommanderfactoryai", + -- "ecommandershieldai", + -- "ecommanderhealerai", }, - ["zarm"] = { - "zarm", - }, - ["xcommander"] = { - "xcommander", + ["lozcommander"] = { + "ecommanderbattleai", + -- "ecommanderbuildai", + -- "ecommandercloakai", + -- "ecommanderfactoryai", + -- "ecommandershieldai", + -- "ecommanderhealerai", }, } local factionDefComms = { - [0] = "ecommander", - [1] = "zarm", - [2] = "xcommander", + --[0] = "ecommander", + --[1] = "zarm", + --[2] = "xcommander",\ + + [0] = "fedcommander", + [1] = "lozcommander", } local validStartComm = { - [UnitDefNames["ecommander"].id] = true, - [UnitDefNames["zarm"].id] = true, - [UnitDefNames["xcommander"].id] = true, + --[UnitDefNames["ecommander"].id] = true, + --[UnitDefNames["zarm"].id] = true, + --[UnitDefNames["xcommander"].id] = true, + [UnitDefNames["fedcommander"].id] = true, + [UnitDefNames["lozcommander"].id] = true, } local ACCESS_LEVEL = { @@ -121,12 +128,12 @@ local function SpawnStartUnit(teamID) if (startUnit and startUnit ~= "") then - if startUnit == "ecommander" then - playerFaction = "ateran" - elseif startUnit == "zarm" then - playerFaction = "zaal" - elseif startUnit == "xcommander" then - playerFaction = "pattern" + if startUnit == "fedcommander" then + playerFaction = "Federation of Kala" + elseif startUnit == "lozcommander" then + playerFaction = "Loz Alliance" + --elseif startUnit == "xcommander" then + -- playerFaction = "pattern" elseif startUnit == nil then playerFaction = "Script is Fucked" else @@ -161,6 +168,11 @@ local function SpawnStartUnit(teamID) or ((z>Game.mapSizeZ/2) and "north" or "south") local unitID = Spring.CreateUnit(startUnit, x, y, z, facing, teamID) -- Fun times + if startUnit == "ecommander" then + --id1=Spring.CreateUnit("eorb", x+100, y+200, z, facing, teamID) + --id1=Spring.CreateUnit("eorb", x-100, y-200, z, facing, teamID) + --Spring.GiveOrderToUnit(id1,CMD.GUARD,{unitID}, {"shift"}) + end if startUnit == "zarm" then id1=Spring.CreateUnit("ztumor", x+100, y+200, z, facing, teamID) id1=Spring.CreateUnit("ztumor", x-100, y-200, z, facing, teamID) diff --git a/LuaRules/Gadgets/lups_cloak_fx.lua b/LuaRules/Gadgets/lups_cloak_fx.lua index befd44e3e..f557a5209 100644 --- a/LuaRules/Gadgets/lups_cloak_fx.lua +++ b/LuaRules/Gadgets/lups_cloak_fx.lua @@ -79,21 +79,21 @@ local CloakedHitEffect = { class='UnitJitter',options={ life=50, pos={0,0,0}, en local CloakEffect = { { class='UnitCloaker',options={ life=50 } }, { class='UnitJitter',options={ delay=24, life=math.huge } }, - { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.9 } }, + { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.25 } }, } local EnemyCloakEffect = { { class='UnitCloaker',options={ life=20 } }, - { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.9 } }, + { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.25 } }, } local DecloakEffect = { { class='UnitCloaker',options={ inverse=true, life=50 } }, { class='UnitJitter',options={ life=24 } }, - { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.9 } }, + { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.25 } }, } local EnemyDecloakEffect = { { class='UnitCloaker',options={ inverse=true, life=60 } }, - { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.9 } }, + { class='Sound',options={ file="sounds/miscfx/cloak.wav",volume=0.25 } }, } --[[ Units are actually decloaked when damaged so this part is not required diff --git a/LuaRules/Gadgets/lups_nano_spray.lua b/LuaRules/Gadgets/lups_nano_spray.lua index 52def4d46..479fdbd02 100644 --- a/LuaRules/Gadgets/lups_nano_spray.lua +++ b/LuaRules/Gadgets/lups_nano_spray.lua @@ -192,7 +192,7 @@ end -- local nanoParticles = {} -local maxEngineParticles = Spring.GetConfigInt("MaxNanoParticles", 10000) +local maxEngineParticles = Spring.GetConfigInt("MaxNanoParticles", 25000) local function GetFaction(udid) --local udef_factions = UnitDefs[udid].factions or {} @@ -210,17 +210,27 @@ local factionsNanoFx = { streamSpeed = "limcount*0.05", }, ["default_high_quality"] = { - fxtype = "NanoParticles", - alpha = 0.27, - size = 6, - sizeSpread = 6, - sizeGrowth = 0.75, - rotSpeed = 0.1, - rotSpread = 360, - texture = "bitmaps/Other/Poof.png", - particles = 0.5, + fxtype = "NanoLasers", + alpha = "0.001", + corealpha = "0.2", + corethickness = "0.25", + streamThickness = "1", + streamSpeed = "1", }, - --[[arm = { + + -- ["default_high_quality"] = { + -- fxtype = "NanoParticles", + -- alpha = 0.50, + -- size = 6, + -- sizeSpread = 6, + -- sizeGrowth = 0.75, + -- rotSpeed = 0.1, + -- rotSpread = 360, + -- texture = "bitmaps/default/randdots.tga", + -- particles = 0.5, + -- }, + + arm = { fxtype = "NanoParticles", delaySpread = 30, size = 3, @@ -254,7 +264,7 @@ local factionsNanoFx = { corethickness = "limcount", streamThickness = "0.5+5*limcount", streamSpeed = "limcount*0.05", - },]]-- + }, } ------------------------------------------------------------------------------------- diff --git a/LuaRules/Gadgets/scavengers/API/api.lua b/LuaRules/Gadgets/scavengers/API/api.lua new file mode 100644 index 000000000..9b97abca2 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/API/api.lua @@ -0,0 +1,280 @@ +Spring.Echo("[Scavengers] API initialized") + +math_random = math.random +-- variables +mapsizeX = Game.mapSizeX +mapsizeZ = Game.mapSizeZ +GaiaTeamID = Spring.GetGaiaTeamID() +ScavengerStartboxXMin = mapsizeX + 1 +ScavengerStartboxZMin = mapsizeZ + 1 +ScavengerStartboxXMax = mapsizeX + 1 +ScavengerStartboxZMax = mapsizeZ + 1 +ScavengerStartboxExists = false +spawnmultiplier = tonumber(Spring.GetModOptions().scavengers) or 1 +scavTechDifficulty = Spring.GetModOptions().scavengerstech or "adaptive" +if scavengersAIEnabled then + if spawnmultiplier == 0 then + spawnmultiplier = 0.5 + end + GaiaTeamID = scavengerAITeamID + _,_,_,_,_,GaiaAllyTeamID = Spring.GetTeamInfo(GaiaTeamID) + ScavengerStartboxXMin, ScavengerStartboxZMin, ScavengerStartboxXMax, ScavengerStartboxZMax = Spring.GetAllyTeamStartBox(GaiaAllyTeamID) + if ScavengerStartboxXMin == 0 and ScavengerStartboxZMin == 0 and ScavengerStartboxXMax == mapsizeX and ScavengerStartboxZMax == mapsizeZ then + ScavengerStartboxExists = false + else + ScavengerStartboxExists = true + end +else + _,_,_,_,_,GaiaAllyTeamID = Spring.GetTeamInfo(GaiaTeamID) + ScavengerStartboxExists = false +end +teamcount = #Spring.GetTeamList() - 1 +allyteamcount = #Spring.GetAllyTeamList() - 1 + +BossWaveStarted = false +selfdx = {} +selfdy = {} +selfdz = {} +oldselfdx = {} +oldselfdy = {} +oldselfdz = {} +scavNoSelfD = {} +UDC = Spring.GetTeamUnitDefCount +UDN = UnitDefNames +scavStructure = {} +scavConstructor = {} +scavAssistant = {} +scavResurrector = {} +scavFactory = {} +scavCollector = {} +scavReclaimer = {} +scavSpawnBeacon = {} +scavStockpiler = {} +scavNuke = {} +UnitSuffixLenght = {} +numOfSpawnBeacons = 0 +numOfSpawnBeaconsTeams = {} +scavMaxUnits = 2000 +scavengerSoundPath = "Sounds/voice/scavengers/" +killedscavengers = 0 +QueuedSpawns = {} +QueuedSpawnsFrames = {} +ConstructorNumberOfRetries = {} +CaptureProgressForBeacons = {} +AliveEnemyCommanders = {} +AliveEnemyCommandersCount = 0 +FinalBossKilled = false +bosshealthmultiplier = 5--teamcount*spawnmultiplier + +if Spring.GetModOptions() and Spring.GetModOptions().maxunits then + scavMaxUnits = tonumber(Spring.GetModOptions().maxunits) +end +if GaiaTeamID == Spring.GetGaiaTeamID() then + scavMaxUnits = 10000 +end +TierSpawnChances = { + T0 = 100, + T1 = 0, + T2 = 0, + T3 = 0, + T4 = 0, +} + +-- check for solo play +if teamcount <= 0 then + teamcount = 1 +end + if allyteamcount <= 0 then + allyteamcount = 1 +end + +-- Check height diffrences +function posCheck(posx, posy, posz, posradius) + -- if true then can spawn + local testpos1 = Spring.GetGroundHeight((posx + posradius), (posz + posradius) ) + local testpos2 = Spring.GetGroundHeight((posx + posradius), (posz - posradius) ) + local testpos3 = Spring.GetGroundHeight((posx - posradius), (posz + posradius) ) + local testpos4 = Spring.GetGroundHeight((posx - posradius), (posz - posradius) ) + local testpos5 = Spring.GetGroundHeight((posx + posradius), posz ) + local testpos6 = Spring.GetGroundHeight(posx, (posz + posradius) ) + local testpos7 = Spring.GetGroundHeight((posx - posradius), posz ) + local testpos8 = Spring.GetGroundHeight(posx, (posz - posradius) ) + local deathwater = Game.waterDamage + local heighttollerance = scavconfig.other.heighttolerance + if scavconfig.other.noheightchecksforwater and (not deathwater or deathwater == 0) and posy <= 0 then + return true + elseif deathwater > 0 and posy <= 0 then + return false + elseif testpos1 < posy - heighttollerance or testpos1 > posy + heighttollerance then + return false + elseif testpos2 < posy - heighttollerance or testpos2 > posy + heighttollerance then + return false + elseif testpos3 < posy - heighttollerance or testpos3 > posy + heighttollerance then + return false + elseif testpos4 < posy - heighttollerance or testpos4 > posy + heighttollerance then + return false + elseif testpos5 < posy - heighttollerance or testpos5 > posy + heighttollerance then + return false + elseif testpos6 < posy - heighttollerance or testpos6 > posy + heighttollerance then + return false + elseif testpos7 < posy - heighttollerance or testpos7 > posy + heighttollerance then + return false + elseif testpos8 < posy - heighttollerance or testpos8 > posy + heighttollerance then + return false + else + return true + end +end + +-- Check if area is occupied +function posOccupied(posx, posy, posz, posradius) + -- if true then can spawn + local unitcount = #Spring.GetUnitsInRectangle(posx-posradius, posz-posradius, posx+posradius, posz+posradius) + if unitcount > 0 then + return false + else + return true + end +end + +-- Check if area is visible for any player +function posLosCheck(posx, posy, posz, posradius) + -- if true then can spawn + for _,allyTeamID in ipairs(Spring.GetAllyTeamList()) do + if allyTeamID ~= GaiaAllyTeamID then + if Spring.IsPosInLos(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInRadar(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInRadar(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInRadar(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInRadar(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInRadar(posx - posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInAirLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx - posradius, posy, posz - posradius, allyTeamID) == true then + return false + end + end + end + return true +end + +function posFriendlyCheckOnlyLos(posx, posy, posz, allyTeamID) + return Spring.IsPosInLos(posx, posy, posz, allyTeamID) +end + +function posLosCheckNoRadar(posx, posy, posz, posradius) + -- if true then can spawn + for _,allyTeamID in ipairs(Spring.GetAllyTeamList()) do + if allyTeamID ~= GaiaAllyTeamID then + if Spring.IsPosInLos(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInAirLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInAirLos(posx - posradius, posy, posz - posradius, allyTeamID) == true then + return false + end + end + end + return true +end + +function posLosCheckOnlyLOS(posx, posy, posz, posradius) + -- if true then can spawn + for _,allyTeamID in ipairs(Spring.GetAllyTeamList()) do + if allyTeamID ~= GaiaAllyTeamID then + if Spring.IsPosInLos(posx, posy, posz, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx + posradius, posy, posz - posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz + posradius, allyTeamID) == true or + Spring.IsPosInLos(posx - posradius, posy, posz - posradius, allyTeamID) == true then + return false + end + end + end + return true +end + +function posStartboxCheck(posx, posy, posz, posradius) + if ScavengerStartboxExists and posx <= ScavengerStartboxXMax and posx >= ScavengerStartboxXMin and posz >= ScavengerStartboxZMin and posz <= ScavengerStartboxZMax then + return false + else + return true + end +end + +function posMapsizeCheck(posx, posy, posz, posradius) + if posx + posradius >= mapsizeX or posx - posradius <= 0 or posz - posradius <= 0 or posz + posradius >= mapsizeZ then + return false + else + return true + end +end + + +function teamsCheck() + + bestTeamScore = 0 + bestTeam = 0 + if scavTechDifficulty == "adaptive" or globalScore == nil then + globalScore = 0 + end + nonFinalGlobalScore = 0 + scoreTeamCount = 0 + scorePerTeam = {} + for _,teamID in ipairs(Spring.GetTeamList()) do + if teamID ~= GaiaTeamID and teamID ~= Spring.GetGaiaTeamID() then + if not numOfSpawnBeaconsTeams[teamID] then + numOfSpawnBeaconsTeams[teamID] = 0 + end + local i = teamID + local _,_,teamisDead = Spring.GetTeamInfo(i) + local unitCount = Spring.GetTeamUnitCount(i) + if (not teamisDead) or unitCount > 0 then + scoreTeamCount = scoreTeamCount + 1 + local _,_,_,mi = Spring.GetTeamResources(i, "metal") + local _,_,_,ei = Spring.GetTeamResources(i, "energy") + local resourceScoreM = mi*scavconfig.scoreConfig.scorePerMetal + local resourceScoreE = ei*scavconfig.scoreConfig.scorePerEnergy + local unitScore = unitCount*scavconfig.scoreConfig.scorePerOwnedUnit + local finalScore = resourceScoreM + resourceScoreE + unitScore + + nonFinalGlobalScore = nonFinalGlobalScore + finalScore + + scorePerTeam[teamID] = finalScore + + if finalScore > bestTeamScore then + bestTeamScore = finalScore + bestTeam = i + end + end + end + end + if not killedscavengers then + killedscavengers = 0 + end + local timeScore = Spring.GetGameSeconds()*scavconfig.scoreConfig.scorePerSecond + if scavTechDifficulty == "adaptive" then + globalScore = math.ceil((nonFinalGlobalScore/scoreTeamCount) + killedscavengers + timeScore) + elseif scavTechDifficulty == "easy" then + globalScore = math.ceil(globalScore + 10*scavconfig.difficulty.easy*(Spring.GetGameSeconds()/60)) + elseif scavTechDifficulty == "medium" then + globalScore = math.ceil(globalScore + 10*scavconfig.difficulty.medium*(Spring.GetGameSeconds()/60)) + elseif scavTechDifficulty == "hard" then + globalScore = math.ceil(globalScore + 10*scavconfig.difficulty.hard*(Spring.GetGameSeconds()/60)) + elseif scavTechDifficulty == "brutal" then + globalScore = math.ceil(globalScore + 10*scavconfig.difficulty.brutal*(Spring.GetGameSeconds()/60)) + end + nonFinalGlobalScore = nil + scoreTeamCount = nil +end \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Constructor/placeholder.lua b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Constructor/placeholder.lua new file mode 100644 index 000000000..ad839becd --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Constructor/placeholder.lua @@ -0,0 +1,550 @@ + +-- table.insert(ScavengerBlueprintsT0,FunctionName) +-- table.insert(ScavengerBlueprintsT1,FunctionName) +-- table.insert(ScavengerBlueprintsT2,FunctionName) +-- table.insert(ScavengerBlueprintsT3,FunctionName) + +-- example blueprint: +-- local function a(posx, posy, posz, GaiaTeamID, radiusCheck) +-- local posradius = 120 + -- if radiusCheck then + -- return posradius + -- else + -- Spring.CreateUnit("unitname", posx, posy, posz, math.random(0,3),GaiaTeamID) + -- Spring.CreateUnit("unitname", posx-100, posy, posz, math.random(0,3),GaiaTeamID) + -- Spring.CreateUnit("unitname", posx+100, posy, posz, math.random(0,3),GaiaTeamID) + -- Spring.CreateUnit("unitname", posx, posy, posz-100, math.random(0,3),GaiaTeamID) + -- Spring.CreateUnit("unitname", posx, posy, posz+100, math.random(0,3),GaiaTeamID) + -- end +-- end +-- table.insert(ScavengerBlueprintsT1,a) + +local UDN = UnitDefNames + +local function placeholderradar1(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx-200, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+200, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx, posy, posz-200, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx, posy, posz+200, 0}, {"shift"}) + end +end +table.insert(ScavengerConstructorBlueprintsT0,placeholderradar1) +table.insert(ScavengerConstructorBlueprintsT1,placeholderradar1) +table.insert(ScavengerConstructorBlueprintsT2,placeholderradar1) +table.insert(ScavengerConstructorBlueprintsT3,placeholderradar1) + +local function placeholderradar2(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_up1_scav.id), {posx, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx-200, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+200, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx, posy, posz-200, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx, posy, posz+200, 0}, {"shift"}) + end +end +table.insert(ScavengerConstructorBlueprintsT2,placeholderradar2) +table.insert(ScavengerConstructorBlueprintsT3,placeholderradar2) + +local function emines(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx-100, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx+100, posy, posz, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz-100, 0}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz+100, 0}, {"shift"}) + end +end + +table.insert(ScavengerConstructorBlueprintsT0,emines) +table.insert(ScavengerConstructorBlueprintsT1,emines) +table.insert(ScavengerConstructorBlueprintsT2,emines) +table.insert(ScavengerConstructorBlueprintsT3,emines) + +local function defenseoutpost(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(4), posy, posz+(-245), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-12), posy, posz+(219), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-380), posy, posz+(11), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(244), posy, posz+(171), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(276), posy, posz+(283), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-324), posy, posz+(147), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(116), posy, posz+(-405), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(236), posy, posz+(-253), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-108), posy, posz+(-405), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-172), posy, posz+(-101), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(468), posy, posz+(-197), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(252), posy, posz+(3), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(20), posy, posz+(459), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-404), posy, posz+(51), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-444), posy, posz+(-149), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-460), posy, posz+(91), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(220), posy, posz+(259), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-156), posy, posz+(-197), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-220), posy, posz+(-469), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(348), posy, posz+(131), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(20), posy, posz+(-5), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ekmar_scav.id), {posx+(20), posy, posz+(-85), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(516), posy, posz+(-5), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-396), posy, posz+(-261), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-212), posy, posz+(-317), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-124), posy, posz+(379), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-316), posy, posz+(331), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-4), posy, posz+(-269), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(28), posy, posz+(323), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(324), posy, posz+(-5), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(404), posy, posz+(59), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(12), posy, posz+(179), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(228), posy, posz+(123), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eshieldgen_scav.id), {posx+(12), posy, posz+(-157), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(372), posy, posz+(-245), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(388), posy, posz+(267), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(364), posy, posz+(-77), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(12), posy, posz+(-349), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-292), posy, posz+(3), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-268), posy, posz+(139), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-212), posy, posz+(259), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-340), posy, posz+(-173), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(276), posy, posz+(-133), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-92), posy, posz+(59), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(20), posy, posz+(363), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-156), posy, posz+(-5), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(244), posy, posz+(-149), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-156), posy, posz+(171), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(164), posy, posz+(395), 1}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-332), posy, posz+(-197), 1}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,defenseoutpost) +table.insert(ScavengerConstructorBlueprintsT3,defenseoutpost) + + +local function basehbot(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-239), posy, posz+(-184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(313), posy, posz+(144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(161), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-295), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-359), posy, posz+(-80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(217), posy, posz+(64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(185), posy, posz+(-192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-15), posy, posz+(312), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-135), posy, posz+(-112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-215), posy, posz+(160), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(353), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-279), posy, posz+(-384), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ehbotfac_scav.id), {posx+(25), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(73), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.etech1_scav.id), {posx+(-295), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(249), posy, posz+(-144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.efusion2_scav.id), {posx+(201), posy, posz+(272), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-127), posy, posz+(-24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(89), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(0), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(201), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-128), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(9), posy, posz+(-336), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(137), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(25), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-447), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-87), posy, posz+(80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-96), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(128), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,basehbot) +table.insert(ScavengerConstructorBlueprintsT3,basehbot) + + +local function basehover(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-239), posy, posz+(-184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(313), posy, posz+(144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(161), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-295), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-359), posy, posz+(-80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(217), posy, posz+(64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(185), posy, posz+(-192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-15), posy, posz+(312), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-135), posy, posz+(-112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-215), posy, posz+(160), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(353), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-279), posy, posz+(-384), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ebasefactory_scav.id), {posx+(25), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(73), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.etech1_scav.id), {posx+(-295), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(249), posy, posz+(-144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.efusion2_scav.id), {posx+(201), posy, posz+(272), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-127), posy, posz+(-24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(89), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(0), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(201), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-128), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(9), posy, posz+(-336), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(137), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(25), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-447), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-87), posy, posz+(80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-96), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(128), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,basehover) +table.insert(ScavengerConstructorBlueprintsT3,basehover) + + +local function baseallterr(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-239), posy, posz+(-184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(313), posy, posz+(144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(161), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-295), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-359), posy, posz+(-80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(217), posy, posz+(64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(185), posy, posz+(-192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-15), posy, posz+(312), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-135), posy, posz+(-112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-215), posy, posz+(160), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(353), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-279), posy, posz+(-384), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eallterrfac_scav.id), {posx+(25), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(73), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.etech1_scav.id), {posx+(-295), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(249), posy, posz+(-144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.efusion2_scav.id), {posx+(201), posy, posz+(272), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-127), posy, posz+(-24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(89), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(0), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(201), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-128), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(9), posy, posz+(-336), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(137), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(25), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-447), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-87), posy, posz+(80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-96), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(128), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,baseallterr) +table.insert(ScavengerConstructorBlueprintsT3,baseallterr) + + +local function baseamphib(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-239), posy, posz+(-184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(313), posy, posz+(144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(161), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-295), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-359), posy, posz+(-80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(217), posy, posz+(64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(185), posy, posz+(-192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-15), posy, posz+(312), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-135), posy, posz+(-112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-215), posy, posz+(160), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(353), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-279), posy, posz+(-384), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eamphibfac_scav.id), {posx+(25), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(73), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.etech1_scav.id), {posx+(-295), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(249), posy, posz+(-144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.efusion2_scav.id), {posx+(201), posy, posz+(272), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-127), posy, posz+(-24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(89), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(0), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(201), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-128), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(9), posy, posz+(-336), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(137), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(25), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-447), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-87), posy, posz+(80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-96), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(128), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,baseallterr) +table.insert(ScavengerConstructorBlueprintsT3,baseallterr) + + +local function baseair(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-239), posy, posz+(-184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(313), posy, posz+(144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(161), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-295), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-359), posy, posz+(-80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(217), posy, posz+(64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(185), posy, posz+(-192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-32), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-15), posy, posz+(312), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-87), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-135), posy, posz+(-112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-215), posy, posz+(160), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(425), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(353), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-279), posy, posz+(-384), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eairplant_scav.id), {posx+(25), posy, posz+(-64), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(73), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-183), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(176), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.etech1_scav.id), {posx+(-295), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(-215), posy, posz+(-48), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(249), posy, posz+(-144), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.efusion2_scav.id), {posx+(201), posy, posz+(272), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(192), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-127), posy, posz+(-24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(89), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.estorage_scav.id), {posx+(393), posy, posz+(112), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(0), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(201), posy, posz+(-288), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-128), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(9), posy, posz+(-336), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(137), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(25), posy, posz+(240), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-447), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-87), posy, posz+(80), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esolar2_scav.id), {posx+(-71), posy, posz+(-96), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.egeothermal_scav.id), {posx+(-23), posy, posz+(128), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT2,baseair) +table.insert(ScavengerConstructorBlueprintsT3,baseair) + + + +local function antinuke(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(422), posy, posz+(-59), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(326), posy, posz+(101), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eshieldgen_scav.id), {posx+(62), posy, posz+(-99), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-490), posy, posz+(-123), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-298), posy, posz+(-267), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(86), posy, posz+(453), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(30), posy, posz+(-259), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(94), posy, posz+(269), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(342), posy, posz+(-283), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(486), posy, posz+(-235), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(406), posy, posz+(261), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ekmar_scav.id), {posx+(-74), posy, posz+(-27), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-234), posy, posz+(101), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-82), posy, posz+(365), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-226), posy, posz+(-83), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-426), posy, posz+(-251), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(270), posy, posz+(205), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-218), posy, posz+(341), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(278), posy, posz+(-315), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(422), posy, posz+(117), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-98), posy, posz+(-147), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(214), posy, posz+(341), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-282), posy, posz+(437), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-258), posy, posz+(125), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-58), posy, posz+(-363), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(238), posy, posz+(109), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(54), posy, posz+(53), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-410), posy, posz+(165), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-26), posy, posz+(-443), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-226), posy, posz+(29), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-394), posy, posz+(-59), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(166), posy, posz+(-251), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-410), posy, posz+(117), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(318), posy, posz+(-83), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ekmar_scav.id), {posx+(166), posy, posz+(-27), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-170), posy, posz+(-187), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT3,antinuke) + + +local function antinuke(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(422), posy, posz+(-59), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(326), posy, posz+(101), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eshieldgen_scav.id), {posx+(62), posy, posz+(-99), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-490), posy, posz+(-123), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-298), posy, posz+(-267), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(86), posy, posz+(453), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(30), posy, posz+(-259), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(94), posy, posz+(269), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(342), posy, posz+(-283), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(486), posy, posz+(-235), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(406), posy, posz+(261), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ekmar_scav.id), {posx+(-74), posy, posz+(-27), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-234), posy, posz+(101), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-82), posy, posz+(365), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-226), posy, posz+(-83), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-426), posy, posz+(-251), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(270), posy, posz+(205), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-218), posy, posz+(341), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(278), posy, posz+(-315), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(422), posy, posz+(117), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-98), posy, posz+(-147), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(214), posy, posz+(341), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-282), posy, posz+(437), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-258), posy, posz+(125), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-58), posy, posz+(-363), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(238), posy, posz+(109), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eradar2_scav.id), {posx+(54), posy, posz+(53), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-410), posy, posz+(165), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-26), posy, posz+(-443), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elaserbattery_scav.id), {posx+(-226), posy, posz+(29), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-394), posy, posz+(-59), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(166), posy, posz+(-251), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-410), posy, posz+(117), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(318), posy, posz+(-83), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ekmar_scav.id), {posx+(166), posy, posz+(-27), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-170), posy, posz+(-187), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT3,antinuke) + + +local function nuke(scav, posx, posy, posz, GaiaTeamID, radiusCheck) +local posradius = 150 + if radiusCheck then + return posradius + else + + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(92), posy, posz+(184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-164), posy, posz+(-168), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ejammer2_scav.id), {posx+(156), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(204), posy, posz+(104), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(204), posy, posz+(24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-28), posy, posz+(224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(92), posy, posz+(-168), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.esilo_scav.id), {posx+(-4), posy, posz+(24), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(268), posy, posz+(200), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(204), posy, posz+(-152), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-308), posy, posz+(-232), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(4), posy, posz+(-224), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-100), posy, posz+(184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(276), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(204), posy, posz+(-56), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(-276), posy, posz+(184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.ejammer2_scav.id), {posx+(-164), posy, posz+(8), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2_scav.id), {posx+(-252), posy, posz+(16), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-36), posy, posz+(-152), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.elightturret2_scav.id), {posx+(252), posy, posz+(-216), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-212), posy, posz+(184), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-212), posy, posz+(-72), 2}, {"shift"}) + Spring.GiveOrderToUnit(scav, -(UDN.emine_scav.id), {posx+(-196), posy, posz+(88), 2}, {"shift"}) + + end +end + +table.insert(ScavengerConstructorBlueprintsT3,nuke) \ No newline at end of file diff --git a/LuaRules/Configs/ScavengerBlueprints/placeholder.lua b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/placeholder.lua similarity index 93% rename from LuaRules/Configs/ScavengerBlueprints/placeholder.lua rename to LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/placeholder.lua index 307c2d51d..dafe8d79c 100644 --- a/LuaRules/Configs/ScavengerBlueprints/placeholder.lua +++ b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/placeholder.lua @@ -24,7 +24,7 @@ local posradius = 30 if radiusCheck then return posradius else - Spring.CreateUnit("eradar2", posx, posy, posz, math.random(0,3),GaiaTeamID) + Spring.CreateUnit("eradar2_scav", posx, posy, posz, math.random(0,3),GaiaTeamID) end end table.insert(ScavengerBlueprintsT0,placeholderradar) diff --git a/LuaRules/Configs/ScavengerBlueprints/simblebases.lua b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/simblebases.lua similarity index 88% rename from LuaRules/Configs/ScavengerBlueprints/simblebases.lua rename to LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/simblebases.lua index 704c88f0f..f935d6fb1 100644 --- a/LuaRules/Configs/ScavengerBlueprints/simblebases.lua +++ b/LuaRules/Gadgets/scavengers/Blueprints/EvoRTS/Spawner/simblebases.lua @@ -1,4 +1,4 @@ -nameSuffix = "" +nameSuffix = "_scav" local function simplebasehover(posx, posy, posz, GaiaTeamID, radiusCheck) local posradius = 500 @@ -6,17 +6,17 @@ local posradius = 500 return posradius else Spring.CreateUnit("estorage"..nameSuffix, posx+(-286), posy, posz+(31), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-302), posy, posz+(-385), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-302), posy, posz+(-385), 0,GaiaTeamID) Spring.CreateUnit("elightturret2"..nameSuffix, posx+(306), posy, posz+(-305), 0,GaiaTeamID) Spring.CreateUnit("esolar2"..nameSuffix, posx+(370), posy, posz+(-65), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-222), posy, posz+(31), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-286), posy, posz+(-97), 0,GaiaTeamID) Spring.CreateUnit("ebasefactory"..nameSuffix, posx+(82), posy, posz+(47), 0,GaiaTeamID) Spring.CreateUnit("esolar2"..nameSuffix, posx+(370), posy, posz+(31), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-302), posy, posz+(335), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-302), posy, posz+(335), 0,GaiaTeamID) Spring.CreateUnit("etech1"..nameSuffix, posx+(50), posy, posz+(-289), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-222), posy, posz+(-97), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(386), posy, posz+(303), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(386), posy, posz+(303), 0,GaiaTeamID) Spring.CreateUnit("elightturret2"..nameSuffix, posx+(66), posy, posz+(463), 0,GaiaTeamID) end end @@ -32,15 +32,15 @@ local posradius = 500 else Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-208), posy, posz+(-350), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-272), posy, posz+(-174), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(32), posy, posz+(450), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(32), posy, posz+(450), 0,GaiaTeamID) Spring.CreateUnit("emine"..nameSuffix, posx+(288), posy, posz+(290), 0,GaiaTeamID) Spring.CreateUnit("etech1"..nameSuffix, posx+(48), posy, posz+(-270), 0,GaiaTeamID) Spring.CreateUnit("emine"..nameSuffix, posx+(320), posy, posz+(98), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(448), posy, posz+(274), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(288), posy, posz+(-350), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(448), posy, posz+(274), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(288), posy, posz+(-350), 0,GaiaTeamID) Spring.CreateUnit("emine"..nameSuffix, posx+(-144), posy, posz+(-174), 0,GaiaTeamID) Spring.CreateUnit("emine"..nameSuffix, posx+(208), posy, posz+(-158), 0,GaiaTeamID) - Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-288), posy, posz+(274), 0,GaiaTeamID) + --Spring.CreateUnit("elightturret2"..nameSuffix, posx+(-288), posy, posz+(274), 0,GaiaTeamID) Spring.CreateUnit("ehbotfac"..nameSuffix, posx+(48), posy, posz+(18), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-272), posy, posz+(-46), 0,GaiaTeamID) Spring.CreateUnit("estorage"..nameSuffix, posx+(-336), posy, posz+(-46), 0,GaiaTeamID) diff --git a/LuaRules/Gadgets/scavengers/Blueprints/readme.txt b/LuaRules/Gadgets/scavengers/Blueprints/readme.txt new file mode 100644 index 000000000..178ced66d --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Blueprints/readme.txt @@ -0,0 +1,4 @@ +You can add more files with blueprints into those folders. Script will automatically load all of them + +Spawner folder is for buildingSpawnerModule +Constructor folder is for constructor blueprints \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/air.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/air.lua new file mode 100644 index 000000000..51b7945e0 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/air.lua @@ -0,0 +1,32 @@ +T0AirUnits = { + "escoutdrone", + "zairscout", +} + +T1AirUnits = { + "efighter", + "zairtoairfighter", +} + +T2AirUnits = { + "efighter", + "zairtoairfighter", + "egunship2", + "ebomber", + "zairtogroundfighter", + "zairbomber", +} + +T3AirUnits = { + "efighter", + "zairtoairfighter", + "egunship2", + "ebomber", + "zairtogroundfighter", + "zairbomber", +} + +T4AirUnits = { + "ekrow", + "ekrow", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/boss.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/boss.lua new file mode 100644 index 000000000..79d3208dc --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/boss.lua @@ -0,0 +1,7 @@ +BossUnits = { +"ekrowboss_scav", +"eallterranarchidboss_scav", +"eamphiblevelerboss_scav", +"ehbotkargannethboss_scav", +"elaceratorboss_scav", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/constructors.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/constructors.lua new file mode 100644 index 000000000..66d507103 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/constructors.lua @@ -0,0 +1,44 @@ +ConstructorsList = { + "ecommander", + --"xcommander", +} + +-- put ALL commander units from your game here +CommandersList = { + "ecommander", + "ecommanderbattle", + "ecommanderbuild", + "ecommandercloak", + "ecommanderfactory", + "ecommandermeteor", + "ecommandershield", + "zarm", + --"xcommander", +} + +ConstructorsCounter = { + UDN.ecommander.id, + --UDN.xcommander.id, +} + +AssistUnits = { + "eorb", + "zconstructor", + "ztenticle", + "zarm", +} + +Resurrectors = { +"placeholder", +"placeholder", +} + +ResurrectorsSea = { +"placeholder", +"placeholder", +} + +Collectors = { +"placeholder", +"placeholder", +} \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/factories.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/factories.lua new file mode 100644 index 000000000..4717da4e3 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/factories.lua @@ -0,0 +1,13 @@ +Factories = { + "ebasefactory", + "eminifac", + "eamphibfac", + "ehbotfac", + "eairplant", + "zhatch", +} + +FactoriesExcludedUnits = { +"placeholder", +"placeholder", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/land.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/land.lua new file mode 100644 index 000000000..d9a2059ba --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/land.lua @@ -0,0 +1,65 @@ +T0LandUnits = { + "eallterrlight", + "eamphibbuggy", + "ehbotpeewee", + "elighttank3", + "zlightswarm", +} + +T1LandUnits = { + "eallterrlight", + "eamphibbuggy", + "ehbotpeewee", + "elighttank3", + "zlightswarm", + "eallterrriot", + "eallterrriot_shotgun", + "eallterrmed", + "eamphibneedle", + "eamphibriot", + "eamphibriot_shotgun", + "ehbotthud", + "eriottank2", + "eriottank2_shotgun", + "eallterrassault", + "eamphibarty", + "eartytank", + "eartytank_saturation", + "zmedswarm", + "zpyro", +} + +T2LandUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T3LandUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T4LandUnits = { + "eallterranarchid", + "eamphibleveler", + "ehbotkarganneth", + "elacerator", + "zqueen", + "eamphibbuggybig", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/reinforcements.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/reinforcements.lua new file mode 100644 index 000000000..9f6df4f8e --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/reinforcements.lua @@ -0,0 +1,136 @@ +T1ReinforcementLandUnits = { + "eallterrlight", + "eamphibbuggy", + "ehbotpeewee", + "elighttank3", + "zlightswarm", + "eallterrriot", + "eallterrriot_shotgun", + "eallterrmed", + "eamphibneedle", + "eamphibriot", + "eamphibriot_shotgun", + "ehbotthud", + "eriottank2", + "eriottank2_shotgun", + "eallterrassault", + "eamphibarty", + "eartytank", + "eartytank_saturation", + "zmedswarm", + "zpyro", +} + +T2ReinforcementLandUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T3ReinforcementLandUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T4ReinforcementLandUnits = { + "eallterranarchid", + "eamphibleveler", + "ehbotkarganneth", + "elacerator", + "zqueen", +} + +T1ReinforcementAirUnits = { + "efighter", + "zairtoairfighter", +} + +T2ReinforcementAirUnits = { + "egunship2", + "ebomber", + "zairtogroundfighter", + "zairbomber", +} + +T3ReinforcementAirUnits = { + "egunship2", + "ebomber", + "zairbomber", +} + +T4ReinforcementAirUnits = { + "ekrow", + "ekrow", +} + +T1ReinforcementSeaUnits = { + "eallterrlight", + "eamphibbuggy", + "ehbotpeewee", + "elighttank3", + "zlightswarm", + "eallterrriot", + "eallterrriot_shotgun", + "eallterrmed", + "eamphibneedle", + "eamphibriot", + "eamphibriot_shotgun", + "ehbotthud", + "eriottank2", + "eriottank2_shotgun", + "eallterrassault", + "eamphibarty", + "eartytank", + "eartytank_saturation", + "zmedswarm", + "zpyro", +} + +T2ReinforcementSeaUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T3ReinforcementSeaUnits = { + "eallterrheavy", + "eallterrshield", + "eamphibmedtank", + "eamphibrock", + "ehbotrocko", + "ehbotsniper", + "eheavytank3", + "emissiletank", + "zskirmisher", + "zassault", +} + +T4ReinforcementSeaUnits = { + "eallterranarchid", + "eamphibleveler", + "ehbotkarganneth", + "elacerator", + "zqueen", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/sea.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/sea.lua new file mode 100644 index 000000000..a71c39397 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/sea.lua @@ -0,0 +1,14 @@ +T0SeaUnits = { +} + +T1SeaUnits = { +} + +T2SeaUnits = { +} + +T3SeaUnits = { +} + +T4SeaUnits = { +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/staticunits.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/staticunits.lua new file mode 100644 index 000000000..bd4a2b03d --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/staticunits.lua @@ -0,0 +1,144 @@ +NoSelfdList = { + "ehbotkarganneth_turret", + "ehbotpeewee_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", + "zarm", + "ztenticle", + "ztumor", + "lootboxbronze", + "lootboxsilver", + "lootboxgold", + "lootboxplatinum", +} + +StockpilingUnitNames = { + "placeholder", + "placeholder", +} + +NukingUnitNames = { + "esilo", +} + +BeaconCaptureExcludedUnits = { + "fuck", + "this", +} + +BeaconDefenceStructuresT0 = { + "elightturret2", + "elightturret2", + "ehbotpeewee_turret", +} + +BeaconDefenceStructuresT1 = { + "elightturret2", + "eheavyturret2", + "ehbotpeewee_turret", + "ehbotthud_turret", +} + +BeaconDefenceStructuresT2 = { + "eheavyturret2", + "elaserbattery", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + +BeaconDefenceStructuresT3 = { + "eheavyturret2", + "elaserbattery", + "eartyturret", + "ehbotkarganneth_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + + + +StartboxDefenceStructuresT0 = { + "elightturret2", + "elightturret2", + "ehbotpeewee_turret", +} + +StartboxDefenceStructuresT1 = { + "elightturret2", + "eheavyturret2", + "ehbotpeewee_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT2 = { + "eheavyturret2", + "elaserbattery", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT3 = { + "eheavyturret2", + "elaserbattery", + "eartyturret", + "ehbotkarganneth_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT4 = { + "eheavyturret2", + "elaserbattery", + "eartyturret", + "ehbotkarganneth_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + + +StartboxDefenceStructuresT0Sea = { + "elightturret2", + "elightturret2", + "ehbotpeewee_turret", +} + +StartboxDefenceStructuresT1Sea = { + "elightturret2", + "eheavyturret2", + "ehbotpeewee_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT2Sea = { + "eheavyturret2", + "elaserbattery", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT3Sea = { + "eheavyturret2", + "elaserbattery", + "eartyturret", + "ehbotkarganneth_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} + +StartboxDefenceStructuresT4Sea = { + "eheavyturret2", + "elaserbattery", + "eartyturret", + "ehbotkarganneth_turret", + "ehbotrocko_turret", + "ehbotsniper_turret", + "ehbotthud_turret", +} diff --git a/LuaRules/Gadgets/scavengers/Configs/EvoRTS/config.lua b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/config.lua new file mode 100644 index 000000000..ff3ab9957 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Configs/EvoRTS/config.lua @@ -0,0 +1,259 @@ +Spring.Echo("[Scavengers] Config initialized") + +adder = 300 +multiplier = 0.5 +-- Config for Scavengers Survival AI + +scavconfig = { + difficulty = { + easy = 1, + medium = 2, + hard = 3, + brutal = 5, + }, + unitnamesuffix = "_scav", + messenger = true, -- BYAR specific thing, don't enable otherwise (or get gui_messages.lua from BYAR) + modules = { + buildingSpawnerModule = true, --building spawner spawns random blueprints around map + constructorControllerModule = true, --constructor controller is for units that build blueprints + factoryControllerModule = true, --factory controller is to give orders to factories + unitSpawnerModule = true, --spawns units + startBoxProtection = true, --spawns turrets around the startboxes (if you are using startboxes) and damages units inside of it + reinforcementsModule = false, --reinforcements adds beacon capturing and friendly drops + stockpilers = false, --stockpilers adds controller for units with stockpile mechanic + nukes = true, --nukes gives orders to nuke units + }, + + scoreConfig = { + -- set to 0 to disable + scorePerMetal = 1, -- thisvalue*metalproduction + scorePerEnergy = 1, -- thisvalue*energyproduction + scorePerSecond = 1, -- thisvalue*secondspassed + scorePerOwnedUnit = 1, -- thisvalue*countofunits + ----------------------------------------- + baseScorePerKill = 1, -- How much score EVERY KILL and CAPTURE adds + -- Additional score for specific unit types, use -baseScorePerKill(default 1) to make it have no effect on score, use values lower than baseScorePerKill to reduce score + scorePerKilledBuilding = 4, + scorePerKilledConstructor = 99, + scorePerKilledSpawner = 49, + scorePerCapturedSpawner = -51, -- this doesn't care about baseScorePerKill + }, + + timers = { + -- globalScore values + T0start = 1, + T1start = 150+adder*multiplier, + T1low = 300+adder*multiplier, + T1med = 450+adder*multiplier, + T1high = 600+adder*multiplier, + T1top = 750+adder*multiplier, + T2start = 900+adder*multiplier, + T2low = 1050+adder*multiplier, + T2med = 1200+adder*multiplier, + T2high = 1350+adder*multiplier, + T2top = 1500+adder*multiplier, + T3start = 1750+adder*multiplier, + T3low = 2000+adder*multiplier, + T3med = 2250+adder*multiplier, + T3high = 2500+adder*multiplier, + T3top = 2750+adder*multiplier, + T4start = 3000+adder*multiplier, + T4low = 3250+adder*multiplier, + T4med = 3500+adder*multiplier, + T4high = 3750+adder*multiplier, + T4top = 4000+adder*multiplier, + BossFight = 4001+adder*multiplier, + -- don't delete + NoRadar = 1200, --Under this score beacons don't spawn in radar covered area. Above this score they can spawn in radar but not in LoS. + }, + other = { + heighttolerance = 30, -- higher = allow higher height diffrences + noheightchecksforwater = true, + } +} + + +-- Modules configs +buildingSpawnerModuleConfig = { + spawnchance = 90, +} + +unitSpawnerModuleConfig = { + bossFightEnabled = true, + FinalBossUnit = true, + FinalBossHealth = 1500000, -- this*teamcount*difficulty + FinalBossMinionsPassive = 1000, -- this/(teamcount*difficulty), how often does boss spawn minions passively, frames. + FinalBossMinionsActive = 150, -- this/(teamcount*difficulty), how often does boss spawn minions when taking damage, frames. + BossWaveTimeLeft = 480, + aircraftchance = 8, -- higher number = lower chance + globalscoreperoneunit = 200, + spawnchance = 120, + beaconspawnchance = 120, + minimumspawnbeacons = 2, + landmultiplier = 0.75, + airmultiplier = 2, + seamultiplier = 0.2, + chanceforaircraftonsea = 2, -- higher number = lower chance + + t0multiplier = 1.5, + t1multiplier = 1.25, + t2multiplier = 1, + t3multiplier = 0.75, + t4multiplier = 0.1, +} + +constructorControllerModuleConfig = { + constructortimerstart = 120, -- ammount of seconds it skips from constructortimer for the first spawn (make first spawn earlier - this timer starts on timer-Timer1) + constructortimer = 220, -- time in seconds between commander/constructor spawns + constructortimerreductionframes = 36000, + minimumconstructors = 5, + useresurrectors = false, + searesurrectors = false, + useconstructors = true, + usecollectors = false, +} + +unitControllerModuleConfig = { + minimumrangeforfight = 650, +} + +spawnProtectionConfig = { + spread = 192, +} + + +-- Functions which you can configure +function CountScavConstructors() + return UDC(GaiaTeamID, UDN.ecommander.id) + UDC(GaiaTeamID, UDN.ecommanderbattle.id) +end + +function UpdateTierChances(n) + -- Must be 100 in total + if globalScore > scavconfig.timers.T4top then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 10 + TierSpawnChances.T3 = 30 + TierSpawnChances.T4 = 60 + elseif globalScore > scavconfig.timers.T4high then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 20 + TierSpawnChances.T3 = 50 + TierSpawnChances.T4 = 30 + elseif globalScore > scavconfig.timers.T4med then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 30 + TierSpawnChances.T3 = 50 + TierSpawnChances.T4 = 20 + elseif globalScore > scavconfig.timers.T4low then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 40 + TierSpawnChances.T3 = 50 + TierSpawnChances.T4 = 10 + elseif globalScore > scavconfig.timers.T4start then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 40 + TierSpawnChances.T3 = 55 + TierSpawnChances.T4 = 5 + elseif globalScore > scavconfig.timers.T3top then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 20 + TierSpawnChances.T3 = 70 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T3high then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 50 + TierSpawnChances.T3 = 40 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T3med then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 60 + TierSpawnChances.T3 = 30 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T3low then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 65 + TierSpawnChances.T3 = 25 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T3start then + TierSpawnChances.T0 = 0 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 70 + TierSpawnChances.T3 = 10 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T2top then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 80 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T2high then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 30 + TierSpawnChances.T2 = 60 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T2med then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 40 + TierSpawnChances.T2 = 50 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T2low then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 60 + TierSpawnChances.T2 = 30 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T2start then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 70 + TierSpawnChances.T2 = 20 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T1top then + TierSpawnChances.T0 = 10 + TierSpawnChances.T1 = 90 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T1high then + TierSpawnChances.T0 = 40 + TierSpawnChances.T1 = 60 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T1med then + TierSpawnChances.T0 = 60 + TierSpawnChances.T1 = 40 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T1low then + TierSpawnChances.T0 = 80 + TierSpawnChances.T1 = 20 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + elseif globalScore > scavconfig.timers.T1start then + TierSpawnChances.T0 = 90 + TierSpawnChances.T1 = 10 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + else + TierSpawnChances.T0 = 100 + TierSpawnChances.T1 = 0 + TierSpawnChances.T2 = 0 + TierSpawnChances.T3 = 0 + TierSpawnChances.T4 = 0 + end +end \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Modules/building_spawner.lua b/LuaRules/Gadgets/scavengers/Modules/building_spawner.lua new file mode 100644 index 000000000..016deb16b --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/building_spawner.lua @@ -0,0 +1,71 @@ + +Spring.Echo("[Scavengers] Building spawner initialized") + +BlueprintsList = VFS.DirList('luarules/gadgets/scavengers/Blueprints/'..GameShortName..'/Spawner/','*.lua') +for i = 1,#BlueprintsList do + VFS.Include(BlueprintsList[i]) + Spring.Echo("Scav Blueprints Directory: " ..BlueprintsList[i]) +end + +function SpawnBlueprint(n) + if n > 9000 then + local gaiaUnitCount = Spring.GetTeamUnitCount(GaiaTeamID) + local spawnchance = math_random(0,buildingSpawnerModuleConfig.spawnchance) + if spawnchance == 0 or canBuildHere == false then + posx = math_random(200,mapsizeX-200) + posz = math_random(200,mapsizeZ-200) + posy = Spring.GetGroundHeight(posx, posz) + local spawnTier = math_random(1,100) + if posy > 0 then + if spawnTier <= TierSpawnChances.T0 then + blueprint = ScavengerBlueprintsT0[math_random(1,#ScavengerBlueprintsT0)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + blueprint = ScavengerBlueprintsT1[math_random(1,#ScavengerBlueprintsT1)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + blueprint = ScavengerBlueprintsT2[math_random(1,#ScavengerBlueprintsT2)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + blueprint = ScavengerBlueprintsT3[math_random(1,#ScavengerBlueprintsT3)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + blueprint = ScavengerBlueprintsT3[math_random(1,#ScavengerBlueprintsT3)] + else + blueprint = ScavengerBlueprintsT0[math_random(1,#ScavengerBlueprintsT0)] + end + elseif posy <= 0 then + if spawnTier <= TierSpawnChances.T0 then + blueprint = ScavengerBlueprintsT0Sea[math_random(1,#ScavengerBlueprintsT0Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + blueprint = ScavengerBlueprintsT1Sea[math_random(1,#ScavengerBlueprintsT1Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + blueprint = ScavengerBlueprintsT2Sea[math_random(1,#ScavengerBlueprintsT2Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + blueprint = ScavengerBlueprintsT3Sea[math_random(1,#ScavengerBlueprintsT3Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + blueprint = ScavengerBlueprintsT4Sea[math_random(1,#ScavengerBlueprintsT4Sea)] + else + blueprint = ScavengerBlueprintsT0Sea[math_random(1,#ScavengerBlueprintsT0Sea)] + end + end + posradius = blueprint(posx, posy, posz, GaiaTeamID, true) + canBuildHere = posLosCheck(posx, posy, posz, posradius) + if canBuildHere then + canBuildHere = posOccupied(posx, posy, posz, posradius) + end + if canBuildHere then + canBuildHere = posCheck(posx, posy, posz, posradius) + end + + if canBuildHere then + -- let's do this shit + blueprint(posx, posy, posz, GaiaTeamID, false) + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz-posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz-posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz-posradius, math_random(0,3),GaiaTeamID) + end + end + end +end \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Modules/constructor_controller.lua b/LuaRules/Gadgets/scavengers/Modules/constructor_controller.lua new file mode 100644 index 000000000..6772d5c69 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/constructor_controller.lua @@ -0,0 +1,240 @@ +Spring.Echo("[Scavengers] Constructor Controller initialized") + +VFS.Include("luarules/gadgets/scavengers/Configs/"..GameShortName.."/UnitLists/constructors.lua") +Blueprints2List = VFS.DirList('luarules/gadgets/scavengers/Blueprints/'..GameShortName..'/Constructor/','*.lua') +for i = 1,#Blueprints2List do + VFS.Include(Blueprints2List[i]) + Spring.Echo("Scav Blueprints Directory: " ..Blueprints2List[i]) +end +local constructortimer = constructorControllerModuleConfig.constructortimerstart + +scavvoicenotif = 2 + +function AssistantOrders(n, scav) + local x,y,z = Spring.GetUnitPosition(scav) + Spring.GiveOrderToUnit(scav, CMD.PATROL,{x-100,y,z}, {"shift"}) + Spring.GiveOrderToUnit(scav, CMD.PATROL,{x+100,y,z}, {"shift"}) + Spring.GiveOrderToUnit(scav, CMD.PATROL,{x,y,z-100}, {"shift"}) + Spring.GiveOrderToUnit(scav, CMD.PATROL,{x,y,z+100}, {"shift"}) +end + +function ResurrectorOrders(n, scav) + local mapcenterX = mapsizeX/2 + local mapcenterZ = mapsizeZ/2 + local mapcenterY = Spring.GetGroundHeight(mapcenterX, mapcenterZ) + local mapdiagonal = math.ceil(math.sqrt((mapsizeX*mapsizeX)+(mapsizeZ*mapsizeZ))) + Spring.GiveOrderToUnit(scav, CMD.RESURRECT,{mapcenterX+math_random(-100,100),mapcenterY,mapcenterZ+math_random(-100,100),mapdiagonal}, 0) +end + +function CollectorOrders(n, scav) + local mapcenterX = mapsizeX/2 + local mapcenterZ = mapsizeZ/2 + local mapcenterY = Spring.GetGroundHeight(mapcenterX, mapcenterZ) + local mapdiagonal = math.ceil(math.sqrt((mapsizeX*mapsizeX)+(mapsizeZ*mapsizeZ))) + Spring.GiveOrderToUnit(scav, CMD.RECLAIM,{mapcenterX+math_random(-100,100),mapcenterY,mapcenterZ+math_random(-100,100),mapdiagonal}, 0) +end + +function ReclaimerOrders(n, scav) + local nearestenemy = Spring.GetUnitNearestEnemy(scav, 999999, false) + Spring.GiveOrderToUnit(scav, CMD.RECLAIM,{nearestenemy}, 0) + local x,y,z = Spring.GetUnitPosition(nearestenemy) + Spring.GiveOrderToUnit(scav, CMD.FIGHT,{x,y,z}, {"meta", "shift", "alt"}) +end + +function SpawnConstructor(n) + if (constructortimer > constructorControllerModuleConfig.constructortimer or CountScavConstructors() < constructorControllerModuleConfig.minimumconstructors ) and numOfSpawnBeacons > 0 and constructortimer > 4 then + local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) + SpawnBeacons = {} + for i = 1,#scavengerunits do + local scav = scavengerunits[i] + local scavDef = Spring.GetUnitDefID(scav) + if scavSpawnBeacon[scav] then + table.insert(SpawnBeacons,scav) + end + end + for b = 1,10 do + local pickedBeaconTest = SpawnBeacons[math_random(1,#SpawnBeacons)] + local _,_,_,pickedBeaconCaptureProgress = Spring.GetUnitHealth(pickedBeaconTest) + if pickedBeaconCaptureProgress == 0 then + pickedBeacon = pickedBeaconTest + break + else + pickedBeacon = 1234567890 + end + end + if pickedBeacon == 1234567890 then + return + end + posx,posy,posz = Spring.GetUnitPosition(pickedBeacon) + local nearestEnemy = Spring.GetUnitNearestEnemy(pickedBeacon, 99999, false) + local nearestEnemyTeam = Spring.GetUnitTeam(nearestEnemy) + if nearestEnemyTeam == bestTeam then + canSpawnCommanderHere = true + else + local r = math_random(0,4) + if r == 0 then + canSpawnCommanderHere = true + else + canSpawnCommanderHere = false + end + end + if canSpawnCommanderHere then + posradius = 48 + --Spring.GiveOrderToUnit(pickedBeacon, CMD.SELFD,{}, {"shift"}) + if not anothercommander then + ScavSendNotification("scav_scavcomdetected") + anothercommander = true + else + local s = math_random(0,scavvoicenotif) + if s == 0 then + ScavSendNotification("scav_scavadditionalcomdetected") + elseif s == 1 then + ScavSendNotification("scav_scavanotherscavcomdetected") + elseif s == 2 then + ScavSendNotification("scav_scavnewcomentered") + elseif s == 3 then + ScavSendNotification("scav_scavcomspotted") + elseif s == 4 then + ScavSendNotification("scav_scavcomnewdetect") + else + ScavSendMessage("A Scavenger Commander detected") + end + if scavvoicenotif < 20 then + scavvoicenotif = scavvoicenotif + 1 + end + end + SpawnBeacon(n) + constructortimer = constructortimer - constructorControllerModuleConfig.constructortimer + local r = ConstructorsList[math_random(1,#ConstructorsList)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID,n+90) + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID) + if constructorControllerModuleConfig.useresurrectors then + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz-posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz+posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx-posradius, posy, posz-posradius, math_random(0,3),GaiaTeamID) + Spring.CreateUnit("scavengerdroppod_scav", posx+posradius, posy, posz-posradius, math_random(0,3),GaiaTeamID) + if posy > 0 then + local r2 = Resurrectors[math_random(1,#Resurrectors)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx+32, posy, posz, math_random(0,3),GaiaTeamID,n+90+1) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx-32, posy, posz, math_random(0,3),GaiaTeamID,n+90+2) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz+32, math_random(0,3),GaiaTeamID,n+90+3) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz-32, math_random(0,3),GaiaTeamID,n+90+4) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx+32, posy, posz+32, math_random(0,3),GaiaTeamID,n+90+5) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx-32, posy, posz-32, math_random(0,3),GaiaTeamID,n+90+6) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx-32, posy, posz+32, math_random(0,3),GaiaTeamID,n+90+7) + QueueSpawn(r2..scavconfig.unitnamesuffix, posx+32, posy, posz-32, math_random(0,3),GaiaTeamID,n+90+8) + elseif constructorControllerModuleConfig.searesurrectors == true then + local r3 = ResurrectorsSea[math_random(1,#ResurrectorsSea)] + QueueSpawn(r3..scavconfig.unitnamesuffix, posx+32, posy, posz+32, math_random(0,3),GaiaTeamID,n+90+1) + QueueSpawn(r3..scavconfig.unitnamesuffix, posx-32, posy, posz-32, math_random(0,3),GaiaTeamID,n+90+2) + QueueSpawn(r3..scavconfig.unitnamesuffix, posx-32, posy, posz+32, math_random(0,3),GaiaTeamID,n+90+3) + QueueSpawn(r3..scavconfig.unitnamesuffix, posx+32, posy, posz-32, math_random(0,3),GaiaTeamID,n+90+4) + end + end + else + constructortimer = constructortimer + math.ceil(n/constructorControllerModuleConfig.constructortimerreductionframes) + end + else + constructortimer = constructortimer + math.ceil(n/constructorControllerModuleConfig.constructortimerreductionframes) + end +end + +ConstructorNumberOfRetries = {} +function ConstructNewBlueprint(n, scav) + if not ConstructorNumberOfRetries[scav] then + ConstructorNumberOfRetries[scav] = 0 + end + ConstructorNumberOfRetries[scav] = ConstructorNumberOfRetries[scav] + 1 + local x,y,z = Spring.GetUnitPosition(scav) + local posx = math_random(x-(50*ConstructorNumberOfRetries[scav]),x+(50*ConstructorNumberOfRetries[scav])) + local posz = math_random(z-(50*ConstructorNumberOfRetries[scav]),z+(50*ConstructorNumberOfRetries[scav])) + local posy = Spring.GetGroundHeight(posx, posz) + local spawnTier = math_random(1,100) + local unitCount = Spring.GetTeamUnitCount(GaiaTeamID) + if unitCount + 200 < scavMaxUnits then + if posy > 0 then + if spawnTier <= TierSpawnChances.T0 then + blueprint = ScavengerConstructorBlueprintsT0[math_random(1,#ScavengerConstructorBlueprintsT0)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + blueprint = ScavengerConstructorBlueprintsT1[math_random(1,#ScavengerConstructorBlueprintsT1)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + blueprint = ScavengerConstructorBlueprintsT2[math_random(1,#ScavengerConstructorBlueprintsT2)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + blueprint = ScavengerConstructorBlueprintsT3[math_random(1,#ScavengerConstructorBlueprintsT3)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + blueprint = ScavengerConstructorBlueprintsT3[math_random(1,#ScavengerConstructorBlueprintsT3)] + else + blueprint = ScavengerConstructorBlueprintsT0[math_random(1,#ScavengerConstructorBlueprintsT0)] + end + elseif posy <= 0 then + if spawnTier <= TierSpawnChances.T0 then + blueprint = ScavengerConstructorBlueprintsT0Sea[math_random(1,#ScavengerConstructorBlueprintsT0Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + blueprint = ScavengerConstructorBlueprintsT1Sea[math_random(1,#ScavengerConstructorBlueprintsT1Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + blueprint = ScavengerConstructorBlueprintsT2Sea[math_random(1,#ScavengerConstructorBlueprintsT2Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + blueprint = ScavengerConstructorBlueprintsT3Sea[math_random(1,#ScavengerConstructorBlueprintsT3Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + blueprint = ScavengerConstructorBlueprintsT3Sea[math_random(1,#ScavengerConstructorBlueprintsT3Sea)] + else + blueprint = ScavengerConstructorBlueprintsT0Sea[math_random(1,#ScavengerConstructorBlueprintsT0Sea)] + end + end + else + local mapcenterX = mapsizeX/2 + local mapcenterZ = mapsizeZ/2 + local mapcenterY = Spring.GetGroundHeight(mapcenterX, mapcenterZ) + local mapdiagonal = math.ceil(math.sqrt((mapsizeX*mapsizeX)+(mapsizeZ*mapsizeZ))) + Spring.GiveOrderToUnit(scav, CMD.RECLAIM,{mapcenterX+math_random(-100,100),mapcenterY,mapcenterZ+math_random(-100,100),mapdiagonal}, 0) + Spring.GiveOrderToUnit(scav, CMD.RECLAIM,{mapcenterX+math_random(-100,100),mapcenterY,mapcenterZ+math_random(-100,100),mapdiagonal}, {"shift"}) + end + + posradius = blueprint(scav, posx, posy, posz, GaiaTeamID, true) + canConstructHere = posOccupied(posx, posy, posz, posradius) + if canConstructHere then + canConstructHere = posCheck(posx, posy, posz, posradius) + end + if canConstructHere then + canConstructHere = posStartboxCheck(posx, posy, posz, posradius) + end + if canConstructHere then + canConstructHere = posMapsizeCheck(posx, posy, posz, posradius) + end + + if canConstructHere then + -- let's do this shit + Spring.GiveOrderToUnit(scav, CMD.MOVE,{posx+math.random(-posradius,posradius),posy+500,posz+math.random(-posradius,posradius)}, {"shift"}) + blueprint(scav, posx, posy, posz, GaiaTeamID, false) + ConstructorNumberOfRetries[scav] = 0 + else + return + end + -- if canConstructHere then + -- -- let's do this shit + -- blueprint(scav, posx, posy, posz, GaiaTeamID, false) + -- local x = math_random(x-1000,x+1000) + -- local z = math_random(z-1000,z+1000) + -- local y = Spring.GetGroundHeight(x,z) + -- Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) + -- local x = math_random(x-100,x+100) + -- local z = math_random(z-100,z+100) + -- local y = Spring.GetGroundHeight(x,z) + -- Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) + -- else + -- local x,y,z = Spring.GetUnitPosition(scav) + -- local x = math_random(x-500,x+500) + -- local z = math_random(z-500,z+500) + -- local y = Spring.GetGroundHeight(x,z) + -- Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) + -- local x,y,z = Spring.GetUnitPosition(scav) + -- local x = math_random(x-100,x+100) + -- local z = math_random(z-100,z+100) + -- local y = Spring.GetGroundHeight(x,z) + -- Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"}) + -- end +end \ No newline at end of file diff --git a/LuaRules/Gadgets/scavengers/Modules/factory_controller.lua b/LuaRules/Gadgets/scavengers/Modules/factory_controller.lua new file mode 100644 index 000000000..cee9a6888 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/factory_controller.lua @@ -0,0 +1,21 @@ +VFS.Include("luarules/gadgets/scavengers/Configs/"..GameShortName.."/UnitLists/factories.lua") + +function FactoryProduction(n, scav, scavDef) + local buildOptions = UnitDefs[scavDef].buildOptions + local buildUnit = buildOptions[math_random(1,#buildOptions)] + local buildName = UnitDefs[buildUnit].name + isExcluded = {} + for i = 1,#FactoriesExcludedUnits do + if string.find(buildName..scavconfig.unitnamesuffix, FactoriesExcludedUnits[i]) then + isExcluded[scavDef] = true + end + end + if not isExcluded[scavDef] then + local x,y,z = Spring.GetUnitPosition(scav) + local a = math_random(3,10) + for a = 1,a do + Spring.GiveOrderToUnit(scav, -buildUnit, {x, y, z, 0}, 0) + end + end + isExcluded[scavDef] = nil +end diff --git a/LuaRules/Gadgets/scavengers/Modules/messenger.lua b/LuaRules/Gadgets/scavengers/Modules/messenger.lua new file mode 100644 index 000000000..c6fbf93d6 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/messenger.lua @@ -0,0 +1,140 @@ + +--ScavSendMessage("addmessage Global score: "..globalScore) + +function pregameMessages(n) + if n == 1800 then + ScavSendMessage("WARNING") + ScavSendVoiceMessage(scavengerSoundPath.."warning.wav") + end + + if n == 1830 then + ScavSendNotification("scav_unidentifiedObjectsDetected") + end + + if n == 2100 then + ScavSendMessage("... waiting for further data ... ") + ScavSendVoiceMessage(scavengerSoundPath.."waitingForIntel.wav") + end + + if n == 3900 then + ScavSendNotification("scav_classifiedAsScavengers") + end + + if n == 6300 then + ScavSendMessage("WARNING") + ScavSendVoiceMessage(scavengerSoundPath.."warning.wav") + end + + if n == 6330 then + ScavSendMessage("Scavenger Droppods detected nearby") + ScavSendVoiceMessage(scavengerSoundPath.."droppodsDetectedNearby.wav") + end + + if n == 7200 then + ScavSendMessage("WARNING") + ScavSendVoiceMessage(scavengerSoundPath.."warning.wav") + end + + if n == 7230 then + ScavSendNotification("scav_droppodsDetectedInArea") + end + + if n == 9000 then + ScavSendMessage("WARNING") + ScavSendVoiceMessage(scavengerSoundPath.."warning.wav") + end + + if n == 9030 then + ScavSendNotification("scav_droppingUnits") + end + +end + +function BossFightMessages(BossWaveTimeLeft) + if not BossWaveFirstMessage then + ScavSendNotification("scav_scavfinalattack") + BossWaveFirstMessage = true + end + + if BossWaveTimeLeft == 750 then + ScavSendNotification("scav_scavfinal12remain") + end + + if BossWaveTimeLeft == 600 then + ScavSendNotification("scav_scavfinal10remain") + end + + if BossWaveTimeLeft == 540 then + ScavSendNotification("scav_scavfinal09remain") + end + + if BossWaveTimeLeft == 480 then + ScavSendNotification("scav_scavfinal08remain") + end + + if BossWaveTimeLeft == 420 then + ScavSendNotification("scav_scavfinal07remain") + end + + if BossWaveTimeLeft == 360 then + ScavSendNotification("scav_scavfinal06remain") + end + + if BossWaveTimeLeft == 300 then + ScavSendNotification("scav_scavfinal05remain") + end + + if BossWaveTimeLeft == 240 then + ScavSendNotification("scav_scavfinal04remain") + end + + if BossWaveTimeLeft == 180 then + ScavSendNotification("scav_scavfinal03remain") + end + + if BossWaveTimeLeft == 120 then + ScavSendNotification("scav_scavfinal02remain") + end + + if BossWaveTimeLeft == 60 then + ScavSendNotification("scav_scavfinal01remain") + end + + if BossWaveTimeLeft == 10 then + -- since ScavSendNotification would put this in a queue, we cant use that method for this message + ScavSendVoiceMessage(scavengerSoundPath.."scavfinalcountdown.wav") + ScavSendMessage("10") + end + + if BossWaveTimeLeft == 9 then + ScavSendMessage("9") + end + if BossWaveTimeLeft == 8 then + ScavSendMessage("8") + end + if BossWaveTimeLeft == 7 then + ScavSendMessage("7") + end + if BossWaveTimeLeft == 6 then + ScavSendMessage("6") + end + if BossWaveTimeLeft == 5 then + ScavSendMessage("5") + end + if BossWaveTimeLeft == 4 then + ScavSendMessage("4") + end + if BossWaveTimeLeft == 3 then + ScavSendMessage("3") + end + if BossWaveTimeLeft == 2 then + ScavSendMessage("2") + end + if BossWaveTimeLeft == 1 then + ScavSendMessage("1") + end + + if BossWaveTimeLeft == 0 then + ScavSendNotification("scav_scavfinalvictory") + end +end diff --git a/LuaRules/Gadgets/scavengers/Modules/nuke_controller.lua b/LuaRules/Gadgets/scavengers/Modules/nuke_controller.lua new file mode 100644 index 000000000..7104375be --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/nuke_controller.lua @@ -0,0 +1,24 @@ + +function SendRandomNukeOrder(n, scav) + local unitDefID = Spring.GetUnitDefID(scav) + local unitRange = Spring.GetUnitMaxRange(scav) + if unitRange and unitRange > 0 then + local posx, posy, posz = Spring.GetUnitPosition(scav) + local possibleTargets = Spring.GetUnitsInCylinder(posx, posz, unitRange) + local targetnum = #possibleTargets + if targetnum and targetnum > 1 then + local r = math_random(1,targetnum) + local targetID = possibleTargets[r] + local targetTeam = Spring.GetUnitTeam(targetID) + local targetNeutral = Spring.GetUnitNeutral(targetID) + if targetTeam ~= GaiaTeamID and targetNeutral == false then + local targetDefID = Spring.GetUnitDefID(targetID) + local targetCanFly = UnitDefs[targetDefID].canFly + if targetCanFly == false then + local tx, ty, tz = Spring.GetUnitPosition(targetID) + Spring.GiveOrderToUnit(scav, CMD.ATTACK,{tx,ty,tz}, {}) + end + end + end + end +end diff --git a/LuaRules/Gadgets/scavengers/Modules/reinforcements_module.lua b/LuaRules/Gadgets/scavengers/Modules/reinforcements_module.lua new file mode 100644 index 000000000..992c514c5 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/reinforcements_module.lua @@ -0,0 +1,366 @@ +local ReinforcementsCountPerTeam = {} +local TryingToSpawnReinforcements = {} +local ReinforcementsFaction = {} +local ReinforcementsChancePerTeam = {} +local numOfSpawnBeaconsTeamsForSpawn = {} +local CaptureProgressForBeacons = {} + +function CaptureBeacons(n) + local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) + local spGetUnitTeam = Spring.GetUnitTeam + + for i = 1,#scavengerunits do + local scav = scavengerunits[i] + local scavDef = Spring.GetUnitDefID(scav) + if scavSpawnBeacon[scav] then + if not CaptureProgressForBeacons[scav] then + CaptureProgressForBeacons[scav] = 0 + Spring.SetUnitHealth(scav, {capture = CaptureProgressForBeacons[scav]}) + end + local posx,posy,posz = Spring.GetUnitPosition(scav) + --Spring.Echo("posx "..posx) + --Spring.Echo("posz "..posz) + unitsAround = Spring.GetUnitsInCylinder(posx, posz, 256) + --Spring.Echo("#unitsAround "..#unitsAround) + CapturingUnits = {} + CapturingUnitsTeam = {} + CapturingUnitsTeamTest = {} + local TeamsCapturing = 0 + CapturingUnits[scav] = 0 + + for j = 1,#unitsAround do + local unitID = unitsAround[j] + local unitTeamID = spGetUnitTeam(unitID) + local unitAllyTeam = Spring.GetUnitAllyTeam(unitID) + local LuaAI = Spring.GetTeamLuaAI(unitTeamID) + local _,_,_,isAI,_,_ = Spring.GetTeamInfo(unitTeamID) + if (not LuaAI) and unitTeamID ~= GaiaTeamID and unitTeamID ~= Spring.GetGaiaTeamID() and (not isAI) then + captureraiTeam = false + else + captureraiTeam = false -- true + end + if not CapturingUnitsTeamTest[unitAllyTeam] then + CapturingUnitsTeamTest[unitAllyTeam] = true + if unitTeamID ~= GaiaTeamID and captureraiTeam == false then + TeamsCapturing = TeamsCapturing + 1 + if TeamsCapturing > 1 then + break + end + end + end + captureraiTeam = nil + end + + for j = 1,#unitsAround do + local unitID = unitsAround[j] + local unitTeamID = spGetUnitTeam(unitID) + if not CapturingUnitsTeam[unitTeamID] then + CapturingUnitsTeam[unitTeamID] = 0 + end + local unitDefID = Spring.GetUnitDefID(unitID) + local LuaAI = Spring.GetTeamLuaAI(unitTeamID) + local _,_,_,isAI,_,_ = Spring.GetTeamInfo(unitTeamID) + + if (not LuaAI) and unitTeamID ~= GaiaTeamID and unitTeamID ~= Spring.GetGaiaTeamID() and (not isAI) then + captureraiTeam = false + else + captureraiTeam = false -- true + end + + if not CapturingUnitsTeam[unitTeamID] then + CapturingUnitsTeam[unitTeamID] = 0 + end + + for k = 1,#BeaconCaptureExcludedUnits do + if UnitDefs[unitDefID].name == BeaconCaptureExcludedUnits[k] then + IsUnitExcluded = true + break + else + IsUnitExcluded = false + end + end + + if unitDefID == scavDef then + CaptureProgressForBeacons[scav] = CaptureProgressForBeacons[scav] - 0.0005 + --Spring.Echo("uncapturing myself") + elseif unitTeamID == GaiaTeamID and (not unitDefID == scavDef) then + CaptureProgressForBeacons[scav] = CaptureProgressForBeacons[scav] - 1 + --Spring.Echo("uncapturing our beacon") + elseif captureraiTeam == false and unitTeamID ~= GaiaTeamID and unitTeamID ~= Spring.GetGaiaTeamID() and IsUnitExcluded == false and (not UnitDefs[unitDefID].canFly) then + CaptureProgressForBeacons[scav] = CaptureProgressForBeacons[scav] + 0.001 + CapturingUnitsTeam[unitTeamID] = CapturingUnitsTeam[unitTeamID] + 1 + --Spring.Echo("capturing scav beacon") + end + if CaptureProgressForBeacons[scav] < 0 then + CaptureProgressForBeacons[scav] = 0 + --Spring.Echo("capture below 0") + end + if CaptureProgressForBeacons[scav] > 1 then + CaptureProgressForBeacons[scav] = 1 + --Spring.Echo("capture above 1") + end + Spring.SetUnitHealth(scav, {capture = CaptureProgressForBeacons[scav]}) + + if TeamsCapturing < 2 and captureraiTeam == false and CaptureProgressForBeacons[scav] >= 1 then + CaptureProgressForBeacons[scav] = 0 + Spring.SetUnitHealth(scav, {capture = 0}) + Spring.TransferUnit(scav, unitTeamID, true) + captureraiTeam = nil + break + end + captureraiTeam = nil + IsUnitExcluded = nil + end + CapturingUnits = nil + CapturingUnitsTeam = nil + unitsAround = nil + end + end +end + +function SetBeaconsResourceProduction(n) + if globalScore then + local units = Spring.GetAllUnits() + local minutes = math.ceil(Spring.GetGameSeconds()/300) + local beaconmetalproduction = minutes + local beaconenergyproduction = beaconmetalproduction*20 + for i = 1,#units do + local unitID = units[i] + local unitDefID = Spring.GetUnitDefID(unitID) + local name = UnitDefs[unitDefID].name + if name == "scavengerdroppodbeacon_scav" then + --Spring.AddUnitResource(unitID, "m", beaconmetalproduction) + Spring.AddUnitResource(unitID, "e", beaconenergyproduction) + end + end + end +end + +-- function SpawnDefencesAfterCapture(unitID, teamID) + -- local spawnTier = math_random(1,100) + -- if spawnTier <= TierSpawnChances.T0 then + -- grouptier = BeaconDefenceStructuresT0 + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + -- grouptier = BeaconDefenceStructuresT1 + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + -- grouptier = BeaconDefenceStructuresT2 + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + -- grouptier = BeaconDefenceStructuresT3 + -- end + -- if spawnTier <= TierSpawnChances.T0 then + -- grouptiersea = StartboxDefenceStructuresT0Sea + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + -- grouptiersea = StartboxDefenceStructuresT1Sea + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + -- grouptiersea = StartboxDefenceStructuresT2Sea + -- elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + -- grouptiersea = StartboxDefenceStructuresT3Sea + -- end + + -- local posx,posy,posz = Spring.GetUnitPosition(unitID) + -- local posy = Spring.GetGroundHeight(posx, posz) + -- local n = Spring.GetGameFrame() + + -- local r = grouptier[math_random(1,#grouptier)] + -- local r2 = grouptiersea[math_random(1,#grouptiersea)] + -- Spring.CreateUnit("scavengerdroppodfriendly", posx-128, posy, posz-128, math_random(0,3),teamID) + -- local posy = Spring.GetGroundHeight(posx-128, posz-128) + -- if posy > 0 then + -- QueueSpawn(r..scavconfig.unitnamesuffix, posx-128, posy, posz-128, math_random(0,3),teamID, n+90) + -- else + -- QueueSpawn(r2..scavconfig.unitnamesuffix, posx-128, posy, posz-128, math_random(0,3),teamID, n+90) + -- end + + -- local r = grouptier[math_random(1,#grouptier)] + -- local r2 = grouptiersea[math_random(1,#grouptiersea)] + -- Spring.CreateUnit("scavengerdroppodfriendly", posx+128, posy, posz+128, math_random(0,3),teamID) + -- local posy = Spring.GetGroundHeight(posx+128, posz+128) + -- if posy > 0 then + -- QueueSpawn(r..scavconfig.unitnamesuffix, posx+128, posy, posz+128, math_random(0,3),teamID, n+90) + -- else + -- QueueSpawn(r2..scavconfig.unitnamesuffix, posx+128, posy, posz+128, math_random(0,3),teamID, n+90) + -- end + + -- local r = grouptier[math_random(1,#grouptier)] + -- local r2 = grouptiersea[math_random(1,#grouptiersea)] + -- Spring.CreateUnit("scavengerdroppodfriendly", posx-128, posy, posz+128, math_random(0,3),teamID) + -- local posy = Spring.GetGroundHeight(posx-128, posz+128) + -- if posy > 0 then + -- QueueSpawn(r..scavconfig.unitnamesuffix, posx-128, posy, posz+128, math_random(0,3),teamID, n+90) + -- else + -- QueueSpawn(r2..scavconfig.unitnamesuffix, posx-128, posy, posz+128, math_random(0,3),teamID, n+90) + -- end + + -- local r = grouptier[math_random(1,#grouptier)] + -- local r2 = grouptiersea[math_random(1,#grouptiersea)] + -- Spring.CreateUnit("scavengerdroppodfriendly", posx+128, posy, posz-128, math_random(0,3),teamID) + -- local posy = Spring.GetGroundHeight(posx+128, posz-128) + -- if posy > 0 then + -- QueueSpawn(r..scavconfig.unitnamesuffix, posx+128, posy, posz-128, math_random(0,3),teamID, n+90) + -- else + -- QueueSpawn(r2..scavconfig.unitnamesuffix, posx+128, posy, posz-128, math_random(0,3),teamID, n+90) + -- end + + -- grouptier = nil + -- grouptiersea = nil +-- end + +function spawnPlayerReinforcements(n) + --mapsizeX + --mapsizeZ + --ScavengerStartboxXMin + --ScavengerStartboxZMin + --ScavengerStartboxXMax + --ScavengerStartboxZMax + --GaiaTeamID + --GaiaAllyTeamID + --posCheck(posx, posy, posz, posradius) + --posOccupied(posx, posy, posz, posradius) + for _,teamID in ipairs(Spring.GetTeamList()) do + local LuaAI = Spring.GetTeamLuaAI(teamID) + local _,teamLeader,isDead,isAI,_,allyTeamID = Spring.GetTeamInfo(teamID) + + if (not LuaAI) and teamID ~= GaiaTeamID and teamID ~= Spring.GetGaiaTeamID() and (not isAI) then + local playerName = Spring.GetPlayerInfo(teamLeader) + if not numOfSpawnBeaconsTeams[teamID] then + numOfSpawnBeaconsTeams[teamID] = 0 + end + if not numOfSpawnBeaconsTeamsForSpawn[teamID] or numOfSpawnBeaconsTeamsForSpawn[teamID] == 0 then + numOfSpawnBeaconsTeamsForSpawn[teamID] = 2 + else + numOfSpawnBeaconsTeamsForSpawn[teamID] = numOfSpawnBeaconsTeams[teamID] + 2 + end + + + if not ReinforcementsCountPerTeam[teamID] then + ReinforcementsCountPerTeam[teamID] = 0 + end + if not ReinforcementsChancePerTeam[teamID] then + ReinforcementsChancePerTeam[teamID] = (((unitSpawnerModuleConfig.spawnchance)*10)/numOfSpawnBeaconsTeamsForSpawn[teamID]) + end + + if not isDead then + if TryingToSpawnReinforcements[teamID] == true then + local playerunits = Spring.GetTeamUnits(teamID) + PlayerSpawnBeacons = {} + for i = 1,#playerunits do + local playerbeacon = playerunits[i] + local playerbeaconDef = Spring.GetUnitDefID(playerbeacon) + local UnitName = UnitDefs[playerbeaconDef].name + if UnitName == "scavengerdroppodbeacon_scav" then + table.insert(PlayerSpawnBeacons,playerbeacon) + end + end + --numOfSpawnBeaconsTeams[teamID] = 10 + if numOfSpawnBeaconsTeams[teamID] == 1 then + pickedBeacon = PlayerSpawnBeacons[1] + elseif numOfSpawnBeaconsTeams[teamID] > 1 then + pickedBeacon = PlayerSpawnBeacons[math_random(1,#PlayerSpawnBeacons)] + else + pickedBeacon = nil + TryingToSpawnReinforcements[teamID] = false + ReinforcementsChancePerTeam[teamID] = (((unitSpawnerModuleConfig.spawnchance)*10)/numOfSpawnBeaconsTeamsForSpawn[teamID]) + end + PlayerSpawnBeacons = nil + if pickedBeacon then + if not globalScore then + teamsCheck() + end + local groupsize = (bestTeamScore / unitSpawnerModuleConfig.globalscoreperoneunit)*spawnmultiplier + local groupsize = math.ceil(groupsize*2) + if scorePerTeam[teamID] < bestTeamScore*2 then + groupsize = math.ceil(groupsize*2) + end + local posradius = 160 + local posx,posy,posz = Spring.GetUnitPosition(pickedBeacon) + local posy = Spring.GetGroundHeight(posx, posz) + local spawnTier = math_random(1,100) + local aircraftchance = math_random(0,unitSpawnerModuleConfig.aircraftchance) + if aircraftchance == 0 then + if spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1ReinforcementAirUnits[math_random(1,#T1ReinforcementAirUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2ReinforcementAirUnits[math_random(1,#T2ReinforcementAirUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3ReinforcementAirUnits[math_random(1,#T3ReinforcementAirUnits)] + groupsize = 5 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4ReinforcementAirUnits[math_random(1,#T4ReinforcementAirUnits)] + groupsize = 2 + end + elseif posy > -20 then + if spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1ReinforcementLandUnits[math_random(1,#T1ReinforcementLandUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2ReinforcementLandUnits[math_random(1,#T2ReinforcementLandUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3ReinforcementLandUnits[math_random(1,#T3ReinforcementLandUnits)] + groupsize = 5 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4ReinforcementLandUnits[math_random(1,#T4ReinforcementLandUnits)] + groupsize = 2 + end + elseif posy <= -20 then + if spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1ReinforcementSeaUnits[math_random(1,#T1ReinforcementSeaUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2ReinforcementSeaUnits[math_random(1,#T2ReinforcementSeaUnits)] + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3ReinforcementSeaUnits[math_random(1,#T3ReinforcementSeaUnits)] + groupsize = 5 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4ReinforcementSeaUnits[math_random(1,#T4ReinforcementSeaUnits)] + groupsize = 2 + end + ScavSendMessage(playerName .."'s reinforcements detected. Units: ".. UDN[groupunit1].humanName .. "s.") + end + for i = 1,groupsize do + local posx = posx+(math_random(-posradius,posradius)) + local posz = posz+(math_random(-posradius,posradius)) + local newposy = Spring.GetGroundHeight(posx, posz) + if posy >= -20 and newposy >= -20 then + if i then + QueueSpawn("scavengerdroppodfriendly", posx, posy, posz, math_random(0,3),GaiaTeamID, n+(i*60)) + QueueSpawn(groupunit..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90+(i*60)) + else + QueueSpawn("scavengerdroppodfriendly", posx, posy, posz, math_random(0,3),GaiaTeamID, n) + QueueSpawn(groupunit..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + elseif posy < -20 and newposy < -20 then + if i then + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n+(i*60)) + QueueSpawn(groupunit..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90+(i*60)) + else + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n) + QueueSpawn(groupunit..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + end + end + groupsize = nil + groupunit1 = nil + groupunit2 = nil + TryingToSpawnReinforcements[teamID] = false + ReinforcementsCountPerTeam[teamID] = ReinforcementsCountPerTeam[teamID] + 1 + end + else + local r = math_random(0,ReinforcementsChancePerTeam[teamID]) + if r == 0 or ReinforcementsCountPerTeam[teamID] == 0 then + TryingToSpawnReinforcements[teamID] = true + ReinforcementsChancePerTeam[teamID] = (((unitSpawnerModuleConfig.spawnchance)*10)/numOfSpawnBeaconsTeamsForSpawn[teamID]) + else + TryingToSpawnReinforcements[teamID] = false + ReinforcementsChancePerTeam[teamID] = ReinforcementsChancePerTeam[teamID] - 1 + end + end + end + end + end + pickedBeacon = nil +end + diff --git a/LuaRules/Gadgets/scavengers/Modules/spawn_beacons.lua b/LuaRules/Gadgets/scavengers/Modules/spawn_beacons.lua new file mode 100644 index 000000000..be25faa6a --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/spawn_beacons.lua @@ -0,0 +1,250 @@ +local BeaconSpawnChance = unitSpawnerModuleConfig.beaconspawnchance +local UnitLists = VFS.DirList('luarules/gadgets/scavengers/Configs/'..GameShortName..'/UnitLists/','*.lua') +for i = 1,#UnitLists do + VFS.Include(UnitLists[i]) + Spring.Echo("Scav Units Directory: " ..UnitLists[i]) +end + +function SpawnBeacon(n) + if n and n > 7200 then + if scavengersAIEnabled == true then -- Survival + local BeaconSpawnChance = math_random(0,BeaconSpawnChance) + if numOfSpawnBeacons <= unitSpawnerModuleConfig.minimumspawnbeacons then + BeaconSpawnChance = 0 + end + if BossWaveTimeLeft and BossWaveTimeLeft < 1 then + BeaconSpawnChance = 1 -- can't spawn + end + if BeaconSpawnChance == 0 or canSpawnBeaconHere == false then + local posx = math_random(80,mapsizeX-80) + local posz = math_random(80,mapsizeZ-80) + local posy = Spring.GetGroundHeight(posx, posz) + local posradius = 80 + canSpawnBeaconHere = posCheck(posx, posy, posz, posradius) + if canSpawnBeaconHere then + if globalScore then + local g = math_random(0,3) + if ScavengerStartboxExists and g ~= 0 then + if ScavengerStartboxXMin < posx and ScavengerStartboxXMax > posx and ScavengerStartboxZMin < posz and ScavengerStartboxZMax > posz then + canSpawnBeaconHere = true + else + canSpawnBeaconHere = false + end + else + -- elseif globalScore > scavconfig.timers.OnlyLos then + -- canSpawnBeaconHere = posLosCheckOnlyLOS(posx, posy, posz,posradius) + if globalScore > scavconfig.timers.NoRadar then + canSpawnBeaconHere = posLosCheckNoRadar(posx, posy, posz,posradius) + else + canSpawnBeaconHere = posLosCheck(posx, posy, posz,posradius) + end + end + end + end + if canSpawnBeaconHere then + canSpawnBeaconHere = posOccupied(posx, posy, posz, posradius) + end + + if canSpawnBeaconHere then + local spawnTier = math_random(1,100) + if spawnTier <= TierSpawnChances.T0 then + grouptier = BeaconDefenceStructuresT0 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + grouptier = BeaconDefenceStructuresT1 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + grouptier = BeaconDefenceStructuresT2 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + grouptier = BeaconDefenceStructuresT3 + else + grouptier = BeaconDefenceStructuresT0 + end + if spawnTier <= TierSpawnChances.T0 then + grouptiersea = StartboxDefenceStructuresT0Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + grouptiersea = StartboxDefenceStructuresT1Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + grouptiersea = StartboxDefenceStructuresT2Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + grouptiersea = StartboxDefenceStructuresT3Sea + else + grouptiersea = StartboxDefenceStructuresT0Sea + end + + BeaconSpawnChance = unitSpawnerModuleConfig.beaconspawnchance + Spring.CreateUnit("scavengerdroppodbeacon_scav", posx, posy, posz, math_random(0,3),GaiaTeamID) + + + Spring.CreateUnit("scavengerdroppod_scav", posx-128, posy, posz, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx-128, posz) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx-128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx-128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx+128, posy, posz, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx+128, posz) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx+128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx+128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz+128, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx, posz+128) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx, posy, posz+128, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz+128, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz-128, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx, posz-128) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx, posy, posz-128, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz-128, math_random(0,3),GaiaTeamID, n+90) + end + + grouptier = nil + grouptiersea = nil + + end + else + BeaconSpawnChance = BeaconSpawnChance - 1 + if BeaconSpawnChance < 1 then + BeaconSpawnChance = 1 + end + end + else -- PvP + local BeaconSpawnChance = math_random(0,BeaconSpawnChance) + if numOfSpawnBeacons <= unitSpawnerModuleConfig.minimumspawnbeacons then + BeaconSpawnChance = 0 + end + if BossWaveTimeLeft and BossWaveTimeLeft < 1 then + BeaconSpawnChance = 1 -- can't spawn + end + if BeaconSpawnChance == 0 or canSpawnBeaconHere == false then + if not beaconspawnretrycount then + beaconspawnretrycount = 0 + end + local posx = math_random(math.ceil((mapsizeX/2)-(((mapsizeX/2)/60)*beaconspawnretrycount)),math.floor((mapsizeX/2)+(((mapsizeX/2)/60)*beaconspawnretrycount))) + local posz = math_random(math.ceil((mapsizeZ/2)-(((mapsizeZ/2)/60)*beaconspawnretrycount)),math.floor((mapsizeZ/2)+(((mapsizeZ/2)/60)*beaconspawnretrycount))) + if posx < 256 then + posx = 256 + end + if posx > mapsizeX-256 then + posx = mapsizeX-256 + end + if posz < 256 then + posz = 256 + end + if posz > mapsizeZ-256 then + posz = mapsizeZ-256 + end + local posy = Spring.GetGroundHeight(posx, posz) + local posradius = 80 + beaconspawnretrycount = beaconspawnretrycount + 1 + canSpawnBeaconHere = posCheck(posx, posy, posz, posradius) + if canSpawnBeaconHere then + if globalScore then + -- elseif globalScore > scavconfig.timers.NoRadar then + -- canSpawnBeaconHere = posLosCheckNoRadar(posx, posy, posz,posradius) + --else + canSpawnBeaconHere = posLosCheck(posx, posy, posz,posradius) + --end + end + end + if canSpawnBeaconHere then + local posradius = 384 + canSpawnBeaconHere = posOccupied(posx, posy, posz, posradius) + end + + if canSpawnBeaconHere then + beaconspawnretrycount = 0 + local spawnTier = math_random(1,100) + if spawnTier <= TierSpawnChances.T0 then + grouptier = BeaconDefenceStructuresT0 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + grouptier = BeaconDefenceStructuresT1 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + grouptier = BeaconDefenceStructuresT2 + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + grouptier = BeaconDefenceStructuresT3 + end + if spawnTier <= TierSpawnChances.T0 then + grouptiersea = StartboxDefenceStructuresT0Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + grouptiersea = StartboxDefenceStructuresT1Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + grouptiersea = StartboxDefenceStructuresT2Sea + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + grouptiersea = StartboxDefenceStructuresT3Sea + end + + BeaconSpawnChance = unitSpawnerModuleConfig.beaconspawnchance + Spring.CreateUnit("scavengerdroppodbeacon_scav", posx, posy, posz, math_random(0,3),GaiaTeamID) + + + Spring.CreateUnit("scavengerdroppod_scav", posx-128, posy, posz, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx-128, posz) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx-128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx-128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx+128, posy, posz, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx+128, posz) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx+128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx+128, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz+128, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx, posz+128) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx, posy, posz+128, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz+128, math_random(0,3),GaiaTeamID, n+90) + end + + Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz-128, math_random(0,3),GaiaTeamID) + local posy = Spring.GetGroundHeight(posx, posz-128) + if posy > 0 then + local r = grouptier[math_random(1,#grouptier)] + QueueSpawn(r..scavconfig.unitnamesuffix, posx, posy, posz-128, math_random(0,3),GaiaTeamID, n+90) + else + local r2 = grouptiersea[math_random(1,#grouptiersea)] + QueueSpawn(r2..scavconfig.unitnamesuffix, posx, posy, posz-128, math_random(0,3),GaiaTeamID, n+90) + end + + grouptier = nil + grouptiersea = nil + end + posx = nil + posz = nil + else + BeaconSpawnChance = BeaconSpawnChance - 1 + if BeaconSpawnChance < 1 then + BeaconSpawnChance = 1 + end + end + end + end +end diff --git a/LuaRules/Gadgets/scavengers/Modules/startbox_protection.lua b/LuaRules/Gadgets/scavengers/Modules/startbox_protection.lua new file mode 100644 index 000000000..e9481fb91 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/startbox_protection.lua @@ -0,0 +1,136 @@ + +function spawnStartBoxProtection(n) + for i = 1,10 do + --mapsizeX + --mapsizeZ + --ScavengerStartboxXMin + --ScavengerStartboxZMin + --ScavengerStartboxXMax + --ScavengerStartboxZMax + --GaiaTeamID + --GaiaAllyTeamID + --posCheck(posx, posy, posz, posradius) + --posOccupied(posx, posy, posz, posradius) + local r = math_random(0,3) + local r2 = math_random(0,80) + local spread = spawnProtectionConfig.spread + local spawnPosX = math_random(ScavengerStartboxXMin,ScavengerStartboxXMax) + local spawnPosZ = math_random(ScavengerStartboxZMin,ScavengerStartboxZMax) + if r == 0 then -- south edge + spawnPosZ = ScavengerStartboxZMax + spawnDirection = 0 + elseif r == 1 then -- east edge + spawnPosX = ScavengerStartboxXMax + spawnDirection = 1 + elseif r == 2 then -- south edge + spawnPosZ = ScavengerStartboxZMin + spawnDirection = 2 + elseif r == 3 then -- west edge + spawnPosX = ScavengerStartboxXMin + spawnDirection = 3 + end + if r2 == 0 then + spawnPosX = math_random(ScavengerStartboxXMin,ScavengerStartboxXMax) + spawnPosZ = math_random(ScavengerStartboxZMin,ScavengerStartboxZMax) + end + canSpawnDefence = true + if spawnPosX > mapsizeX - 128 or spawnPosX < 128 or spawnPosZ > mapsizeZ - 128 or spawnPosZ < 128 then + canSpawnDefence = false + end + spawnPosX = spawnPosX + math_random(-spread*2,spread*2) + spawnPosZ = spawnPosZ + math_random(-spread*2,spread*2) + if spawnPosX > mapsizeX - 128 or spawnPosX < 128 or spawnPosZ > mapsizeZ - 128 or spawnPosZ < 128 then + canSpawnDefence = false + end + if canSpawnDefence then + local spawnPosY = Spring.GetGroundHeight(spawnPosX, spawnPosZ) + local spawnTier = math_random(1,100) + + if spawnPosY > 0 then + if spawnTier <= TierSpawnChances.T0 then + pickedTurret = StartboxDefenceStructuresT0[math_random(1,#StartboxDefenceStructuresT0)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + pickedTurret = StartboxDefenceStructuresT1[math_random(1,#StartboxDefenceStructuresT1)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + pickedTurret = StartboxDefenceStructuresT2[math_random(1,#StartboxDefenceStructuresT2)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + pickedTurret = StartboxDefenceStructuresT3[math_random(1,#StartboxDefenceStructuresT3)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + pickedTurret = StartboxDefenceStructuresT4[math_random(1,#StartboxDefenceStructuresT4)] + else + pickedTurret = StartboxDefenceStructuresT0[math_random(1,#StartboxDefenceStructuresT0)] + end + elseif spawnPosY <= 0 then + if spawnTier <= TierSpawnChances.T0 then + pickedTurret = StartboxDefenceStructuresT0Sea[math_random(1,#StartboxDefenceStructuresT0Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + pickedTurret = StartboxDefenceStructuresT1Sea[math_random(1,#StartboxDefenceStructuresT1Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + pickedTurret = StartboxDefenceStructuresT2Sea[math_random(1,#StartboxDefenceStructuresT2Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + pickedTurret = StartboxDefenceStructuresT3Sea[math_random(1,#StartboxDefenceStructuresT3Sea)] + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + pickedTurret = StartboxDefenceStructuresT4Sea[math_random(1,#StartboxDefenceStructuresT4Sea)] + else + pickedTurret = StartboxDefenceStructuresT0Sea[math_random(1,#StartboxDefenceStructuresT0Sea)] + end + end + + canSpawnDefence = posCheck(spawnPosX, spawnPosY, spawnPosZ, spread) + if canSpawnDefence then + canSpawnDefence = posOccupied(spawnPosX, spawnPosY, spawnPosZ, spread) + end + + if canSpawnDefence then + QueueSpawn(pickedTurret..scavconfig.unitnamesuffix, spawnPosX, spawnPosY, spawnPosZ, spawnDirection,GaiaTeamID,n+90) + Spring.CreateUnit("scavengerdroppod_scav", spawnPosX, spawnPosY, spawnPosZ, spawnDirection,GaiaTeamID) + end + end + + + spawnPosX = nil + spawnPosZ = nil + spawnDirection = nil + canSpawnDefence = nil + pickedTurret = nil + end +end + +function executeStartBoxProtection(n) + if ScavengerStartboxExists then + local list = Spring.GetUnitsInRectangle(ScavengerStartboxXMin,ScavengerStartboxZMin,ScavengerStartboxXMax,ScavengerStartboxZMax) + for i = 1,#list do + local unitID = list[i] + local unitTeam = Spring.GetUnitTeam(unitID) + if unitTeam ~= GaiaTeamID then + local currentHealth,maxHealth = Spring.GetUnitHealth(unitID) + local damage = maxHealth*0.1 + if damage < currentHealth then + Spring.SetUnitHealth(unitID,currentHealth-damage) + local posx, posy, posz = Spring.GetUnitPosition(unitID) + Spring.SpawnCEG("scavradiation-lightning",posx,posy+40,posz,0,0,0) + else + Spring.DestroyUnit(unitID, false, false) + end + end + end + end +end + +function spawnStartBoxEffect(n) + if ScavengerStartboxExists then + local x = math.random(ScavengerStartboxXMin,ScavengerStartboxXMax) + local z = math.random(ScavengerStartboxZMin,ScavengerStartboxZMax) + local y = Spring.GetGroundHeight(x,z) + Spring.SpawnCEG("scavradiation",x,y+100,z,0,0,0) + end +end + +function spawnStartBoxEffect2(n) + if ScavengerStartboxExists then + local x = math.random(ScavengerStartboxXMin,ScavengerStartboxXMax) + local z = math.random(ScavengerStartboxZMin,ScavengerStartboxZMax) + local y = Spring.GetGroundHeight(x,z) + Spring.SpawnCEG("scavradiation-lightning",x,y+100,z,0,0,0) + end +end diff --git a/LuaRules/Gadgets/scavengers/Modules/stockpiling.lua b/LuaRules/Gadgets/scavengers/Modules/stockpiling.lua new file mode 100644 index 000000000..5317dcdb9 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/stockpiling.lua @@ -0,0 +1,4 @@ + +function ScavStockpile(n, scav) + Spring.GiveOrderToUnit(scav, CMD.STOCKPILE, {}, {}) +end diff --git a/LuaRules/Gadgets/scavengers/Modules/unit_controller.lua b/LuaRules/Gadgets/scavengers/Modules/unit_controller.lua new file mode 100644 index 000000000..fea241dfd --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/unit_controller.lua @@ -0,0 +1,102 @@ +Spring.Echo("[Scavengers] Unit Controller initialized") + +VFS.Include("luarules/gadgets/scavengers/Configs/"..GameShortName.."/UnitLists/staticunits.lua") + +function SelfDestructionControls(n, scav, scavDef) + UnitRange = {} + Constructing = {} + --Constructing[scav] = false + local _,_,_,_,buildProgress = Spring.GetUnitHealth(scav) + if buildProgress == 1 then + if selfdx[scav] then + oldselfdx[scav] = selfdx[scav] + end + if selfdy[scav] then + oldselfdy[scav] = selfdy[scav] + end + if selfdz[scav] then + oldselfdz[scav] = selfdz[scav] + end + selfdx[scav],selfdy[scav],selfdz[scav] = Spring.GetUnitPosition(scav) + if UnitDefs[scavDef].maxWeaponRange < 800 then + UnitRange[scav] = 800 + else + UnitRange[scav] = UnitDefs[scavDef].maxWeaponRange + end + if scavConstructor[scav] then + local metalMake, metalUse = Spring.GetUnitResources(scav) + if metalUse > 0 then + Constructing[scav] = true + else + Constructing[scav] = false + end + end + if (oldselfdx[scav] and oldselfdy[scav] and oldselfdz[scav]) and (oldselfdx[scav] > selfdx[scav]-10 and oldselfdx[scav] < selfdx[scav]+10) and (oldselfdy[scav] > selfdy[scav]-10 and oldselfdy[scav] < selfdy[scav]+10) and (oldselfdz[scav] > selfdz[scav]-10 and oldselfdz[scav] < selfdz[scav]+10) then + if selfdx[scav] < mapsizeX and selfdx[scav] > 0 and selfdz[scav] < mapsizeZ and selfdz[scav] > 0 then + if not scavConstructor[scav] or Constructing[scav] == false then + for q = 1,5 do + local posx = math.random(selfdx[scav] - 400, selfdx[scav] + 400) + local posz = math.random(selfdz[scav] - 400, selfdz[scav] + 400) + local telstartposy = Spring.GetGroundHeight(selfdx[scav], selfdz[scav]) + local telendposy = Spring.GetGroundHeight(posx, posz) + if (UnitDefs[scavDef].minWaterDepth and -(UnitDefs[scavDef].minWaterDepth) > telendposy) or (UnitDefs[scavDef].maxWaterDepth and -(UnitDefs[scavDef].maxWaterDepth) < telendposy) then + Spring.SpawnCEG("scav-prettypop",selfdx[scav],telstartposy,selfdz[scav],0,0,0) + Spring.SpawnCEG("scav-prettypop",posx,telendposy,posz,0,0,0) + Spring.SetUnitPosition(scav, posx, posz) + Spring.GiveOrderToUnit(scav, CMD.STOP, 0, 0) + break + end + end + end + end + --Spring.DestroyUnit(scav, false, true) + end + end + UnitRange[scav] = nil + Constructing[scav] = nil +end + +function ArmyMoveOrders(n, scav, scavDef) + UnitRange = {} + if UnitDefs[scavDef].maxWeaponRange and UnitDefs[scavDef].maxWeaponRange > 10 then + UnitRange[scav] = UnitDefs[scavDef].maxWeaponRange + else + UnitRange[scav] = 10 + end + if not BossWaveStarted or BossWaveStarted == false then + attackTarget = Spring.GetUnitNearestEnemy(scav, 200000, false) + else + if AliveEnemyCommanders and AliveEnemyCommandersCount > 0 then + if AliveEnemyCommandersCount > 1 then + for i = 1,AliveEnemyCommandersCount do + -- let's get nearest commander + local separation = Spring.GetUnitSeparation(scav,AliveEnemyCommanders[i]) + if not lowestSeparation then + lowestSeparation = separation + attackTarget = AliveEnemyCommanders[i] + end + if separation < lowestSeparation then + lowestSeparation = separation + attackTarget = AliveEnemyCommanders[i] + end + end + lowestSeparation = nil + elseif AliveEnemyCommandersCount == 1 then + attackTarget = AliveEnemyCommanders[1] + end + end + end + if attackTarget == nil then + attackTarget = Spring.GetUnitNearestEnemy(scav, 200000, false) + end + local x,y,z = Spring.GetUnitPosition(attackTarget) + local range = UnitRange[scav] + local x = x + math_random(-range*3,range*3) + local z = z + math_random(-range*3,range*3) + if (not BossWaveStarted) and (UnitDefs[scavDef].canFly or (UnitRange[scav] > unitControllerModuleConfig.minimumrangeforfight)) then + Spring.GiveOrderToUnit(scav, CMD.FIGHT,{x,y,z}, {"shift", "alt", "ctrl"}) + else + Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift", "alt", "ctrl"}) + end + attackTarget = nil +end diff --git a/LuaRules/Gadgets/scavengers/Modules/unit_spawner.lua b/LuaRules/Gadgets/scavengers/Modules/unit_spawner.lua new file mode 100644 index 000000000..ddedf4fdb --- /dev/null +++ b/LuaRules/Gadgets/scavengers/Modules/unit_spawner.lua @@ -0,0 +1,365 @@ +Spring.Echo("[Scavengers] Unit Spawner initialized") + +local UnitSpawnChance = unitSpawnerModuleConfig.spawnchance + +function BossWaveTimer(n) + if not BossWaveTimeLeft then + BossWaveTimeLeft = unitSpawnerModuleConfig.BossWaveTimeLeft + end + if not FinalSelfDChance then + FinalSelfDChance = 60 + end + if BossWaveTimeLeft > 0 then + BossWaveTimeLeft = BossWaveTimeLeft - 1 + BossFightMessages(BossWaveTimeLeft) + elseif BossWaveTimeLeft <= 0 then + if not FinalBossUnitSpawned and unitSpawnerModuleConfig.FinalBossUnit == true then + + local bossunit = BossUnits[math_random(1,#BossUnits)] + + local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) + SpawnBeacons = {} + for i = 1,#scavengerunits do + local scav = scavengerunits[i] + local scavDef = Spring.GetUnitDefID(scav) + if scavSpawnBeacon[scav] then + table.insert(SpawnBeacons,scav) + end + end + + if #SpawnBeacons > 1 then + for b = 1,1000 do + local pickedBeaconTest = SpawnBeacons[math_random(1,#SpawnBeacons)] + local _,_,_,pickedBeaconCaptureProgress = Spring.GetUnitHealth(pickedBeaconTest) + if pickedBeaconCaptureProgress == 0 then + pickedBeacon = pickedBeaconTest + break + else + pickedBeacon = 1234567890 + end + end + elseif #SpawnBeacons == 1 then + pickedBeacon = SpawnBeacons[1] + end + SpawnBeacons = nil + + if pickedBeacon == 1234567890 then + return + else + if pickedBeacon then + local posx,posy,posz = Spring.GetUnitPosition(pickedBeacon) + local posy = Spring.GetGroundHeight(posx, posz) + Spring.CreateUnit(bossunit, posx, posy, posz, math_random(0,3),GaiaTeamID) + FinalBossUnitSpawned = true + Spring.Echo("BOSS COMMANDER SPAWNED") + elseif ScavengerStartboxExists == true then + local posx = math.floor((ScavengerStartboxXMin + ScavengerStartboxXMax)/2) + local posz = math.floor((ScavengerStartboxZMin + ScavengerStartboxZMax)/2) + local posy = Spring.GetGroundHeight(posx, posz) + Spring.CreateUnit(bossunit, posx, posy, posz, math_random(0,3),GaiaTeamID) + FinalBossUnitSpawned = true + Spring.Echo("BOSS COMMANDER SPAWNED") + else + local posx = math.floor(mapsizeX/2) + local posz = math.floor(mapsizeZ/2) + local posy = Spring.GetGroundHeight(posx, posz) + Spring.CreateUnit(bossunit, posx, posy, posz, math_random(0,3),GaiaTeamID) + FinalBossUnitSpawned = true + Spring.Echo("BOSS COMMANDER SPAWNED") + end + end + pickedBeacon = nil + + elseif (not unitSpawnerModuleConfig.FinalBossUnit) or FinalBossKilled == true then + local units = Spring.GetTeamUnits(GaiaTeamID) + FinalSelfDChance = FinalSelfDChance - 1 + if FinalSelfDChance < 2 then + FinalSelfDChance = 2 + end + for i = 1,#units do + local r = math_random(1,FinalSelfDChance) + if r == 1 then + Spring.DestroyUnit(units[i],false,false) + end + end + end + end +end + +function BossMinionsSpawn(n) + local x,y,z = Spring.GetUnitPosition(FinalBossUnitID) + local posx = x + math_random(-500,500) + local posz = z + math_random(-500,500) + local posy = Spring.GetGroundHeight(posx, posz) + local r = math_random(0,100) + local rair = math_random(0, unitSpawnerModuleConfig.aircraftchance) + + if rair == 0 then + if r <= 20 then + minionUnit = T1AirUnits[math_random(1,#T1AirUnits)]..scavconfig.unitnamesuffix + elseif r <= 70 then + minionUnit = T2AirUnits[math_random(1,#T2AirUnits)]..scavconfig.unitnamesuffix + elseif r <= 95 then + minionUnit = T3AirUnits[math_random(1,#T3AirUnits)]..scavconfig.unitnamesuffix + elseif r <= 100 then + minionUnit = T4AirUnits[math_random(1,#T4AirUnits)]..scavconfig.unitnamesuffix + else + minionUnit = T0AirUnits[math_random(1,#T0AirUnits)]..scavconfig.unitnamesuffix + end + elseif posy > -20 then + if r <= 20 then + minionUnit = T1LandUnits[math_random(1,#T1LandUnits)]..scavconfig.unitnamesuffix + elseif r <= 70 then + minionUnit = T2LandUnits[math_random(1,#T2LandUnits)]..scavconfig.unitnamesuffix + elseif r <= 95 then + minionUnit = T3LandUnits[math_random(1,#T3LandUnits)]..scavconfig.unitnamesuffix + elseif r <= 100 then + minionUnit = T4LandUnits[math_random(1,#T4LandUnits)]..scavconfig.unitnamesuffix + else + minionUnit = T0LandUnits[math_random(1,#T0LandUnits)]..scavconfig.unitnamesuffix + end + elseif posy <= -20 then + if r <= 20 then + minionUnit = T1SeaUnits[math_random(1,#T1SeaUnits)]..scavconfig.unitnamesuffix + elseif r <= 70 then + minionUnit = T2SeaUnits[math_random(1,#T2SeaUnits)]..scavconfig.unitnamesuffix + elseif r <= 95 then + minionUnit = T3SeaUnits[math_random(1,#T3SeaUnits)]..scavconfig.unitnamesuffix + elseif r <= 100 then + minionUnit = T4SeaUnits[math_random(1,#T4SeaUnits)]..scavconfig.unitnamesuffix + else + minionUnit = T0SeaUnits[math_random(1,#T0SeaUnits)]..scavconfig.unitnamesuffix + end + end + Spring.CreateUnit(minionUnit, posx, posy, posz, math_random(0,3),GaiaTeamID) + Spring.SpawnCEG("scav-prettypop",posx,posy,posz,0,0,0) +end + + +function UnitGroupSpawn(n) + if n > 9000 then + local gaiaUnitCount = Spring.GetTeamUnitCount(GaiaTeamID) + if BossWaveTimeLeft then + if numOfSpawnBeacons or numOfSpawnBeacons == 0 then + ActualUnitSpawnChance = math_random(0,math.ceil(UnitSpawnChance)*3) + else + ActualUnitSpawnChance = math_random(0,(UnitSpawnChance/(numOfSpawnBeacons/5))*3) + end + else + if numOfSpawnBeacons or numOfSpawnBeacons == 0 then + ActualUnitSpawnChance = math_random(0,math.ceil(UnitSpawnChance)) + else + ActualUnitSpawnChance = math_random(0,(UnitSpawnChance/(numOfSpawnBeacons/5))) + end + end + if (ActualUnitSpawnChance == 0 or canSpawnHere == false) and numOfSpawnBeacons > 0 then + -- check positions + local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) + SpawnBeacons = {} + for i = 1,#scavengerunits do + local scav = scavengerunits[i] + local scavDef = Spring.GetUnitDefID(scav) + if scavSpawnBeacon[scav] then + table.insert(SpawnBeacons,scav) + end + end + + for b = 1,10 do + local pickedBeaconTest = SpawnBeacons[math_random(1,#SpawnBeacons)] + local _,_,_,pickedBeaconCaptureProgress = Spring.GetUnitHealth(pickedBeaconTest) + if pickedBeaconCaptureProgress == 0 then + pickedBeacon = pickedBeaconTest + break + else + pickedBeacon = 1234567890 + end + end + if pickedBeacon == 1234567890 then + return + end + + local posx,posy,posz = Spring.GetUnitPosition(pickedBeacon) + local posy = Spring.GetGroundHeight(posx, posz) + local posradius = 256 + local nearestEnemy = Spring.GetUnitNearestEnemy(pickedBeacon, 99999, false) + local nearestEnemyTeam = Spring.GetUnitTeam(nearestEnemy) + if nearestEnemyTeam == bestTeam then + bestTeamGroupMultiplier = 1.25 + else + bestTeamGroupMultiplier = 0.75 + end + canSpawnHere = true + --Spring.DestroyUnit(pickedBeacon,false,false) + SpawnBeacon(n) + pickedBeacon = nil + + if canSpawnHere then + + if BossWaveTimeLeft then + UnitSpawnChance = math.ceil(unitSpawnerModuleConfig.spawnchance / (teamcount/2)) + else + UnitSpawnChance = unitSpawnerModuleConfig.spawnchance + end + if not globalScore then + teamsCheck() + end + if (globalScore/unitSpawnerModuleConfig.globalscoreperoneunit)*spawnmultiplier < #scavengerunits then + UnitSpawnChance = math.ceil(UnitSpawnChance/2) + end + local groupsize = (globalScore / unitSpawnerModuleConfig.globalscoreperoneunit)*spawnmultiplier + local aircraftchance = math_random(0,unitSpawnerModuleConfig.aircraftchance) + local aircraftchanceonsea = math_random(0,unitSpawnerModuleConfig.chanceforaircraftonsea) + local bossaircraftchance = math_random(0,unitSpawnerModuleConfig.aircraftchance*5) + local spawnTier = math_random(1,100) + + if (posy <= -20 and aircraftchanceonsea == 0) or (aircraftchance == 0 and (not BossWaveTimeLeft)) or (bossaircraftchance == 0 and BossWaveTimeLeft and BossWaveTimeLeft > 0) then + if unitSpawnerModuleConfig.bossFightEnabled and BossWaveTimeLeft then + if spawnTier < 50 then + groupunit = T4AirUnits + else + groupunit = T3AirUnits + end + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t4multiplier + elseif spawnTier <= TierSpawnChances.T0 then + groupunit = T0AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t0multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t3multiplier + -- ScavSendMessage("Warning! Scavengers dropped group of ".. UDN[groupunit].humanName .."s") + -- if math_random(0,2) == 0 then + -- ScavSendNotification("scav_scavheavyairdetected") + -- end + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t4multiplier + -- ScavSendNotification("scav_scavbossdetected") + else + groupunit = T0AirUnits + groupsize = groupsize*unitSpawnerModuleConfig.airmultiplier*unitSpawnerModuleConfig.t0multiplier + end + elseif posy > -20 then + if unitSpawnerModuleConfig.bossFightEnabled and BossWaveTimeLeft then + if spawnTier < 50 then + groupunit = T4LandUnits + else + groupunit = T3LandUnits + end + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t4multiplier + elseif spawnTier <= TierSpawnChances.T0 then + groupunit = T0LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t0multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t3multiplier + -- local c = math_random(0,2) + -- if c == 0 then + -- ScavSendMessage("Warning! Scavengers dropped group of ".. UDN[groupunit].humanName .."s") + -- local s = math_random(0,4) + -- if s == 0 then + -- ScavSendNotification("scav_scavtech3") + -- elseif s == 1 then + -- ScavSendNotification("scav_scavtech3b") + -- elseif s == 2 then + -- ScavSendNotification("scav_scavtech3c") + -- elseif s == 3 then + -- ScavSendNotification("scav_scavtech3d") + -- else + -- ScavSendNotification("scav_scavtech3e") + -- end + -- else + -- ScavSendMessage("Warning! Scavengers dropped group of ".. UDN[groupunit].humanName .."s") + -- end + + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t4multiplier + -- ScavSendNotification("scav_scavbossdetected") + else + groupunit = T0LandUnits + groupsize = groupsize*unitSpawnerModuleConfig.landmultiplier*unitSpawnerModuleConfig.t0multiplier + end + elseif posy <= -20 then + if unitSpawnerModuleConfig.bossFightEnabled and BossWaveTimeLeft then + if spawnTier < 50 then + groupunit = T4SeaUnits + else + groupunit = T3SeaUnits + end + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t4multiplier + elseif spawnTier <= TierSpawnChances.T0 then + groupunit = T0SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t0multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 then + groupunit = T1SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t1multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 then + groupunit = T2SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t2multiplier + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 then + groupunit = T3SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t3multiplier + -- ScavSendMessage("Warning! Scavengers dropped group of ".. UDN[groupunit].humanName .."s") + -- if math_random(0,2) == 0 then + -- ScavSendNotification("scav_scavheavyshipsdetected") + -- end + elseif spawnTier <= TierSpawnChances.T0 + TierSpawnChances.T1 + TierSpawnChances.T2 + TierSpawnChances.T3 + TierSpawnChances.T4 then + groupunit = T4SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t4multiplier + -- ScavSendNotification("scav_scavbossdetected") + else + groupunit = T0SeaUnits + groupsize = groupsize*unitSpawnerModuleConfig.seamultiplier*unitSpawnerModuleConfig.t0multiplier + end + end + + local groupsize = math.ceil(groupsize*bestTeamGroupMultiplier*(teamcount/2)) + for i=1, groupsize do + local posx = posx+math_random(-160,160) + local posz = posz+math_random(-160,160) + local newposy = Spring.GetGroundHeight(posx, posz) + if posy >= -20 and newposy >= -20 then + if i then + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n+(i*15)) + QueueSpawn(groupunit[math_random(1,#groupunit)]..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90+(i*15)) + else + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n) + QueueSpawn(groupunit[math_random(1,#groupunit)]..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + elseif posy < -20 and newposy < -20 then + if i then + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n+(i*15)) + QueueSpawn(groupunit[math_random(1,#groupunit)]..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90+(i*15)) + else + QueueSpawn("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID, n) + QueueSpawn(groupunit[math_random(1,#groupunit)]..scavconfig.unitnamesuffix, posx, posy, posz, math_random(0,3),GaiaTeamID, n+90) + end + end + --Spring.CreateUnit("scavengerdroppod_scav", posx, posy, posz, math_random(0,3),GaiaTeamID) + end + posx = nil + posy = nil + posz = nil + SpawnBeacons = nil + end + else + UnitSpawnChance = UnitSpawnChance - 1 + if UnitSpawnChance < 1 then + UnitSpawnChance = 1 + end + end + end +end + diff --git a/LuaRules/Gadgets/scavengers/boot.lua b/LuaRules/Gadgets/scavengers/boot.lua new file mode 100644 index 000000000..4dea445a1 --- /dev/null +++ b/LuaRules/Gadgets/scavengers/boot.lua @@ -0,0 +1,715 @@ +if (not gadgetHandler:IsSyncedCode()) then + return false +end + +GameShortName = Game.gameShortName +VFS.Include("luarules/gadgets/scavengers/Configs/"..GameShortName.."/config.lua") +--for i = 1,#scavconfig do +--Spring.Echo("scavconfig value "..i.." = "..scavconfig[i]) +--end + +function ScavSendMessage(message) + if scavconfig.messenger then + SendToUnsynced("SendMessage", message) + end +end + +function ScavSendNotification(name) + if scavconfig.messenger then + SendToUnsynced("SendNotification", name) + end +end + +function ScavSendVoiceMessage(filedirectory) + if scavconfig.messenger then + Spring.SendCommands("scavplaysoundfile "..filedirectory) + end +end + +VFS.Include("luarules/gadgets/scavengers/API/api.lua") +VFS.Include("luarules/gadgets/scavengers/Modules/unit_controller.lua") + +local UnitLists = VFS.DirList('luarules/gadgets/scavengers/Configs/'..GameShortName..'/UnitLists/','*.lua') +for i = 1,#UnitLists do + VFS.Include(UnitLists[i]) + Spring.Echo("Scav Units Directory: " ..UnitLists[i]) +end + +if scavconfig.modules.buildingSpawnerModule then + ScavengerBlueprintsT0 = {} + ScavengerBlueprintsT1 = {} + ScavengerBlueprintsT2 = {} + ScavengerBlueprintsT3 = {} + ScavengerBlueprintsT4 = {} + ScavengerBlueprintsT0Sea = {} + ScavengerBlueprintsT1Sea = {} + ScavengerBlueprintsT2Sea = {} + ScavengerBlueprintsT3Sea = {} + ScavengerBlueprintsT4Sea = {} + VFS.Include("luarules/gadgets/scavengers/Modules/building_spawner.lua") +end + +if scavconfig.modules.constructorControllerModule then + ScavengerConstructorBlueprintsT0 = {} + ScavengerConstructorBlueprintsT1 = {} + ScavengerConstructorBlueprintsT2 = {} + ScavengerConstructorBlueprintsT3 = {} + ScavengerConstructorBlueprintsT4 = {} + ScavengerConstructorBlueprintsT0Sea = {} + ScavengerConstructorBlueprintsT1Sea = {} + ScavengerConstructorBlueprintsT2Sea = {} + ScavengerConstructorBlueprintsT3Sea = {} + ScavengerConstructorBlueprintsT4Sea = {} + VFS.Include("luarules/gadgets/scavengers/Modules/constructor_controller.lua") +end + +if scavconfig.modules.factoryControllerModule then + VFS.Include("luarules/gadgets/scavengers/Modules/factory_controller.lua") +end + +if scavconfig.modules.unitSpawnerModule then + VFS.Include("luarules/gadgets/scavengers/Modules/unit_spawner.lua") +end + +if scavconfig.modules.startBoxProtection then + VFS.Include("luarules/gadgets/scavengers/Modules/startbox_protection.lua") +end + +if scavconfig.modules.reinforcementsModule then + VFS.Include("luarules/gadgets/scavengers/Modules/reinforcements_module.lua") +end + +if scavconfig.modules.stockpilers == true then + VFS.Include("luarules/gadgets/scavengers/Modules/stockpiling.lua") +end + +if scavconfig.modules.nukes == true then + VFS.Include("luarules/gadgets/scavengers/Modules/nuke_controller.lua") +end + +VFS.Include("luarules/gadgets/scavengers/Modules/spawn_beacons.lua") +VFS.Include("luarules/gadgets/scavengers/Modules/messenger.lua") + + +local function DisableUnit(unitID) + Spring.MoveCtrl.Enable(unitID) + Spring.MoveCtrl.SetNoBlocking(unitID, true) + Spring.MoveCtrl.SetPosition(unitID, Game.mapSizeX+1000, 2000, Game.mapSizeZ+1000) --don't move too far out or prevent_aicraft_hax will explode it! + Spring.SetUnitCloak(unitID, true) + --Spring.SetUnitHealth(unitID, {paralyze=99999999}) + Spring.SetUnitNoDraw(unitID, true) + Spring.SetUnitStealth(unitID, true) + Spring.SetUnitNoSelect(unitID, true) + Spring.SetUnitNoMinimap(unitID, true) + Spring.GiveOrderToUnit(unitID, CMD.MOVE_STATE, { 0 }, 0) + Spring.GiveOrderToUnit(unitID, CMD.FIRE_STATE, { 0 }, 0) +end + +local function DisableCommander() + local teamUnits = Spring.GetTeamUnits(scavengerAITeamID) + for _, unitID in ipairs(teamUnits) do + HiddenCommander = unitID + DisableUnit(unitID) + end +end + +function QueueSpawn(unitName, posx, posy, posz, facing, team, frame) + local QueueSpawnCommand = {unitName, posx, posy, posz, facing, team} + local QueueFrame = frame + if #QueuedSpawnsFrames > 0 then + for i = 1, #QueuedSpawnsFrames do + local CurrentQueueFrame = QueuedSpawnsFrames[i] + if (not(CurrentQueueFrame < QueueFrame)) or i == #QueuedSpawnsFrames then + table.insert(QueuedSpawns, i, QueueSpawnCommand) + table.insert(QueuedSpawnsFrames, i, QueueFrame) + break + end + end + else + table.insert(QueuedSpawns, QueueSpawnCommand) + table.insert(QueuedSpawnsFrames, QueueFrame) + end +end + +function SpawnFromQueue(n) + local QueuedSpawnsForNow = #QueuedSpawns + if QueuedSpawnsForNow > 0 then + for i = 1,QueuedSpawnsForNow do + if n == QueuedSpawnsFrames[1] then + local createSpawnCommand = QueuedSpawns[1] + Spring.CreateUnit(QueuedSpawns[1][1],QueuedSpawns[1][2],QueuedSpawns[1][3],QueuedSpawns[1][4],QueuedSpawns[1][5],QueuedSpawns[1][6]) + table.remove(QueuedSpawns, 1) + table.remove(QueuedSpawnsFrames, 1) + --else + --break + end + end + end +end + +-- function PutSpectatorsInScavTeam(n) + -- local players = Spring.GetPlayerList() + -- for i = 1,#players do + -- local player = players[i] + -- local name, active, spectator = Spring.GetPlayerInfo(player) + -- if spectator == true then + -- Spring.AssignPlayerToTeam(player, GaiaTeamID) + -- end + -- end +-- end + + + +local minionFramerate = math.ceil(unitSpawnerModuleConfig.FinalBossMinionsPassive/(teamcount*spawnmultiplier)) +function gadget:GameFrame(n) + + + -- if n%30 == 0 then + -- PutSpectatorsInScavTeam(n) + -- end + + if n > 1 then + SpawnFromQueue(n) + end + + if n == 300 then + --Spring.Echo("New Scavenger Spawner initialized") + Spring.SetTeamColor(GaiaTeamID, 0.38, 0.14, 0.38) + end + + if n%30 == 0 and scavconfig.messenger == true then + pregameMessages(n) + end + + if n%150 == 85 and FinalBossUnitSpawned and FinalBossKilled == false then + local bosshealth = Spring.GetUnitHealth(FinalBossUnitID) + ScavSendMessage("Boss Health: "..math.ceil(bosshealth)) + end + + if n%minionFramerate == 0 and FinalBossUnitSpawned and FinalBossKilled == false then + BossMinionsSpawn(n) + end + + + if scavconfig.modules.startBoxProtection == true and ScavengerStartboxExists == true and FinalBossKilled == false then + if n%30 == 0 then + spawnStartBoxProtection(n) + executeStartBoxProtection(n) + spawnStartBoxEffect2(n) + end + if n%3 == 0 then + spawnStartBoxEffect(n) + end + end + + if n%30 == 0 and scavconfig.modules.reinforcementsModule then + spawnPlayerReinforcements(n) + CaptureBeacons(n) + SetBeaconsResourceProduction(n) + end + + if n%30 == 0 and GaiaTeamID ~= Spring.GetGaiaTeamID() then + if not disabledCommander then + DisableCommander() + disabledCommander = true + end + Spring.SetUnitHealth(HiddenCommander, 9999999) + end + + if n == 100 and globalScore then + Spring.SetTeamResource(GaiaTeamID, "ms", 1000000) + Spring.SetTeamResource(GaiaTeamID, "es", 1000000) + Spring.SetGlobalLos(GaiaAllyTeamID, false) + end + if n%30 == 0 and globalScore then + Spring.SetTeamResource(GaiaTeamID, "ms", 1000000) + Spring.SetTeamResource(GaiaTeamID, "es", 1000000) + Spring.SetTeamResource(GaiaTeamID, "m", 1000000) + Spring.SetTeamResource(GaiaTeamID, "e", 1000000) + if BossWaveStarted == true then + BossWaveTimer(n) + end + end + if n%1800 == 0 and n > 100 then + teamsCheck() + UpdateTierChances(n) + if (BossWaveStarted == false) and globalScore > scavconfig.timers.BossFight and unitSpawnerModuleConfig.bossFightEnabled then + BossWaveStarted = true + elseif not FinalBossUnitSpawned and not BossWaveStarted then + if scavengersAIEnabled and scavengersAIEnabled == true then + if globalScore == 0 then globalScore = 1 end + if scavconfig.timers.BossFight == 0 then scavconfig.timers.BossFight = 1 end + if globalScore/scavconfig.timers.BossFight < 1 then + ScavSendMessage("Scavengers Tech Progress: "..math.ceil((globalScore/scavconfig.timers.BossFight)*100).."%") + ScavSendMessage("Scav Score: "..globalScore) + ScavSendMessage(TierSpawnChances.Message) + else + ScavSendMessage("Scavengers Tech Progress: 100%") + ScavSendMessage("Score: "..globalScore) + ScavSendMessage(TierSpawnChances.Message) + end + end + end + end + + if n%90 == 0 and scavconfig.modules.buildingSpawnerModule and (not FinalBossUnitSpawned) then + SpawnBlueprint(n) + end + if n%30 == 0 then + if scavconfig.modules.unitSpawnerModule and (not FinalBossUnitSpawned) then + SpawnBeacon(n) + UnitGroupSpawn(n) + end + if scavconfig.modules.constructorControllerModule and constructorControllerModuleConfig.useconstructors and n > 9000 and (not FinalBossUnitSpawned) then + SpawnConstructor(n) + end + local scavengerunits = Spring.GetTeamUnits(GaiaTeamID) + if scavengerunits then + for i = 1,#scavengerunits do + local scav = scavengerunits[i] + local scavDef = Spring.GetUnitDefID(scav) + local collectorRNG = math_random(0,2) + + if n%300 == 0 and scavconfig.modules.stockpilers == true then + if scavStockpiler[scav] == true then + ScavStockpile(n, scav) + end + end + + if scavconfig.modules.nukes == true then + if scavNuke[scav] == true then + SendRandomNukeOrder(n, scav) + end + end + + if scavconfig.modules.constructorControllerModule then + if constructorControllerModuleConfig.useconstructors then + if scavConstructor[scav] then + if Spring.GetCommandQueue(scav, 0) <= 0 then + -- if n%1800 == 0 then + -- if (not HiddenCommander) or (scav ~= HiddenCommander) then + -- SelfDestructionControls(n, scav, scavDef) + -- end + -- end + ConstructNewBlueprint(n, scav) + end + end + end + + if constructorControllerModuleConfig.useresurrectors and collectorRNG == 0 then + if scavResurrector[scav] then + ResurrectorOrders(n, scav) + end + end + + if constructorControllerModuleConfig.usecollectors and collectorRNG == 0 then + if scavCollector[scav] then + CollectorOrders(n, scav) + end + if scavReclaimer[scav] then + ReclaimerOrders(n, scav) + end + end + + if scavAssistant[scav] and Spring.GetCommandQueue(scav, 0) <= 0 then + AssistantOrders(n, scav) + end + end + + if scavconfig.modules.factoryControllerModule then + if scavFactory[scav] and #Spring.GetFullBuildQueue(scav, 0) <= 0 then + FactoryProduction(n, scav, scavDef) + end + end + + -- backup -- and not scavConstructor[scav] and not scavResurrector[scav] and not scavCollector[scav] + if n%450 == 0 and not scavStructure[scav] and not scavAssistant[scav] and not scavFactory[scav] and not scavSpawnBeacon[scav] then + SelfDestructionControls(n, scav, scavDef) + end + if Spring.GetCommandQueue(scav, 0) <= 1 and not scavStructure[scav] and not scavConstructor[scav] and not scavReclaimer[scav] and not scavResurrector[scav] and not scavAssistant[scav] and not scavCollector[scav] and not scavFactory[scav] and not scavSpawnBeacon[scav] then + ArmyMoveOrders(n, scav, scavDef) + end + + end + end + end +end + +function gadget:UnitDestroyed(unitID, unitDefID, unitTeam) + local UnitName = UnitDefs[unitDefID].name + if unitTeam == GaiaTeamID then + + if FinalBossUnitSpawned == true then + for i = 1,#BossUnits do + if string.sub(UnitName, 1, string.len(UnitName)) == BossUnits[i] then + Spring.Echo("GG") + FinalBossKilled = true + FinalBossUnitID = nil + end + end + end + + killedscavengers = killedscavengers + scavconfig.scoreConfig.baseScorePerKill + if scavStructure[unitID] and not UnitName == "scavengerdroppod_scav" and not UnitName == "scavengerdroppodbeacon_scav" then + killedscavengers = killedscavengers + scavconfig.scoreConfig.scorePerKilledBuilding + end + if scavConstructor[unitID] then + killedscavengers = killedscavengers + scavconfig.scoreConfig.scorePerKilledConstructor + end + if UnitName == "scavengerdroppodbeacon_scav" then + numOfSpawnBeacons = numOfSpawnBeacons - 1 + killedscavengers = killedscavengers + scavconfig.scoreConfig.scorePerKilledSpawner + end + if UnitName == "scavengerdroppod_scav" then + killedscavengers = killedscavengers - scavconfig.scoreConfig.baseScorePerKill + end + selfdx[unitID] = nil + selfdy[unitID] = nil + selfdz[unitID] = nil + oldselfdx[unitID] = nil + oldselfdy[unitID] = nil + oldselfdz[unitID] = nil + scavNoSelfD[unitID] = nil + scavConstructor[unitID] = nil + scavAssistant[unitID] = nil + scavResurrector[unitID] = nil + scavCollector[unitID] = nil + scavReclaimer[unitID] = nil + scavStructure[unitID] = nil + scavFactory[unitID] = nil + scavSpawnBeacon[unitID] = nil + scavStockpiler[unitID] = nil + scavNuke[unitID] = nil + UnitSuffixLenght[unitID] = nil + ConstructorNumberOfRetries[unitID] = nil + CaptureProgressForBeacons[unitID] = nil + else + for i = 1,#AliveEnemyCommanders do + local comID = AliveEnemyCommanders[i] + if unitID == comID then + AliveEnemyCommandersCount = AliveEnemyCommandersCount - 1 + table.remove(AliveEnemyCommanders, i) + break + end + end + if UnitName == "scavengerdroppodbeacon_scav" then + numOfSpawnBeaconsTeams[unitTeam] = numOfSpawnBeaconsTeams[unitTeam] - 1 + end + end +end + +function gadget:UnitTaken(unitID, unitDefID, unitOldTeam, unitNewTeam) + local UnitName = UnitDefs[unitDefID].name + if unitOldTeam == GaiaTeamID then + if UnitDefs[unitDefID].name == "scavengerdroppodbeacon_scav" then + numOfSpawnBeacons = numOfSpawnBeacons - 1 + numOfSpawnBeaconsTeams[unitNewTeam] = numOfSpawnBeaconsTeams[unitNewTeam] + 1 + killedscavengers = killedscavengers + scavconfig.scoreConfig.scorePerCapturedSpawner + if scavconfig.modules.reinforcementsModule == true then + Spring.SetUnitNeutral(unitID, false) + Spring.SetUnitHealth(unitID, 2500) + Spring.SetUnitMaxHealth(unitID, 2500) + end + --SpawnDefencesAfterCapture(unitID, unitNewTeam) + end + selfdx[unitID] = nil + selfdy[unitID] = nil + selfdz[unitID] = nil + oldselfdx[unitID] = nil + oldselfdy[unitID] = nil + oldselfdz[unitID] = nil + scavNoSelfD[unitID] = nil + scavConstructor[unitID] = nil + scavAssistant[unitID] = nil + scavResurrector[unitID] = nil + scavCollector[unitID] = nil + scavReclaimer[unitID] = nil + scavStructure[unitID] = nil + scavFactory[unitID] = nil + scavSpawnBeacon[unitID] = nil + scavStockpiler[unitID] = nil + scavNuke[unitID] = nil + UnitSuffixLenght[unitID] = nil + ConstructorNumberOfRetries[unitID] = nil + CaptureProgressForBeacons[unitID] = nil + Spring.SetUnitHealth(unitID, {capture = 0}) + + else + if unitNewTeam == GaiaTeamID then + if string.find(UnitName, scavconfig.unitnamesuffix) then + UnitSuffixLenght[unitID] = string.len(scavconfig.unitnamesuffix) + else + UnitSuffixLenght[unitID] = 0 + end + --Spring.Echo("Scavs just captured me " .. UnitName .. " and my suffix lenght is " .. UnitSuffixLenght[unitID]) + if UnitDefs[unitDefID].name == "scavengerdroppodbeacon_scav" then + numOfSpawnBeaconsTeams[unitOldTeam] = numOfSpawnBeaconsTeams[unitOldTeam] - 1 + numOfSpawnBeacons = numOfSpawnBeacons + 1 + scavSpawnBeacon[unitID] = true + end + -- CMD.CLOAK = 37382 + Spring.GiveOrderToUnit(unitID,37382,{1},0) + -- Fire At Will + Spring.GiveOrderToUnit(unitID,CMD.FIRE_STATE,{2},0) + scavStructure[unitID] = UnitDefs[unitDefID].isBuilding + for i = 1,#NoSelfdList do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == NoSelfdList[i] then--string.find(UnitName, NoSelfdList[i]) then + scavStructure[unitID] = true + end + end + + if scavconfig.modules.stockpilers == true then + for i = 1,#StockpilingUnitNames do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == StockpilingUnitNames[i] then + scavStockpiler[unitID] = true + end + end + end + + if scavconfig.modules.nukes == true then + for i = 1,#NukingUnitNames do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == NukingUnitNames[i] then + scavNuke[unitID] = true + end + end + end + + if scavconfig.modules.constructorControllerModule then + if constructorControllerModuleConfig.useconstructors then + for i = 1,#ConstructorsList do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == ConstructorsList[i] then + scavConstructor[unitID] = true + end + end + end + + if constructorControllerModuleConfig.useresurrectors then + for i = 1,#Resurrectors do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Resurrectors[i] then + scavResurrector[unitID] = true + end + end + for i = 1,#ResurrectorsSea do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == ResurrectorsSea[i] then + scavResurrector[unitID] = true + end + end + end + + if constructorControllerModuleConfig.usecollectors then + for i = 1,#Collectors do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Collectors[i] then + if math_random(0,100) <= 10 then + scavCollector[unitID] = true + else + scavReclaimer[unitID] = true + end + end + end + end + + for i = 1,#AssistUnits do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == AssistUnits[i] then + scavAssistant[unitID] = true + end + end + end + + if scavconfig.modules.factoryControllerModule then + for i = 1,#Factories do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Factories[i] then + scavFactory[unitID] = true + end + end + end + end + if UnitDefs[unitDefID].name == "scavengerdroppodbeacon_scav" then + numOfSpawnBeaconsTeams[unitOldTeam] = numOfSpawnBeaconsTeams[unitOldTeam] - 1 + numOfSpawnBeaconsTeams[unitNewTeam] = numOfSpawnBeaconsTeams[unitNewTeam] + 1 + end + end +end + +function gadget:UnitCreated(unitID, unitDefID, unitTeam) + local UnitName = UnitDefs[unitDefID].name + --Spring.Echo(Spring.GetUnitHeading(unitID)) + if UnitName == "scavengerdroppodfriendly" then + Spring.GiveOrderToUnit(unitID, CMD.SELFD,{}, {"shift"}) + end + if unitTeam == GaiaTeamID then + if string.find(UnitName, scavconfig.unitnamesuffix) then + UnitSuffixLenght[unitID] = string.len(scavconfig.unitnamesuffix) + else + UnitSuffixLenght[unitID] = 0 + local frame = Spring.GetGameFrame() + if frame > 300 then + local heading = Spring.GetUnitHeading(unitID) + local suffix = scavconfig.unitnamesuffix + local posx, posy, posz = Spring.GetUnitPosition(unitID) + Spring.DestroyUnit(unitID, false, true) + if heading >= -24576 and heading < -8192 then -- west + -- 3 + Spring.CreateUnit(UnitName..suffix, posx, posy, posz, 3,GaiaTeamID) + elseif heading >= -8192 and heading < 8192 then -- south + -- 0 + Spring.CreateUnit(UnitName..suffix, posx, posy, posz, 0,GaiaTeamID) + elseif heading >= 8192 and heading < 24576 then -- east + -- 1 + Spring.CreateUnit(UnitName..suffix, posx, posy, posz, 1,GaiaTeamID) + else -- north + -- 2 + Spring.CreateUnit(UnitName..suffix, posx, posy, posz, 2,GaiaTeamID) + end + return + end + end + for i = 1,#BossUnits do + if string.sub(UnitName, 1, string.len(UnitName)) == BossUnits[i] then + Spring.Echo("Got boss commander ID, attempting to spawn minions") + FinalBossUnitID = unitID + local bosshealth = unitSpawnerModuleConfig.FinalBossHealth*teamcount*spawnmultiplier + Spring.SetUnitHealth(unitID, bosshealth) + end + end + if UnitName == "scavengerdroppod_scav" then + Spring.GiveOrderToUnit(unitID, CMD.SELFD,{}, {"shift"}) + end + if UnitName == "scavengerdroppodbeacon_scav" then + scavSpawnBeacon[unitID] = true + numOfSpawnBeacons = numOfSpawnBeacons + 1 + if scavconfig.modules.reinforcementsModule == true then + Spring.SetUnitNeutral(unitID, true) + Spring.SetUnitMaxHealth(unitID, 10000) + Spring.SetUnitHealth(unitID, 10000) + end + end + -- if UnitName == "lootboxgold" then //perhaps add this later when lootboxes are fully implemented + -- Spring.SetUnitNeutral(unitID, true) + -- end + + -- CMD.CLOAK = 37382 + Spring.GiveOrderToUnit(unitID,37382,{1},0) + -- Fire At Will + Spring.GiveOrderToUnit(unitID,CMD.FIRE_STATE,{2},0) + scavStructure[unitID] = UnitDefs[unitDefID].isBuilding + for i = 1,#NoSelfdList do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == NoSelfdList[i] then--string.find(UnitName, NoSelfdList[i]) then + scavStructure[unitID] = true + end + end + + if scavconfig.modules.stockpilers == true then + for i = 1,#StockpilingUnitNames do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == StockpilingUnitNames[i] then + scavStockpiler[unitID] = true + end + end + end + + if scavconfig.modules.nukes == true then + for i = 1,#NukingUnitNames do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == NukingUnitNames[i] then + scavNuke[unitID] = true + end + end + end + + if scavconfig.modules.constructorControllerModule then + if constructorControllerModuleConfig.useconstructors then + for i = 1,#ConstructorsList do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == ConstructorsList[i] then + scavConstructor[unitID] = true + end + end + end + + if constructorControllerModuleConfig.useresurrectors then + for i = 1,#Resurrectors do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Resurrectors[i] then + scavResurrector[unitID] = true + end + end + for i = 1,#ResurrectorsSea do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == ResurrectorsSea[i] then + scavResurrector[unitID] = true + end + end + end + + if constructorControllerModuleConfig.usecollectors then + for i = 1,#Collectors do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Collectors[i] then + if math_random(0,100) <= 10 then + scavCollector[unitID] = true + else + scavReclaimer[unitID] = true + end + end + end + end + + for i = 1,#AssistUnits do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == AssistUnits[i] then + scavAssistant[unitID] = true + end + end + end + + if scavconfig.modules.factoryControllerModule then + for i = 1,#Factories do + if string.sub(UnitName, 1, string.len(UnitName)-UnitSuffixLenght[unitID]) == Factories[i] then + scavFactory[unitID] = true + end + end + end + else + --AliveEnemyCommanders + for i = 1,#CommandersList do + if string.sub(UnitName, 1, string.len(UnitName)) == CommandersList[i] then + AliveEnemyCommandersCount = AliveEnemyCommandersCount + 1 + table.insert(AliveEnemyCommanders,unitID) + end + end + if UnitDefs[unitDefID].name == "scavengerdroppodbeacon_scav" then + numOfSpawnBeaconsTeams[unitTeam] = numOfSpawnBeaconsTeams[unitTeam] + 1 + if scavconfig.modules.reinforcementsModule == true then + Spring.SetUnitNeutral(unitID, false) + Spring.SetUnitMaxHealth(unitID, 10000) + Spring.SetUnitHealth(unitID, 10000) + end + end + end +end + +function gadget:UnitFinished(unitID, unitDefID, unitTeam) + if unitTeam == GaiaTeamID then + -- CMD.CLOAK = 37382 + Spring.GiveOrderToUnit(unitID,37382,{1},0) + -- Fire At Will + if scavConstructor[unitID] then + Spring.GiveOrderToUnit(unitID,CMD.FIRE_STATE,{1},0) + Spring.GiveOrderToUnit(unitID,CMD.MOVE_STATE,{0},0) + else + Spring.GiveOrderToUnit(unitID,CMD.FIRE_STATE,{2},0) + Spring.GiveOrderToUnit(unitID,CMD.MOVE_STATE,{2},0) + end + end +end + +function gadget:UnitDamaged(unitID, unitDefID, unitTeam) + if unitTeam == GaiaTeamID then + local UnitName = UnitDefs[unitDefID].name + for i = 1,#BossUnits do + if string.sub(UnitName, 1, string.len(UnitName)) == BossUnits[i] then + local n = Spring.GetGameFrame() + if not lastMinionFrame then + lastMinionFrame = n + end + if n > lastMinionFrame + math.ceil(unitSpawnerModuleConfig.FinalBossMinionsActive/(teamcount*spawnmultiplier)) and FinalBossUnitID then + lastMinionFrame = n + BossMinionsSpawn(n) + end + end + end + end +end \ No newline at end of file diff --git a/LuaRules/Gadgets/share_control.lua b/LuaRules/Gadgets/share_control.lua deleted file mode 100644 index 6b2229e3a..000000000 --- a/LuaRules/Gadgets/share_control.lua +++ /dev/null @@ -1 +0,0 @@ --- $Id: share_control.lua 4292 2009-04-05 05:29:29Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: share_control.lua -- brief: only allow sharing with allied teams -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL, v2 or later. -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "ShareControl", desc = "Controls sharing of units and resources", author = "trepan", date = "Apr 22, 2007", license = "GNU GPL, v2 or later", layer = -5, enabled = true -- loaded by default? } end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local spGetTeamInfo = Spring.GetTeamInfo local resShare = true -- allow sharing resources local unitShare = true -- allow sharing units local resShareEnemy = false -- allow sharing resources with enemies local unitShareEnemy = false -- allow sharing units with enemies local unitShareCeasefired = false -- allow sharing units with ceasefired if not GG.shareunits then GG.shareunits = {} end --------------- CarRepairer start ------------- --[[ local GetAllyTeamList = Spring.GetAllyTeamList local GetTeamList = Spring.GetTeamList local GetPlayerList = Spring.GetPlayerList local backupPlayerMode local backups = {} --]] local GetTeamInfo = Spring.GetTeamInfo -- -- A team indexed list of the last frames that a unit transfer was blocked. -- This helps to avoid filling up the console with warnings when a user tries -- to share multiple units. -- -- local lastRefusals = {} -------------------------------------------------------------------------------- --if Spring.FixedAllies() == false then return false end --remove local function AllowAction(playerID) if (playerID ~= 0) then Spring.SendMessageToPlayer(playerID, "Must be the host player") return false end if (not Spring.IsCheatingEnabled()) then Spring.SendMessageToPlayer(playerID, "Cheating must be enabled") return false end return true end local function PrintState() Spring.Echo('sharing units is ' .. (unitShare and 'enabled' or 'disabled')) Spring.Echo('sharing resources is ' .. (resShare and 'enabled' or 'disabled')) Spring.Echo('sharing units with enemies is ' .. (unitShare and unitShareEnemy and 'enabled' or 'disabled')) Spring.Echo('sharing resources with enemies is ' .. (resShare and resShareEnemy and 'enabled' or 'disabled')) return true end local function ChatControl(cmd, line, words, playerID) if (not AllowAction(playerID)) then PrintState() return true end local count = #words if (count == 0) then unitShare = not unitShare resShare = unitShare elseif (count == 1) then if ((words[1] == '0') or (words[1] == 'none')) then resShare = false unitShare = false resShareEnemy = false unitShareEnemy = false elseif ((words[1] == '1') or (words[1] == 'ally')) then resShare = true unitShare = true resShareEnemy = false unitShareEnemy = false elseif ((words[1] == '2') or (words[1] == 'full')) then resShare = true unitShare = true resShareEnemy = true unitShareEnemy = true elseif (words[1] == 'r') then resShare = not resShare elseif (words[1] == 'u') then unitShare = not unitShare elseif (words[1] == 'e') then resShareEnemy = not resShareEnemy unitShareEnemy = not unitShareEnemy end elseif (count == 2) then if (words[1] == 'e') then if (words[2] == '0') then resShareEnemy = false unitShareEnemy = false elseif (words[2] == '1') then resShareEnemy = true unitShareEnemy = true end elseif (words[1] == 'r') then if (words[2] == '0') then resShare = false elseif (words[2] == '1') then resShare = true elseif (words[2] == 'e') then resShareEnemy = not resShareEnemy end elseif (words[1] == 'u') then if (words[2] == '0') then unitShare = false elseif (words[2] == '1') then unitShare = true elseif (words[2] == 'e') then unitShareEnemy = not unitShareEnemy end end elseif (count == 3) then if (words[1] == 'r') then if (words[2] == 'e') then if (words[3] == '0') then resShareEnemy = false elseif (words[3] == '1') then resShareEnemy = true end end elseif (words[1] == 'u') then if (words[2] == 'e') then if (words[3] == '0') then unitShareEnemy = false elseif (words[3] == '1') then unitShareEnemy = true end end end end PrintState() return true end function gadget:Initialize() if (not gadgetHandler:IsSyncedCode()) then gadgetHandler:RemoveGadget() return end if( Spring.GetModOptions() ) then unitShareEnemy = Spring.GetModOptions().sharemode == 'anyone' --resShareEnemy = unitShareEnemy unitShareCeasefired = Spring.GetModOptions().sharemode == 'ceasefire' end local cmd, help cmd = "sharectrl" local h = '' h = h.. ' [ "none" | "ally" | "full"]: basic sharing modes\n' h = h..cmd..' <"u"|"r"> ["e"] [0|1]: finer sharing control\n' h = h..' u: unit sharing\n' h = h..' r: resource sharing\n' h = h..' e: enemy mode\n' -- h = h..cmd..' [0|1]: control unit and resource sharing\n' -- h = h..cmd..' res [0|1]: control resource sharing\n' -- h = h..cmd..' unit [0|1]: control unit sharing\n' -- h = h..cmd..' enemy [0|1]: control enemy unit and resource sharing\n' -- h = h..cmd..' enemy res [0|1]: control enemy resource sharing\n' help = h gadgetHandler:AddChatAction(cmd, ChatControl, help) Script.AddActionFallback(cmd .. ' ', help) --------------- CarRepairer start ------------- --[[ allyTeamList = GetAllyTeamList() allyTeamCount = {} backupPlayerMode = (Spring.GetModOptions().backupplayers == 1) for _, allyTeam in ipairs(allyTeamList) do teamList = GetTeamList(allyTeam) allyTeamCount[allyTeam] = #teamList for _, team in ipairs(teamList) do _,_,_,_,faction,_ = GetTeamInfo(team) if (faction == 'backup') then backups[team] = allyTeam end end end --]] --------------- CarRepairer end ------------- end --------------- CarRepairer start ------------- --[[ function MissingPlayer(allyTeamID) local activePlayers = GetPlayerList(true) activePlayerCount = 0 for _, activePlayer in ipairs(activePlayers) do local _, _, _, curTeamID, curAllyTeamID = GetPlayerInfo(activePlayer) if curAllyTeamID == allyTeamID then activePlayerCount = activePlayerCount + 1 end end if activePlayerCount < allyTeamCount[allyTeamID] then return true end return false end --]] --------------- CarRepairer end ------------- function gadget:Shutdown() gadgetHandler:RemoveChatAction("sharectrl", ChatControl) end function gadget:AllowResourceTransfer(oldTeam, newTeam, type, amount) if(amount < 0) then return end --thx to gnurps@o2.pl for this patch. This prevent player from taking resources from his ally. if (resShare) then --if (resShareEnemy or Spring.AreTeamsAllied(oldTeam, newTeam)) then local _,_,_,_,_,oldAlliance = spGetTeamInfo(oldTeam) local _,_,_,_,_,newAlliance = spGetTeamInfo(newTeam) if (resShareEnemy or oldAlliance == newAlliance) then return true else Spring.SendMessageToTeam(oldTeam, "Cannot give resources to enemies when the fixed alliances option is set.") end else Spring.SendMessageToTeam(oldTeam, "Resource sharing has been disabled.") end return false end local function AddRefusal(team, msg) local frameNum = Spring.GetGameFrame() local lastRefusal = lastRefusals[team] if ((not lastRefusal) or (lastRefusal ~= frameNum)) then lastRefusals[team] = frameNum Spring.SendMessageToTeam(team, msg) end end function gadget:AllowUnitTransfer(unitID, unitDefID, oldTeam, newTeam, capture) --------------- CarRepairer start ------------- --[[ if (backups[newTeam]) then allyTeam = backups[newTeam] if backupPlayerMode then if (MissingPlayer(allyTeam)) then backups[newTeam] = nil allyTeamCount[allyTeam] = allyTeamCount[allyTeam] - 1 else AddRefusal(oldTeam, "A Backup Player cannot receive units until a player drops.") return false end else AddRefusal(oldTeam, "A Backup may only receive units in 'Backup Player Mode.'") return false end end --]] --------------- CarRepairer end ------------- if (capture) then return true end if (Spring.IsCheatingEnabled()) then return true end local _,_,_,_,faction,_ = GetTeamInfo(newTeam) if (faction == 'teamspec') then AddRefusal(oldTeam, "Cannot share units to a Teamspec.") return false end if GG.shareunits[unitID] then GG.shareunits[unitID] = nil return true end if (not unitShare) then AddRefusal(oldTeam, "Unit sharing has been disabled.") return false end -- AreTeamsAllied includes temporary alliances local _,_,_,_,_,oldAlliance = spGetTeamInfo(oldTeam) local _,_,_,_,_,newAlliance = spGetTeamInfo(newTeam) if (unitShareEnemy or oldAlliance == newAlliance) then return true end -- can give PW buildings to gaia local pwUnits = (GG.PlanetWars or {}).unitsByID if (newTeam == Spring.GetGaiaTeamID()) and (pwUnits or {})[unitID] then return true end if (unitShareCeasefired and Spring.AreTeamsAllied(oldTeam, newTeam)) then return true end AddRefusal(oldTeam, "Cannot give units to enemies unless enabled in mod options.") return false end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- \ No newline at end of file diff --git a/LuaRules/Gadgets/share_levels.lua b/LuaRules/Gadgets/share_levels.lua deleted file mode 100644 index cca0095a6..000000000 --- a/LuaRules/Gadgets/share_levels.lua +++ /dev/null @@ -1,231 +0,0 @@ --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- --- --- file: share_levels.lua --- brief: control resource sharing --- author: Dave Rodgers --- --- Copyright (C) 2007. --- Licensed under the terms of the GNU GPL, v2 or later. --- --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- - -function gadget:GetInfo() - return { - name = "ShareLevels", - desc = "Control resource sharing", - author = "trepan", - date = "Apr 22, 2007", - license = "GNU GPL, v2 or later", - layer = -5, - enabled = true -- loaded by default? - } -end - --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- - -local metalForce = true -local metalLevel = 101 - -local energyForce = true -local energyLevel = 101 - --- for toggling -local prevMetal = false -local prevEnery = false - -local cmdName = "sharelevels" -local help = " []>]>" - .. ": control automatic team resource sharing" - - --------------------------------------------------------------------------------- - -local function AllowAction(playerID) - if (playerID ~= 0) then - Spring.SendMessageToPlayer(playerID, "Must be the host player") - return false - end - if (not Spring.IsCheatingEnabled()) then - Spring.SendMessageToPlayer(playerID, "Cheating must be enabled") - return false - end - return true -end - - - -local function PrintHelp() - Spring.Echo(help) - return true -end - - -local function PrintState() - if (not metalForce) then - Spring.Echo('forced metal sharing is disabled') - else - Spring.Echo(string.format( - 'forced metal sharing level set to: %i%%', - ((1 - metalLevel) * 100) - )) - end - if (not energyForce) then - Spring.Echo('forced energy sharing is disabled') - else - Spring.Echo(string.format( - 'forced energy sharing level set to: %i%%', - ((1 - energyLevel) * 100) - )) - end - return true -end - - -local function ToggleBoth() - local hadPrev = (prevMetal or prevEnergy) - if (metalForce or energyForce) then - prevMetal = metalForce - prevEnergy = energyForce - metalForce = false - energyForce = false - elseif (hadPrev) then - metalForce = prevMetal - energyForce = prevEnergy - else - metalForce = true - energyForce = true - end -end - - -local function ChatControl(cmd, line, words, playerID) - if (not AllowAction(playerID)) then - PrintState() - return true - end - - local w1, w2 = words[1], words[2] - - if ((w1 == 'list') or (w1 == 'l')) then - return PrintState() - elseif ((w1 == 'toggle') or (w1 == 't')) then - ToggleBoth() - return PrintState() - elseif (w1 == 'on') then - metalForce = true - energyForce = true - return PrintState() - elseif (w1 == 'off') then - metalForce = false - energyForce = false - return PrintState() - end - - if (not (w1 == 'e') and - not (w1 == 'm') and - not (w1 == '*')) then - return PrintHelp() - end - - if (w2 == nil) then - if (w1 == 'm') then - metalForce = not metalForce - return PrintState() - elseif (w1 == 'e') then - energyForce = not energyForce - return PrintState() - else - ToggleBoth() - return PrintState() - end - end - - if ((w2 == 'on') or (w2 == 'off')) then - local state = (w2 == 'on') - if (w1 == 'm') then - metalForce = state - return PrintState() - elseif (w1 == 'e') then - energyForce = state - return PrintState() - else - metalForce = state - energyForce = state - return PrintState() - end - return PrintHelp() - end - - local level = tonumber(w2) - if (level == nil) then - PrintHelp() - Spring.Echo("bad sharing level: " .. w2) - return true - end - level = (100 - level) * 0.01 - if (level < 0) then level = 0 end - if (level > 1) then level = 1 end - - if ((w1 == 'm') or (w1 == '*')) then - metalLevel = level - metalForce = true - end - if ((w1 == 'e') or (w1 == '*')) then - energyLevel = level - energyForce = true - end - - return PrintState() -end - - --------------------------------------------------------------------------------- - -function gadget:Initialize() - if (not gadgetHandler:IsSyncedCode()) then - gadgetHandler:RemoveGadget() - return - end - gadgetHandler:AddChatAction(cmdName, ChatControl, help) - Script.AddActionFallback(cmdName .. ' ', help) -end - - -function gadget:Shutdown() - gadgetHandler:RemoveChatAction(cmdName, ChatControl) -end - - --------------------------------------------------------------------------------- - -local GetTeamList = Spring.GetTeamList -local SetTeamShareLevel = Spring.SetTeamShareLevel - - -function gadget:GameFrame() - if (not (metalForce or energyForce)) then - return - end - for _,team in ipairs(GetTeamList()) do - if (metalForce) then SetTeamShareLevel(team, 'm', metalLevel) end - if (energyForce) then SetTeamShareLevel(team, 'e', energyLevel) end - end - return false -end - - -function gadget:AllowResourceLevel(teamID, type, level) - if (type == 'm') then - return not metalForce - elseif (type == 'e') then - return not energyForce - end - return true -end - - --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- \ No newline at end of file diff --git a/LuaRules/Gadgets/unit_decloak_damaged.lua b/LuaRules/Gadgets/unit_decloak_damaged.lua index 2bdf7b48f..b6beb91f8 100644 --- a/LuaRules/Gadgets/unit_decloak_damaged.lua +++ b/LuaRules/Gadgets/unit_decloak_damaged.lua @@ -59,7 +59,7 @@ for i = 1, #WeaponDefs do end end -local DEFAULT_DECLOAK_TIME = 100 +local DEFAULT_DECLOAK_TIME = 60 local UPDATE_FREQUENCY = 10 local CLOAK_MOVE_THRESHOLD = math.sqrt(0.2) diff --git a/LuaRules/Gadgets/unit_supply_requirement.lua b/LuaRules/Gadgets/unit_supply_requirement.lua index 25cd14424..7d201c50b 100644 --- a/LuaRules/Gadgets/unit_supply_requirement.lua +++ b/LuaRules/Gadgets/unit_supply_requirement.lua @@ -37,7 +37,7 @@ local PRIVATE = {private = true} -------------------------------------------------------------------------------- -- Configuration -local SUPPLY_CAP = tonumber(Spring.GetModOptions().supplycap) or 400 +local SUPPLY_CAP = tonumber(Spring.GetModOptions().supplycap) or 1000000 -- !!!SREMEMBER TO CHANGE THIS SETTING IN gui_resourceBar.lua !!! local INTRINSIC_SUPPLY = tonumber(Spring.GetModOptions().intrinsicsupply) or 10 -------------------------------------------------------------------------------- diff --git a/LuaRules/Gadgets/weapon_ignore_gibs.lua b/LuaRules/Gadgets/weapon_ignore_gibs.lua new file mode 100644 index 000000000..90f5664c5 --- /dev/null +++ b/LuaRules/Gadgets/weapon_ignore_gibs.lua @@ -0,0 +1,23 @@ +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- +if not gadgetHandler:IsSyncedCode() then + return +end +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- +function gadget:GetInfo() + return { + name = "Ignore Gibs", + desc = "Makes shrapnel not call ProjectileCreated and ProjectileDestroyed", + author = "GoogleFrog", + date = "3 March 2019", + license = "Public domain", + layer = 0, + enabled = true + } +end + +function gadget:Initialize() + Script.SetWatchWeapon(-1, false) + gadgetHandler:RemoveGadget() +end diff --git a/LuaRules/Gadgets/weapon_noexplode_stopper.lua b/LuaRules/Gadgets/weapon_noexplode_stopper.lua new file mode 100644 index 000000000..2815cfc6a --- /dev/null +++ b/LuaRules/Gadgets/weapon_noexplode_stopper.lua @@ -0,0 +1,83 @@ +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- +if not gadgetHandler:IsSyncedCode() then + return +end +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- +function gadget:GetInfo() + return { + name = "Noexplode Stopper", + desc = "Implements noexplodes that do not penetrate shields.", + author = "GoogleFrog", + date = "4 Feb 2012", + license = "None", + layer = 50, + enabled = true + } +end + +local passedProjectile = {} +local shieldDamages = {} +local noExplode = {} +for i = 1, #WeaponDefs do + shieldDamages[i] = tonumber(WeaponDefs[i].customParams.shield_damage) + if WeaponDefs[i].noExplode then + noExplode[i] = true + end +end + +function gadget:ShieldPreDamaged(proID, proOwnerID, shieldEmitterWeaponNum, shieldCarrierUnitID, bounceProjectile) + + --[[ + -- Code that causes projectile bounce + if Spring.ValidUnitID(shieldCarrierUnitID) then + + local px, py, pz = Spring.GetProjectilePosition(proID) + local vx, vy, vz = Spring.GetProjectileVelocity(proID) + local sx, sy, sz = Spring.GetUnitPosition(shieldCarrierUnitID) + + local rx, ry, rz = px-sx, py-sy, pz-sz + + local f = 2 * (rx*vx + ry*vy + rz*vz) / (rx^2 + ry^2 + rz^2) + + local nx, ny, nz = vx - f*rx, vy - f*ry, vz - f*rz + Spring.SetProjectileVelocity(proID, nx, ny, nz) + + return true + end + + return false + --]] + + local weaponDefID = Spring.GetProjectileDefID(proID) + if passedProjectile[proID] then + return true + --elseif select(2, Spring.GetProjectilePosition(proID)) < 0 then + -- passedProjectile[proID] = true + -- return true + elseif weaponDefID and shieldCarrierUnitID and shieldEmitterWeaponNum and noExplode[weaponDefID] then + local _, charge = Spring.GetUnitShieldState(shieldCarrierUnitID) --FIXME figure out a way to get correct shield + if charge and shieldDamages[weaponDefID] < charge then + Spring.DeleteProjectile(proID) + else + passedProjectile[proID] = true + end + end + + return false + +end + +function gadget:ProjectileDestroyed(proID) + if passedProjectile[proID] then + passedProjectile[proID] = false + end +end + + +function gadget:Initialize() + for id, _ in pairs(noExplode) do + Script.SetWatchProjectile(id, true) + end +end diff --git a/LuaRules/Gadgets/weapon_single_hit.lua b/LuaRules/Gadgets/weapon_single_hit.lua index d073b2929..bcc6152c6 100644 --- a/LuaRules/Gadgets/weapon_single_hit.lua +++ b/LuaRules/Gadgets/weapon_single_hit.lua @@ -8,7 +8,7 @@ end function gadget:GetInfo() return { name = "Single-Hit Weapon", - desc = "Forces marked weapons to only inflict damage once per projectile per unit", + desc = "Forces marked weapons to only inflict damage once per projectile per unit. For use with noexplode weapons.", author = "Anarchid", date = "25.03.2013", license = "Public domain", diff --git a/LuaRules/gadgets.lua b/LuaRules/gadgets.lua index c2c6393c9..b77dd30fb 100644 --- a/LuaRules/gadgets.lua +++ b/LuaRules/gadgets.lua @@ -39,6 +39,22 @@ VFS.Include(SCRIPT_DIR .. 'utilities.lua', nil, VFSMODE) local actionHandler = VFS.Include(HANDLER_DIR .. 'actions.lua', nil, VFSMODE) +local modOptions = Spring.GetModOptions() +if not modOptions.startmetal then -- load via file + local raw = VFS.Include("modoptions.lua", nil, VFS.ZIP) + for i, v in ipairs(raw) do + if v.type ~= "section" then + modOptions[v.key] = v.def + end + end + raw = VFS.Include("engineoptions.lua", nil, VFS.ZIP) + for i, v in ipairs(raw) do + if v.type ~= "section" then + modOptions[v.key:lower()] = v.def + end + end +end + -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- diff --git a/LuaUI/Configs/evo_buildHotkeysConfig.lua b/LuaUI/Configs/evo_buildHotkeysConfig.lua index dbe1aeb84..64a5c4a2c 100644 --- a/LuaUI/Configs/evo_buildHotkeysConfig.lua +++ b/LuaUI/Configs/evo_buildHotkeysConfig.lua @@ -31,6 +31,8 @@ nameToKeyCode = { ebasefactory = {f, h}, eamphibfac = {f, a}, eairplant = {f, p}, + f1landfac = {f, l}, + f2landfac = {f, l}, etech1 = {b, t}, emetalextractor = {e, m}, @@ -52,6 +54,8 @@ nameToKeyCode = { escoutdrone = {b, d}, ebox = {b, x}, ehbotengineer = {b, e}, + fedengineer = {b, e}, + lozengineer = {b, e}, eorb = {b, o}, ecommander = {v, o}, diff --git a/LuaUI/Configs/lupsunitfxs.lua b/LuaUI/Configs/lupsunitfxs.lua index 2477031d8..4a0845921 100644 --- a/LuaUI/Configs/lupsunitfxs.lua +++ b/LuaUI/Configs/lupsunitfxs.lua @@ -1,7 +1,7 @@ effectUnitDefs = { ------------------ ------------------ - edrone = { + escoutdrone = { {class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="fengine1", onActive=true}}, {class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="fengine2", onActive=true}}, {class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="rengine1", onActive=true}}, @@ -602,7 +602,7 @@ effectUnitDefs = { eallterrshield = { --{class='ShieldSphere',options=ShieldSphere300}, - {class='Bursts',options=shieldBursts300}, +-- {class='Bursts',options=shieldBursts200}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, @@ -614,7 +614,7 @@ effectUnitDefs = { eallterrshield_up1 = { --{class='ShieldSphere',options=ShieldSphere300}, - {class='Bursts',options=shieldBursts300}, + --{class='Bursts',options=shieldBursts300}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, @@ -627,7 +627,7 @@ effectUnitDefs = { eallterrshield_up2 = { --{class='ShieldSphere',options=ShieldSphere300}, - {class='Bursts',options=shieldBursts300}, +-- {class='Bursts',options=shieldBursts200}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, @@ -640,7 +640,7 @@ effectUnitDefs = { eallterrshield_up3 = { --{class='ShieldSphere',options=ShieldSphere300}, - {class='Bursts',options=shieldBursts300}, +-- {class='Bursts',options=shieldBursts200}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, @@ -655,7 +655,7 @@ effectUnitDefs = { ekmar = { --{class='ShieldSphere',options=ShieldSphere400}, - {class='Bursts',options=shieldBursts1000}, +-- {class='Bursts',options=shieldBursts200}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, @@ -667,7 +667,7 @@ effectUnitDefs = { ecommandershield = { --{class='ShieldSphere',options=ShieldSphere400}, - {class='Bursts',options=shieldBursts400}, +-- {class='Bursts',options=shieldBursts200}, -- {class='StaticParticles', options=corfusNova}, -- {class='StaticParticles', options=corfusNova2}, -- {class='StaticParticles', options=corfusNova3}, diff --git a/LuaUI/Images/lozcommander.png b/LuaUI/Images/lozcommander.png new file mode 100644 index 000000000..2df811a34 Binary files /dev/null and b/LuaUI/Images/lozcommander.png differ diff --git a/LuaUI/Widgets_Evo/Shaders/outlineDilate.frag.glsl b/LuaUI/Widgets_Evo/Shaders/outlineDilate.frag.glsl new file mode 100644 index 000000000..aba6ea03c --- /dev/null +++ b/LuaUI/Widgets_Evo/Shaders/outlineDilate.frag.glsl @@ -0,0 +1,86 @@ +#version 150 compatibility + +uniform sampler2D depthTex; +uniform sampler2D colorTex; + +uniform mat4 projMatrix; + +#define DILATE_SINGLE_PASS ###DILATE_SINGLE_PASS### + +uniform int dilateHalfKernelSize = 1; + +uniform vec2 viewPortSize; +uniform float strength = 1.0; +//layout(pixel_center_integer) in vec4 gl_FragCoord; +//layout(origin_upper_left) in vec4 gl_FragCoord; + + +#if (DILATE_SINGLE_PASS == 1) + void main(void) + { + ivec4 vpsMinMax = ivec4(0, 0, ivec2(viewPortSize)); + + float minDepth = 1.0; + vec4 maxColor = vec4(0.0); + + ivec2 thisCoord = ivec2(gl_FragCoord.xy); + + vec2 bnd = vec2(dilateHalfKernelSize - 1, dilateHalfKernelSize + 2) * strength; + + for (int x = -dilateHalfKernelSize; x <= dilateHalfKernelSize; ++x) { + for (int y = -dilateHalfKernelSize; y <= dilateHalfKernelSize; ++y) { + + ivec2 offset = ivec2(x, y); + /* + ivec2 samplingCoord = thisCoord + offset; + bool okCoords = ( all(bvec4( + greaterThanEqual(samplingCoord, vpsMinMax.xy), + lessThanEqual(samplingCoord, vpsMinMax.zw) )) + ); + + if (okCoords)*/ { + minDepth = min(minDepth, texelFetchOffset( depthTex, thisCoord, 0, offset).r); + vec4 thisColor = texelFetchOffset( colorTex, thisCoord, 0, offset); + thisColor.a *= smoothstep(bnd.y, bnd.x, sqrt(float(x * x + y * y))); + maxColor = max(maxColor, thisColor); + } + } + } + gl_FragDepth = minDepth; + gl_FragColor = maxColor; + } +#else //separable vert/horiz passes + uniform vec2 dir; + void main(void) + { + ivec4 vpsMinMax = ivec4(0, 0, ivec2(viewPortSize)); + + float minDepth = 1.0; + vec4 maxColor = vec4(0.0); + + ivec2 thisCoord = ivec2(gl_FragCoord.xy); + + vec2 bnd = vec2(dilateHalfKernelSize - 1, dilateHalfKernelSize + 2) * strength; + + for (int i = -dilateHalfKernelSize; i <= dilateHalfKernelSize; ++i) { + + ivec2 offset = ivec2(i) * ivec2(dir); + /* + ivec2 samplingCoord = thisCoord + offset; + bool okCoords = ( all(bvec4( + greaterThanEqual(samplingCoord, vpsMinMax.xy), + lessThanEqual(samplingCoord, vpsMinMax.zw) )) + ); + + if (okCoords)*/ { + minDepth = min(minDepth, texelFetchOffset( depthTex, thisCoord, 0, offset).r); + vec4 thisColor = texelFetchOffset( colorTex, thisCoord, 0, offset); + thisColor.a *= smoothstep(bnd.y, bnd.x, abs(i)); + maxColor = max(maxColor, thisColor); + } + } + + gl_FragDepth = minDepth; + gl_FragColor = maxColor; + } +#endif \ No newline at end of file diff --git a/LuaUI/Widgets_Evo/api_chili.lua b/LuaUI/Widgets_Evo/api_chili.lua index 2683f3806..421b07350 100644 --- a/LuaUI/Widgets_Evo/api_chili.lua +++ b/LuaUI/Widgets_Evo/api_chili.lua @@ -73,6 +73,41 @@ end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- +local pressed = {} + +function widget:MousePress(mx, my, mButton) + if pressed[mButton] then --engine bug?(mouserelease is not called when another mouse button is pressed before releasing) + --this is also fixed in Update() + widget:MouseRelease(mx, my, mButton) +end + +pressed[mButton] = true + +return true +end + +function widget:MouseRelease(mx, my, mButton) + if not pressed[mButton] then return false end + + pressed[mButton] = false + return true +end + +function widget:Update() + local mx, my, lmb, mmb, rmb = Spring.GetMouseState()--engine BUG FIX --should work fine even after engine/wh bug is fixed + if pressed[1] and not lmb then + widget:MouseRelease(mx, my, 1) + end + if pressed[2] and not mmb then + widget:MouseRelease(mx, my, 2) + end + if pressed[3] and not rmb then + widget:MouseRelease(mx, my, 3) + end +end + + + function widget:RecvLuaMsg(msg, playerID) if msg:sub(1,18) == 'LobbyOverlayActive' then chobbyInterface = (msg:sub(1,19) == 'LobbyOverlayActive1') diff --git a/LuaUI/Widgets_Evo/camera_shake.lua b/LuaUI/Widgets_Evo/camera_shake.lua index 44e308e9e..52ce40b08 100644 --- a/LuaUI/Widgets_Evo/camera_shake.lua +++ b/LuaUI/Widgets_Evo/camera_shake.lua @@ -70,6 +70,10 @@ function widget:ShockFront(power, dx, dy, dz) power = 10 end shake = shake + power + if shake > 0.05 then + shake = 0.05 + end + --Spring.Echo ("Shake Power is " .. shake) end diff --git a/LuaUI/Widgets_Evo/cmd_mex_placement.lua b/LuaUI/Widgets_Evo/cmd_mex_placement.lua index 4ca7ac93b..c598c68e8 100644 --- a/LuaUI/Widgets_Evo/cmd_mex_placement.lua +++ b/LuaUI/Widgets_Evo/cmd_mex_placement.lua @@ -3,7 +3,7 @@ function widget:GetInfo() return { name = "Mex Placement Handler", desc = "Places mexes in the correct position DO NOT DISABLE", - author = "Google Frog with some from Niobium and Evil4Zerggin.", + author = "Google Frog, Niobium, Evil4Zerggin. Animated spritesheet support by Ivand, art by MaDDoX.", version = "v1", date = "22 April, 2012", --2 April 2013 license = "GNU GPL, v2 or later", @@ -14,6 +14,7 @@ function widget:GetInfo() end VFS.Include("LuaRules/Configs/customcmds.h.lua") +VFS.Include("LuaRules/Utilities/glVolumes.lua") local fontfile = "JosefinSans-SemiBold.ttf" @@ -35,16 +36,17 @@ local spGetUnitHealth = Spring.GetUnitHealth local spGetSelectedUnits = Spring.GetSelectedUnits local spInsertUnitCmdDesc = Spring.InsertUnitCmdDesc local spGiveOrderToUnit = Spring.GiveOrderToUnit -local spGetUnitPosition = Spring.GetUnitPosition +local spGetUnitPosition = Spring.GetUnitPosition local spGetTeamUnits = Spring.GetTeamUnits local spGetMyTeamID = Spring.GetMyTeamID local spTestBuildOrder = Spring.TestBuildOrder local spGetUnitsInRectangle = Spring.GetUnitsInRectangle -local spGiveOrder = Spring.GiveOrder +local spGiveOrder = Spring.GiveOrder local spGetGroundInfo = Spring.GetGroundInfo local spGetGroundHeight = Spring.GetGroundHeight local spGetMapDrawMode = Spring.GetMapDrawMode local spGetGameFrame = Spring.GetGameFrame +local spGetFrameTimeOffset = Spring.GetFrameTimeOffset local spGetSpectatingState = Spring.GetSpectatingState local spGetAllUnits = Spring.GetAllUnits local spGetPositionLosState = Spring.GetPositionLosState @@ -56,6 +58,7 @@ local glText = gl.Text local glGetTextWidth = gl.GetTextWidth local glPolygonMode = gl.PolygonMode local glDrawGroundCircle = gl.DrawGroundCircle +local glDrawGroundRect = gl.Utilities.DrawGroundRectangle local glDrawCircle local glUnitShape = gl.UnitShape local glDepthTest = gl.DepthTest @@ -82,7 +85,7 @@ local GL_GREATER = GL.GREATER local floor = math.floor local min, max = math.min, math.max local strFind = string.find -local strFormat = string.format +local strFormat = string.format local CMD_OPT_SHIFT = CMD.OPT_SHIFT @@ -113,12 +116,87 @@ local allyTeams = {} -- [id] = {team1, team2, ...} local previousOsClock = os.clock() local currentRotationAngle = 0 local currentRotationAngleOpposite = 0 +local drawIncome = false -- Should we draw the income estimation? + +local minimapIconSizeMult = 0.0145 --0.0145 + +-- only used when animating a spreadsheet/atlas texture +local spotTexture = "bitmaps/default/metalshimmer_color9.dds" +local animRate = 1000 -- That's actually the reverse of animrate, the lower it is the faster the animation goes +local texturewidth = 40 --160 (actual in-game rect width) +local textureYoffset = 2 --10 (offset from the ground) +local numberOfImagesX = 16 +local numberOfImagesY = 16 + +-------------------- + +local animShader = nil +local animProgressLoc = -1 + +local animShaderVS = [[ + #version 150 compatibility + #line 100126 + + uniform ivec2 numImages; + uniform float animProgress; //0 to 1 + + out vec4 samplingBias; + out vec2 uv; + out float blendFactor; + + void main() { + float ap = fract(animProgress); //sanitize inputs + int maxImgIdx = numImages.x * numImages.y - 1; + ap *= float(maxImgIdx); + + int i0 = int(floor(ap)); + int i1 = i0 + 1; + blendFactor = fract(ap); + + samplingBias = vec4( + float(i0 / numImages.x), + float(i0 % numImages.x), + float(i1 / numImages.x), + float(i1 % numImages.x) + ); + + samplingBias /= vec4(numImages.xyxy); + uv = gl_MultiTexCoord0.xy / vec2(numImages.xy); + + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + } +]] + +local animShaderFS = [[ + #version 150 compatibility + #line 200161 + + uniform sampler2D colorAtlas; + uniform sampler2D normAtlas; + + in vec4 samplingBias; + in vec2 uv; + in float blendFactor; + + void main() { + vec4 c0 = texture(colorAtlas, samplingBias.xy + uv); + vec4 c1 = texture(colorAtlas, samplingBias.zw + uv); + + // unused yet + //vec4 n0 = texture(colorAtlas, samplingBias.xy + uv); + //vec4 n1 = texture(colorAtlas, samplingBias.zw + uv); + + gl_FragColor = mix(c0, c1, blendFactor); + } +]] + +-------------------- ------------------------------------------------------------ -- Config ------------------------------------------------------------ -local MINIMAP_DRAW_SIZE = math.max(mapX,mapZ) * 0.0145 +local MINIMAP_DRAW_SIZE = math.max(mapX,mapZ) * minimapIconSizeMult options_path = 'Settings/Interface/Map/Metal Spots' options_order = { 'drawicons', 'size', 'specPlayerColours', 'rounding'} @@ -126,16 +204,16 @@ options_order = { 'drawicons', 'size', 'specPlayerColours', 'rounding'} VFS.Include("LuaUI/Configs/LuaMex/options.lua") local circleOptions = { - enabled = true, - animating = true, -- its only rotation, but will cost more performance - alwaysshow = true, - innersize = 40, -- outersize-innersize = circle width - outersize = 43, -- outersize-innersize = circle width - circlePieces = 3, - circlePieceDetail = 5, - circleSpaceUsage = 0.45, - circleInnerOffset = 0.42, - rotationSpeed = 5, + enabled = true, + animating = true, -- its only rotation, but will cost more performance + alwaysshow = true, + innersize = 40, -- outersize-innersize = circle width + outersize = 43, -- outersize-innersize = circle width + circlePieces = 3, + circlePieceDetail = 5, + circleSpaceUsage = 0.45, + circleInnerOffset = 0.42, + rotationSpeed = 5, } ------------------------------------------------------------------------------------- @@ -144,18 +222,18 @@ local circleOptions = { local mexDefID = {} for udid, ud in pairs(UnitDefs) do - if ud.customParams.metal_extractor then - mexDefID[udid] = tonumber (ud.customParams.metal_extractor) - end + if ud.customParams.metal_extractor then + mexDefID[udid] = tonumber (ud.customParams.metal_extractor) + end end local mexBuilder = {} local mexBuilderDefs = {} -for udid, ud in ipairs(UnitDefs) do - if ud.customParams.area_mex_def then - mexBuilderDefs[udid] = UnitDefNames[ud.customParams.area_mex_def].id - end +for udid, ud in ipairs(UnitDefs) do + if ud.customParams.area_mex_def then + mexBuilderDefs[udid] = UnitDefNames[ud.customParams.area_mex_def].id + end end -------------------------------------------------------------------------------- @@ -174,362 +252,386 @@ local metalSpotsNil = true -- Functions ------------------------------------------------------------ local function GetNearestMex (x, z) - local units = Spring.GetUnitsInRectangle(x-1, z-1, x+1, z+1) - local myAlly = spGetMyAllyTeamID() - for i = 1, #units do - local unitID = units[i] - local unitDefID = Spring.GetUnitDefID(unitID) - if unitDefID and mexDefID[unitDefID] and spGetUnitAllyTeam(unitID) == myAlly then - return unitID - end - end + local units = Spring.GetUnitsInRectangle(x-1, z-1, x+1, z+1) + local myAlly = spGetMyAllyTeamID() + for i = 1, #units do + local unitID = units[i] + local unitDefID = Spring.GetUnitDefID(unitID) + if unitDefID and mexDefID[unitDefID] and spGetUnitAllyTeam(unitID) == myAlly then + return unitID + end + end end local function GetClosestMetalSpot(x, z) --is used by single mex placement, not used by areamex - local bestSpot - local bestDist = math.huge - local bestIndex - for i = 1, #WG.metalSpots do - local spot = WG.metalSpots[i] - local dx, dz = x - spot.x, z - spot.z - local dist = dx*dx + dz*dz - if dist < bestDist then - bestSpot = spot - bestDist = dist - bestIndex = i - end - end - return bestSpot, sqrt(bestDist), bestIndex + local bestSpot + local bestDist = math.huge + local bestIndex + for i = 1, #WG.metalSpots do + local spot = WG.metalSpots[i] + local dx, dz = x - spot.x, z - spot.z + local dist = dx*dx + dz*dz + if dist < bestDist then + bestSpot = spot + bestDist = dist + bestIndex = i + end + end + return bestSpot, sqrt(bestDist), bestIndex end local function Distance(x1,z1,x2,z2) - local dis = (x1-x2)*(x1-x2)+(z1-z2)*(z1-z2) - return dis + local dis = (x1-x2)*(x1-x2)+(z1-z2)*(z1-z2) + return dis end local function IntegrateMetal(x, z, forceUpdate) - local newCenterX, newCenterZ - - newCenterX = (floor( x / METAL_MAP_SQUARE_SIZE) + 0.5) * METAL_MAP_SQUARE_SIZE - newCenterZ = (floor( z / METAL_MAP_SQUARE_SIZE) + 0.5) * METAL_MAP_SQUARE_SIZE - - if (centerX == newCenterX and centerZ == newCenterZ and not forceUpdate) then - return - end - - centerX = newCenterX - centerZ = newCenterZ - - local startX = floor((centerX - MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) - local startZ = floor((centerZ - MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) - local endX = floor((centerX + MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) - local endZ = floor((centerZ + MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) - startX, startZ = max(startX, 0), max(startZ, 0) - endX, endZ = min(endX, MAP_SIZE_X_SCALED - 1), min(endZ, MAP_SIZE_Z_SCALED - 1) - - local mult = Spring.GetGameRulesParam("base_extraction") - local result = 0 - - for i = startX, endX do - for j = startZ, endZ do - local cx, cz = (i + 0.5) * METAL_MAP_SQUARE_SIZE, (j + 0.5) * METAL_MAP_SQUARE_SIZE - local dx, dz = cx - centerX, cz - centerZ - local dist = sqrt(dx * dx + dz * dz) - - if (dist < MEX_RADIUS) then - local _, metal, metal2 = spGetGroundInfo(cx, cz) - if type(metal) == 'string' then -- Spring > v104 - metal = metal2 - end - result = result + metal - end - end - end - - extraction = result * mult + local newCenterX, newCenterZ + + newCenterX = (floor( x / METAL_MAP_SQUARE_SIZE) + 0.5) * METAL_MAP_SQUARE_SIZE + newCenterZ = (floor( z / METAL_MAP_SQUARE_SIZE) + 0.5) * METAL_MAP_SQUARE_SIZE + + if (centerX == newCenterX and centerZ == newCenterZ and not forceUpdate) then + return + end + + centerX = newCenterX + centerZ = newCenterZ + + local startX = floor((centerX - MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) + local startZ = floor((centerZ - MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) + local endX = floor((centerX + MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) + local endZ = floor((centerZ + MEX_RADIUS) / METAL_MAP_SQUARE_SIZE) + startX, startZ = max(startX, 0), max(startZ, 0) + endX, endZ = min(endX, MAP_SIZE_X_SCALED - 1), min(endZ, MAP_SIZE_Z_SCALED - 1) + + local mult = Spring.GetGameRulesParam("base_extraction") + local result = 0 + + for i = startX, endX do + for j = startZ, endZ do + local cx, cz = (i + 0.5) * METAL_MAP_SQUARE_SIZE, (j + 0.5) * METAL_MAP_SQUARE_SIZE + local dx, dz = cx - centerX, cz - centerZ + local dist = sqrt(dx * dx + dz * dz) + + if (dist < MEX_RADIUS) then + local _, metal, metal2 = spGetGroundInfo(cx, cz) + if type(metal) == 'string' then -- Spring > v104 + metal = metal2 + end + result = result + metal + end + end + end + + extraction = result * mult end local function DrawCircleLine(innersize, outersize) - gl.BeginEnd(GL.QUADS, function() - local detailPartWidth, a1,a2,a3,a4 - local width = circleOptions.circleSpaceUsage - local detail = circleOptions.circlePieceDetail - - local radstep = (2.0 * math.pi) / circleOptions.circlePieces - for i = 1, circleOptions.circlePieces do - for d = 1, detail do - - detailPartWidth = ((width / detail) * d) - a1 = ((i+detailPartWidth - (width / detail)) * radstep) - a2 = ((i+detailPartWidth) * radstep) - a3 = ((i+circleOptions.circleInnerOffset+detailPartWidth - (width / detail)) * radstep) - a4 = ((i+circleOptions.circleInnerOffset+detailPartWidth) * radstep) - - --outer (fadein) - gl.Vertex(math.sin(a4)*innersize, 0, math.cos(a4)*innersize) - gl.Vertex(math.sin(a3)*innersize, 0, math.cos(a3)*innersize) - --outer (fadeout) - gl.Vertex(math.sin(a1)*outersize, 0, math.cos(a1)*outersize) - gl.Vertex(math.sin(a2)*outersize, 0, math.cos(a2)*outersize) - end - end - end) + gl.BeginEnd(GL.QUADS, function() + local detailPartWidth, a1,a2,a3,a4 + local width = circleOptions.circleSpaceUsage + local detail = circleOptions.circlePieceDetail + + local radstep = (2.0 * math.pi) / circleOptions.circlePieces + for i = 1, circleOptions.circlePieces do + for d = 1, detail do + + detailPartWidth = ((width / detail) * d) + a1 = ((i+detailPartWidth - (width / detail)) * radstep) + a2 = ((i+detailPartWidth) * radstep) + a3 = ((i+circleOptions.circleInnerOffset+detailPartWidth - (width / detail)) * radstep) + a4 = ((i+circleOptions.circleInnerOffset+detailPartWidth) * radstep) + + --outer (fadein) + gl.Vertex(math.sin(a4)*innersize, 0, math.cos(a4)*innersize) + gl.Vertex(math.sin(a3)*innersize, 0, math.cos(a3)*innersize) + --outer (fadeout) + gl.Vertex(math.sin(a1)*outersize, 0, math.cos(a1)*outersize) + gl.Vertex(math.sin(a2)*outersize, 0, math.cos(a2)*outersize) + end + end + end) end ------------------------------------------------------------ -- Command Handling ------------------------------------------------------------ -function widget:CommandNotify(cmdID, params, options) - if (cmdID == CMD_AREA_MEX and WG.metalSpots) then - - local cx, cy, cz, cr = params[1], params[2], params[3], math.max((params[4] or 60),60) - - local xmin = cx-cr - local xmax = cx+cr - local zmin = cz-cr - local zmax = cz+cr - - local commands = {} - local orderedCommands = {} - local dis = {} - - local ux = 0 - local uz = 0 - local us = 0 - - local aveX = 0 - local aveZ = 0 - - local units = spGetSelectedUnits() - - for i = 1, #units do - local unitID = units[i] - if mexBuilder[unitID] then - local x,_,z = spGetUnitPosition(unitID) - ux = ux+x - uz = uz+z - us = us+1 - end - end - - if (us == 0) then - return - else - aveX = ux/us - aveZ = uz/us - end - - for i = 1, #WG.metalSpots do - local mex = WG.metalSpots[i] - --if (mex.x > xmin) and (mex.x < xmax) and (mex.z > zmin) and (mex.z < zmax) then -- square area, should be faster - if (Distance(cx,cz,mex.x,mex.z) < cr*cr) then -- circle area, slower - commands[#commands+1] = {x = mex.x, z = mex.z, d = Distance(aveX,aveZ,mex.x,mex.z)} - end - end - - local noCommands = #commands - while noCommands > 0 do - - tasort(commands, function(a,b) return a.d < b.d end) - orderedCommands[#orderedCommands+1] = commands[1] - aveX = commands[1].x - aveZ = commands[1].z - taremove(commands, 1) - for k, com in pairs(commands) do - com.d = Distance(aveX,aveZ,com.x,com.z) - end - noCommands = noCommands-1 - end - - local shift = options.shift - - local buildersByType = {} - for i = 1, #units do - local unitID = units[i] - local mexType = mexBuilder[unitID] - if mexType then - buildersByType[mexType] = buildersByType[mexType] or {} - local array = buildersByType[mexType] - array[#array + 1] = unitID - end - end - for mexType, unitArrayToReceive in pairs (buildersByType) do - local commandArrayToIssue={} - - --prepare command list - if not shift then - commandArrayToIssue[1] = {CMD.STOP, {} , {}} - end - for i, command in ipairs(orderedCommands) do - local x = command.x - local z = command.z - local y = Spring.GetGroundHeight(x, z) - - local unit = GetNearestMex (x, z) - if unit then - if Spring.GetUnitDefID(unit) ~= mexType then - commandArrayToIssue[#commandArrayToIssue+1] = {CMD.RECLAIM, {unit}, {"shift"}} - commandArrayToIssue[#commandArrayToIssue+1] = {CMD.INSERT, {-1, -mexType, CMD.OPT_INTERNAL, x,y,z,0}, {"alt"}} - elseif select (5, Spring.GetUnitHealth (unit)) < 1 then - commandArrayToIssue[#commandArrayToIssue+1] = {CMD.REPAIR, {unit}, {"shift"}} - end - else - commandArrayToIssue[#commandArrayToIssue+1] = {-mexType, {x,y,z,0} , {"shift"}} - end - end - - if (#commandArrayToIssue > 0) then - Spring.GiveOrderArrayToUnitArray(unitArrayToReceive,commandArrayToIssue) - end - end - return true - end - - if mexDefID[-cmdID] and WG.metalSpots then - local bx, bz = params[1], params[3] - local closestSpot = GetClosestMetalSpot(bx, bz) - if closestSpot then - local commandHeight = math.max(0, Spring.GetGroundHeight(closestSpot.x, closestSpot.z)) - local foundUnit = GetNearestMex (closestSpot.x, closestSpot.z) - if foundUnit then - - if Spring.GetUnitDefID(foundUnit) ~= mexType then - spGiveOrder(CMD.RECLAIM, {foundUnit}, CMD.OPT_INTERNAL) - spGiveOrder(CMD.INSERT, {-1, cmdID, options.coded, closestSpot.x, commandHeight, closestSpot.z, params[4]} , {"alt"}) - elseif select (5, Spring.GetUnitHealth (foundUnit)) < 1 then - spGiveOrder(CMD.REPAIR, {foundUnit}, options.coded) - end - else - spGiveOrder(cmdID, {closestSpot.x, commandHeight, closestSpot.z, params[4]}, options.coded) - end - end - return true - end +function widget:CommandNotify(cmdID, params, options) + if (cmdID == CMD_AREA_MEX and WG.metalSpots) then + + local cx, cy, cz, cr = params[1], params[2], params[3], math.max((params[4] or 60),60) + + local xmin = cx-cr + local xmax = cx+cr + local zmin = cz-cr + local zmax = cz+cr + + local commands = {} + local orderedCommands = {} + local dis = {} + + local ux = 0 + local uz = 0 + local us = 0 + + local aveX = 0 + local aveZ = 0 + + local units = spGetSelectedUnits() + + for i = 1, #units do + local unitID = units[i] + if mexBuilder[unitID] then + local x,_,z = spGetUnitPosition(unitID) + ux = ux+x + uz = uz+z + us = us+1 + end + end + + if (us == 0) then + return + else + aveX = ux/us + aveZ = uz/us + end + + for i = 1, #WG.metalSpots do + local mex = WG.metalSpots[i] + --if (mex.x > xmin) and (mex.x < xmax) and (mex.z > zmin) and (mex.z < zmax) then -- square area, should be faster + if (Distance(cx,cz,mex.x,mex.z) < cr*cr) then -- circle area, slower + commands[#commands+1] = {x = mex.x, z = mex.z, d = Distance(aveX,aveZ,mex.x,mex.z)} + end + end + + local noCommands = #commands + while noCommands > 0 do + + tasort(commands, function(a,b) return a.d < b.d end) + orderedCommands[#orderedCommands+1] = commands[1] + aveX = commands[1].x + aveZ = commands[1].z + taremove(commands, 1) + for _, com in pairs(commands) do + com.d = Distance(aveX,aveZ,com.x,com.z) + end + noCommands = noCommands-1 + end + + local shift = options.shift + + local buildersByType = {} + for i = 1, #units do + local unitID = units[i] + local mexType = mexBuilder[unitID] + if mexType then + buildersByType[mexType] = buildersByType[mexType] or {} + local array = buildersByType[mexType] + array[#array + 1] = unitID + end + end + for mexType, unitArrayToReceive in pairs (buildersByType) do + local commandArrayToIssue={} + + --prepare command list + if not shift then + commandArrayToIssue[1] = {CMD.STOP, {} , {}} + end + for i, command in ipairs(orderedCommands) do + local x = command.x + local z = command.z + local y = Spring.GetGroundHeight(x, z) + + local unit = GetNearestMex (x, z) + if unit then + if Spring.GetUnitDefID(unit) ~= mexType then + commandArrayToIssue[#commandArrayToIssue+1] = {CMD.RECLAIM, {unit}, {"shift"}} + commandArrayToIssue[#commandArrayToIssue+1] = {CMD.INSERT, {-1, -mexType, CMD.OPT_INTERNAL, x,y,z,0}, {"alt"}} + elseif select (5, Spring.GetUnitHealth (unit)) < 1 then + commandArrayToIssue[#commandArrayToIssue+1] = {CMD.REPAIR, {unit}, {"shift"}} + end + else + commandArrayToIssue[#commandArrayToIssue+1] = {-mexType, {x,y,z,0} , {"shift"}} + end + end + + if (#commandArrayToIssue > 0) then + Spring.GiveOrderArrayToUnitArray(unitArrayToReceive,commandArrayToIssue) + end + end + return true + end + + if mexDefID[-cmdID] and WG.metalSpots then + local bx, bz = params[1], params[3] + local closestSpot = GetClosestMetalSpot(bx, bz) + if closestSpot then + local commandHeight = math.max(0, Spring.GetGroundHeight(closestSpot.x, closestSpot.z)) + local foundUnit = GetNearestMex (closestSpot.x, closestSpot.z) + if foundUnit then + + if Spring.GetUnitDefID(foundUnit) ~= mexType then + spGiveOrder(CMD.RECLAIM, {foundUnit}, CMD.OPT_INTERNAL) + spGiveOrder(CMD.INSERT, {-1, cmdID, options.coded, closestSpot.x, commandHeight, closestSpot.z, params[4]} , {"alt"}) + elseif select (5, Spring.GetUnitHealth (foundUnit)) < 1 then + spGiveOrder(CMD.REPAIR, {foundUnit}, options.coded) + end + else + spGiveOrder(cmdID, {closestSpot.x, commandHeight, closestSpot.z, params[4]}, options.coded) + end + end + return true + end end function widget:UnitCreated(unitID, unitDefID) - mexBuilder[unitID] = mexBuilderDefs[unitDefID] + mexBuilder[unitID] = mexBuilderDefs[unitDefID] end function widget:UnitFinished(unitID, unitDefID, teamID) - if mexDefID[unitDefID] and WG.metalSpots then - if spGetSpectatingState() then - local x,_,z = Spring.GetUnitPosition(unitID) - local spotID = WG.metalSpotsByPos[x] and WG.metalSpotsByPos[x][z] - if spotID then - spotByID[unitID] = spotID - spotData[spotID] = {unitID = unitID, team = Spring.GetUnitTeam(unitID), allyTeam = spGetUnitAllyTeam(unitID)} - updateMexDrawList() - end - elseif spGetUnitAllyTeam(unitID) == myAllyTeam then - local x,_,z = Spring.GetUnitPosition(unitID) - local spotID = WG.metalSpotsByPos[x] and WG.metalSpotsByPos[x][z] - if spotID then - spotByID[unitID] = spotID - spotData[spotID] = {unitID = unitID, team = Spring.GetUnitTeam(unitID)} - updateMexDrawList() - end - end - end + if mexDefID[unitDefID] and WG.metalSpots then + if spGetSpectatingState() then + local x,_,z = Spring.GetUnitPosition(unitID) + local spotID = WG.metalSpotsByPos[x] and WG.metalSpotsByPos[x][z] + if spotID then + spotByID[unitID] = spotID + spotData[spotID] = {unitID = unitID, team = Spring.GetUnitTeam(unitID), allyTeam = spGetUnitAllyTeam(unitID)} + updateMexDrawList() + end + elseif spGetUnitAllyTeam(unitID) == myAllyTeam then + local x,_,z = Spring.GetUnitPosition(unitID) + local spotID = WG.metalSpotsByPos[x] and WG.metalSpotsByPos[x][z] + if spotID then + spotByID[unitID] = spotID + spotData[spotID] = {unitID = unitID, team = Spring.GetUnitTeam(unitID)} + updateMexDrawList() + end + end + end end function widget:UnitDestroyed(unitID, unitDefID) - if mexDefID[unitDefID] and spotByID[unitID] then - spotData[spotByID[unitID]] = nil - spotByID[unitID] = nil - updateMexDrawList() - end - mexBuilder[unitID] = nil + if mexDefID[unitDefID] and spotByID[unitID] then + spotData[spotByID[unitID]] = nil + spotByID[unitID] = nil + updateMexDrawList() + end + mexBuilder[unitID] = nil end function widget:UnitGiven(unitID, unitDefID, newTeamID, teamID) - mexBuilder[unitID] = mexBuilderDefs[unitDefID] - if mexDefID[unitDefID] then - local done = select(5, spGetUnitHealth(unitID)) - if done == 1 then - widget:UnitFinished(unitID, unitDefID,unitDefID) - end - end + mexBuilder[unitID] = mexBuilderDefs[unitDefID] + if mexDefID[unitDefID] then + local done = select(5, spGetUnitHealth(unitID)) + if done == 1 then + widget:UnitFinished(unitID, unitDefID,unitDefID) + end + end end function widget:UnitTaken(unitID, unitDefID, oldTeamID, teamID) - widget:UnitDestroyed(unitID, unitDefID, oldTeamID) + widget:UnitDestroyed(unitID, unitDefID, oldTeamID) end -local function Initialize() - - circleList = gl.CreateList(DrawCircleLine, circleOptions.innersize, circleOptions.outersize) - currentClock = os.clock() - - local units = spGetAllUnits() - for i, unitID in ipairs(units) do - local unitDefID = spGetUnitDefID(unitID) - widget:UnitCreated(unitID, unitDefID) - if mexDefID[unitDefID] then - local done = select(5, spGetUnitHealth(unitID)) - if done == 1 then - widget:UnitFinished(unitID, unitDefID,team) - end - end - end - if WG.metalSpots then - --Spring.Echo("Mex Placement Initialised with " .. #WG.metalSpots .. " spots.") - updateMexDrawList() - else - --Spring.Echo("Mex Placement Initialised with metal map mode.") - end +local function Initialize() + animShader = gl.CreateShader({ + vertex = animShaderVS, + fragment = animShaderFS, + uniformInt = { + colorAtlas = 0, + normAtlas = 1, + numImages = {numberOfImagesX, numberOfImagesY} + }, + uniformFloat = { + animProgress = 0.0, + }, + }) + + local shLog = gl.GetShaderLog() or "" + + if not animShader then + Spring.Echo("ERROR:\n"..shLog) + return false + elseif (shLog ~= "") then + Spring.Echo("WARNING:\n"..shLog) + end + + animProgressLoc = gl.GetUniformLocation(animShader, "animProgress") + + + circleList = gl.CreateList(DrawCircleLine, circleOptions.innersize, circleOptions.outersize) + currentClock = os.clock() + + local units = spGetAllUnits() + for i, unitID in ipairs(units) do + local unitDefID = spGetUnitDefID(unitID) + widget:UnitCreated(unitID, unitDefID) + if mexDefID[unitDefID] then + local done = select(5, spGetUnitHealth(unitID)) + if done == 1 then + widget:UnitFinished(unitID, unitDefID,team) + end + end + end + if WG.metalSpots then + --Spring.Echo("Mex Placement Initialised with " .. #WG.metalSpots .. " spots.") + updateMexDrawList() + else + --Spring.Echo("Mex Placement Initialised with metal map mode.") + end end local mexSpotToDraw = false local drawMexSpots = false function widget:Update() - if WG.metalSpots and (not wasSpectating) and spGetSpectatingState() then - spotByID = {} - spotData = {} - wasSpectating = true - local units = spGetAllUnits() - for i, unitID in ipairs(units) do - local unitDefID = spGetUnitDefID(unitID) - if mexDefID[unitDefID] then - local done = select(5, spGetUnitHealth(unitID)) - if done == 1 then - widget:UnitFinished(unitID, unitDefID,team) - end - end - end - end - if metalSpotsNil and WG.metalSpots ~= nil then - Initialize() - metalSpotsNil = false - end - - WG.mouseoverMexIncome = false - - if mexSpotToDraw and WG.metalSpots then - WG.mouseoverMexIncome = mexSpotToDraw.metal - WG.mouseoverMex = mexSpotToDraw - else - local _, cmd_id = spGetActiveCommand() - if not cmd_id or not mexDefID[-cmd_id] then - return - end - local mx, my = spGetMouseState() - local _, coords = spTraceScreenRay(mx, my, true, true) - if (not coords) then - return - end - IntegrateMetal(coords[1], coords[3]) - WG.mouseoverMexIncome = extraction * mexDefID[-cmd_id] - end + if WG.metalSpots and (not wasSpectating) and spGetSpectatingState() then + spotByID = {} + spotData = {} + wasSpectating = true + local units = spGetAllUnits() + for i, unitID in ipairs(units) do + local unitDefID = spGetUnitDefID(unitID) + if mexDefID[unitDefID] then + local done = select(5, spGetUnitHealth(unitID)) + if done == 1 then + widget:UnitFinished(unitID, unitDefID,team) + end + end + end + end + if metalSpotsNil and WG.metalSpots ~= nil then + Initialize() + metalSpotsNil = false + end + + WG.mouseoverMexIncome = false + + if mexSpotToDraw and WG.metalSpots then + WG.mouseoverMexIncome = mexSpotToDraw.metal + WG.mouseoverMex = mexSpotToDraw + else + local _, cmd_id = spGetActiveCommand() + if not cmd_id or not mexDefID[-cmd_id] then + return + end + local mx, my = spGetMouseState() + local _, coords = spTraceScreenRay(mx, my, true, true) + if (not coords) then + return + end + IntegrateMetal(coords[1], coords[3]) + WG.mouseoverMexIncome = extraction * mexDefID[-cmd_id] + end end ------------------------------------------------------------ -- Drawing ------------------------------------------------------------ -local centerX +local centerX local centerZ local extraction = 0 @@ -538,169 +640,191 @@ local mainMexValueDrawList = 0 local miniMexDrawList = 0 local function getSpotColor(x,y,z,id, specatate, t) - if specatate then - if spotData[id] then - if options.specPlayerColours.value then - local r, g, b = Spring.GetTeamColor(spotData[id].team) - local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top - return {r, g, b, alpha} - else - local r, g, b = Spring.GetTeamColor(Spring.GetTeamList(spotData[id].allyTeam)[1]) - local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top - return {r, g, b, alpha} - end - else - return neutralMexColor[t] - end - else - if spotData[id] then - local r, g, b = Spring.GetTeamColor(spotData[id].team) - local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top - return {r, g, b, alpha} - else - return neutralMexColor[t] - end - end + if specatate then + if spotData[id] then + if options.specPlayerColours.value then + local r, g, b = Spring.GetTeamColor(spotData[id].team) + local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top + return {r, g, b, alpha} + else + local r, g, b = Spring.GetTeamColor(Spring.GetTeamList(spotData[id].allyTeam)[1]) + local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top + return {r, g, b, alpha} + end + else + return neutralMexColor[t] + end + else + if spotData[id] then + local r, g, b = Spring.GetTeamColor(spotData[id].team) + local alpha = t == 1 and 0.7 or 1.0 --Judging by colours set up top + return {r, g, b, alpha} + else + return neutralMexColor[t] + end + end end function calcMainMexDrawList(valuesonly) - local specatate = spGetSpectatingState() - - if WG.metalSpots then - if not valuesonly and circleOptions.enabled then - if circleOptions.animating == false then - DrawMexList() - end - end - - for i = 1, #WG.metalSpots do - local spot = WG.metalSpots[i] - local x,z,y = spot.x, spot.z, spot.y - if y < 0 then y = 0 end - local mexColor = getSpotColor(x,y+45,z,i,specatate,1) - local metal = spot.metal - - glPushMatrix() - if not valuesonly and not circleOptions.enabled then - glDepthTest(true) - glColor(0,0,0,0.7) - glLineWidth(spot.metal*2.6) - glDrawGroundCircle(x, 1, z, 40, 32) - glColor(mexColor) - glLineWidth(spot.metal*1.6) - glDrawGroundCircle(x, 1, z, 40, 32) - end - glPopMatrix() - - if valuesonly then - glPushMatrix() - - glDepthTest(false) - if options.drawicons.value then - local size = 1 - if metal > 10 then - if metal > 100 then - metal = metal*0.01 - size = 5 - else - metal = metal*0.1 - size = 2.5 - end - end - - - size = options.size.value - - glRotate(90,1,0,0) - glTranslate(0,0,-y-10) - glColor(1,1,1) - glTexture("LuaUI/Images/ibeam.png") - local width = metal*size - glTexRect(x-width/2, z+42, x+width/2, z+40+size,0,0,metal,1) - glTexture(false) - else - -- Draws the metal spot's base income "south" of the metal spot - glRotate(270,1,0,0) - glColor(1,1,1) - glTranslate(x,-z-70-options.size.value, y) - - font:Begin() - font:SetTextColor(1,1,1) - font:SetOutlineColor(0,0,0) - if options.drawcustomincomeamount.value ~= true then - font:Print(("%."..options.rounding.value.."f"):format(metal*options.multiplier.value), 0, 0, options.size.value, "con") - else - font:Print(("%."..options.rounding.value.."f"):format(options.customamount.value), 0, 0, options.size.value, "con") - end - font:End() - end - - glPopMatrix() - end - end - glLineWidth(1.0) - glColor(1,1,1,1) - end + local specatate = spGetSpectatingState() + + if WG.metalSpots then + if not valuesonly and circleOptions.enabled then + if circleOptions.animating == false then + DrawMexList() + end + end + + for i = 1, #WG.metalSpots do + local spot = WG.metalSpots[i] + local x,z,y = spot.x, spot.z, spot.y + if y < 0 then y = 0 end + local mexColor = getSpotColor(x,y+45,z,i,specatate,1) + local metal = spot.metal or 0 --nil fix by MaDDoX + + glPushMatrix() + if not valuesonly and not circleOptions.enabled then + glDepthTest(true) + glColor(0,0,0,0.7) + glLineWidth(spot.metal*2.6) + glDrawGroundCircle(x, 1, z, 40, 32) + glColor(mexColor) + glLineWidth(spot.metal*1.6) + glDrawGroundCircle(x, 1, z, 40, 32) + end + glPopMatrix() + + if valuesonly then + glPushMatrix() + + glDepthTest(false) + if options.drawicons.value then + local size = 1 + if metal > 10 then + if metal > 100 then + metal = metal*0.01 + size = 5 + else + metal = metal*0.1 + size = 2.5 + end + end + + + size = options.size.value + + glRotate(90,1,0,0) + glTranslate(0,0,-y-10) + glColor(1,1,1) + glTexture("LuaUI/Images/ibeam.png") + local width = metal*size + glTexRect(x-width/2, z+42, x+width/2, z+40+size,0,0,metal,1) + glTexture(false) + else + -- Draws the metal spot's base income "south" of the metal spot + glRotate(270,1,0,0) + glColor(1,1,1) + glTranslate(x,-z-70-options.size.value, y) + + if drawIncome then + font:Begin() + font:SetTextColor(1,1,1) + font:SetOutlineColor(0,0,0) + if options.drawcustomincomeamount.value ~= true then + font:Print(("%."..options.rounding.value.."f"):format(metal*options.multiplier.value), 0, 0, options.size.value, "con") + else + font:Print(("%."..options.rounding.value.."f"):format(options.customamount.value), 0, 0, options.size.value, "con") + end + font:End() + end + end + + glPopMatrix() + end + end + glLineWidth(1.0) + glColor(1,1,1,1) + end end --- only used when animating function DrawMexList() - local specatate = spGetSpectatingState() - - if WG.metalSpots and circleList then - for i = 1, #WG.metalSpots do - local spot = WG.metalSpots[i] - local x,z,y = spot.x, spot.z, spot.y - if y < 0 then y = 0 end - local mexColor = getSpotColor(x,y+45,z,i,specatate,1) - local metal = spot.metal - - glPushMatrix() - glTranslate(x,y,z) - glColor(0,0,0,1) - glRotate(currentRotationAngle,0,1,0) - glScale(0.9,1,0.9) - glCallList(circleList) - --mexColor[4] = 0.8 - --glColor(mexColor) - glColor(1,1,1,spot.metal * 0.5) - glScale(0.9,1,0.9) - glCallList(circleList) - glRotate(-currentRotationAngle,0,1,0) - - glRotate(currentRotationAngleOpposite,0,1,0) - glRotate(180,1,0,0) - glColor(0,0,0,1) - glScale(2.5,1,2.5) - glCallList(circleList) - --mexColor[4] = 0.8 - --glColor(mexColor) - glColor(0.53, 0.77, 0.89, 1) - glScale(0.9,0.9,0.9) - glCallList(circleList) - glTranslate(-x,-y,-z) - glRotate(-currentRotationAngleOpposite,0,1,0) - glPopMatrix() - end - end + local specatate = spGetSpectatingState() + + local gf = spGetGameFrame() + spGetFrameTimeOffset(); + + gl.Texture(0, spotTexture) + gl.Blending(GL.ONE, GL.ONE) -- "hellish" look (1/2) + + if WG.metalSpots and circleList then + for i = 1, #WG.metalSpots do + local spot = WG.metalSpots[i] + local x,z,y = spot.x, spot.z, spot.y + if y < 0 then y = 0 end + local mexColor = getSpotColor(x,y+45,z,i,specatate,1) + local metal = spot.metal or 0 + metal = math.max(metal, 0.1) --min = 0.1 + + glPushMatrix() + --glScale(0.5,1,0.5) -- Remove this to properly align the fancy circles (from circleList) + --glLoadIdentity() + + --glTranslate(x,y + 100,z) + glTranslate(0, y + textureYoffset, 0) + --glColor(0,0,0,1) Black Solid + glColor(0.53, 0.77, 0.89, 0.9) + --glRotate(currentRotationAngle,0,1,0) + --glScale(0.9,1,0.9) + gl.UseShader(animShader) + gl.Uniform(animProgressLoc, (gf % animRate) / animRate) + glRotate(90, 1, 0, 0) + gl.TexRect(x-texturewidth, z-texturewidth, x+texturewidth, z+texturewidth) + --glDrawGroundRect(x-80, z-80, x+80, z+80) + gl.UseShader(0) + --glCallList(circleList) + ----mexColor[4] = 0.8 + ----glColor(mexColor) + --glColor(1,1,1,(metal or 0) * 0.5) + --glScale(0.9,1,0.9) + --glCallList(circleList) + --glRotate(-currentRotationAngle,0,1,0) + + --glRotate(currentRotationAngleOpposite,0,1,0) + --glRotate(180,1,0,0) + --glColor(0,0,0,1) + --glScale(2.5,1,2.5) + --glCallList(circleList) + ----mexColor[4] = 0.8 + ----glColor(mexColor) + --glColor(0.53, 0.77, 0.89, 1) + --glScale(0.9,0.9,0.9) + --glCallList(circleList) + --glTranslate(-x,-y,-z) + --glRotate(-currentRotationAngleOpposite,0,1,0) + glPopMatrix() + end + end + + gl.Blending(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA) --Hellish look (2/2) + gl.Texture(0, false) end function updateMexDrawList() - if (mainMexDrawList) then - gl.DeleteList(mainMexDrawList); - gl.DeleteList(mainMexValueDrawList); - mainMexDrawList = nil - mainMexValueDrawList = nil - end --delete previous list if exist (ref:gui_chicken.lua by quantum) - mainMexDrawList = glCreateList(calcMainMexDrawList, false) - mainMexValueDrawList = glCreateList(calcMainMexDrawList, true) - --miniMexDrawList = glCreateList(calcMiniMexDrawList) + if (mainMexDrawList) then + gl.DeleteList(mainMexDrawList); + gl.DeleteList(mainMexValueDrawList); + mainMexDrawList = nil + mainMexValueDrawList = nil + end --delete previous list if exist (ref:gui_chicken.lua by quantum) + mainMexDrawList = glCreateList(calcMainMexDrawList, false) + mainMexValueDrawList = glCreateList(calcMainMexDrawList, true) + --miniMexDrawList = glCreateList(calcMiniMexDrawList) end function widget:Shutdown() - gl.DeleteList(mainMexDrawList) - gl.DeleteList(mainMexValueDrawList) - gl.DeleteList(circleList) + gl.DeleteList(mainMexDrawList) + gl.DeleteList(mainMexValueDrawList) + gl.DeleteList(circleList) + gl.DeleteShader(animShader) end local function DoLine(x1, y1, z1, x2, y2, z2) @@ -709,162 +833,163 @@ local function DoLine(x1, y1, z1, x2, y2, z2) end function widget:DrawWorldPreUnit() - if chobbyInterface then return end - if Spring.IsGUIHidden() then return end - - -- Check command is to build a mex - local _, cmdID = spGetActiveCommand() - local peruse = spGetGameFrame() < 1 or spGetMapDrawMode() == 'metal' - - drawMexSpots = WG.metalSpots and ((cmdID and mexDefID[-cmdID]) or CMD_AREA_MEX == cmdID or peruse) - - - if drawMexSpots or (circleOptions.enabled and circleOptions.alwaysshow) then - - if circleOptions.enabled and circleOptions.animating then - local clockDifference = (os.clock() - previousOsClock) - previousOsClock = os.clock() - - -- animate rotation - if circleOptions.rotationSpeed > 0 then - local angleDifference = (circleOptions.rotationSpeed) * (clockDifference * 5) - currentRotationAngle = currentRotationAngle + (angleDifference*0.66) - if currentRotationAngle > 360 then - currentRotationAngle = currentRotationAngle - 360 - end - - currentRotationAngleOpposite = currentRotationAngleOpposite - angleDifference - if currentRotationAngleOpposite < -360 then - currentRotationAngleOpposite = currentRotationAngleOpposite + 360 - end - end - - -- Draw the amounts - gl.DepthTest(true) - gl.DepthMask(true) - if not circleOptions.enabled then - glCallList(mainMexDrawList) - end - glCallList(mainMexValueDrawList) - - gl.DepthTest(false) - gl.DepthMask(false) - -- - - DrawMexList() - end - end + if chobbyInterface then return end + if Spring.IsGUIHidden() then return end + + -- Check command is to build a mex + local _, cmdID = spGetActiveCommand() + local peruse = spGetGameFrame() < 1 or spGetMapDrawMode() == 'metal' + + drawMexSpots = WG.metalSpots and ((cmdID and mexDefID[-cmdID]) or CMD_AREA_MEX == cmdID or peruse) + + + if drawMexSpots or (circleOptions.enabled and circleOptions.alwaysshow) then + + if circleOptions.enabled and circleOptions.animating then + local clockDifference = (os.clock() - previousOsClock) + previousOsClock = os.clock() + + -- animate rotation + if circleOptions.rotationSpeed > 0 then + local angleDifference = (circleOptions.rotationSpeed) * (clockDifference * 5) + currentRotationAngle = currentRotationAngle + (angleDifference*0.66) + if currentRotationAngle > 360 then + currentRotationAngle = currentRotationAngle - 360 + end + + currentRotationAngleOpposite = currentRotationAngleOpposite - angleDifference + if currentRotationAngleOpposite < -360 then + currentRotationAngleOpposite = currentRotationAngleOpposite + 360 + end + end + + -- Draw the amounts + gl.DepthTest(true) + gl.DepthMask(true) + if not circleOptions.enabled then + glCallList(mainMexDrawList) + end + glCallList(mainMexValueDrawList) + + -- + + DrawMexList() + + gl.DepthTest(false) + gl.DepthMask(false) + end + end end function widget:RecvLuaMsg(msg, playerID) - if msg:sub(1,18) == 'LobbyOverlayActive' then - chobbyInterface = (msg:sub(1,19) == 'LobbyOverlayActive1') - end + if msg:sub(1,18) == 'LobbyOverlayActive' then + chobbyInterface = (msg:sub(1,19) == 'LobbyOverlayActive1') + end end function widget:DrawWorld() - if chobbyInterface then return end - if Spring.IsGUIHidden() then return end - - -- Check command is to build a mex - local _, cmdID = spGetActiveCommand() - local peruse = spGetGameFrame() < 1 or spGetMapDrawMode() == 'metal' - - local mx, my = spGetMouseState() - local _, pos = spTraceScreenRay(mx, my, true) - - mexSpotToDraw = false - - if WG.metalSpots and pos and ((cmdID and mexDefID[-cmdID]) or peruse or CMD_AREA_MEX == cmdID) then - - -- Find build position and check if it is valid (Would get 100% metal) - local bx, by, bz - if cmdID and cmdID < 0 then - bx, by, bz = Spring.Pos2BuildPos(-cmdID, pos[1], pos[2], pos[3]) - else - bx, by, bz = pos[1], pos[2], pos[3] - end - local bface = Spring.GetBuildFacing() - local closestSpot, distance, index = GetClosestMetalSpot(bx, bz) - - if closestSpot and ((cmdID and mexDefID[-cmdID]) or not ((CMD_AREA_MEX == cmdID or peruse) and distance > 60)) and (not spotData[index]) then - - mexSpotToDraw = closestSpot - - local height = spGetGroundHeight(closestSpot.x,closestSpot.z) - height = height > 0 and height or 0 - - gl.DepthTest(false) - - gl.LineWidth(1.7) - gl.Color(1, 1, 0, 0.5) - gl.BeginEnd(GL.LINE_STRIP, DoLine, bx, by, bz, closestSpot.x, height, closestSpot.z) - gl.LineWidth(1.0) - - gl.DepthTest(true) - gl.DepthMask(true) - - gl.Color(1, 1, 1, 0.5) - gl.PushMatrix() - gl.Translate(closestSpot.x, height, closestSpot.z) - gl.Rotate(90 * bface, 0, 1, 0) - if (cmdID and cmdID < 0) then - gl.UnitShape(-cmdID, Spring.GetMyTeamID(), false, true, false) - end - gl.PopMatrix() - - gl.DepthTest(false) - gl.DepthMask(false) - end - end - - gl.Color(1, 1, 1, 1) + if chobbyInterface then return end + if Spring.IsGUIHidden() then return end + + -- Check command is to build a mex + local _, cmdID = spGetActiveCommand() + local peruse = spGetGameFrame() < 1 or spGetMapDrawMode() == 'metal' + + local mx, my = spGetMouseState() + local _, pos = spTraceScreenRay(mx, my, true) + + mexSpotToDraw = false + + if WG.metalSpots and pos and ((cmdID and mexDefID[-cmdID]) or peruse or CMD_AREA_MEX == cmdID) then + + -- Find build position and check if it is valid (Would get 100% metal) + local bx, by, bz + if cmdID and cmdID < 0 then + bx, by, bz = Spring.Pos2BuildPos(-cmdID, pos[1], pos[2], pos[3]) + else + bx, by, bz = pos[1], pos[2], pos[3] + end + local bface = Spring.GetBuildFacing() + local closestSpot, distance, index = GetClosestMetalSpot(bx, bz) + + if closestSpot and ((cmdID and mexDefID[-cmdID]) or not ((CMD_AREA_MEX == cmdID or peruse) and distance > 60)) and (not spotData[index]) then + + mexSpotToDraw = closestSpot + + local height = spGetGroundHeight(closestSpot.x,closestSpot.z) + height = height > 0 and height or 0 + + gl.DepthTest(false) + + gl.LineWidth(1.7) + gl.Color(1, 1, 0, 0.5) + gl.BeginEnd(GL.LINE_STRIP, DoLine, bx, by, bz, closestSpot.x, height, closestSpot.z) + gl.LineWidth(1.0) + + gl.DepthTest(true) + gl.DepthMask(true) + + gl.Color(1, 1, 1, 0.5) + gl.PushMatrix() + gl.Translate(closestSpot.x, height, closestSpot.z) + gl.Rotate(90 * bface, 0, 1, 0) + if (cmdID and cmdID < 0) then + gl.UnitShape(-cmdID, Spring.GetMyTeamID(), false, true, false) + end + gl.PopMatrix() + + gl.DepthTest(false) + gl.DepthMask(false) + end + end + + gl.Color(1, 1, 1, 1) end function widget:DrawInMiniMap(minimapX, minimapY) - if not glDrawCircle then - glDrawCircle = gl.Utilities.DrawCircle - end - - --if drawMexSpots then - local specatate = spGetSpectatingState() - - glTranslate(0,minimapY,0) - glScale(minimapX/mapX, -minimapY/mapZ, 1) - - for i = 1, #WG.metalSpots do - local spot = WG.metalSpots[i] - local x,z = spot.x, spot.z - local y = spGetGroundHeight(x,z) - - local mexColor = getSpotColor(x,y,z,i,specatate,2) - - glLighting(false) - - --Static minimap mex marker locations - glColor(0,0,0,1) - glLineWidth(2.5) - glDrawCircle(x, z, MINIMAP_DRAW_SIZE) - glLineWidth(1.75) - --mexColor[4] = 0.85 - --glColor(mexColor) - glColor(0.53, 0.77, 0.89, 1) - - --This is for mex circles on the minimap that denote the amount that mexes give (hard to see) - -- glColor(0,0,0,0.66) - -- glLineWidth(((spot.metal > 0 and spot.metal) or 0.1)*5.0) - -- glDrawGroundCircle(x, 0, z, MINIMAP_DRAW_SIZE, 32) - -- glLineWidth(((spot.metal > 0 and spot.metal)*2) or 0.1) - -- mexColor[4] = 0.85 - -- glColor(mexColor) - - glDrawCircle(x, z, MINIMAP_DRAW_SIZE) - end - - glLineWidth(1.0) - glColor(1,1,1,1) - - --end + if not glDrawCircle then + glDrawCircle = gl.Utilities.DrawCircle + end + + --if drawMexSpots then + local specatate = spGetSpectatingState() + + glTranslate(0,minimapY,0) + glScale(minimapX/mapX, -minimapY/mapZ, 1) + + for i = 1, #WG.metalSpots do + local spot = WG.metalSpots[i] + local x,z = spot.x, spot.z + local y = spGetGroundHeight(x,z) + + local mexColor = getSpotColor(x,y,z,i,specatate,2) + + glLighting(false) + + --Static minimap mex marker locations + glColor(0,0,0,1) + glLineWidth(2.5) + glDrawCircle(x, z, MINIMAP_DRAW_SIZE) + glLineWidth(1.75) + --mexColor[4] = 0.85 + --glColor(mexColor) + glColor(0.53, 0.77, 0.89, 1) + + --This is for mex circles on the minimap that denote the amount that mexes give (hard to see) + -- glColor(0,0,0,0.66) + -- glLineWidth(((spot.metal > 0 and spot.metal) or 0.1)*5.0) + -- glDrawGroundCircle(x, 0, z, MINIMAP_DRAW_SIZE, 32) + -- glLineWidth(((spot.metal > 0 and spot.metal)*2) or 0.1) + -- mexColor[4] = 0.85 + -- glColor(mexColor) + + glDrawCircle(x, z, MINIMAP_DRAW_SIZE) + end + + glLineWidth(1.0) + glColor(1,1,1,1) + + --end end diff --git a/LuaUI/Widgets_Evo/game_resetHotkeys.lua b/LuaUI/Widgets_Evo/game_resetHotkeys.lua index 0c1d75446..c64c6e112 100644 --- a/LuaUI/Widgets_Evo/game_resetHotkeys.lua +++ b/LuaUI/Widgets_Evo/game_resetHotkeys.lua @@ -56,6 +56,12 @@ function widget:Initialize() }) Spring.SendCommands("bind f12 screenshot png") + -- Remove Mex Button + Spring.SendCommands({ + "unbindkeyset f4", + }) + Spring.SendCommands("bind f4 screenshot png") + if Game.version == "85.0" then Spring.SendCommands({"unbindaction specteam"}) end diff --git a/LuaUI/Widgets_Evo/gfx_cas.lua b/LuaUI/Widgets_Evo/gfx_cas.lua new file mode 100644 index 000000000..03e5baf4d --- /dev/null +++ b/LuaUI/Widgets_Evo/gfx_cas.lua @@ -0,0 +1,222 @@ +if gl.CreateShader == nil then + return +end + +function widget:GetInfo() + return { + name = "Contrast Adaptive Sharpen (Old)", + desc = "Spring port of AMD FidelityFX' Contrast Adaptive Sharpen (CAS)", + author = "martymcmodding, ivand", + layer = 2000, + enabled = true, + } +end + +-- Shameless port from https://gist.github.com/martymcmodding/30304c4bffa6e2bd2eb59ff8bb09d135 + +----------------------------------------------------------------- +-- Constants +----------------------------------------------------------------- + +local GL_RGBA8 = 0x8058 + +local SHARPNESS = 0.7 +local version = 1.01 + +----------------------------------------------------------------- +-- Lua Shortcuts +----------------------------------------------------------------- + +local glTexture = gl.Texture +local glTexRect = gl.TexRect +local glCallList = gl.CallList +local glCopyToTexture = gl.CopyToTexture + +----------------------------------------------------------------- +-- File path Constants +----------------------------------------------------------------- + +local luaShaderDir = "LuaUI/Widgets_Evo/Include/" + +----------------------------------------------------------------- +-- Shader Sources +----------------------------------------------------------------- + +local vsCAS = [[ +#version 150 compatibility + +void main() { + gl_Position = gl_Vertex; +} +]] + +local fsCAS = [[ +#version 150 compatibility +#line 20051 + +uniform sampler2D screenCopyTex; +uniform float sharpness; + +#if 0 + #define TEXEL_FETCH_OFFSET(t, c, l, o) texelFetch(t, c + o, l) +#else + #define TEXEL_FETCH_OFFSET texelFetchOffset +#endif + +vec3 CASPass(ivec2 tc) { + // fetch a 3x3 neighborhood around the pixel 'e', + // a b c + // d(e)f + // g h i + vec3 a = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2(-1, -1)).rgb; + vec3 b = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 0, -1)).rgb; + vec3 c = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 1, -1)).rgb; + vec3 d = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2(-1, 0)).rgb; + vec3 e = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 0, 0)).rgb; + vec3 f = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 1, 0)).rgb; + vec3 g = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2(-1, 1)).rgb; + vec3 h = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 0, 1)).rgb; + vec3 i = TEXEL_FETCH_OFFSET(screenCopyTex, tc, 0, ivec2( 1, 1)).rgb; + + // Soft min and max. + // a b c b + // d e f * 0.5 + d e f * 0.5 + // g h i h + // These are 2.0x bigger (factored out the extra multiply). + vec3 mnRGB = min(min(min(d, e), min(f, b)), h); + vec3 mnRGB2 = min(mnRGB, min(min(a, c), min(g, i))); + mnRGB += mnRGB2; + + vec3 mxRGB = max(max(max(d, e), max(f, b)), h); + vec3 mxRGB2 = max(mxRGB, max(max(a, c), max(g, i))); + mxRGB += mxRGB2; + + // Smooth minimum distance to signal limit divided by smooth max. + vec3 rcpMRGB = vec3(1.0) / mxRGB; + vec3 ampRGB = clamp(min(mnRGB, 2.0 - mxRGB) * rcpMRGB, vec3(0.0), vec3(1.0)); + + // Shaping amount of sharpening. + ampRGB = inversesqrt(ampRGB); + + float peak = 8.0 - 3.0 * sharpness; + vec3 wRGB = vec3(-1.0) / (ampRGB * peak); + + vec3 rcpWeightRGB = vec3(1.0) / (1.0 + 4.0 * wRGB); + + // 0 w 0 + // Filter shape: w 1 w + // 0 w 0 + vec3 window = (b + d) + (f + h); + vec3 outColor = clamp((window * wRGB + e) * rcpWeightRGB, vec3(0.0), vec3(1.0)); + + return outColor; +} + +void main() { + gl_FragColor = vec4(CASPass(ivec2(gl_FragCoord.xy)), 1.0); +} +]] + +----------------------------------------------------------------- +-- Global Variables +----------------------------------------------------------------- + +local LuaShader = VFS.Include(luaShaderDir.."LuaShader.lua") + +local vsx, vsy, vpx, vpy +local screenCopyTex +local casShader + +local fullTexQuad + +----------------------------------------------------------------- +-- Local Functions +----------------------------------------------------------------- + + +----------------------------------------------------------------- +-- Widget Functions +----------------------------------------------------------------- + + +function widget:Initialize() + + if gl.CreateShader == nil then + Spring.Echo("CAS: createshader not supported, removing") + widgetHandler:RemoveWidget(self) + return + end + + vsx, vsy, vpx, vpy = Spring.GetViewGeometry() + + local commonTexOpts = { + target = GL_TEXTURE_2D, + border = false, + min_filter = GL.NEAREST, + mag_filter = GL.NEAREST, + + wrap_s = GL.CLAMP_TO_EDGE, + wrap_t = GL.CLAMP_TO_EDGE, + } + + commonTexOpts.format = GL_RGBA8 + screenCopyTex = gl.CreateTexture(vsx, vsy, commonTexOpts) + + casShader = LuaShader({ + vertex = vsCAS, + fragment = fsCAS, + uniformInt = { + screenCopyTex = 0, + }, + }, ": Contrast Adaptive Sharpen") + casShader:Initialize() + + fullTexQuad = gl.CreateList( function () + gl.DepthTest(false) + gl.Blending(false) + gl.TexRect(-1, -1, 1, 1, false, true) --false, true + gl.Blending(true) + end) + + WG.cas = {} + WG.cas.setSharpness = function(value) + SHARPNESS = value + end + WG.cas.getSharpness = function(value) + return SHARPNESS + end +end + +function widget:Shutdown() + gl.DeleteTexture(screenCopyTex) + casShader:Finalize() + gl.DeleteList(fullTexQuad) +end + +function widget:ViewResize() + widget:Shutdown() + widget:Initialize() +end + +function widget:DrawScreenEffects() + glCopyToTexture(screenCopyTex, 0, 0, vpx, vpy, vsx, vsy) + glTexture(0, screenCopyTex) + casShader:ActivateWith( function() + casShader:SetUniform("sharpness", SHARPNESS) + glCallList(fullTexQuad) + end) + glTexture(0, false) +end + +function widget:GetConfigData(data) + return { + version = version, + SHARPNESS = SHARPNESS + } +end + +function widget:SetConfigData(data) + if data.SHARPNESS ~= nil and data.version ~= nil and data.version == version then + SHARPNESS = data.SHARPNESS + end +end diff --git a/LuaUI/Widgets_Evo/gui_chili_buildordermenu.lua b/LuaUI/Widgets_Evo/gui_chili_buildordermenu.lua index 1a53d3817..859c1d104 100644 --- a/LuaUI/Widgets_Evo/gui_chili_buildordermenu.lua +++ b/LuaUI/Widgets_Evo/gui_chili_buildordermenu.lua @@ -151,7 +151,7 @@ if buildOrderUI == 2 then Config = { ordermenu = { name = 'ordermenu', - rows = 4, columns = 4, + rows = 6, columns = 4, x = '0%', y = '24%', width = '50%', height = '25%', orientation = 'horizontal', @@ -340,7 +340,7 @@ local function createGridWindow(config) height = config.height, width = config.width, maxWidth = config.maxWidth, children = {grid}, - bringToFrontOnClick = false, dockable = false, draggable = false, + bringToFrontOnClick = true, dockable = false, draggable = false, resizable = false, tweakDraggable = true, tweakResizable = false, padding = config.padding, } @@ -470,7 +470,8 @@ local function addOrderCommand(cmd) textPadding = 9, --8, (MaDDoX) padding = {0, 0, 0, 0}, margin = {2, 2, 2, 2}, - OnMouseUp = {ActionCommand}, + OnClick = {function() end}, + OnMouseDown = {ActionCommand} } if cmd.name == "Repair" then button:SetCaption("Build") else button:SetCaption(cmd.name) end @@ -489,7 +490,8 @@ local function addStateCommand(cmd) textPadding = 12, --8, padding = {0, 0, 0, 0}, margin = {2, 2, 2, 2}, - OnMouseUp = {ActionCommand}, + OnClick = {function() end}, + OnMouseDown = {ActionCommand} } button:SetCaption(cmd.params[cmd.params[1] + 2]) chiliCache['button' .. cmd.id] = button @@ -508,7 +510,8 @@ local function addBuildCommand(cmd) file = '#' .. cmd.id * -1, padding = {0, 0, 0, 0}, margin = {2, 2, 2, 2}, - OnClick = {ActionCommand}, + OnClick = {function() end}, + OnMouseDown = {ActionCommand} } chiliCache['button' .. cmd.id] = image diff --git a/LuaUI/Widgets_Evo/gui_damage_cursortip.lua b/LuaUI/Widgets_Evo/gui_damage_cursortip.lua index eba80747e..3d8c22ccb 100644 --- a/LuaUI/Widgets_Evo/gui_damage_cursortip.lua +++ b/LuaUI/Widgets_Evo/gui_damage_cursortip.lua @@ -7,7 +7,7 @@ function widget:GetInfo() date = "4-11-2010", license = "GNU GPL v2", layer = 0, - enabled = false + enabled = true } end @@ -26,8 +26,8 @@ local fontfile = LUAUI_DIRNAME .. "fonts/" .. Spring.GetConfigString("ui_font", local vsx,vsy = Spring.GetViewGeometry() local fontfileScale = (0.5 + (vsx*vsy / 5700000)) local fontfileSize = 25 -local fontfileOutlineSize = 4.5 -local fontfileOutlineStrength = 1.8 +local fontfileOutlineSize = 4.75 +local fontfileOutlineStrength = 5 local font = gl.LoadFont(fontfile, fontfileSize*fontfileScale, fontfileOutlineSize*fontfileScale, fontfileOutlineStrength) function widget:ViewResize(x,y) diff --git a/LuaUI/Widgets_Evo/gui_evo_tooltip.lua b/LuaUI/Widgets_Evo/gui_evo_tooltip.lua index a1ce01617..59fc4f8db 100644 --- a/LuaUI/Widgets_Evo/gui_evo_tooltip.lua +++ b/LuaUI/Widgets_Evo/gui_evo_tooltip.lua @@ -174,7 +174,7 @@ for unitDefID = 1, #UnitDefs do end -- -local weaponTypeToStr = { "Armored", "Building", "Light", "AirLight", "AirArmored" } +local weaponTypeToStr = { "Light", "Armored", "Building", "Air" } local frameSkip = 4 -- draw once every frameSkip+1 frames local counter = 0 @@ -347,46 +347,46 @@ function GetTooltipWeaponData(ud) end]] if ud.canKamikaze then - local weapname=ud.selfDExplosion - local weap=nil - for wid,weaponDef in pairs(WeaponDefs) do - if weaponDef.name==weapname then - weap=WeaponDefs[wid] - end - end - if weap then - local weapon_action="Damage" - if weap.damages and weap.damages.paralyzeDamageTime and weap.damages.paralyzeDamageTime>0 then - weapon_action="Paralyze" - end - NewTooltip = NewTooltip.."\n\255\255\213\213Damage: \255\255\170\170"..FormatNbr(dmgMod * weap.damages[Game.armorTypes.default],2).."/once" - end + -- local weapname=ud.selfDExplosion + -- local weap=nil + -- for wid,weaponDef in pairs(WeaponDefs) do + -- if weaponDef.name==weapname then + -- weap=WeaponDefs[wid] + -- end + -- end + -- if weap then + -- local weapon_action="Damage" + -- if weap.damages and weap.damages.paralyzeDamageTime and weap.damages.paralyzeDamageTime>0 then + -- weapon_action="Paralyze" + -- end + -- NewTooltip = NewTooltip.."\n\255\255\213\213Damage: \255\255\170\170"..FormatNbr(dmgMod * weap.damages[Game.armorTypes.default],2).."/once" + -- end elseif ud.weapons and ud.weapons[1] and ud.weapons[1].weaponDef then - local damages, paralyzeDamages, hasDamage, hasParalyzDamage, maxRange, totalEnergyCost = GetUnitTotalDamageEnergyMaxRange(ud) - --NewTooltip = NewTooltip .. "\n" - if hasDamage then - NewTooltip = NewTooltip .. white .. "Damage/s: " - for i = 1, #damages do -- actually ignore default - local reorder = (i + 1) % 5 + 1 - if damages[reorder] > 0 then NewTooltip = NewTooltip .. weaponDamageColour .. FormatNbr(damages[reorder], 1) .. white .. " (" .. weaponTypeToStr[reorder] .. ") / " end - end - NewTooltip = NewTooltip:sub(1, -4) - end - if hasParalyzDamage then - NewTooltip = NewTooltip .. white .. "Paralyze/s: " - for i = 1, #paralyzeDamages do -- actually ignore default - local reorder = (i + 1) % 5 + 1 - if paralyzeDamages[reorder] > 0 then NewTooltip = NewTooltip .. weaponParalyzeColour .. FormatNbr(paralyzeDamages[reorder], 1) .. white .. " (" .. weaponTypeToStr[reorder] .. ") / " end - end - NewTooltip = NewTooltip:sub(1, -4) - end - if hasDamage or hasParalyzDamage then - NewTooltip = "\n" .. NewTooltip - NewTooltip = NewTooltip .. " Range: " .. FormatNbr(maxRange, 2) - --totalEnergyCost = 12 - if totalEnergyCost > 0 then NewTooltip = NewTooltip .. " " .. useEnergyTexture .. useResColour .. " -" .. FormatNbr(totalEnergyCost, 1) end - end - --[[for _,w in pairs(ud.weapons) do + -- local damages, paralyzeDamages, hasDamage, hasParalyzDamage, maxRange, totalEnergyCost = GetUnitTotalDamageEnergyMaxRange(ud) + -- if hasDamage then + -- NewTooltip = NewTooltip .. white .. "Damage/s: " + -- for i = 1, #damages do -- actually ignore default + -- local reorder = (i + 1) % 5 + 1 + -- if damages[reorder] > 0 then NewTooltip = NewTooltip .. weaponDamageColour .. FormatNbr(damages[reorder], 1) .. white .. " (" .. weaponTypeToStr[reorder] .. ") / " end + -- end + -- NewTooltip = NewTooltip:sub(1, -4) + -- end + -- if hasParalyzDamage then + -- NewTooltip = NewTooltip .. white .. "Paralyze/s: " + -- for i = 1, #paralyzeDamages do -- actually ignore default + -- local reorder = (i + 1) % 5 + 1 + -- if paralyzeDamages[reorder] > 0 then NewTooltip = NewTooltip .. weaponParalyzeColour .. FormatNbr(paralyzeDamages[reorder], 1) .. white .. " (" .. weaponTypeToStr[reorder] .. ") / " end + -- end + -- NewTooltip = NewTooltip:sub(1, -4) + -- end + -- if hasDamage or hasParalyzDamage then + -- NewTooltip = "\n" .. NewTooltip + -- NewTooltip = NewTooltip .. " Range: " .. FormatNbr(maxRange, 2) + -- if totalEnergyCost > 0 then NewTooltip = NewTooltip .. " " .. useEnergyTexture .. useResColour .. " -" .. FormatNbr(totalEnergyCost, 1) end + -- end + + + for _,w in pairs(ud.weapons) do local weap=WeaponDefs[w.weaponDef] --Spring.Echo(weap.damages[0],weap.damages[1],weap.damages[2],weap.damages[3]) -- default, armored, building, light if weap.isShield == false and weap.description ~= "No Weapon" then @@ -403,23 +403,36 @@ function GetTooltipWeaponData(ud) weapon_action="Paralyze/s" isDisruptor = true end - if (reloadTime > 5) then + if (reloadTime >= 2.5) then actionStr = weapon_action..": \255\255\255\255"..(isDisruptor and "\255\100\255\255" or "")..FormatNbr(damage,0).."\255\255\255\255"..(reloadTime >= ONCE_RELOAD_THRESHOLD and " once" or ("/"..FormatNbr(reloadTime,2).."s")) else actionStr = weapon_action..": \255\255\255\255"..(isDisruptor and "\255\100\255\255" or "")..FormatNbr(dps,1).."\255\255\255\255" end local range = weap.range * rangeMod - local hitpower = "L" - - if ( weap.damages[Game.armorTypes.default] == weap.damages[Game.armorTypes.armor_heavy] ) then - hitpower = "H" - elseif ( weap.damages[Game.armorTypes.default] == weap.damages[Game.armorTypes.armor_medium] ) then - hitpower = "M" - end - - - NewTooltip = NewTooltip.."\n\255\255\255\255"..weap.description.." "..actionStr.."("..hitpower..") Range: "..FormatNbr(range,2) + local damagetype = weap.customParams.damagetype + if damagetype == nil then + damagetype = "default" + end + + if damagetype == "light" or damagetype == "antilight" then damagetype = "Light" end + if damagetype == "turretantilight" then damagetype = "Light Mobile Units" end + if damagetype == "turretantiarmored" then damagetype = "Armored Mobile Units" end + if damagetype == "turretantilightarmored" then damagetype = "Light/Armored Mobile Units" end + if damagetype == "antiarmored" then damagetype = "Armored" end + if damagetype == "antilightarmored" then damagetype = "Light/Armored" end + if damagetype == "antilightbuilding" then damagetype = "Light/Buildings" end + if damagetype == "antibuilding" then damagetype = "Buildings" end + if damagetype == "antiair" then damagetype = "Aircraft" end + if damagetype == "antiarmoredbuilding" then damagetype = "Armored and Buildings" end + if damagetype == "antibuildingair" then damagetype = "Buildings and Aircraft" end + if damagetype == "antiarmoredair" then damagetype = "Armored and Aircraft" end + if damagetype == "Default" then damagetype = "None" end + + local AOE = weap.damageAreaOfEffect + + + NewTooltip = NewTooltip.."\n\255\255\255\255"..weap.description.." "..actionStr.." (+50% vs "..damagetype..") AoE: "..AOE.."(r) Range: "..FormatNbr(range,2) if energyPerSecond > 0 then NewTooltip = NewTooltip.." \255\255\255\0E/s: "..FormatNbr(energyPerSecond,1) @@ -429,7 +442,7 @@ function GetTooltipWeaponData(ud) NewTooltip = NewTooltip.." \255\64\64\255WATER" end end - end]] + end end return NewTooltip @@ -493,8 +506,7 @@ local function GetTooltipArmor(ud) if str == "light" then return "Light" elseif str == "armored" then return "Armored" elseif str == "building" then return "Building" - elseif str == "airlight" then return "Aircraft Light" - elseif str == "airarmored" then return "Aircraft Armored" end + elseif str == "air" then return "Air" end return "Default" end -- get tooltip for resource upkeeps @@ -579,7 +591,10 @@ local function GetTooltipUnit(id) --[[local armorTypeStr= "L" if ( Game.armorTypes[ud.armorType] == "armor_heavy" ) then armorTypeStr = "H" elseif ( Game.armorTypes[ud.armorType] == "armor_medium" ) then armorTypeStr = "M" end]] - local armorTypeStr = GetTooltipArmor(ud) + local armorTypeStr = ud.customParams.armortype + if armorTypeStr == nil then + armorTypeStr = "None" + end local hasShield, ShieldPower=Spring.GetUnitShieldState(id) local maxShieldPower = ud.shieldPower @@ -613,19 +628,21 @@ local function GetTooltipUnit(id) end]] -- speed - if ud.speed and ud.speed>0 then + + --Disable Speed Readout + --if ud.speed and ud.speed>0 then --[[local speedMod = spGetUnitRulesParam(u,"upgrade_speed") if not speedMod then speedMod = 1 else speedMod = 1 + speedMod end]] - local speedMod = 1 + --local speedMod = 1 - local vx,vy,vz = spGetUnitVelocity(u) - local speed = 30*math.sqrt(vx*vx+vz*vz) - result = result.."\255\193\255\187Speed: \255\134\255\121"..FormatNbr(speed).."\255\193\255\187/\255\134\255\121"..FormatNbr(ud.speed*speedMod,2).."\255\255\255\255 " - end + --local vx,vy,vz = spGetUnitVelocity(u) + --local speed = 30*math.sqrt(vx*vx+vz*vz) + --result = result.."\255\193\255\187Speed: \255\134\255\121"..FormatNbr(speed).."\255\193\255\187/\255\134\255\121"..FormatNbr(ud.speed*speedMod,2).."\255\255\255\255 " + --end --[[if ud.transportCapacity>0 and ud.transportMass>0 and isFriendly then local currentCapacityUsage = 0 diff --git a/LuaUI/Widgets_Evo/gui_faction_change.lua b/LuaUI/Widgets_Evo/gui_faction_change.lua index 11b4a9588..0d43c9f2a 100644 --- a/LuaUI/Widgets_Evo/gui_faction_change.lua +++ b/LuaUI/Widgets_Evo/gui_faction_change.lua @@ -15,7 +15,7 @@ end -- Var -------------------------------------------------------------------------------- local wWidth, wHeight = Spring.GetWindowGeometry() -local px, py = 50, 0.55*wHeight +local px, py = 0.42*wWidth, 0.42*wHeight local fontfile = LUAUI_DIRNAME .. "fonts/" .. Spring.GetConfigString("ui_font2", "JosefinSans-Bold.ttf") local vsx,vsy = Spring.GetViewGeometry() @@ -56,9 +56,8 @@ local spGetGroundHeight = Spring.GetGroundHeight local spSendLuaRulesMsg = Spring.SendLuaRulesMsg local spGetSpectatingState = Spring.GetSpectatingState -local aterancomDefID = UnitDefNames.ecommander.id -local zaalcomDefID = UnitDefNames.zarm.id -local patterncomDefID = UnitDefNames.xcommander.id +local fedcomDefID = UnitDefNames.fedcommander.id +local lozcomDefID = UnitDefNames.lozcommander.id local commanderDefID = spGetTeamRulesParam(myTeamID, 'startUnit') local amNewbie = (spGetTeamRulesParam(myTeamID, 'isNewbie') == 1) @@ -66,7 +65,7 @@ local amNewbie = (spGetTeamRulesParam(myTeamID, 'isNewbie') == 1) local factionChangeList local vsx, vsy = gl.GetViewSizes() -local widgetScale = (0.50 + (vsx*vsy / 5000000)) +local widgetScale = (1.5 + (vsx*vsy / 5000000)) local bgcorner = "LuaUI/Images/bgcorner.png" @@ -193,14 +192,11 @@ function widget:DrawWorld() local teamID = teamList[i] local tsx, tsy, tsz = spGetTeamStartPosition(teamID) if tsx and tsx > 0 then - if spGetTeamRulesParam(teamID, 'startUnit') == aterancomDefID then + if spGetTeamRulesParam(teamID, 'startUnit') == fedcomDefID then glTexture('LuaUI/Images/ecommander.png') glBeginEnd(GL_QUADS, QuadVerts, tsx, spGetGroundHeight(tsx, tsz), tsz, 80) - elseif spGetTeamRulesParam(teamID, 'startUnit') == zaalcomDefID then - glTexture('LuaUI/Images/zarm.png') - glBeginEnd(GL_QUADS, QuadVerts, tsx, spGetGroundHeight(tsx, tsz), tsz, 64) - elseif spGetTeamRulesParam(teamID, 'startUnit') == patterncomDefID then - glTexture('LuaUI/Images/xcommander.png') + elseif spGetTeamRulesParam(teamID, 'startUnit') == lozcomDefID then + glTexture('LuaUI/Images/lozcommander.png') glBeginEnd(GL_QUADS, QuadVerts, tsx, spGetGroundHeight(tsx, tsz), tsz, 64) end end @@ -240,7 +236,7 @@ end function widget:ViewResize(n_vsx,n_vsy) vsx, vsy = gl.GetViewSizes() - widgetScale = (0.50 + (vsx*vsy / 5000000)) + widgetScale = (1.5 + (vsx*vsy / 5000000)) local newFontfileScale = (0.5 + (vsx*vsy / 5700000)) if (fontfileScale ~= newFontfileScale) then fontfileScale = newFontfileScale @@ -259,9 +255,9 @@ function GenerateFactionChangeList() -- Highlight glColor(0.8, 0.8, 0.8, 0.3) - if commanderDefID == aterancomDefID then + if commanderDefID == fedcomDefID then RectRound(3*widgetScale, 3*widgetScale, 61*widgetScale, 61*widgetScale,4.5*widgetScale) - elseif commanderDefID == zaalcomDefID then + elseif commanderDefID == lozcomDefID then RectRound(65*widgetScale, 3*widgetScale, 125*widgetScale, 61*widgetScale,4.5*widgetScale) elseif commanderDefID == patterncomDefID then RectRound(128*widgetScale, 3*widgetScale, 189*widgetScale, 61*widgetScale,4.5*widgetScale) @@ -270,18 +266,15 @@ function GenerateFactionChangeList() glColor(1, 1, 1, 1) glTexture('LuaUI/Images/ecommander.png') glTexRect(12*widgetScale, 17*widgetScale, 52*widgetScale, 59*widgetScale) - glTexture('LuaUI/Images/zarm.png') + glTexture('LuaUI/Images/lozcommander.png') glTexRect(76*widgetScale, 20*widgetScale, 116*widgetScale, 60*widgetScale) - glTexture('LuaUI/Images/xcommander.png') - glTexRect(140*widgetScale, 20*widgetScale, 180*widgetScale, 60*widgetScale) glTexture(false) -- Text font:Begin() font:Print('Choose Your Faction', 96*widgetScale, 64*widgetScale, 11.5*widgetScale, 'ocd') - font:Print('Ateran', 32*widgetScale, 4*widgetScale, 12*widgetScale, 'ocd') - font:Print('Zaal', 96*widgetScale, 4*widgetScale, 12*widgetScale, 'ocd') - font:Print('Pattern(WIP)', 160*widgetScale, 4*widgetScale, 12*widgetScale, 'ocd') + font:Print('Federation of Kala', 32*widgetScale, 4*widgetScale, 12*widgetScale, 'ocd') + font:Print('Loz Alliance', 96*widgetScale, 4*widgetScale, 12*widgetScale, 'ocd') font:End() end @@ -304,9 +297,9 @@ function widget:MousePress(mx, my, mButton) local newCom -- Which button? if mx < px + (64*widgetScale) then - newCom = aterancomDefID + newCom = fedcomDefID elseif mx < px + (128*widgetScale) then - newCom = zaalcomDefID + newCom = lozcomDefID elseif mx < px + (192*widgetScale) then newCom = patterncomDefID end diff --git a/LuaUI/Widgets_Evo/gui_messages.lua b/LuaUI/Widgets_Evo/gui_messages.lua new file mode 100644 index 000000000..05578d3ef --- /dev/null +++ b/LuaUI/Widgets_Evo/gui_messages.lua @@ -0,0 +1,527 @@ +function widget:GetInfo() + return { + name = "Messages", + desc = "Typewrites messages at the center-bottom of the screen (missions, tutorials)", + author = "Floris", + date = "September 2019", + license = "GNU GPL, v2 or later", + layer = 30000, + enabled = true + } +end + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +-- Widgets can call: WG['messages'].addMessage('message text') +-- Gadgets (unsynced) can call: Script.LuaUI.GadgetAddMessage('message text') +-- plain text (without markup) via: /addmessage message text + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +local vsx,vsy = Spring.GetViewGeometry() + +local posY = 0.16 + +local showTestMessages = false + +local charSize = 19.5 - (3.5 * ((vsx/vsy) - 1.78)) +local charDelay = 0.022 +local maxLines = 6 +local maxLinesScroll = 9 +local lineTTL = 14 +local fadeTime = 0.4 +local fadeDelay = 0.25 -- need to hover this long in order to fadein and respond to CTRL +local backgroundOpacity = 0.18 + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +local fontfile = LUAUI_DIRNAME .. "fonts/" .. Spring.GetConfigString("ui_font", "JosefinSans-SemiBold.ttf") +local fontfileScale = (0.5 + (vsx*vsy / 5700000)) +local fontfileSize = 38 +local fontfileOutlineSize = 7 +local fontfileOutlineStrength = 1.4 +local font = gl.LoadFont(fontfile, fontfileSize*fontfileScale, fontfileOutlineSize*fontfileScale, fontfileOutlineStrength) + +local ui_scale = tonumber(Spring.GetConfigFloat("ui_scale",1) or 1) + +local vsx, vsy = gl.GetViewSizes() +local widgetScale = (((vsx+vsy) / 2000) * 0.55) * (1+(ui_scale-1)/1.5) + +local glPopMatrix = gl.PopMatrix +local glPushMatrix = gl.PushMatrix +local glDeleteList = gl.DeleteList +local glCreateList = gl.CreateList +local glCallList = gl.CallList +local glTranslate = gl.Translate +local glColor = gl.Color + +local messageLines = {} +local activationArea = {0,0,0,0} +local activatedHeight = 0 +local currentLine = 0 +local currentTypewriterLine = 0 +local scrolling = false +local lineMaxWidth = 0 + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +function lines(str) + local t = {} + local function helper(line) t[#t+1] = line return "" end + helper((str:gsub("(.-)\r?\n", helper))) + return t +end + +local function DrawRectRound(px,py,sx,sy,cs, tl,tr,br,bl, c1,c2) + local csyMult = 1 / ((sy-py)/cs) + + if c2 then + gl.Color(c1[1],c1[2],c1[3],c1[4]) + end + gl.Vertex(px+cs, py, 0) + gl.Vertex(sx-cs, py, 0) + if c2 then + gl.Color(c2[1],c2[2],c2[3],c2[4]) + end + gl.Vertex(sx-cs, sy, 0) + gl.Vertex(px+cs, sy, 0) + + -- left side + if c2 then + gl.Color(c1[1]*(1-csyMult)+(c2[1]*csyMult),c1[2]*(1-csyMult)+(c2[2]*csyMult),c1[3]*(1-csyMult)+(c2[3]*csyMult),c1[4]*(1-csyMult)+(c2[4]*csyMult)) + end + gl.Vertex(px, py+cs, 0) + gl.Vertex(px+cs, py+cs, 0) + if c2 then + gl.Color(c2[1]*(1-csyMult)+(c1[1]*csyMult),c2[2]*(1-csyMult)+(c1[2]*csyMult),c2[3]*(1-csyMult)+(c1[3]*csyMult),c2[4]*(1-csyMult)+(c1[4]*csyMult)) + end + gl.Vertex(px+cs, sy-cs, 0) + gl.Vertex(px, sy-cs, 0) + + -- right side + if c2 then + gl.Color(c1[1]*(1-csyMult)+(c2[1]*csyMult),c1[2]*(1-csyMult)+(c2[2]*csyMult),c1[3]*(1-csyMult)+(c2[3]*csyMult),c1[4]*(1-csyMult)+(c2[4]*csyMult)) + end + gl.Vertex(sx, py+cs, 0) + gl.Vertex(sx-cs, py+cs, 0) + if c2 then + gl.Color(c2[1]*(1-csyMult)+(c1[1]*csyMult),c2[2]*(1-csyMult)+(c1[2]*csyMult),c2[3]*(1-csyMult)+(c1[3]*csyMult),c2[4]*(1-csyMult)+(c1[4]*csyMult)) + end + gl.Vertex(sx-cs, sy-cs, 0) + gl.Vertex(sx, sy-cs, 0) + + local offset = 0.15 -- texture offset, because else gaps could show + + -- bottom left + if c2 then + gl.Color(c1[1],c1[2],c1[3],c1[4]) + end + if ((py <= 0 or px <= 0) or (bl ~= nil and bl == 0)) and bl ~= 2 then + gl.Vertex(px, py, 0) + else + gl.Vertex(px+cs, py, 0) + end + gl.Vertex(px+cs, py, 0) + if c2 then + gl.Color(c1[1]*(1-csyMult)+(c2[1]*csyMult),c1[2]*(1-csyMult)+(c2[2]*csyMult),c1[3]*(1-csyMult)+(c2[3]*csyMult),c1[4]*(1-csyMult)+(c2[4]*csyMult)) + end + gl.Vertex(px+cs, py+cs, 0) + gl.Vertex(px, py+cs, 0) + -- bottom right + if c2 then + gl.Color(c1[1],c1[2],c1[3],c1[4]) + end + if ((py <= 0 or sx >= vsx) or (br ~= nil and br == 0)) and br ~= 2 then + gl.Vertex(sx, py, 0) + else + gl.Vertex(sx-cs, py, 0) + end + gl.Vertex(sx-cs, py, 0) + if c2 then + gl.Color(c1[1]*(1-csyMult)+(c2[1]*csyMult),c1[2]*(1-csyMult)+(c2[2]*csyMult),c1[3]*(1-csyMult)+(c2[3]*csyMult),c1[4]*(1-csyMult)+(c2[4]*csyMult)) + end + gl.Vertex(sx-cs, py+cs, 0) + gl.Vertex(sx, py+cs, 0) + -- top left + if c2 then + gl.Color(c2[1],c2[2],c2[3],c2[4]) + end + if ((sy >= vsy or px <= 0) or (tl ~= nil and tl == 0)) and tl ~= 2 then + gl.Vertex(px, sy, 0) + else + gl.Vertex(px+cs, sy, 0) + end + gl.Vertex(px+cs, sy, 0) + if c2 then + gl.Color(c2[1]*(1-csyMult)+(c1[1]*csyMult),c2[2]*(1-csyMult)+(c1[2]*csyMult),c2[3]*(1-csyMult)+(c1[3]*csyMult),c2[4]*(1-csyMult)+(c1[4]*csyMult)) + end + gl.Vertex(px+cs, sy-cs, 0) + gl.Vertex(px, sy-cs, 0) + -- top right + if c2 then + gl.Color(c2[1],c2[2],c2[3],c2[4]) + end + if ((sy >= vsy or sx >= vsx) or (tr ~= nil and tr == 0)) and tr ~= 2 then + gl.Vertex(sx, sy, 0) + else + gl.Vertex(sx-cs, sy, 0) + end + gl.Vertex(sx-cs, sy, 0) + if c2 then + gl.Color(c2[1]*(1-csyMult)+(c1[1]*csyMult),c2[2]*(1-csyMult)+(c1[2]*csyMult),c2[3]*(1-csyMult)+(c1[3]*csyMult),c2[4]*(1-csyMult)+(c1[4]*csyMult)) + end + gl.Vertex(sx-cs, sy-cs, 0) + gl.Vertex(sx, sy-cs, 0) +end +function RectRound(px,py,sx,sy,cs, tl,tr,br,bl, c1,c2) -- (coordinates work differently than the RectRound func in other widgets) + gl.Texture(false) + gl.BeginEnd(GL.QUADS, DrawRectRound, px,py,sx,sy,cs, tl,tr,br,bl, c1,c2) +end + +function IsOnRect(x, y, leftX, bottomY,rightX,TopY) + return x >= leftX and x <= rightX and y >= bottomY and y <= TopY +end + +function widget:ViewResize() + vsx,vsy = Spring.GetViewGeometry() + lineMaxWidth = lineMaxWidth / widgetScale + widgetScale = (((vsx+vsy) / 2000) * 0.55) * (1+(ui_scale-1)/1.5) + lineMaxWidth = lineMaxWidth * widgetScale + + local newFontfileScale = (0.5 + (vsx*vsy / 5700000)) + if (fontfileScale ~= newFontfileScale) then + fontfileScale = newFontfileScale + gl.DeleteFont(font) + font = gl.LoadFont(fontfile, fontfileSize*fontfileScale, fontfileOutlineSize*fontfileScale, fontfileOutlineStrength) + end + + for i, _ in ipairs(messageLines) do + if messageLines[i][6] then + glDeleteList(messageLines[i][6]) + messageLines[i][6] = nil + end + end + + activationArea = { + (vsx * 0.31)-(charSize*widgetScale), (vsy * posY)+(charSize*0.15*widgetScale), + (vsx * 0.6), (vsy * (posY+0.077)) + } + lineMaxWidth = math.max(lineMaxWidth, activationArea[3] - activationArea[1]) + activatedHeight = (1+maxLinesScroll)*charSize*1.15*widgetScale +end + +function addMessage(text) + if text then + + -- determine text typing start time + local startTime = os.clock() + if messageLines[#messageLines] then + if startTime < messageLines[#messageLines][1] + messageLines[#messageLines][3]*charDelay then + startTime = messageLines[#messageLines][1] + messageLines[#messageLines][3]*charDelay + else + currentTypewriterLine = currentTypewriterLine + 1 + end + else + currentTypewriterLine = currentTypewriterLine + 1 + end + + -- convert /n into lines + local textLines = lines(text) + + -- word wrap text into lines + local wordwrappedText = {} + local wordwrappedTextCount = 0 + for i, line in ipairs(textLines) do + local words = {} + local wordsCount = 0 + local linebuffer = '' + for w in line:gmatch("%S+") do + wordsCount = wordsCount + 1 + words[wordsCount] = w + end + for wi, word in ipairs(words) do + if font:GetTextWidth(linebuffer..' '..word)*charSize*widgetScale > lineMaxWidth then + wordwrappedTextCount = wordwrappedTextCount + 1 + wordwrappedText[wordwrappedTextCount] = linebuffer + linebuffer = '' + end + if linebuffer == '' then + linebuffer = word + else + linebuffer = linebuffer..' '..word + end + end + if linebuffer ~= '' then + wordwrappedTextCount = wordwrappedTextCount + 1 + wordwrappedText[wordwrappedTextCount] = linebuffer + end + end + local messageLinesCount = #messageLines + for i, line in ipairs(wordwrappedText) do + lineMaxWidth = math.max(lineMaxWidth, font:GetTextWidth(line)*charSize*widgetScale) + messageLinesCount = messageLinesCount + 1 + messageLines[messageLinesCount] = { + startTime, + line, + string.len(line), + 0, -- num typed chars + 0, -- time passed during typing chars (used to calc 'num typed chars') + glCreateList(function() end), + 0 -- num chars the displaylist contains + } + startTime = startTime + (string.len(line)*charDelay) + end + + if currentTypewriterLine > messageLinesCount then + currentTypewriterLine = messageLinesCount + end + if not scrolling then + currentLine = currentTypewriterLine + end + end +end + +function widget:Initialize() + widget:ViewResize(vsx,vsy) + widgetHandler:RegisterGlobal('GadgetAddMessage', addMessage) + WG['messages'] = {} + WG['messages'].addMessage = function(text) + addMessage(text) + end +end + +local sec = 0 +local testmessaged = 0 +local uiSec = 0 +function widget:Update(dt) + uiSec = uiSec + dt + if uiSec > 0.5 then + uiSec = 0 + if ui_scale ~= Spring.GetConfigFloat("ui_scale",1) then + ui_scale = Spring.GetConfigFloat("ui_scale",1) + widget:ViewResize(vsx,vsy) + end + end + + local x,y,b = Spring.GetMouseState() + if WG['topbar'] and WG['topbar'].showingQuit() then + scrolling = false + elseif IsOnRect(x, y, activationArea[1], activationArea[2], activationArea[3], activationArea[4]) then + local alt, ctrl, meta, shift = Spring.GetModKeyState() + if ctrl and startFadeTime and os.clock() > startFadeTime+fadeDelay then + scrolling = true + else + --scrolling = false + end + elseif scrolling and IsOnRect(x, y, activationArea[1], activationArea[2], activationArea[1]+lineMaxWidth+(charSize*2*widgetScale), activationArea[2]+activatedHeight) then + + else + scrolling = false + currentLine = #messageLines + end + + -- delayed test msg + if showTestMessages and not dataRestored and Spring.GetGameFrame() > 30 then + sec = sec + dt + if testmessaged < 1 and sec > 3.5 then + testmessaged = 1 + addMessage("\nStandby we will keep you updated.\nGood luck!") + end + if testmessaged < 2 and sec > 12 then --and Spring.GetGameFrame() < 30*11 then + testmessaged = 2 + addMessage("\n\nEnemies have been detected in your vicinity!\nBetter expand quick.") + end + end + + if messageLines[currentTypewriterLine] ~= nil then + -- continue typewriting line + if messageLines[currentTypewriterLine][4] <= messageLines[currentTypewriterLine][3] then + messageLines[currentTypewriterLine][5] = messageLines[currentTypewriterLine][5] + dt + messageLines[currentTypewriterLine][4] = math.ceil(messageLines[currentTypewriterLine][5]/charDelay) + + -- typewrite next line when complete + if messageLines[currentTypewriterLine][4] >= messageLines[currentTypewriterLine][3] then + currentTypewriterLine = currentTypewriterLine + 1 + if currentTypewriterLine > #messageLines then + currentTypewriterLine = #messageLines + end + end + end + end +end + +function processLine(i) + if messageLines[i][6] == nil or messageLines[i][4] ~= messageLines[i][7] then + messageLines[i][7] = messageLines[i][4] + local text = string.sub(messageLines[i][2], 1, messageLines[i][4]) + glDeleteList(messageLines[i][6]) + messageLines[i][6] = glCreateList(function() + font:Begin() + lineMaxWidth = math.max(lineMaxWidth, font:GetTextWidth(text)*charSize*widgetScale) + font:Print(text, 0, 0, charSize*widgetScale, "o") + font:End() + end) + end +end + +function widget:RecvLuaMsg(msg, playerID) + if msg:sub(1,18) == 'LobbyOverlayActive' then + chobbyInterface = (msg:sub(1,19) == 'LobbyOverlayActive1') + end +end + +function widget:DrawScreen() + if chobbyInterface then return end + if not messageLines[1] then return end + + local x,y,b = Spring.GetMouseState() + if IsOnRect(x, y, activationArea[1], activationArea[2], activationArea[3], activationArea[4]) or (scrolling and IsOnRect(x, y, activationArea[1], activationArea[2], activationArea[1]+lineMaxWidth+(charSize*2*widgetScale), activationArea[2]+activatedHeight)) then + hovering = true + if not startFadeTime then + startFadeTime = os.clock() + end + if scrolling then + glColor(0,0,0,backgroundOpacity) + RectRound(activationArea[1], activationArea[2], activationArea[1]+lineMaxWidth+(charSize*2*widgetScale), activationArea[2]+activatedHeight, 6.5*widgetScale) + else + local opacity = ((os.clock() - (startFadeTime+fadeDelay)) / fadeTime) * backgroundOpacity + if opacity > backgroundOpacity then + opacity = backgroundOpacity + end + glColor(0,0,0,opacity) + RectRound(activationArea[1], activationArea[2], activationArea[3], activationArea[4], 6.5*widgetScale) + end + + else + + if hovering then + local opacityPercentage = (os.clock() - (startFadeTime+fadeDelay)) / fadeTime + startFadeTime = os.clock() - math.max((1-opacityPercentage)*fadeTime, 0) + end + hovering = false + if startFadeTime then + local opacity = backgroundOpacity - (((os.clock() - startFadeTime) / fadeTime) * backgroundOpacity) + if opacity > 1 then + opacity = 1 + end + if opacity <= 0 then + startFadeTime = nil + else + glColor(0,0,0,opacity) + RectRound(activationArea[1], activationArea[2], activationArea[3], activationArea[4], 6.5*widgetScale) + end + end + scrolling = false + currentLine = #messageLines + end + + if messageLines[currentLine] then + glPushMatrix() + glTranslate((vsx * 0.31), (vsy * posY), 0) + local displayedLines = 0 + local i = currentLine + local usedMaxLines = maxLines + if scrolling then + usedMaxLines = maxLinesScroll + end + while i > 0 do + glTranslate(0, (charSize*1.15*widgetScale), 0) + if scrolling or os.clock() - messageLines[i][1] < lineTTL then + processLine(i) + glCallList(messageLines[i][6]) + end + displayedLines = displayedLines + 1 + if displayedLines >= usedMaxLines then + break + end + i = i - 1 + end + glPopMatrix() + + -- show newly written line when in scrolling mode + if scrolling and currentLine < #messageLines and os.clock() - messageLines[currentTypewriterLine][1] < lineTTL then + glPushMatrix() + glTranslate((vsx * 0.31), (vsy * (posY-0.02)), 0) + processLine(currentTypewriterLine) + glCallList(messageLines[currentTypewriterLine][6]) + glPopMatrix() + end + + end +end + +function widget:MouseWheel(up, value) + if scrolling then + if up then + currentLine = currentLine - 1 + if currentLine < maxLinesScroll then + currentLine = maxLinesScroll + end + else + currentLine = currentLine + 1 + if currentLine > #messageLines then + currentLine = #messageLines + end + end + return true + else + return false + end +end + +function widget:WorldTooltip(ttType,data1,data2,data3) + local x,y,_ = Spring.GetMouseState() + if #messageLines > 0 and IsOnRect(x, y, activationArea[1],activationArea[2],activationArea[3],activationArea[4]) then + return "Press\255\255\255\001 CTRL \255\255\255\255to activate chatlog viewing/scrolling" + end +end + +function widget:GameStart() + if showTestMessages then + addMessage("\255\230\255\200Commander,\nWe're in a peculiar situation so you have to begin on your own...\nInitiate a base and we'll redirect reinforcements right after...") + end +end + +function widget:GameOver() + --widgetHandler:RemoveWidget(self) +end + +function widget:Shutdown() + WG['messages'] = nil + gl.DeleteFont(font) + for i, _ in ipairs(messageLines) do + if messageLines[i][6] then + glDeleteList(messageLines[i][6]) + messageLines[i][6] = nil + end + end + widgetHandler:DeregisterGlobal('GadgetAddMessage') +end + +function widget:TextCommand(command) + if string.sub(command,1, 11) == "addmessage " then + addMessage(string.sub(command, 11)) + end +end + +function widget:GetConfigData(data) + for i, _ in ipairs(messageLines) do + messageLines[i][6] = nil + end + savedTable = {} + savedTable.messageLines = messageLines + return savedTable +end + +function widget:SetConfigData(data) + if Spring.GetGameFrame() > 0 and data.messageLines ~= nil then + messageLines = data.messageLines + currentLine = #messageLines + currentTypewriterLine = currentLine + dataRestored = true + end +end diff --git a/LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua b/LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua index 595320f0f..40dbaf92f 100644 --- a/LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua +++ b/LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua @@ -397,9 +397,11 @@ function widget:MouseMove(x, y) if draggingSlider == 'musicvolume' then changeMusicVolume(getSliderValue('musicvolume', x) * 100) fadelvl = getSliderValue('musicvolume', x) + --Spring.Echo("Music volume set to: " .. (getSliderValue('musicvolume', x) * 100)) end if draggingSlider == 'volume' then changeVolume(getSliderValue('volume', x) * 100) + --Spring.Echo("Global volume set to: " .. changeVolume(getSliderValue('volume', x) * 100)) end end end @@ -414,7 +416,7 @@ end function changeMusicVolume(value) music_volume = value - Spring.SetConfigInt("snd_volmusic", music_volume * 0.25) + Spring.SetConfigInt("snd_volmusic", music_volume) createList() end diff --git a/LuaUI/Widgets_Evo/gui_musicPlayer_Traditional.lua b/LuaUI/Widgets_Evo/gui_musicPlayer_Traditional.lua new file mode 100644 index 000000000..a779c4782 --- /dev/null +++ b/LuaUI/Widgets_Evo/gui_musicPlayer_Traditional.lua @@ -0,0 +1,687 @@ +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- +-- +-- file: gui_musicPlayer_traditional.lua +-- brief: yay music +-- author: cake +-- +-- Copyright (C) 2007. +-- Licensed under the terms of the GNU GPL, v2 or later. +-- +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +function widget:GetInfo() + return { + name = "Music Player (Traditional)", + desc = "Plays music and offers volume controls", + author = "Forboding Angel, Floris, Damgam", + date = "november 2016", + license = "GNU GPL, v2 or later", + layer = -4, + enabled = false -- loaded by default? + } +end + +local pauseWhenPaused = false + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +-- Unfucked volumes finally. Instead of setting the volume in Spring.PlaySoundStream. you need to call Spring.PlaySoundStream and then immediately call Spring.SetSoundStreamVolume +-- This widget desperately needs to be reorganized + +local buttons = {} + +local previousTrack = '' +local curTrack = "no name" + +local peaceTracks = VFS.DirList('luaui/Widgets_Evo/music/peace', '*.ogg') +local warTracks = VFS.DirList('luaui/Widgets_Evo/music/war', '*.ogg') + +--We check to make sure that we can function properly without crashing due to missing music tracks +local next = next +if next(peaceTracks) == nil then + Spring.Echo("[Music Player] No Peace tracks were found (you must have at least 2)! Add some and try again!") + return false +end + +if next(warTracks) == nil then + Spring.Echo("[Music Player] No War tracks were found (you must have at least 2)! Add some and try again!") + return false +end + +local tracks = peaceTracks + +local charactersInPath = 24 + +local firstTime = false +local wasPaused = false +local firstFade = true +local gameOver = false +local playing = true + +local vsx, vsy = widgetHandler:GetViewSizes() + +local playTex = ":n:"..LUAUI_DIRNAME.."Images/music/play.png" +local pauseTex = ":n:"..LUAUI_DIRNAME.."Images/music/pause.png" +local nextTex = ":n:"..LUAUI_DIRNAME.."Images/music/next.png" +local musicTex = ":n:"..LUAUI_DIRNAME.."Images/music/music.png" +local volumeTex = ":n:"..LUAUI_DIRNAME.."Images/music/volume.png" +local buttonTex = ":n:"..LUAUI_DIRNAME.."Images/button.dds" +local buttonHighlightTex = ":n:"..LUAUI_DIRNAME.."Images/button-highlight.dds" +local bgcorner = ":n:"..LUAUI_DIRNAME.."Images/bgcorner.png" + +local widgetScale = 1 +local glText = gl.Text +local glGetTextWidth = gl.GetTextWidth +local glBlending = gl.Blending +local glScale = gl.Scale +local glRotate = gl.Rotate +local glTranslate = gl.Translate +local glPushMatrix = gl.PushMatrix +local glPopMatrix = gl.PopMatrix +local glColor = gl.Color +local glRect = gl.Rect +local glTexRect = gl.TexRect +local glTexture = gl.Texture +local glCreateList = gl.CreateList +local glDeleteList = gl.DeleteList +local glCallList = gl.CallList + +local drawlist = {} +local advplayerlistPos = {} +local widgetHeight = 23 +local top, left, bottom, right = 0,0,0,0 + +local shown = false +local mouseover = false +local volume + +local dynamicMusic = Spring.GetConfigInt("evo_dynamicmusic", 1) +local interruptMusic = Spring.GetConfigInt("evo_interruptmusic", 1) +local warMeter = 0 +local fadelvl = Spring.GetConfigInt("snd_volmusic", 20) * 0.01 +local fadeOut = false + +--Assume that if it isn't set, dynamic music is true +if dynamicMusic == nil then + dynamicMusic = 1 +end + +--Assume that if it isn't set, interrupt music is true +if interruptMusic == nil then + interruptMusic = 1 +end +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + +function widget:Initialize() + + volume = Spring.GetConfigInt("snd_volmaster", 100) + music_volume_percentage = Spring.GetConfigInt("snd_volmusic", 20) * 0.01 + + musicInitialValue = Spring.GetConfigInt("evo_musicInitialValue", 0) + if musicInitialValue ~= 1 then + Spring.SetConfigInt("snd_volmusic", 20) + Spring.SetConfigInt("evo_musicInitialValue", 1) + end + + music_volume = Spring.GetConfigInt("snd_volmusic", 20) + + if #tracks == 0 then + Spring.Echo("[Music Player] No music was found, Shutting Down") + widgetHandler:RemoveWidget() + end + + updatePosition() + + WG['music'] = {} + WG['music'].GetPosition = function() + return {top,left,bottom,right,widgetScale} + end +end + + +local function DrawRectRound(px,py,sx,sy,cs) + gl.TexCoord(0.8,0.8) + gl.Vertex(px+cs, py, 0) + gl.Vertex(sx-cs, py, 0) + gl.Vertex(sx-cs, sy, 0) + gl.Vertex(px+cs, sy, 0) + + gl.Vertex(px, py+cs, 0) + gl.Vertex(px+cs, py+cs, 0) + gl.Vertex(px+cs, sy-cs, 0) + gl.Vertex(px, sy-cs, 0) + + gl.Vertex(sx, py+cs, 0) + gl.Vertex(sx-cs, py+cs, 0) + gl.Vertex(sx-cs, sy-cs, 0) + gl.Vertex(sx, sy-cs, 0) + + local offset = 0.05 -- texture offset, because else gaps could show + local o = offset + + -- top left + if py <= 0 or px <= 0 then o = 0.5 else o = offset end + gl.TexCoord(o,o) + gl.Vertex(px, py, 0) + gl.TexCoord(o,1-o) + gl.Vertex(px+cs, py, 0) + gl.TexCoord(1-o,1-o) + gl.Vertex(px+cs, py+cs, 0) + gl.TexCoord(1-o,o) + gl.Vertex(px, py+cs, 0) + -- top right + if py <= 0 or sx >= vsx then o = 0.5 else o = offset end + gl.TexCoord(o,o) + gl.Vertex(sx, py, 0) + gl.TexCoord(o,1-o) + gl.Vertex(sx-cs, py, 0) + gl.TexCoord(1-o,1-o) + gl.Vertex(sx-cs, py+cs, 0) + gl.TexCoord(1-o,o) + gl.Vertex(sx, py+cs, 0) + -- bottom left + if sy >= vsy or px <= 0 then o = 0.5 else o = offset end + gl.TexCoord(o,o) + gl.Vertex(px, sy, 0) + gl.TexCoord(o,1-o) + gl.Vertex(px+cs, sy, 0) + gl.TexCoord(1-o,1-o) + gl.Vertex(px+cs, sy-cs, 0) + gl.TexCoord(1-o,o) + gl.Vertex(px, sy-cs, 0) + -- bottom right + if sy >= vsy or sx >= vsx then o = 0.5 else o = offset end + gl.TexCoord(o,o) + gl.Vertex(sx, sy, 0) + gl.TexCoord(o,1-o) + gl.Vertex(sx-cs, sy, 0) + gl.TexCoord(1-o,1-o) + gl.Vertex(sx-cs, sy-cs, 0) + gl.TexCoord(1-o,o) + gl.Vertex(sx, sy-cs, 0) +end + +function RectRound(px,py,sx,sy,cs) + local px,py,sx,sy,cs = math.floor(px),math.floor(py),math.ceil(sx),math.ceil(sy),math.floor(cs) + + gl.Texture(bgcorner) + gl.BeginEnd(GL.QUADS, DrawRectRound, px,py,sx,sy,cs) + gl.Texture(false) +end + +local function createList() + + local padding = 3*widgetScale -- button background margin + local padding2 = 2.5*widgetScale -- inner icon padding + local volumeWidth = 50*widgetScale + + buttons['playpause'] = {left+padding, bottom+padding, left+(widgetHeight*widgetScale)-padding, top-padding} + + buttons['next'] = {buttons['playpause'][3]+padding, bottom+padding, buttons['playpause'][3]+((widgetHeight*widgetScale)-padding), top-padding} + + buttons['musicvolumeicon'] = {buttons['next'][3]+padding+padding, bottom+padding, buttons['next'][3]+((widgetHeight*widgetScale)), top-padding} + buttons['musicvolume'] = {buttons['musicvolumeicon'][3]+padding, bottom+padding, buttons['musicvolumeicon'][3]+padding+volumeWidth, top-padding} + buttons['musicvolume'][5] = buttons['musicvolume'][1] + (buttons['musicvolume'][3] - buttons['musicvolume'][1]) * (music_volume/100) + + buttons['volumeicon'] = {buttons['musicvolume'][3]+padding+padding+padding, bottom+padding, buttons['musicvolume'][3]+((widgetHeight*widgetScale)), top-padding} + buttons['volume'] = {buttons['volumeicon'][3]+padding, bottom+padding, buttons['volumeicon'][3]+padding+volumeWidth, top-padding} + buttons['volume'][5] = buttons['volume'][1] + (buttons['volume'][3] - buttons['volume'][1]) * (volume/100) + + local textsize = 11*widgetScale + local textYPadding = 8*widgetScale + local textXPadding = 7*widgetScale + local maxTextWidth = right-buttons['next'][3]-textXPadding-textXPadding + + if drawlist[1] ~= nil then + glDeleteList(drawlist[1]) + glDeleteList(drawlist[2]) + glDeleteList(drawlist[3]) + end + if (WG['guishader_api'] ~= nil) then + WG['guishader_api'].InsertRect(left, bottom, right, top,'music') + end + drawlist[1] = glCreateList( function() + glColor(0, 0, 0, 0.66) + RectRound(left, bottom, right, top, 5.5*widgetScale) + + local borderPadding = 2.75*widgetScale + glColor(1,1,1,0.022) + RectRound(left+borderPadding, bottom+borderPadding, right-borderPadding, top-borderPadding, 4.4*widgetScale) + + end) + drawlist[2] = glCreateList( function() + + local button = 'playpause' + glColor(1,1,1,0.7) + glTexture(buttonTex) + glTexRect(buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]) + glColor(1,1,1,0.4) + if playing then + glTexture(pauseTex) + else + glTexture(playTex) + end + glTexRect(buttons[button][1]+padding2, buttons[button][2]+padding2, buttons[button][3]-padding2, buttons[button][4]-padding2) + + button = 'next' + glColor(1,1,1,0.7) + glTexture(buttonTex) + glTexRect(buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]) + glColor(1,1,1,0.4) + glTexture(nextTex) + glTexRect(buttons[button][1]+padding2, buttons[button][2]+padding2, buttons[button][3]-padding2, buttons[button][4]-padding2) + + end) + drawlist[3] = glCreateList( function() + + -- track name + glColor(0.45,0.45,0.45,1) + local trackname = string.gsub(curTrack, ".ogg", "") + local text = '' + for i=charactersInPath, #trackname do + local c = string.sub(trackname, i,i) + local width = glGetTextWidth(text..c)*textsize + if width > maxTextWidth then + break + else + text = text..c + end + end + glText('\255\135\135\135'..text, buttons['next'][3]+textXPadding, bottom+textYPadding, textsize, 'no') + + end) + drawlist[4] = glCreateList( function() + + ---glColor(0,0,0,0.5) + --RectRound(left, bottom, right, top, 5.5*widgetScale) + + local sliderWidth = 3.3*widgetScale + local sliderHeight = 3.3*widgetScale + local lineHeight = 0.8*widgetScale + local lineOutlineSize = 0.85*widgetScale + + button = 'musicvolumeicon' + local sliderY = buttons[button][2] + (buttons[button][4] - buttons[button][2])/2 + glColor(0.66,0.66,0.66,1) + glTexture(musicTex) + glTexRect(buttons[button][1]+padding2, buttons[button][2]+padding2, buttons[button][3]-padding2, buttons[button][4]-padding2) + + button = 'musicvolume' + glColor(0,0,0,0.12) + RectRound(buttons[button][1]-lineOutlineSize, sliderY-lineHeight-lineOutlineSize, buttons[button][3]+lineOutlineSize, sliderY+lineHeight+lineOutlineSize, (lineHeight/2.2)*widgetScale) + glColor(0.45,0.45,0.45,1) + RectRound(buttons[button][1], sliderY-lineHeight, buttons[button][3], sliderY+lineHeight, (lineHeight/2.2)*widgetScale) + glColor(0,0,0,0.12) + RectRound(buttons[button][5]-sliderWidth-lineOutlineSize, sliderY-sliderHeight-lineOutlineSize, buttons[button][5]+sliderWidth+lineOutlineSize, sliderY+sliderHeight+lineOutlineSize, (sliderWidth/4)*widgetScale) + glColor(0.66,0.66,0.66,1) + RectRound(buttons[button][5]-sliderWidth, sliderY-sliderHeight, buttons[button][5]+sliderWidth, sliderY+sliderHeight, (sliderWidth/4)*widgetScale) + + + button = 'volumeicon' + glColor(0.66,0.66,0.66,1) + glTexture(volumeTex) + glTexRect(buttons[button][1]+padding2, buttons[button][2]+padding2, buttons[button][3]-padding2, buttons[button][4]-padding2) + + button = 'volume' + glColor(0,0,0,0.12) + RectRound(buttons[button][1]-lineOutlineSize, sliderY-lineHeight-lineOutlineSize, buttons[button][3]+lineOutlineSize, sliderY+lineHeight+lineOutlineSize, (lineHeight/2.2)*widgetScale) + glColor(0.45,0.45,0.45,1) + RectRound(buttons[button][1], sliderY-lineHeight, buttons[button][3], sliderY+lineHeight, (lineHeight/2.2)*widgetScale) + glColor(0,0,0,0.12) + RectRound(buttons[button][5]-sliderWidth-lineOutlineSize, sliderY-sliderHeight-lineOutlineSize, buttons[button][5]+sliderWidth+lineOutlineSize, sliderY+sliderHeight+lineOutlineSize, (sliderWidth/4)*widgetScale) + glColor(0.66,0.66,0.66,1) + RectRound(buttons[button][5]-sliderWidth, sliderY-sliderHeight, buttons[button][5]+sliderWidth, sliderY+sliderHeight, (sliderWidth/4)*widgetScale) + + end) +end + +function getSliderValue(draggingSlider, x) + local sliderWidth = buttons[draggingSlider][3] - buttons[draggingSlider][1] + local value = (x - buttons[draggingSlider][1]) / (sliderWidth) + if value < 0 then value = 0 end + if value > 1 then value = 1 end + return value +end + +function isInBox(mx, my, box) + return mx > box[1] and my > box[2] and mx < box[3] and my < box[4] +end + + +function widget:MouseMove(x, y) + if draggingSlider ~= nil then + if draggingSlider == 'musicvolume' then + changeMusicVolume(getSliderValue('musicvolume', x) * 100) + end + if draggingSlider == 'volume' then + changeVolume(getSliderValue('volume', x) * 100) + end + end +end + +function widget:MousePress(x, y, button) + return mouseEvent(x, y, button, false) +end + +function widget:MouseRelease(x, y, button) + return mouseEvent(x, y, button, true) +end + +function changeMusicVolume(value) + music_volume = value + Spring.SetConfigInt("snd_volmusic", music_volume) + createList() +end + +function changeVolume(value) + volume = value + Spring.SetConfigInt("snd_volmaster", volume) + createList() +end + +function mouseEvent(x, y, button, release) + if Spring.IsGUIHidden() then return false end + + if not release then + local sliderWidth = (3.3*widgetScale) -- should be same as in createlist() + local button = 'musicvolume' + if isInBox(x, y, {buttons[button][1]-sliderWidth, buttons[button][2], buttons[button][3]+sliderWidth, buttons[button][4]}) then + draggingSlider = button + changeMusicVolume(getSliderValue(button, x) * 100) + end + button = 'volume' + if isInBox(x, y, {buttons[button][1]-sliderWidth, buttons[button][2], buttons[button][3]+sliderWidth, buttons[button][4]}) then + draggingSlider = button + changeVolume(getSliderValue(button, x) * 100) + end + end + if release and draggingSlider ~= nil then + draggingSlider = nil + end + if button == 1 and not release and isInBox(x, y, {left, bottom, right, top}) then + if button == 1 and buttons['playpause'] ~= nil and isInBox(x, y, {buttons['playpause'][1], buttons['playpause'][2], buttons['playpause'][3], buttons['playpause'][4]}) then + playing = not playing + Spring.PauseSoundStream() + createList() + return true + end + if button == 1 and buttons['next'] ~= nil and isInBox(x, y, {buttons['next'][1], buttons['next'][2], buttons['next'][3], buttons['next'][4]}) then + if fadeIn ~= true and fadeOut ~= true then + fadeOut = true + fadelvl = music_volume_percentage + --PlayNewTrack() + end + return true + end + return true + end + +end +function widget:IsAbove(mx, my) + if isInBox(mx, my, {left, bottom, right, top}) then + local curVolume = Spring.GetConfigInt("snd_volmaster", 100) + if volume ~= curVolume then + volume = curVolume + createList() + end + mouseover = true + end + return mouseover +end + +function widget:GetTooltip(mx, my) + if widget:IsAbove(mx,my) then + return string.format("Music info and controls") + end +end + +function widget:Shutdown() + Spring.StopSoundStream() + + if (WG['guishader_api'] ~= nil) then + WG['guishader_api'].RemoveRect('music') + end + + for i=1,#drawlist do + glDeleteList(drawlist[i]) + end + WG['music'] = nil +end + +function widget:UnitDamaged(_, _, _, damage) + warMeter = warMeter + damage +end + +function widget:GameFrame(n) + if n%30 == 4 then + --This is a little messy, but we need to be able to update these values on the fly so I see no better way + music_volume_percentage = Spring.GetConfigInt("snd_volmusic", 20) * 0.01 + + dynamicMusic = Spring.GetConfigInt("evo_dynamicmusic", 1) + interruptMusic = Spring.GetConfigInt("evo_interruptmusic", 1) + + --Assume that if it isn't set, dynamic music is true + if dynamicMusic == nil then + dynamicMusic = 1 + end + + --Assume that if it isn't set, interrupt music is true + if interruptMusic == nil then + interruptMusic = 1 + end + end + if n%5 == 4 then + if dynamicMusic == 1 then + --Spring.Echo("[Music Player] Unit Death Count is currently: ".. warMeter) + if warMeter <= 1 then + warMeter = 0 + elseif warMeter >= 3000 then + warMeter = warMeter - 500 + elseif warMeter >= 1000 then + warMeter = warMeter - 100 + elseif warMeter >= 0 then + warMeter = warMeter - 3 + end + if interruptMusic == 1 then + if tracks == peaceTracks and warMeter >= 200 then + fadeOut = true + elseif tracks == warTracks and warMeter <= 0 then + fadeOut = true + end + end + end + + --80's fadeout when a track is almost finished + local playedTime, totalTime = Spring.GetSoundStreamTime() + playedTime = math.floor(playedTime) + totalTime = math.floor(totalTime) + + if totalTime ~= nil then + --Spring.Echo("Total time is :" .. totalTime) + if playedTime > totalTime - music_volume * 0.05 then + --Spring.Echo("Fading out now!") + fadeOut = true + end + end + + --This has become the preferred handler of playing new tracks instead of calling the PlayNewTrack() function, set fadeOut = true + if fadeOut == true and fadelvl >= 0.01 then + fadelvl = fadelvl - 0.05 + --Spring.Echo(fadelvl) + Spring.SetSoundStreamVolume(fadelvl) + else + fadeOut = false + end + if fadeOut == false and fadelvl <= 0.005 then + fadelvl = music_volume_percentage * 0.01 + PlayNewTrack() + --Spring.Echo("Playing a new song now") + end + + if fadeIn == true and fadelvl <= music_volume_percentage then + fadelvl = fadelvl + 0.05 + --Spring.Echo(fadelvl) + Spring.SetSoundStreamVolume(fadelvl) + else + fadeIn = false + end + end +end + +function PlayNewTrack() + Spring.StopSoundStream() + if Spring.GetGameFrame() >= 1 then + fadelvl = 0 + fadeIn = true + end + --Spring.Echo(dynamicMusic) + + if dynamicMusic == 0 then + --Spring.Echo("Choosing a random track") + r = math.random(0,1) + if r == 0 then + tracks = peaceTracks + else + tracks = warTracks + end + end + + if dynamicMusic == 1 then + --Spring.Echo("Unit Death Count is (Gameframe): " .. warMeter) + if warMeter <= 3 then + tracks = peaceTracks + --Spring.Echo("Current tracklist is : Peace Tracks") + else + tracks = warTracks + --Spring.Echo("Current tracklist is : War Tracks") + end + end + local newTrack = previousTrack + repeat + newTrack = tracks[math.random(1, #tracks)] + until newTrack ~= previousTrack + firstFade = false + previousTrack = newTrack + curTrack = newTrack + local musicVolScaled = music_volume * 0.01 + Spring.PlaySoundStream(newTrack) + Spring.SetSoundStreamVolume(musicVolScaled or 0.33) + if playing == false then + Spring.PauseSoundStream() + end + createList() +end + +function widget:Update(dt) + if gameOver then + return + end + + if (not firstTime) then + fadelvl = 0 + fadeOut = true + firstTime = true -- pop this cherry + end + + local playedTime, totalTime = Spring.GetSoundStreamTime() + playedTime = math.floor(playedTime) + totalTime = math.floor(totalTime) + + if playedTime >= totalTime then -- both zero means track stopped in 8 + fadelvl = 0 + fadeOut = true + end + + if (pauseWhenPaused and Spring.GetGameSeconds()>=0) then + local _, _, paused = Spring.GetGameSpeed() + if (paused ~= wasPaused) then + Spring.PauseSoundStream() + wasPaused = paused + end + end +end + +function updatePosition(force) + if (WG['advplayerlist_api'] ~= nil) then + local prevPos = advplayerlistPos + advplayerlistPos = WG['advplayerlist_api'].GetPosition() -- returns {top,left,bottom,right,widgetScale} + + left = advplayerlistPos[2] + bottom = advplayerlistPos[1] + right = advplayerlistPos[4] + top = advplayerlistPos[1]+(widgetHeight*advplayerlistPos[5]) + widgetScale = advplayerlistPos[5] + + if (prevPos[1] == nil or prevPos[1] ~= advplayerlistPos[1] or prevPos[2] ~= advplayerlistPos[2] or prevPos[5] ~= advplayerlistPos[5]) or force then + createList() + end + end +end + +function widget:ViewResize(newX,newY) + vsx, vsy = newX, newY +end + +function widget:DrawScreen() + updatePosition() + if drawlist[1] ~= nil then + glPushMatrix() + glCallList(drawlist[1]) + glCallList(drawlist[2]) + local mx, my, mlb = Spring.GetMouseState() + if not mouseover and not draggingSlider or isInBox(mx, my, {buttons['playpause'][1], buttons['next'][2], buttons['next'][3], buttons['next'][4]}) then + glCallList(drawlist[3]) + else + glCallList(drawlist[4]) + end + if mouseover then + local color = {1,1,1,0.25} + local colorHighlight = {1,1,1,0.33} + local button = 'playpause' + if buttons[button] ~= nil and isInBox(mx, my, {buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]}) then + if mlb then + glColor(colorHighlight) + else + glColor(color) + end + glTexture(buttonHighlightTex) + glTexRect(buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]) + end + button = 'next' + if buttons[button] ~= nil and isInBox(mx, my, {buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]}) then + if mlb then + glColor(colorHighlight) + else + glColor(color) + end + glTexture(buttonHighlightTex) + glTexRect(buttons[button][1], buttons[button][2], buttons[button][3], buttons[button][4]) + end + end + glPopMatrix() + mouseover = false + end +end + +function widget:GetConfigData(data) + --local playedTime, totalTime = Spring.GetSoundStreamTime() + local savedTable = {} + --savedTable.curTrack = curTrack + --savedTable.playedTime = playedTime + savedTable.playing = playing + return savedTable +end + +-- would be great if there is be a way to continue track where we left off after a /luaui reload +function widget:SetConfigData(data) + if data.playing ~= nil then + playing = data.playing + end +end + +-------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/LuaUI/Widgets_Evo/gui_options.lua b/LuaUI/Widgets_Evo/gui_options.lua index 7b157f9be..e5a0ee57c 100644 --- a/LuaUI/Widgets_Evo/gui_options.lua +++ b/LuaUI/Widgets_Evo/gui_options.lua @@ -151,7 +151,7 @@ local presets = { enemyspotter_highlight = false, }, low = { - msaa = 0, + msaa = 2, bloom = false, bloomhighlights = false, ssao = false, @@ -178,7 +178,7 @@ local presets = { enemyspotter_highlight = false, }, medium = { - msaa = 2, + msaa = 4, bloom = true, bloomhighlights = false, ssao = false, @@ -196,7 +196,7 @@ local presets = { timecyclesweathereffects = false, outline = false, guishader = false, - shadows = false, + shadows = true, advmapshading = true, advmodelshading = true, decals = 1, @@ -205,7 +205,7 @@ local presets = { enemyspotter_highlight = false, }, high = { - msaa = 4, + msaa = 8, bloom = true, bloomhighlights = false, ssao = true, @@ -232,7 +232,7 @@ local presets = { enemyspotter_highlight = false, }, ultra = { - msaa = 8, + msaa = 16, bloom = true, bloomhighlights = true, ssao = true, @@ -2218,7 +2218,7 @@ function init() {id="borderless", group="gfx", name="Borderless window", type="bool", value=tonumber(Spring.GetConfigInt("WindowBorderless",1) or 1) == 1, description="Changes will be applied next game.\n\n(dont forget to turn off the \'fullscreen\' option next game)"}, {id="windowpos", group="gfx", widget="Move Window Position", name="Move window position", type="bool", value=GetWidgetToggleValue("Move Window Position"), description='Toggle and move window position with the arrow keys or by dragging'}, {id="vsync", group="gfx", name="V-sync", type="bool", value=tonumber(Spring.GetConfigInt("VSync",1) or 1) == 1, description=''}, - {id="msaa", group="gfx", name="Anti Aliasing", type="slider", steps={0,1,2,4}, restart=true, value=tonumber(Spring.GetConfigInt("MSAALevel",1) or 2), description='Enables multisample anti-aliasing. NOTE: Can be expensive!\n\nChanges will be applied next game'}, + {id="msaa", group="gfx", name="Anti Aliasing", type="slider", steps={0,1,2,4,8,16}, restart=true, value=tonumber(Spring.GetConfigInt("MSAALevel",1) or 8), description='Enables multisample anti-aliasing. NOTE: Can be expensive!\n\nChanges will be applied next game'}, {id="advmapshading", group="gfx", name="Advanced map shading", type="bool", value=tonumber(Spring.GetConfigInt("AdvMapShading",1) or 1) == 1, description='When disabled: map shadows aren\'t rendered as well'}, {id="advmodelshading", group="gfx", name="Advanced model shading", type="bool", value=tonumber(Spring.GetConfigInt("AdvModelShading",1) or 1) == 1}, {id="advsky", group="gfx", name="Advanced sky", type="bool", restart=true, value=tonumber(Spring.GetConfigInt("AdvSky",1) or 1) == 1, description='Enables high resolution clouds\n\nChanges will be applied next game'}, @@ -2290,7 +2290,7 @@ function init() {id="xrayshader", group="gfx", widget="XrayShader", name="Unit xray shader", type="bool", value=GetWidgetToggleValue("XrayShader"), description='Highlights all units, highlight effect dissolves on close camera range.\n\nFades out and disables at low fps\nWorks less on dark teamcolors'}, {id="particles", group="gfx", name="Max particles", type="slider", min=5000, max=25000, step=500, value=tonumber(Spring.GetConfigInt("MaxParticles",1) or 10000), description='Particles used for explosions, smoke, fire and missiletrails\n\nSetting a low value will mean that various effects wont show properly'}, - {id="nanoparticles", group="gfx", name="Max nano particles", type="slider", min=500, max=5000, step=100, value=tonumber(Spring.GetConfigInt("MaxNanoParticles",1) or 500), description='NOTE: Nano particles are more expensive regarding the CPU'}, + {id="nanoparticles", group="gfx", name="Max nano particles", type="slider", min=0, max=5000, step=100, value=tonumber(Spring.GetConfigInt("MaxNanoParticles",1) or 500), description='NOTE: Nano particles are more expensive regarding the CPU'}, --{id="treeradius", group="gfx", name="Tree render distance", type="slider", restart=true, min=0, max=2000, step=50, value=tonumber(Spring.GetConfigInt("TreeRadius",1) or 1000), description='Applies to SpringRTS engine default trees\n\nChanges will be applied next game'}, @@ -2509,9 +2509,9 @@ function init() if tonumber(Spring.GetConfigInt("FSAALevel",0)) > 0 then local fsaa = tonumber(Spring.GetConfigInt("FSAALevel",0)) if fsaa > 4 then - fsaa = 4 + fsaa = 8 end - Spring.SetConfigInt("MSAALevel", fsaa) + Spring.SetConfigInt("MSAALevel", 8) Spring.SetConfigInt("FSAALevel", 0) end @@ -2849,10 +2849,6 @@ function widget:Initialize() if Spring.GetConfigInt("GrassDetail",0) ~= 0 then Spring.SetConfigInt("GrassDetail",0) end - -- limit MSAA - if Spring.GetConfigInt("MSAALevel",0) > 4 then - Spring.SetConfigInt("MSAALevel",4) - end --if Platform ~= nil and Platform.gpuVendor ~= 'Nvidia' then -- because UsePBO displays tiled map texture bug for ATI/AMD cards --Spring.SetConfigInt("UsePBO",0) @@ -2865,7 +2861,7 @@ function widget:Initialize() --end -- set lowest quality shadows for Intel GPU (they eat fps but dont really show, but without any shadows enables it looks glitchy) if Platform ~= nil and Platform.gpuVendor == 'Intel' then - Spring.SendCommands("Shadows 1 1000") + Spring.SendCommands("Shadows 1 1024") end -- set custom user map sun position diff --git a/LuaUI/Widgets_Evo/gui_player_color_palette.lua b/LuaUI/Widgets_Evo/gui_player_color_palette.lua deleted file mode 100644 index e879df43a..000000000 --- a/LuaUI/Widgets_Evo/gui_player_color_palette.lua +++ /dev/null @@ -1,276 +0,0 @@ -function widget:GetInfo() - return { - name = "Player Color Palette", - desc = "Applies an evenly distributed color palette among players. Toggle randomized colors with", - author = "Floris", - date = "March 2017", - license = "GPL v2", - layer = -10001, - enabled = true, - handler = true, - } -end - -local randomize = false -- randomize player colors -local offsetstartcolor = true -- when false it will always use red as start color, when true it starts with an offset towards center of rgb hue palette more in effect with small playernumbers -local useSameTeamColors = false - -local GaiaTeam = Spring.GetGaiaTeamID() -local GaiaTeamColor = {255,0,0 } - -local myTeamID = Spring.GetMyTeamID() - -local singleTeams = false -if #Spring.GetTeamList()-1 == #Spring.GetAllyTeamList()-1 then - singleTeams = true -end - --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- - -local function hue2rgb(p, q, t) - if (t < 0) then t = t + 1 end - if (t > 1) then t = t - 1 end - if (t < 1/6) then return p + (q - p) * 6 * t end - if (t < 1/2) then return q end - if (t < 2/3) then return p + (q - p) * (2/3 - t) * 6 end - return p -end - -local function hslToRgb(h, s, l) - local r, g, b - if s == 0 then - r = l - g = l - b = l - else - local q = l + s - l * s - if l < 0.5 then - q = l * (1 + s) - end - local p = 2 * l - q - r = hue2rgb(p, q, h + 1/3) - g = hue2rgb(p, q, h) - b = hue2rgb(p, q, h - 1/3) - end - return r,g,b -end - -local function GetColor(i, teams) - local s = 1 - local l = 0.53 - local h = 0 - --if i > (teams * 0.33) then l = 0.7 end - --if i > (teams * 0.66) then l = 0.3 end - if teams > 16 then - if i%4==0 then - l = 0.88 - end - if i%4==1 then - l = 0.46 - end - - if i%4==2 then - l = 0.7 - end - if i%4==3 then - l = 0.32 - end - elseif teams > 10 then - if i%2==0 then - l = 0.78 - end - if i%2==1 then - l = 0.44 - end - else - if teams > 6 then - if i%2==0 then - l = 0.77 - end - if i%2==1 then - l = 0.42 - end - end - end - - local r,g,b = 0,0,0 - local hueteams = teams - local useHueRGB = true - if teams > 7 then - hueteams = hueteams - 1 - if i == teams then - r,g,b = 0.5, 0.5, 0.5 - useHueRGB = false - end - end - if teams > 11 then - hueteams = hueteams - 1 - if i == teams-1 then - r,g,b = 0.9, 0.9, 0.9 - useHueRGB = false - end - end - if teams > 19 then - hueteams = hueteams - 1 - if i == teams-2 then - r,g,b = 0.15, 0.15, 0.15 - useHueRGB = false - end - end - - if useHueRGB then - local offset = 0 - if offsetstartcolor then - offset = 1 / (hueteams*6) - end - h = ((i-1)/(hueteams*(1.035+offset))) + offset - r,g,b = hslToRgb(h, s, l) -- teams *1.1 so last teamcolor isnt very similar to first teamcolor - end - return r,g,b -end - -local colorOrder = {} -local function GetShuffledNumber(i, numteams) - local n - while true do - n = math.floor((math.random() * numteams) + 1.5) - if colorOrder[n] == nil then - colorOrder[n] = i - return n - end - end -end - -local function SetNewTeamColors() - local allyTeamList = Spring.GetAllyTeamList() - local numteams = #Spring.GetTeamList() - 1 -- minus gaia - local numallyteams = #Spring.GetAllyTeamList() - 1 -- minus gaia - - colorOrder = {} - local i = 0 - local r,g,b - for _, allyID in ipairs(allyTeamList) do - if useSameTeamColors then - i = i + 1 - end - for _, teamID in ipairs(Spring.GetTeamList(allyID)) do - if teamID == GaiaTeam then - Spring.SetTeamColor(teamID, GaiaTeamColor[1],GaiaTeamColor[2],GaiaTeamColor[3]) - else - if not useSameTeamColors then - if randomize then - i = GetShuffledNumber(i, numteams) - else - i = i + 1 - end - r,g,b = GetColor(i, numteams) - else - if singleTeams then - r,g,b = GetColor(i, numallyteams) - elseif teamID == myTeamID then - r,g,b = GetColor(i, numallyteams) - r = (r * 1.25) + 0.3 - g = (g * 1.25) + 0.3 - b = (b * 1.25) + 0.3 - else - r,g,b = GetColor(i, numallyteams) - r = r * 0.9 - g = g * 0.9 - b = b * 0.9 - end - end - - local _, playerID = Spring.GetTeamInfo(teamID) - local name = playerID and Spring.GetPlayerInfo(playerID) or 'noname' - Spring.SetTeamColor(teamID, r,g,b) - end - end - end -end - -local function ResetOldTeamColors() - for _,team in ipairs(Spring.GetTeamList()) do - Spring.SetTeamColor(team,Spring.GetTeamOrigColor(team)) - end -end - --- cause several widgets are still using old colors -function reloadWidgets() - if not useSameTeamColors then - if widgetHandler.orderList["Ecostats"] ~= 0 then - widgetHandler:DisableWidget("Ecostats") - widgetHandler:EnableWidget("Ecostats") - end - end -end - -function ordercolors(_,_,params) - local oldRandomize = randomize - randomize = false - if oldRandomize == randomize then - Spring.Echo("Player Color Palette: Player colors are already ordered by hue") - else - SetNewTeamColors() - reloadWidgets() - end -end - -function shufflecolors(_,_,params) - randomize = true - SetNewTeamColors() - reloadWidgets() -end - - -function widget:Update(dt) - if useSameTeamColors and myTeamID ~= Spring.GetMyTeamID() then - myTeamID = Spring.GetMyTeamID() - SetNewTeamColors() - reloadWidgets() - end -end - - -function widget:Initialize() - WG['playercolorpalette'] = {} - WG['playercolorpalette'].getRandomize = function() - return randomize - end - WG['playercolorpalette'].setRandomize = function(value) - randomize = value - SetNewTeamColors() - end - WG['playercolorpalette'].getSameTeamColors = function() - return useSameTeamColors - end - WG['playercolorpalette'].setSameTeamColors = function(value) - useSameTeamColors = value - SetNewTeamColors() - reloadWidgets() - end - - SetNewTeamColors() -end - -function widget:Shutdown() - ResetOldTeamColors() - WG['playercolorpalette'] = nil -end - - -function widget:GetConfigData(data) - savedTable = {} - savedTable.randomize = randomize - savedTable.useSameTeamColors = useSameTeamColors - return savedTable -end - -function widget:SetConfigData(data) - if data.randomize ~= nil then - randomize = data.randomize - end - if data.useSameTeamColors ~= nil then - useSameTeamColors = data.useSameTeamColors - end -end diff --git a/LuaUI/Widgets_Evo/gui_resourceBar.lua b/LuaUI/Widgets_Evo/gui_resourceBar.lua index 99886feda..a1eef5f0a 100644 --- a/LuaUI/Widgets_Evo/gui_resourceBar.lua +++ b/LuaUI/Widgets_Evo/gui_resourceBar.lua @@ -41,7 +41,7 @@ local maxBasicIncome = Spring.GetModOptions().maxbasicincome or 15 -- resource bars: ON means the bars show percentage, OFF means they simply change color depending on state local progressBars = true -local maxSupply = tonumber(Spring.GetModOptions().supplycap) or 400 +local maxSupply = tonumber(Spring.GetModOptions().supplycap) or 1000000 -- internal settings, do not touch local white = "\255\255\255\255" @@ -521,9 +521,12 @@ function generateDisplayList2() supplyAvailableColor = green end - supplyStr = supplyUsedColor .. su .. white .. "/" .. supplyAvailableColor .. sm .. " " + supplyStr = supplyUsedColor .. su .. white .. "/" .. supplyAvailableColor .. "∞" .. " " + --supplyStr = supplyUsedColor .. su .. white .. "/" .. supplyAvailableColor .. sm .. " " + else - supplyStr = white .. su .. "/" .. sm .. " (" .. orange .. "±" .. tostring(sm - su) .. white .. "/" .. green .. maxSupply .. white .. ") " + supplyStr = white .. su .. "/" .. "∞" .. " (" .. orange .. "±" .. tostring(sm - su) .. white .. "/" .. green .. "∞" .. white .. ") " + --supplyStr = white .. su .. "/" .. sm .. " (" .. orange .. "±" .. tostring(sm - su) .. white .. "/" .. green .. maxSupply .. white .. ") " end font2:Begin() font2:Print(supplyStr, supplyOffset+supplyBarWidth, textOffsetY, FontSize, "onr") diff --git a/LuaUI/Widgets_Evo/gui_startradius.lua b/LuaUI/Widgets_Evo/gui_startradius.lua index f4ba2e291..adf2aa91c 100644 --- a/LuaUI/Widgets_Evo/gui_startradius.lua +++ b/LuaUI/Widgets_Evo/gui_startradius.lua @@ -79,13 +79,13 @@ local function DrawPoints() if (sx == sxin and sy == syin and sz == szin) then - DrawGroundCircle(sx, sy, sz, 1000, 128) + DrawGroundCircle(sx, sy, sz, 350, 128) count = count + 1 else - DrawGroundCircle(sx, sy, sz, 1000, 128) + DrawGroundCircle(sx, sy, sz, 350, 128) end diff --git a/LuaUI/Widgets_Evo/snd_ambientSoundPlayer.lua b/LuaUI/Widgets_Evo/snd_ambientSoundPlayer.lua index f474a12dd..7bf7a2ad1 100644 --- a/LuaUI/Widgets_Evo/snd_ambientSoundPlayer.lua +++ b/LuaUI/Widgets_Evo/snd_ambientSoundPlayer.lua @@ -35,38 +35,32 @@ function widget:GameFrame(n) myTeamID = Spring.GetMyTeamID() myFaction = Spring.GetTeamRulesParam(myTeamID, "faction", playerFaction) if myFaction == nil then - Spring.Echo("[Ambient Background Sound Player] If you're seeing this message that means that the code which sets the player's faction is absolutely fucked somewhere. On the next line I will echo the myFaction variable (It will be nil). If it says anything other than the factions listed in game_spawn.lua (it will), at least it will provide a clue. Additionally I will manually set the player faction to ateran so that it doesn't crash and burn. Happy bug hunting!") + Spring.Echo("[Ambient Background Sound Player] If you're seeing this message that means that the code which sets the player's faction is absolutely fucked somewhere. On the next line I will echo the myFaction variable (It will be nil). If it says anything other than the factions listed in game_spawn.lua (it will), at least it will provide a clue. Additionally I will manually set the player faction to Federation of Kala so that it doesn't crash and burn. Happy bug hunting!") Spring.Echo(myFaction) - myFaction = "ateran" + myFaction = "Federation of Kala" else Spring.Echo("[Ambient Background Sound Player] Player faction is " .. myFaction) end end - if myFaction == "ateran" then + if myFaction == "Federation of Kala" then if n == 1 then Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') + elseif (n % 50) == 4 then + Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') end - - if (n % 50) == 4 then + elseif myFaction == "Loz Alliance" then + if n == 1 then + Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') + elseif (n % 50) == 4 then Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') end elseif myFaction == "zaal" then if n == 1 then Spring.PlaySoundFile("LuaUI/Sounds/ambient/zaalambient.wav", 0.33, 'ui') - end - - if (n % 50) == 4 then + elseif (n % 50) == 4 then Spring.PlaySoundFile("LuaUI/Sounds/ambient/zaalambient.wav", 0.33, 'ui') end - elseif myFaction == "pattern" then - if n == 1 then - Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') - end - - if (n % 50) == 4 then - Spring.PlaySoundFile("LuaUI/Sounds/ambient/ambient-stereo-short.wav", 0.33, 'ui') - end end end \ No newline at end of file diff --git a/LuaUI/Widgets_Evo/unit_air_allways_fly.lua b/LuaUI/Widgets_Evo/unit_air_allways_fly.lua index 35c455b9e..3a03b6ec6 100644 --- a/LuaUI/Widgets_Evo/unit_air_allways_fly.lua +++ b/LuaUI/Widgets_Evo/unit_air_allways_fly.lua @@ -9,7 +9,7 @@ function widget:GetInfo() license = "GNU GPL, v2 or later", version = 1, layer = 5, - enabled = true -- loaded by default? + enabled = false -- loaded by default? } end diff --git a/LuaUI/Widgets_Evo/unit_automaticFightCommand.lua b/LuaUI/Widgets_Evo/unit_automaticFightCommand.lua index 777a9f007..fd720d1f1 100644 --- a/LuaUI/Widgets_Evo/unit_automaticFightCommand.lua +++ b/LuaUI/Widgets_Evo/unit_automaticFightCommand.lua @@ -28,7 +28,30 @@ local hmsz = Game.mapSizeZ/2 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -local targetUnits = {eorb = true, eorb_up1 = true, eorb_up2 = true, eorb_up3 = true, ehbotengineer = true, ehbotengineer_turret = true, zarm = true, ztenticle = true} +local targetUnits = { + eorb = true, + eorb_up1 = true, + eorb_up2 = true, + eorb_up3 = true, + ehbotengineer = true, + ehbotengineer_turret = true, + zarm = true, + ztenticle = true, + fedengineer = true, + lozengineer = true, + fedorb = true, + lozorb = true, + fedcommander = true + fedcommander_up1 = true, + fedcommander_up2 = true, + fedcommander_up3 = true, + fedcommander_up4 = true, + lozcommander = true, + lozcommander_up1 = true, + lozcommander_up2 = true, + lozcommander_up3 = true, + lozcommander_up4 = true +} local function IsTargetUnit(ud) return ud and targetUnits[ud.name] @@ -39,14 +62,14 @@ local function SetupUnit(unitID) local x, y, z = spGetUnitPosition(unitID) if x and y and z then if (x > hmsx) then -- avoid to issue commands outside map - x = x - 50 + x = x - 1 else - x = x + 50 + x = x + 1 end if (z > hmsz) then - z = z - 50 + z = z - 1 else - z = z + 50 + z = z + 1 end -- meta enables reclaim enemy units, alt autoresurrect ( if available ) spGiveOrderToUnit(unitID, CMD_FIGHT, { x, y, z }, {"meta"}) diff --git a/LuaUI/Widgets_Evo/unit_customrings.lua b/LuaUI/Widgets_Evo/unit_customrings.lua index 24a2c97ce..8b8c5f50d 100644 --- a/LuaUI/Widgets_Evo/unit_customrings.lua +++ b/LuaUI/Widgets_Evo/unit_customrings.lua @@ -26,8 +26,8 @@ end local ringsDefs = { [UnitDefNames.ecommander.id] = { - { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 }, - { color = {0,1,0,0.6}, lineWidth = 5, radius = 300, divs = 64 }, + -- { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 }, + --{ color = {0,1,0,0.6}, lineWidth = 5, radius = 300, divs = 64 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ecommandercloak.id] = { @@ -39,7 +39,7 @@ local ringsDefs = { { color = {0, 0, 1, 0.5}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ecommanderbuild.id] = { - { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1500 }, + --{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ecommanderbattle.id] = { @@ -47,26 +47,31 @@ local ringsDefs = { --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ecommanderfactory.id] = { - { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 250 }, + --{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 250 }, + --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, + }, + [UnitDefNames.ecommanderhealer.id] = { + -- { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 }, + { color = {0,1,0,0.6}, lineWidth = 5, radius = 1000, divs = 128 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.eorb.id] = { - { color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, + --{ color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, --{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 }, }, [UnitDefNames.eorb_up1.id] = { - { color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, + --{ color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, --{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 }, }, [UnitDefNames.eorb_up2.id] = { - { color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, + --{ color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, --{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1050 }, }, [UnitDefNames.eorb_up3.id] = { - { color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, + --{ color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, --{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 }, }, @@ -74,11 +79,11 @@ local ringsDefs = { { color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ehbotengineer.id] = { - { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, + --{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, }, [UnitDefNames.ehbotengineer_turret.id] = { - { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 }, + --{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 995 }, }, @@ -88,7 +93,7 @@ local ringsDefs = { -- Shield Units [UnitDefNames.ekmar.id] = { - { color = {0, 0, 1, 0.5}, lineWidth = 5, radius = 1000 }, + { color = {0, 0, 1, 0.5}, lineWidth = 5, radius = 750 }, }, [UnitDefNames.eallterrshield.id] = { { color = {0, 0, 1, 0.5}, lineWidth = 5, radius = 300 }, diff --git a/ModOptions.lua b/ModOptions.lua index b2ee721eb..10402d73d 100644 --- a/ModOptions.lua +++ b/ModOptions.lua @@ -125,7 +125,7 @@ local options= { name = 'Standard Metal Spot Layout: Allow metal spots to be placed in water?', desc = 'Should metal spots be placed in water? Sometimes turning this off can be beneficial if the water on a map does damage. (only works on Standard Metal Spot Layout)', type="list", - def="enabled", + def="disabled", section= "resourcing", items={ {key="disabled", name="Disabled", desc="Disallow metal spots being placed in water."}, @@ -186,7 +186,7 @@ local options= { desc = 'Determines the amount of metal income you start with per second.', type = 'number', section= 'resourcing', - def = 5, + def = 1, min = 0, max = 5, step = 1, -- quantization is aligned to the def value @@ -241,10 +241,10 @@ local options= { desc = 'Determines the maximum army supply that is allowed.', type = 'number', section= 'supplyoptions', - def = 400, - min = 0, - max = 400, - step = 1, -- quantization is aligned to the def value + def = 1000000, + min = 50, + max = 1000000, + step = 50, -- quantization is aligned to the def value -- (step <= 0) means that there is no quantization }, { @@ -260,6 +260,37 @@ local options= { -- (step <= 0) means that there is no quantization }, + { + key = 'mexcost', + name = 'Metal Extractor Costs', + desc = 'Allows you to set the cost of Metal Extractors', + type = 'section', + }, + { + key = 'metalextractorcostateran', + name = 'Ateran Metal Extractor Cost', + desc = 'How much metal does an Ateran Metal Extractor cost?', + type = 'number', + section= 'mexcost', + def = 50, + min = 1, + max = 500, + step = 1, -- quantization is aligned to the def value + -- (step <= 0) means that there is no quantization + }, + { + key = 'metalextractorcostzaal', + name = 'Zaal Metal Extractor Cost', + desc = 'How much metal does an Zaal Metal Extractor cost?', + type = 'number', + section= 'mexcost', + def = 65, + min = 1, + max = 500, + step = 1, -- quantization is aligned to the def value + -- (step <= 0) means that there is no quantization + }, + -- Gameplay Options { key = 'gameplayoptions', @@ -273,9 +304,9 @@ local options= { desc = 'This acts as a percentage of base unit health. Setting to 200 would double unit hitpoints.', type = 'number', section= 'gameplayoptions', - def = 200, + def = 500, min = 1, - max = 300, + max = 2000, step = 1, -- quantization is aligned to the def value -- (step <= 0) means that there is no quantization }, @@ -290,6 +321,32 @@ local options= { max = 5, step = 0.1, }, + { + key = 'scavengerstech', + name = 'Scavengers Tech Speed', + desc = 'Determines how fast scav tech ramps up. Adaptive will adjust to players skill', + type = 'list', + section = 'gameplayoptions', + def = "adaptive", + items={ + {key="adaptive", name="Adaptive", desc="Adapts to players skill"}, + {key="easy", name="Easy", desc="Slow ramp up for newbies and noobs"}, + {key="medium", name="Medium", desc="Normal ramp up for slightly experienced players"}, + {key="hard", name="Hard", desc="Hard ramp up for experienced players"}, + {key="brutal", name="Brutal", desc="You'll die"}, + } + }, + { + key = 'lootboxes', + name = 'Lootboxes', + desc = '1 to enable, 0 to disable', + type = 'number', + section= 'gameplayoptions', + def = 1, + min = 0, + max = 1, + step = 1, + }, { key="deathmode", name="Game End Mode", diff --git a/Objects3D/Lootboxes/lootbox.s3o b/Objects3D/Lootboxes/lootbox.s3o new file mode 100644 index 000000000..07605db70 Binary files /dev/null and b/Objects3D/Lootboxes/lootbox.s3o differ diff --git a/Objects3D/Lootboxes/lootbox3x3.s3o b/Objects3D/Lootboxes/lootbox3x3.s3o new file mode 100644 index 000000000..dab6f635d Binary files /dev/null and b/Objects3D/Lootboxes/lootbox3x3.s3o differ diff --git a/Objects3D/Lootboxes/lootbox4x4.s3o b/Objects3D/Lootboxes/lootbox4x4.s3o new file mode 100644 index 000000000..2944ea156 Binary files /dev/null and b/Objects3D/Lootboxes/lootbox4x4.s3o differ diff --git a/Objects3D/Lootboxes/lootbox5x5.s3o b/Objects3D/Lootboxes/lootbox5x5.s3o new file mode 100644 index 000000000..0a0413764 Binary files /dev/null and b/Objects3D/Lootboxes/lootbox5x5.s3o differ diff --git a/Objects3D/Lootboxes/lootbox6x6.s3o b/Objects3D/Lootboxes/lootbox6x6.s3o new file mode 100644 index 000000000..5f4be4091 Binary files /dev/null and b/Objects3D/Lootboxes/lootbox6x6.s3o differ diff --git a/Objects3D/eairemp.s3o b/Objects3D/eairemp.s3o index 550ae2306..828646a06 100644 Binary files a/Objects3D/eairemp.s3o and b/Objects3D/eairemp.s3o differ diff --git a/Objects3D/eairplant3.s3o b/Objects3D/eairplant3.s3o index 7f1c18e86..15f93d5c5 100644 Binary files a/Objects3D/eairplant3.s3o and b/Objects3D/eairplant3.s3o differ diff --git a/Objects3D/eallterrassault.s3o b/Objects3D/eallterrassault.s3o index 03da4233c..fc7e6e596 100644 Binary files a/Objects3D/eallterrassault.s3o and b/Objects3D/eallterrassault.s3o differ diff --git a/Objects3D/eallterrfac2.s3o b/Objects3D/eallterrfac2.s3o index 0503b7fdd..16127424a 100644 Binary files a/Objects3D/eallterrfac2.s3o and b/Objects3D/eallterrfac2.s3o differ diff --git a/Objects3D/eallterrheavy2.s3o b/Objects3D/eallterrheavy2.s3o index 6a5239fe5..d32f9d7a5 100644 Binary files a/Objects3D/eallterrheavy2.s3o and b/Objects3D/eallterrheavy2.s3o differ diff --git a/Objects3D/eallterrlight2.s3o b/Objects3D/eallterrlight2.s3o index a5b68bafe..c4894fcfa 100644 Binary files a/Objects3D/eallterrlight2.s3o and b/Objects3D/eallterrlight2.s3o differ diff --git a/Objects3D/eallterrmed2.s3o b/Objects3D/eallterrmed2.s3o index 48e02ac1a..0005e471c 100644 Binary files a/Objects3D/eallterrmed2.s3o and b/Objects3D/eallterrmed2.s3o differ diff --git a/Objects3D/eallterrriot2.s3o b/Objects3D/eallterrriot2.s3o index 5432224c5..7a77bc9cc 100644 Binary files a/Objects3D/eallterrriot2.s3o and b/Objects3D/eallterrriot2.s3o differ diff --git a/Objects3D/eallterrshield.s3o b/Objects3D/eallterrshield.s3o index bb333a091..995bd4a5b 100644 Binary files a/Objects3D/eallterrshield.s3o and b/Objects3D/eallterrshield.s3o differ diff --git a/Objects3D/eamphibaa.s3o b/Objects3D/eamphibaa.s3o index 6d29573a8..a01d73a44 100644 Binary files a/Objects3D/eamphibaa.s3o and b/Objects3D/eamphibaa.s3o differ diff --git a/Objects3D/eamphibaaturret.s3o b/Objects3D/eamphibaaturret.s3o new file mode 100644 index 000000000..e515453cb Binary files /dev/null and b/Objects3D/eamphibaaturret.s3o differ diff --git a/Objects3D/eamphibarty2.s3o b/Objects3D/eamphibarty2.s3o index 72b2a4569..502d531a3 100644 Binary files a/Objects3D/eamphibarty2.s3o and b/Objects3D/eamphibarty2.s3o differ diff --git a/Objects3D/eamphibbuggy2.s3o b/Objects3D/eamphibbuggy2.s3o index da9b2d443..65f5c95d8 100644 Binary files a/Objects3D/eamphibbuggy2.s3o and b/Objects3D/eamphibbuggy2.s3o differ diff --git a/Objects3D/eamphibfac2.s3o b/Objects3D/eamphibfac2.s3o index 50acaa0b7..c873a4b3f 100644 Binary files a/Objects3D/eamphibfac2.s3o and b/Objects3D/eamphibfac2.s3o differ diff --git a/Objects3D/eamphibmedtank2.s3o b/Objects3D/eamphibmedtank2.s3o index 8640b7643..cebd097e4 100644 Binary files a/Objects3D/eamphibmedtank2.s3o and b/Objects3D/eamphibmedtank2.s3o differ diff --git a/Objects3D/eamphibriot2.s3o b/Objects3D/eamphibriot2.s3o index 7f06a00cb..025907c31 100644 Binary files a/Objects3D/eamphibriot2.s3o and b/Objects3D/eamphibriot2.s3o differ diff --git a/Objects3D/eamphibrock4.s3o b/Objects3D/eamphibrock4.s3o index d0165ebc5..8ebd754a8 100644 Binary files a/Objects3D/eamphibrock4.s3o and b/Objects3D/eamphibrock4.s3o differ diff --git a/Objects3D/eartytank2.s3o b/Objects3D/eartytank2.s3o index 1be2be7c0..33d70bd6c 100644 Binary files a/Objects3D/eartytank2.s3o and b/Objects3D/eartytank2.s3o differ diff --git a/Objects3D/eartytankbase.s3o b/Objects3D/eartytankbase.s3o new file mode 100644 index 000000000..5268c33a4 Binary files /dev/null and b/Objects3D/eartytankbase.s3o differ diff --git a/Objects3D/ebarricade3.s3o b/Objects3D/ebarricade3.s3o index 80ae8c260..b0e421280 100644 Binary files a/Objects3D/ebarricade3.s3o and b/Objects3D/ebarricade3.s3o differ diff --git a/Objects3D/ebomber2-small.s3o b/Objects3D/ebomber2-small.s3o index 057f90323..7eacb17a0 100644 Binary files a/Objects3D/ebomber2-small.s3o and b/Objects3D/ebomber2-small.s3o differ diff --git a/Objects3D/ebox_small.s3o b/Objects3D/ebox_small.s3o new file mode 100644 index 000000000..a246d8e6a Binary files /dev/null and b/Objects3D/ebox_small.s3o differ diff --git a/Objects3D/ecommander-meteor.s3o b/Objects3D/ecommander-meteor.s3o new file mode 100644 index 000000000..e2e9f5430 Binary files /dev/null and b/Objects3D/ecommander-meteor.s3o differ diff --git a/Objects3D/ecommander4-battle-large.s3o b/Objects3D/ecommander4-battle-large.s3o new file mode 100644 index 000000000..0fba34008 Binary files /dev/null and b/Objects3D/ecommander4-battle-large.s3o differ diff --git a/Objects3D/edrone2.s3o b/Objects3D/edrone2.s3o index 6cfc41455..123054c2e 100644 Binary files a/Objects3D/edrone2.s3o and b/Objects3D/edrone2.s3o differ diff --git a/Objects3D/efighter2-small.s3o b/Objects3D/efighter2-small.s3o index eb13bc282..c3acf2359 100644 Binary files a/Objects3D/efighter2-small.s3o and b/Objects3D/efighter2-small.s3o differ diff --git a/Objects3D/eflakturret.s3o b/Objects3D/eflakturret.s3o new file mode 100644 index 000000000..9c886d0a0 Binary files /dev/null and b/Objects3D/eflakturret.s3o differ diff --git a/Objects3D/efusion2.s3o b/Objects3D/efusion2.s3o index df716c0d0..3c5bfb6cd 100644 Binary files a/Objects3D/efusion2.s3o and b/Objects3D/efusion2.s3o differ diff --git a/Objects3D/egeothermal2.s3o b/Objects3D/egeothermal2.s3o index f11a35861..8d9d9c2ea 100644 Binary files a/Objects3D/egeothermal2.s3o and b/Objects3D/egeothermal2.s3o differ diff --git a/Objects3D/egunship3-small.s3o b/Objects3D/egunship3-small.s3o index 667474627..7e661eb5f 100644 Binary files a/Objects3D/egunship3-small.s3o and b/Objects3D/egunship3-small.s3o differ diff --git a/Objects3D/ehbotengineer2.s3o b/Objects3D/ehbotengineer2.s3o index 96dd606a9..5b7919075 100644 Binary files a/Objects3D/ehbotengineer2.s3o and b/Objects3D/ehbotengineer2.s3o differ diff --git a/Objects3D/ehbotengineer_turret.s3o b/Objects3D/ehbotengineer_turret.s3o index a5c4f73d8..db3dd40e4 100644 Binary files a/Objects3D/ehbotengineer_turret.s3o and b/Objects3D/ehbotengineer_turret.s3o differ diff --git a/Objects3D/ehbotfac.s3o b/Objects3D/ehbotfac.s3o index 13b078c19..3ebad5882 100644 Binary files a/Objects3D/ehbotfac.s3o and b/Objects3D/ehbotfac.s3o differ diff --git a/Objects3D/ehbotkarganneth.s3o b/Objects3D/ehbotkarganneth.s3o index cafccf070..6a058200c 100644 Binary files a/Objects3D/ehbotkarganneth.s3o and b/Objects3D/ehbotkarganneth.s3o differ diff --git a/Objects3D/ehbotkarganneth_turret.s3o b/Objects3D/ehbotkarganneth_turret.s3o index 4fdd7ffe8..157cbdc4a 100644 Binary files a/Objects3D/ehbotkarganneth_turret.s3o and b/Objects3D/ehbotkarganneth_turret.s3o differ diff --git a/Objects3D/ehbotpeewee2.s3o b/Objects3D/ehbotpeewee2.s3o index 82e9b60e2..210788af0 100644 Binary files a/Objects3D/ehbotpeewee2.s3o and b/Objects3D/ehbotpeewee2.s3o differ diff --git a/Objects3D/ehbotpeewee_turret.s3o b/Objects3D/ehbotpeewee_turret.s3o index cc4ddcf50..5b74c6f1f 100644 Binary files a/Objects3D/ehbotpeewee_turret.s3o and b/Objects3D/ehbotpeewee_turret.s3o differ diff --git a/Objects3D/ehbotrocko.s3o b/Objects3D/ehbotrocko.s3o index 69eba966c..ffc1a1484 100644 Binary files a/Objects3D/ehbotrocko.s3o and b/Objects3D/ehbotrocko.s3o differ diff --git a/Objects3D/ehbotrocko_turret.s3o b/Objects3D/ehbotrocko_turret.s3o index f09b71dbb..f9a834a00 100644 Binary files a/Objects3D/ehbotrocko_turret.s3o and b/Objects3D/ehbotrocko_turret.s3o differ diff --git a/Objects3D/ehbotsniper.s3o b/Objects3D/ehbotsniper.s3o index 80bf02411..523f0f1e6 100644 Binary files a/Objects3D/ehbotsniper.s3o and b/Objects3D/ehbotsniper.s3o differ diff --git a/Objects3D/ehbotsniper_turret.s3o b/Objects3D/ehbotsniper_turret.s3o index a97fe8fa0..86f09fdec 100644 Binary files a/Objects3D/ehbotsniper_turret.s3o and b/Objects3D/ehbotsniper_turret.s3o differ diff --git a/Objects3D/ehbotthud.s3o b/Objects3D/ehbotthud.s3o index e48c665e6..01d43ab52 100644 Binary files a/Objects3D/ehbotthud.s3o and b/Objects3D/ehbotthud.s3o differ diff --git a/Objects3D/ehbotthud_turret.s3o b/Objects3D/ehbotthud_turret.s3o index 44f3f8704..52a1a6004 100644 Binary files a/Objects3D/ehbotthud_turret.s3o and b/Objects3D/ehbotthud_turret.s3o differ diff --git a/Objects3D/eheavytank4.s3o b/Objects3D/eheavytank4.s3o index 48f7ff505..8f356fa49 100644 Binary files a/Objects3D/eheavytank4.s3o and b/Objects3D/eheavytank4.s3o differ diff --git a/Objects3D/eheavyturret3.s3o b/Objects3D/eheavyturret3.s3o index fefdc4306..94a41848c 100644 Binary files a/Objects3D/eheavyturret3.s3o and b/Objects3D/eheavyturret3.s3o differ diff --git a/Objects3D/ehoverfactory.s3o b/Objects3D/ehoverfactory.s3o index eeb18cac6..e92fd263e 100644 Binary files a/Objects3D/ehoverfactory.s3o and b/Objects3D/ehoverfactory.s3o differ diff --git a/Objects3D/ejammer3.s3o b/Objects3D/ejammer3.s3o index 14d445630..fe6388ca6 100644 Binary files a/Objects3D/ejammer3.s3o and b/Objects3D/ejammer3.s3o differ diff --git a/Objects3D/elaserbattery.s3o b/Objects3D/elaserbattery.s3o index c0899e024..89c89f738 100644 Binary files a/Objects3D/elaserbattery.s3o and b/Objects3D/elaserbattery.s3o differ diff --git a/Objects3D/elighttank4.s3o b/Objects3D/elighttank4.s3o index c076c7545..9da20287a 100644 Binary files a/Objects3D/elighttank4.s3o and b/Objects3D/elighttank4.s3o differ diff --git a/Objects3D/elightturret3.s3o b/Objects3D/elightturret3.s3o index 21e65bd28..b3d9c06d6 100644 Binary files a/Objects3D/elightturret3.s3o and b/Objects3D/elightturret3.s3o differ diff --git a/Objects3D/emaker3.s3o b/Objects3D/emaker3.s3o index b2ec43779..bd0b605e9 100644 Binary files a/Objects3D/emaker3.s3o and b/Objects3D/emaker3.s3o differ diff --git a/Objects3D/emetalextractor2_small.s3o b/Objects3D/emetalextractor2_small.s3o new file mode 100644 index 000000000..bfe71e115 Binary files /dev/null and b/Objects3D/emetalextractor2_small.s3o differ diff --git a/Objects3D/emetalextractor2_up1.s3o b/Objects3D/emetalextractor2_up1.s3o new file mode 100644 index 000000000..47e02f7e5 Binary files /dev/null and b/Objects3D/emetalextractor2_up1.s3o differ diff --git a/Objects3D/emetalextractor2_up2.s3o b/Objects3D/emetalextractor2_up2.s3o new file mode 100644 index 000000000..4492be82a Binary files /dev/null and b/Objects3D/emetalextractor2_up2.s3o differ diff --git a/Objects3D/emetalextractor2_up3.s3o b/Objects3D/emetalextractor2_up3.s3o new file mode 100644 index 000000000..9dd117b8d Binary files /dev/null and b/Objects3D/emetalextractor2_up3.s3o differ diff --git a/Objects3D/emine.s3o b/Objects3D/emine.s3o index c256d6c14..7326e42e1 100644 Binary files a/Objects3D/emine.s3o and b/Objects3D/emine.s3o differ diff --git a/Objects3D/emissiletank2.s3o b/Objects3D/emissiletank2.s3o index 71b87a45a..946d58d6d 100644 Binary files a/Objects3D/emissiletank2.s3o and b/Objects3D/emissiletank2.s3o differ diff --git a/Objects3D/eorb4.s3o b/Objects3D/eorb4.s3o index 332ffd217..5223c0adc 100644 Binary files a/Objects3D/eorb4.s3o and b/Objects3D/eorb4.s3o differ diff --git a/Objects3D/epowerplant3x3.s3o b/Objects3D/epowerplant3x3.s3o new file mode 100644 index 000000000..b875e526f Binary files /dev/null and b/Objects3D/epowerplant3x3.s3o differ diff --git a/Objects3D/eradar3_large.s3o b/Objects3D/eradar3_large.s3o new file mode 100644 index 000000000..4ade9a77a Binary files /dev/null and b/Objects3D/eradar3_large.s3o differ diff --git a/Objects3D/eradar3_small.s3o b/Objects3D/eradar3_small.s3o new file mode 100644 index 000000000..141b60b38 Binary files /dev/null and b/Objects3D/eradar3_small.s3o differ diff --git a/Objects3D/eriottank3.s3o b/Objects3D/eriottank3.s3o index a13a49290..cc4f36445 100644 Binary files a/Objects3D/eriottank3.s3o and b/Objects3D/eriottank3.s3o differ diff --git a/Objects3D/escout2.s3o b/Objects3D/escout2.s3o index c42d3e622..806e2c26e 100644 Binary files a/Objects3D/escout2.s3o and b/Objects3D/escout2.s3o differ diff --git a/Objects3D/estorage2.s3o b/Objects3D/estorage2.s3o index 63a1c7648..9b07473da 100644 Binary files a/Objects3D/estorage2.s3o and b/Objects3D/estorage2.s3o differ diff --git a/Objects3D/estorage2_small.s3o b/Objects3D/estorage2_small.s3o new file mode 100644 index 000000000..c883e1009 Binary files /dev/null and b/Objects3D/estorage2_small.s3o differ diff --git a/Objects3D/etransport2-small.s3o b/Objects3D/etransport2-small.s3o index 1944365ea..c976db991 100644 Binary files a/Objects3D/etransport2-small.s3o and b/Objects3D/etransport2-small.s3o differ diff --git a/Objects3D/f2engineer.s3o b/Objects3D/f2engineer.s3o new file mode 100644 index 000000000..0fa147e53 Binary files /dev/null and b/Objects3D/f2engineer.s3o differ diff --git a/Objects3D/laserturret.s3o b/Objects3D/laserturret.s3o new file mode 100644 index 000000000..d32f9d7a5 Binary files /dev/null and b/Objects3D/laserturret.s3o differ diff --git a/Objects3D/lozcommandtank-battle.s3o b/Objects3D/lozcommandtank-battle.s3o new file mode 100644 index 000000000..1fc27c44f Binary files /dev/null and b/Objects3D/lozcommandtank-battle.s3o differ diff --git a/Objects3D/lozcommandtank.s3o b/Objects3D/lozcommandtank.s3o new file mode 100644 index 000000000..1504e266e Binary files /dev/null and b/Objects3D/lozcommandtank.s3o differ diff --git a/Objects3D/nanopylon.s3o b/Objects3D/nanopylon.s3o new file mode 100644 index 000000000..bd7355687 Binary files /dev/null and b/Objects3D/nanopylon.s3o differ diff --git a/Objects3D/scavs/big/eamphibbuggy2big.s3o b/Objects3D/scavs/big/eamphibbuggy2big.s3o new file mode 100644 index 000000000..c4bd457f2 Binary files /dev/null and b/Objects3D/scavs/big/eamphibbuggy2big.s3o differ diff --git a/Objects3D/scavs/boss/eallterranarchidboss.s3o b/Objects3D/scavs/boss/eallterranarchidboss.s3o new file mode 100644 index 000000000..74263de45 Binary files /dev/null and b/Objects3D/scavs/boss/eallterranarchidboss.s3o differ diff --git a/Objects3D/scavs/boss/eamphiblevelerboss.s3o b/Objects3D/scavs/boss/eamphiblevelerboss.s3o new file mode 100644 index 000000000..9d0c4fb05 Binary files /dev/null and b/Objects3D/scavs/boss/eamphiblevelerboss.s3o differ diff --git a/Objects3D/scavs/boss/ehbotkargannethboss.s3o b/Objects3D/scavs/boss/ehbotkargannethboss.s3o new file mode 100644 index 000000000..618c590a4 Binary files /dev/null and b/Objects3D/scavs/boss/ehbotkargannethboss.s3o differ diff --git a/Objects3D/scavs/boss/ekrowboss.s3o b/Objects3D/scavs/boss/ekrowboss.s3o new file mode 100644 index 000000000..f8e0635a2 Binary files /dev/null and b/Objects3D/scavs/boss/ekrowboss.s3o differ diff --git a/Objects3D/scavs/boss/elaceratorboss.s3o b/Objects3D/scavs/boss/elaceratorboss.s3o new file mode 100644 index 000000000..28d19bd06 Binary files /dev/null and b/Objects3D/scavs/boss/elaceratorboss.s3o differ diff --git a/Objects3D/scavs/cube.s3o b/Objects3D/scavs/cube.s3o new file mode 100644 index 000000000..db5f06ec1 Binary files /dev/null and b/Objects3D/scavs/cube.s3o differ diff --git a/Objects3D/scavs/scavbeacon.s3o b/Objects3D/scavs/scavbeacon.s3o new file mode 100644 index 000000000..8e477dc59 Binary files /dev/null and b/Objects3D/scavs/scavbeacon.s3o differ diff --git a/Objects3D/scavs/scavbeacondroppod.s3o b/Objects3D/scavs/scavbeacondroppod.s3o new file mode 100644 index 000000000..bd7cd29d1 Binary files /dev/null and b/Objects3D/scavs/scavbeacondroppod.s3o differ diff --git a/Objects3D/scavs/scavcrate.s3o b/Objects3D/scavs/scavcrate.s3o new file mode 100644 index 000000000..50082876f Binary files /dev/null and b/Objects3D/scavs/scavcrate.s3o differ diff --git a/Objects3D/units/scavboss/dummyfile.txt b/Objects3D/units/scavboss/dummyfile.txt new file mode 100644 index 000000000..7c4a013e5 --- /dev/null +++ b/Objects3D/units/scavboss/dummyfile.txt @@ -0,0 +1 @@ +aaa \ No newline at end of file diff --git a/Objects3D/unused legos/medium tank.s3o b/Objects3D/unused legos/medium tank.s3o index 21861384d..691676cbb 100644 Binary files a/Objects3D/unused legos/medium tank.s3o and b/Objects3D/unused legos/medium tank.s3o differ diff --git a/Objects3D/zaal/zkamikaze.s3o b/Objects3D/zaal/zkamikaze.s3o index 04491e8ba..818cf43a8 100644 Binary files a/Objects3D/zaal/zkamikaze.s3o and b/Objects3D/zaal/zkamikaze.s3o differ diff --git a/Objects3D/zaal/ztiberium_small.s3o b/Objects3D/zaal/ztiberium_small.s3o new file mode 100644 index 000000000..6aaaa326e Binary files /dev/null and b/Objects3D/zaal/ztiberium_small.s3o differ diff --git a/Scripts/Units/scavboss/exptype.h b/Scripts/Units/scavboss/exptype.h new file mode 100644 index 000000000..7a83187b2 --- /dev/null +++ b/Scripts/Units/scavboss/exptype.h @@ -0,0 +1,193 @@ +/* +** EXPtype.h -- Explosion Type information and GET/SET constants for scripts +** +** This Script contains constants compatible only with Spring RTS engine +** not for use with Total Annihilation or TA:Kindgoms +*/ + +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ + +// Indices for emit-sfx +#ifndef __SFXTYPE_H_ +#define SFXTYPE_VTOL 0 +//#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 // same as SFX_WAKE +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 // same as SFX_REVERSE_WAKE + +#define SFXTYPE_WHITESMOKE 257 +#define SFXTYPE_BLACKSMOKE 258 +#define SFXTYPE_SUBBUBBLES 259 +#endif + +#define SHATTER 1 // The piece will shatter instead of remaining whole +#define EXPLODE_ON_HIT 2 // The piece will explode when it hits the ground +#define FALL 4 // The piece will fall due to gravity instead of just flying off +#define SMOKE 8 // A smoke trail will follow the piece through the air +#define FIRE 16 // A fire trail will follow the piece through the air +#define BITMAPONLY 32 // The piece will not fly off or shatter or anything. Only a bitmap explosion will be rendered. +#define NOCEGTRAIL 64 // Disables the cegtrail for the specific piece (defined in the unit fbi) +#define NOHEATCLOUD 128 // No engine default heat cloud for explosion +#define BITMAP 10000001 + +// Bitmap Explosion Types +#define BITMAP1 256 +#define BITMAP2 512 +#define BITMAP3 1024 +#define BITMAP4 2048 +#define BITMAP5 4096 +#define BITMAPNUKE 8192 +#define BITMAPMASK 16128 // Mask of the possible bitmap bits + +#define EXPTYPE_SMALLEXPLOSION 256 +#define EXPTYPE_MEDIUMEXPLOSION 512 +#define EXPTYPE_LARGEEXPLOSION 1024 +#define EXPTYPE_XLARGEEXPLOSION 2048 +#define EXPTYPE_BLOODEXPLOSION 4096 + +//Customized effects (in FBI/TDF/LUA) +// Explosion generators +#define UNIT_SFX0 1024 +#define UNIT_SFX1 1025 +#define UNIT_SFX2 1026 +#define UNIT_SFX3 1027 +#define UNIT_SFX4 1028 +#define UNIT_SFX5 1029 +#define UNIT_SFX6 1030 +#define UNIT_SFX7 1031 +#define UNIT_SFX8 1032 +#define UNIT_SFX9 1033 + +// Weapons +#define FIRE_W1 2048 +#define FIRE_W2 2049 +#define FIRE_W3 2050 +#define FIRE_W4 2051 +#define FIRE_W5 2052 +#define FIRE_W6 2053 +#define FIRE_W7 2054 +#define FIRE_W8 2055 +#define FIRE_W9 2056 + +#define DETO_W1 4096 +#define DETO_W2 4097 +#define DETO_W3 4098 +#define DETO_W4 4099 +#define DETO_W5 4100 +#define DETO_W6 4101 +#define DETO_W7 4102 +#define DETO_W8 4103 +#define DETO_W9 4104 + + +// COB constants +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +#define IN_WATER 28 +#define CURRENT_SPEED 29 +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define SONAR_STEALTH 108 // set or get +#define REVERSING 109 // get + +// Indices for SET, GET, and GET_UNIT_VALUE for LUA return values +#define LUA0 110 // (LUA0 returns the lua call status, 0 or 1) +#define LUA1 111 +#define LUA2 112 +#define LUA3 113 +#define LUA4 114 +#define LUA5 115 +#define LUA6 116 +#define LUA7 117 +#define LUA8 118 +#define LUA9 119 + +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) get WEAPON_RELOADSTATE(weaponNum) for GET +#define WEAPON_RELOADTIME 126 // get (with fake set) get WEAPON_RELOADSTATE(-weaponNum,val) for SET +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) +#define WEAPON_STOCKPILE_COUNT 139 // get (with fake set) + + +#define MIN 131 // get +#define MAX 132 // get +#define ABS 133 // get +#define GAME_FRAME 134 // get +#define KSIN 135 // get, kiloSine 1024*sin(x) as COB uses only integers +#define KCOS 136 // get, kiloCosine 1024*cos(x) + +#define KTAN 137 // get, kiloTangent 1024*tan(x) carefull with angles close to 90 deg. might cause overflow +#define SQRT 138 // get, square root (floored to integer) + +#define ENERGY_MAKE 140 // set or get (100*E production) + +#define METAL_MAKE 141 // set or get (100*M production) + +// NOTE: shared variables use codes [1024 - 5119] + +#endif \ No newline at end of file diff --git a/Scripts/Units/scavboss/sfxtype.h b/Scripts/Units/scavboss/sfxtype.h new file mode 100644 index 000000000..e69de29bb diff --git a/Scripts/Units/scavboss/unitDefsTurretSpeeds.h b/Scripts/Units/scavboss/unitDefsTurretSpeeds.h new file mode 100644 index 000000000..c30940742 --- /dev/null +++ b/Scripts/Units/scavboss/unitDefsTurretSpeeds.h @@ -0,0 +1,68 @@ +/* unitDefsTurretSpeeds.h -- sets turret speed via unitDefs (through lua gadget Spring.CallCOBScript()) + The following variables are assumed to exist: + Weapon1TurretX, Weapon1TurretY + ... + Weapon10TurretX, Weapon10TurretY +*/ + +static-var Weapon1TurretX, Weapon1TurretY; +static-var Weapon2TurretX, Weapon2TurretY; +static-var Weapon3TurretX, Weapon3TurretY; +static-var Weapon4TurretX, Weapon4TurretY; +static-var Weapon5TurretX, Weapon5TurretY; +static-var Weapon6TurretX, Weapon6TurretY; +static-var Weapon7TurretX, Weapon7TurretY; +static-var Weapon8TurretX, Weapon8TurretY; +static-var Weapon9TurretX, Weapon9TurretY; +static-var Weapon10TurretX, Weapon10TurretY; + +SetWeapon1TurretSpeed(var1,var2) +{ + Weapon1TurretX = var1; + Weapon1TurretY = var2; +} +SetWeapon2TurretSpeed(var1,var2) +{ + Weapon2TurretX = var1; + Weapon2TurretY = var2; +} +SetWeapon3TurretSpeed(var1,var2) +{ + Weapon3TurretX = var1; + Weapon3TurretY = var2; +} +SetWeapon4TurretSpeed(var1,var2) +{ + Weapon4TurretX = var1; + Weapon4TurretY = var2; +} +SetWeapon5TurretSpeed(var1,var2) +{ + Weapon5TurretX = var1; + Weapon5TurretY = var2; +} +SetWeapon6TurretSpeed(var1,var2) +{ + Weapon6TurretX = var1; + Weapon6TurretY = var2; +} +SetWeapon7TurretSpeed(var1,var2) +{ + Weapon7TurretX = var1; + Weapon7TurretY = var2; +} +SetWeapon8TurretSpeed(var1,var2) +{ + Weapon8TurretX = var1; + Weapon8TurretY = var2; +} +SetWeapon9TurretSpeed(var1,var2) +{ + Weapon9TurretX = var1; + Weapon9TurretY = var2; +} +SetWeapon10TurretSpeed(var1,var2) +{ + Weapon10TurretX = var1; + Weapon10TurretY = var2; +} \ No newline at end of file diff --git a/Scripts/Units/scavboss/water2.h b/Scripts/Units/scavboss/water2.h new file mode 100644 index 000000000..b5a5be089 --- /dev/null +++ b/Scripts/Units/scavboss/water2.h @@ -0,0 +1,31 @@ +/* Rockunit.h -- Rock the unit when it fire a heavy weapon with lots of recoil */ + +#ifndef __ROCKUNIT_H_ +#define __ROCKUNIT_H_ + + +RockUnit(anglex,anglez) + { + + #define FIRST_SPEED 15 + #define SECOND_SPEED 12 + #define THIRD_SPEED 9 + + turn base to x-axis anglex speed ; + turn base to z-axis anglez speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (0-anglex) speed ; + turn base to z-axis (0-anglez) speed ; + + //wait-for-turn base around z-axis; + //wait-for-turn base around x-axis; + + //turn base to x-axis <0> speed ; + //turn base to z-axis <0> speed ; + + + } +#endif diff --git a/Scripts/Units/scavboss/water3.h b/Scripts/Units/scavboss/water3.h new file mode 100644 index 000000000..5066f3284 --- /dev/null +++ b/Scripts/Units/scavboss/water3.h @@ -0,0 +1,35 @@ +#ifndef __ROCKUNIT_H_ +#define __ROCKUNIT_H_ + + +RockUnit(anglex,anglez) + { + + #define FIRST_SPEED 10 + #define SECOND_SPEED 8 + #define THIRD_SPEED 6 + #define FIFTH_SPEED 4 + + turn base to x-axis anglex speed ; + turn base to z-axis anglez speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (0-anglex) speed ; + turn base to z-axis (0-anglez) speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (anglex/2) speed ; + turn base to z-axis (anglez/2) speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis <0> speed ; + turn base to z-axis <0> speed ; + } +#endif + diff --git a/Scripts/Units/scavboss/weapon1control.h b/Scripts/Units/scavboss/weapon1control.h new file mode 100644 index 000000000..c93a74dc8 --- /dev/null +++ b/Scripts/Units/scavboss/weapon1control.h @@ -0,0 +1,168 @@ +/* +HOW TO: +- Model MUST contain aimx1 and aimy1 pieces +- Script must have defined Weapon1TurretX and Weapon1TurretY static-vars (turret turn speeds) +- Script must have defined aimx1 and aimy1 pieces +- Change script as such: +Create() +{ + [...] + start-script InitialSetup1(); + [...] +} + +AimWeapon1(heading, pitch) +{ + [...] + start-script Weapon1Drawn(); -- can call a function that draws weapons and then calls Weapon1Drawn() when done if there is an actual animation (ie pw) + [...] -- Remove animations from aimWeapon scripts (use a DrawWeapon1() if an animation is needed, weapon1control will rotate the different aimpieces) + start-script Weapon1SetWtdAim(heading, pitch); + [...] + return (aim1); +} + +static-var Stunned; +ExecuteRestoreAfterDelay() +{ + if (Stunned) { + return (1); + } +} +SetStunned(State) +{ + Stunned = State; + if (!Stunned) { + start-script ExecuteRestoreAfterDelay(); + } +} +RestoreAfterDelay() +{ + [...] + sleep sleeptime; + start-script RestoreWeapon1(); + [...] -- other animations; + call-script Weapon1Restored(); + [...] -- tell script wpn has been restored if needed for walkscripts +} + +- Weapon1Control moves the aim pieces depending on turretSpeeds, sets pitch = 1 when pitch reached and head = 1 when head reached +- Weapon1Drawn allows unit to fire by setting wpnReady1 = 1 +- if pitch = 1, head = 1 and wpnReady = 1 then the weapon can shoot: aim1 = 1 and aimweapon returns aim1 +- Restore animations go in RestoreAfterDelay, RestoreWeapon1() restores aimy and aimx pieces orientation, Weapon1Restored() waits for these pieces to be restored +*/ + +static-var curHead1, wtdHead1, head1, curPitch1, wtdPitch1, pitch1, aim1, wpnReady1; + +Weapon1Control() +{ + while (TRUE) + { + if (curHead1 > <180>) + { + curHead1 = <-360> + curHead1; + } + if (curPitch1 > <180>) + { + curPitch1 = <-360> + curPitch1; + } + if (curHead1 < <-180>) + { + curHead1 = <360> + curHead1; + } + if (curPitch1 < <-180>) + { + curPitch1 = <360> + curPitch1; + } + if (Static_Var_3 == 1) + { + if (((get ABS(curHead1 - wtdHead1)) > <360>) OR(((get ABS(curHead1 - wtdHead1)) > (Weapon1TurretY / 30)) AND ((get ABS(curHead1 - wtdHead1)) < <360> - (Weapon1TurretY / 30)))) + { + head1 = 0; + if(curHead1 < wtdHead1) { + if(get ABS(curHead1 - wtdHead1)< <180>) + curHead1 = curHead1 + (Weapon1TurretY / 30); + else curHead1 = curHead1 - (Weapon1TurretY / 30); + } + + else { + if(get ABS(curHead1 - wtdHead1)< <180>) + curHead1 = curHead1 - (Weapon1TurretY / 30); + else curHead1 = curHead1 + (Weapon1TurretY / 30); + } + } + else + { + head1 = 1; + curHead1 = wtdHead1; + } + if (((get ABS(curPitch1 - wtdPitch1)) > <360>) OR(((get ABS(curPitch1 - wtdPitch1)) > (Weapon1TurretX / 30)) AND ((get ABS(curPitch1 - wtdPitch1)) < <360> - (Weapon1TurretX / 30)))) + { + pitch1 = 0; + if(curPitch1 < wtdPitch1) { + if(get ABS(curPitch1 - wtdPitch1)< <180>) + curPitch1 = curPitch1 + (Weapon1TurretX / 30); + else curPitch1 = curPitch1 - (Weapon1TurretX / 30); + } + + else { + if(get ABS(curPitch1 - wtdPitch1)< <180>) + curPitch1 = curPitch1 - (Weapon1TurretX / 30); + else curPitch1 = curPitch1 + (Weapon1TurretX / 30); + } + } + else + { + pitch1 = 1; + curPitch1 = wtdPitch1; + } + if (pitch1 == 1 AND head1 == 1 AND wpnReady1 == 1 AND wtdHead1 != 0) + { + aim1 = 1; + } + else + { + aim1 = 0; + } + turn aimy1 to y-axis curHead1 now; + turn aimx1 to x-axis curPitch1 now; + } + sleep 1; + } +} + +InitialSetup1() +{ + curHead1 = 0; + curPitch1 = 0; + wtdHead1 = 0; + wtdPitch1 = 0; + wpnReady1 = 0; + start-script Weapon1Control(); +} + +Weapon1Drawn() +{ + wpnReady1 = 1; +} + +RestoreWeapon1() +{ + wtdHead1 = 0; + wtdPitch1 = 0; +} + +Weapon1Restored() +{ + wpnReady1 = 0; + while (curHead1 != 0) + { + sleep 25; + } + return (TRUE); +} + +Weapon1SetWtdAim(pitch, heading) +{ + wtdHead1 = heading; + wtdPitch1 = <0> - pitch; +} \ No newline at end of file diff --git a/Scripts/Units/scavboss/yard.h b/Scripts/Units/scavboss/yard.h new file mode 100644 index 000000000..048994e28 --- /dev/null +++ b/Scripts/Units/scavboss/yard.h @@ -0,0 +1,35 @@ +#ifndef SCRIPTS_YARD_H +#define SCRIPTS_YARD_H + +// keep trying to open building's yard until we succeed +OpenYard() + { + set YARD_OPEN to TRUE; + + while(!(get YARD_OPEN)) + { + set BUGGER_OFF to TRUE; + sleep 1500; + set YARD_OPEN to TRUE; + } + + set BUGGER_OFF to FALSE; + } + + +// keep trying to close building's yard until we succeed +CloseYard() + { + set YARD_OPEN to FALSE; + + while(get YARD_OPEN) + { + set BUGGER_OFF to TRUE; + sleep 1500; + set YARD_OPEN to FALSE; + } + + set BUGGER_OFF to FALSE; + } + +#endif // SCRIPTS_YARD_H diff --git a/Scripts/ecommander4-meteor.bos b/Scripts/ecommander4-meteor.bos index 9ec90883b..892b8b60f 100644 --- a/Scripts/ecommander4-meteor.bos +++ b/Scripts/ecommander4-meteor.bos @@ -4,7 +4,7 @@ #define WALK_PERIOD 50 -piece base, nanopoint1, rf1, rf2, lf1, lf2, rr1, rr2, lr1, lr2, rfdirt, rrdirt, lfdirt, lrdirt, firepoint1, mandible; +piece base, nanopoint1, rf1, rf2, lf1, lf2, rr1, rr2, lr1, lr2, rfdirt, rrdirt, lfdirt, lrdirt, firepoint1, mandible, topantenna, innerring, outerring, centerring, emit; static-var maxreloadtime, moving, bMoving, terraintype, building; @@ -322,6 +322,11 @@ Create() start-script DoTheWalking(); // start-script Thrust(); start-script buildflame(); + spin topantenna around y-axis speed <8>; + spin topantenna around x-axis speed <2>; + spin innerring around y-axis speed <-3>; + spin centerring around y-axis speed <4>; + spin outerring around y-axis speed <-7>; } AimFromPrimary(p) @@ -386,4 +391,8 @@ Killed(severity, corpsetype) // how it explodes explode lr1 type EXPLODE_ON_HIT; explode lr2 type EXPLODE_ON_HIT; explode mandible type EXPLODE_ON_HIT; + explode topantenna type EXPLODE_ON_HIT; + explode innerring type EXPLODE_ON_HIT; + explode centerring type EXPLODE_ON_HIT; + explode outerring type EXPLODE_ON_HIT; } \ No newline at end of file diff --git a/Scripts/ecommander4-meteor.cob b/Scripts/ecommander4-meteor.cob index b2fa22fc9..468b343bb 100644 Binary files a/Scripts/ecommander4-meteor.cob and b/Scripts/ecommander4-meteor.cob differ diff --git a/Scripts/eflakturret.bos b/Scripts/eflakturret.bos new file mode 100644 index 000000000..6638a246f --- /dev/null +++ b/Scripts/eflakturret.bos @@ -0,0 +1,148 @@ +#define TA // This is a TA script + +#include "sfxtype.h" +#include "exptype.h" + +piece base, beams, turret, barrel1, firepoint1, firepoint2, firepoint3, firepoint4, lilypad; // these are the pieces of the model + +static-var shooting_num, terraintype; + +// Signal definitions +#define SIG_AIM 2 // this is a aim define <- o_O This is a kill flag + + +// Custom SFX +#define GDMARTY 1024+0 + +SmokeUnit()// this is a standard smoke point define +{ + var healthpercent, sleeptime, smoketype; + while( TRUE ) + { + healthpercent = get HEALTH; + if( healthpercent < 66 ) + { + smoketype = SFXTYPE_BLACKSMOKE; + if( Rand( 1, 66 ) < healthpercent ) + smoketype = SFXTYPE_WHITESMOKE; + emit-sfx 1026 from turret; + } + sleeptime = healthpercent * 50; + if( sleeptime < 200 ) + sleeptime = 200; + sleep sleeptime; + } +} + + +Create() // tells it what to do on creation +{ + shooting_num=1; + start-script SmokeUnit(); +} + + +RestoreAfterDelay() // restore function to turn the turret and so forth back to start +{ +sleep 3000; +turn turret to y-axis <0> speed <60>; +turn barrel1 to x-axis <0> speed <30>; +} + +AimWeapon1(heading, pitch) // single weapon with 2 fires this tell sit what to do while aiming +{ +/* + if ( get IN_WATER(0) == 1 ) + { + return (0); + } +*/ +signal SIG_AIM; +set-signal-mask SIG_AIM; +turn turret to y-axis heading speed <5000>; +turn barrel1 to x-axis <0> - pitch speed <5000>; +wait-for-turn turret around y-axis; +wait-for-turn barrel1 around x-axis; +start-script RestoreAfterDelay(); +return (1); +} + + +FireWeapon1() // what do while firing, fires 1 barrel then the next , and resets +{ + if(shooting_num==1) + { + emit-sfx 1024 from firepoint2; + } + + if(shooting_num==2) + { + emit-sfx 1024 from firepoint3; + } + + if(shooting_num==3) + { + emit-sfx 1024 from firepoint4; + } + + if(shooting_num==4) + { + emit-sfx 1024 from firepoint1; + } + + shooting_num=shooting_num+1; + + if( shooting_num == 5) + { + shooting_num=1; + } +} + +AimFromWeapon1(piecenum) // where it aims the weapon from +{ +piecenum = barrel1; +} + +QueryWeapon1(piecenum) // where the shot is called from +{ + if (shooting_num==1) + { + piecenum=firepoint1; + } + + if (shooting_num==2) + { + piecenum=firepoint2; + } + + if (shooting_num==3) + { + piecenum=firepoint3; + } + + if (shooting_num==4) + { + piecenum=firepoint4; + } +} +/* +TechLost() +{ + CanFire=FALSE; + signal SIG_AIM; + stop-spin turret around y-axis decelerate <10>; + stop-spin barrel1 around x-axis decelerate <10>; +} + +TechGranted() +{ + CanFire=TRUE; +} +*/ +Killed(severity, corpsetype) // how it explodes +{ + corpsetype = 1; + explode base type EXPLODE_ON_HIT; + explode beams type EXPLODE_ON_HIT; + explode lilypad type EXPLODE_ON_HIT; +} diff --git a/Scripts/eflakturret.cob b/Scripts/eflakturret.cob new file mode 100644 index 000000000..0ba4adcb9 Binary files /dev/null and b/Scripts/eflakturret.cob differ diff --git a/Scripts/ehoverfac.bos b/Scripts/ehoverfac.bos index fe06e81c1..d6047a7f5 100644 --- a/Scripts/ehoverfac.bos +++ b/Scripts/ehoverfac.bos @@ -38,28 +38,6 @@ SmokeUnit(healthpercent, sleeptime, smoketype) } } -setSFXoccupy(setSFXoccupy_argument) -{ -terraintype = setSFXoccupy_argument; - - if(terraintype == 2) - { - move base to y-axis [-5] speed [50]; - } - else - { - move base to y-axis [-5] speed [50]; - } - if(terraintype == 4) - { - move base to y-axis [-5] speed [50]; - } - else - { - move base to y-axis [-5] speed [50]; - } -} - buildingfx() { while( TRUE ) diff --git a/Scripts/ehoverfac.cob b/Scripts/ehoverfac.cob index 264ef8d14..67ee4dda3 100644 Binary files a/Scripts/ehoverfac.cob and b/Scripts/ehoverfac.cob differ diff --git a/Scripts/elaserbattery.bos b/Scripts/elaserbattery.bos index 6d5e6c101..3f491915d 100644 --- a/Scripts/elaserbattery.bos +++ b/Scripts/elaserbattery.bos @@ -3,7 +3,7 @@ #include "sfxtype.h" #include "exptype.h" -piece base, beams, firepoint1, lilypad; // these are the pieces of the model +piece base, beams, turret, barrel1, firepoint1, firepoint2, firepoint3, firepoint4, lilypad; // these are the pieces of the model static-var shooting_num, terraintype; diff --git a/Scripts/f2engineer_lus.lua b/Scripts/f2engineer_lus.lua new file mode 100644 index 000000000..85f1accf9 --- /dev/null +++ b/Scripts/f2engineer_lus.lua @@ -0,0 +1,65 @@ +base, spinner, nano1, dirt = piece('base', 'spinner', 'nano1', 'dirt') +local SIG_AIM = {} + +-- state variables +isMoving = "isMoving" +terrainType = "terrainType" + +function script.Create() + StartThread(common.SmokeUnit, {base, spinner}) + StartThread(BuildFX) + building = false +end + +common = include("headers/common_includes_lus.lua") + +function script.StartMoving() + isMoving = true + StartThread(thrust) +end + +function script.StopMoving() + isMoving = false +end + +function thrust() + common.DirtTrail() +end + +function BuildFX() + while(building == true) do + EmitSfx (nano1, 1024) + Sleep(550) + end +end + +function RestoreAfterDelay() + if building == false then + Sleep(2000) + Turn(base, y_axis, 0, 5) + end +end + +local nanoPoints = {nano1} + +Spring.SetUnitNanoPieces(unitID, nanoPoints) + +function script.StartBuilding(heading, pitch) + -- TODO: This is where you would add your unpack / point towards animation + SetUnitValue(COB.INBUILDSTANCE, true) + building = true + StartThread(BuildFX) +end + +function script.StopBuilding() + -- TODO: This is where you would add your pack-up animation + SetUnitValue(COB.INBUILDSTANCE, false) + building = false + StartThread(RestoreAfterDelay) +end + +function script.Killed() + Explode(spinner, SFX.EXPLODE_ON_HIT) + Explode(base, SFX.EXPLODE_ON_HIT) + return 1 -- spawn ARMSTUMP_DEAD corpse / This is the equivalent of corpsetype = 1; in bos +end \ No newline at end of file diff --git a/Scripts/lootboxes/exptype.h b/Scripts/lootboxes/exptype.h new file mode 100644 index 000000000..7a83187b2 --- /dev/null +++ b/Scripts/lootboxes/exptype.h @@ -0,0 +1,193 @@ +/* +** EXPtype.h -- Explosion Type information and GET/SET constants for scripts +** +** This Script contains constants compatible only with Spring RTS engine +** not for use with Total Annihilation or TA:Kindgoms +*/ + +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ + +// Indices for emit-sfx +#ifndef __SFXTYPE_H_ +#define SFXTYPE_VTOL 0 +//#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 // same as SFX_WAKE +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 // same as SFX_REVERSE_WAKE + +#define SFXTYPE_WHITESMOKE 257 +#define SFXTYPE_BLACKSMOKE 258 +#define SFXTYPE_SUBBUBBLES 259 +#endif + +#define SHATTER 1 // The piece will shatter instead of remaining whole +#define EXPLODE_ON_HIT 2 // The piece will explode when it hits the ground +#define FALL 4 // The piece will fall due to gravity instead of just flying off +#define SMOKE 8 // A smoke trail will follow the piece through the air +#define FIRE 16 // A fire trail will follow the piece through the air +#define BITMAPONLY 32 // The piece will not fly off or shatter or anything. Only a bitmap explosion will be rendered. +#define NOCEGTRAIL 64 // Disables the cegtrail for the specific piece (defined in the unit fbi) +#define NOHEATCLOUD 128 // No engine default heat cloud for explosion +#define BITMAP 10000001 + +// Bitmap Explosion Types +#define BITMAP1 256 +#define BITMAP2 512 +#define BITMAP3 1024 +#define BITMAP4 2048 +#define BITMAP5 4096 +#define BITMAPNUKE 8192 +#define BITMAPMASK 16128 // Mask of the possible bitmap bits + +#define EXPTYPE_SMALLEXPLOSION 256 +#define EXPTYPE_MEDIUMEXPLOSION 512 +#define EXPTYPE_LARGEEXPLOSION 1024 +#define EXPTYPE_XLARGEEXPLOSION 2048 +#define EXPTYPE_BLOODEXPLOSION 4096 + +//Customized effects (in FBI/TDF/LUA) +// Explosion generators +#define UNIT_SFX0 1024 +#define UNIT_SFX1 1025 +#define UNIT_SFX2 1026 +#define UNIT_SFX3 1027 +#define UNIT_SFX4 1028 +#define UNIT_SFX5 1029 +#define UNIT_SFX6 1030 +#define UNIT_SFX7 1031 +#define UNIT_SFX8 1032 +#define UNIT_SFX9 1033 + +// Weapons +#define FIRE_W1 2048 +#define FIRE_W2 2049 +#define FIRE_W3 2050 +#define FIRE_W4 2051 +#define FIRE_W5 2052 +#define FIRE_W6 2053 +#define FIRE_W7 2054 +#define FIRE_W8 2055 +#define FIRE_W9 2056 + +#define DETO_W1 4096 +#define DETO_W2 4097 +#define DETO_W3 4098 +#define DETO_W4 4099 +#define DETO_W5 4100 +#define DETO_W6 4101 +#define DETO_W7 4102 +#define DETO_W8 4103 +#define DETO_W9 4104 + + +// COB constants +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +#define IN_WATER 28 +#define CURRENT_SPEED 29 +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define SONAR_STEALTH 108 // set or get +#define REVERSING 109 // get + +// Indices for SET, GET, and GET_UNIT_VALUE for LUA return values +#define LUA0 110 // (LUA0 returns the lua call status, 0 or 1) +#define LUA1 111 +#define LUA2 112 +#define LUA3 113 +#define LUA4 114 +#define LUA5 115 +#define LUA6 116 +#define LUA7 117 +#define LUA8 118 +#define LUA9 119 + +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) get WEAPON_RELOADSTATE(weaponNum) for GET +#define WEAPON_RELOADTIME 126 // get (with fake set) get WEAPON_RELOADSTATE(-weaponNum,val) for SET +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) +#define WEAPON_STOCKPILE_COUNT 139 // get (with fake set) + + +#define MIN 131 // get +#define MAX 132 // get +#define ABS 133 // get +#define GAME_FRAME 134 // get +#define KSIN 135 // get, kiloSine 1024*sin(x) as COB uses only integers +#define KCOS 136 // get, kiloCosine 1024*cos(x) + +#define KTAN 137 // get, kiloTangent 1024*tan(x) carefull with angles close to 90 deg. might cause overflow +#define SQRT 138 // get, square root (floored to integer) + +#define ENERGY_MAKE 140 // set or get (100*E production) + +#define METAL_MAKE 141 // set or get (100*M production) + +// NOTE: shared variables use codes [1024 - 5119] + +#endif \ No newline at end of file diff --git a/Scripts/lootboxes/lootboxgold.bos b/Scripts/lootboxes/lootboxgold.bos new file mode 100644 index 000000000..784a3de5f --- /dev/null +++ b/Scripts/lootboxes/lootboxgold.bos @@ -0,0 +1,40 @@ +#define TA // This is a TA script + +#include "sfxtype.h" +#include "exptype.h" + +piece base, dbl, dtr, dbr, dtl, emit, blinka, blinkb, blinkc, blinkd; + +Lights() +{ + while( TRUE ) + { + emit-sfx 1024 + 0 from blinka; + sleep 90; + emit-sfx 1024 + 0 from blinkb; + sleep 90; + emit-sfx 1024 + 0 from blinkc; + sleep 90; + emit-sfx 1024 + 0 from blinkd; + sleep 3000; + } + sleep 2000; + start-script Lights(); +} + +Beacon() +{ + while( TRUE ) + { + emit-sfx 1024 + 1 from emit; + sleep 5000; + } + sleep 2000; + start-script Beacon(); +} + +Create() +{ + start-script Lights(); + start-script Beacon(); +} \ No newline at end of file diff --git a/Scripts/lootboxes/lootboxgold.cob b/Scripts/lootboxes/lootboxgold.cob new file mode 100644 index 000000000..cfcdd269f Binary files /dev/null and b/Scripts/lootboxes/lootboxgold.cob differ diff --git a/Scripts/lootboxes/sfxtype.h b/Scripts/lootboxes/sfxtype.h new file mode 100644 index 000000000..e69de29bb diff --git a/Scripts/lozcommandtank.bos b/Scripts/lozcommandtank.bos new file mode 100644 index 000000000..fc86e4833 --- /dev/null +++ b/Scripts/lozcommandtank.bos @@ -0,0 +1,184 @@ + +// One ninth of the full cycle duration, in millisecond +// The larger this value the slower the walk animation +#define WALK_PERIOD 50 + + +piece base, nano, nanopoint1, rearwheels, frontwheels, sidetanks, reartanks, turret, barrel1, firepoint1, dirt; + +static-var maxreloadtime, moving, bMoving, terraintype, building; + +#define SIG_AIM1 2 +#define SIG_FIRE1 4 +#define SIG_MOVE 8 +#define SMOKEPIECE1 base +#include "springdefs.h" +#define SIG_BUILD 16 +#define SIG_AIM_2 32 +#define nanoflame 1024+0 + + +SmokeUnit(healthpercent, sleeptime, smoketype) +{ + while( get BUILD_PERCENT_LEFT ) + { + sleep 400; + } + while( TRUE ) + { + healthpercent = get HEALTH; + if( healthpercent < 66 ) + { + smoketype = 256 | 2; + if( Rand( 1, 66 ) < healthpercent ) + { + smoketype = 256 | 1; + } + emit-sfx 1026 from turret; + } + sleeptime = healthpercent * 50; + if( sleeptime < 200 ) + { + sleeptime = 200; + } + sleep sleeptime; + } +} + + + +StartMoving() +{ + signal SIG_MOVE; + set-signal-mask SIG_MOVE; + moving=TRUE; + bMoving = TRUE; +} + +StopMoving() +{ + bMoving = FALSE; + signal SIG_MOVE; + set-signal-mask SIG_MOVE; + moving=FALSE; +} + + +Thrust() +{ + while( TRUE ) + { + if (moving) + { + emit-sfx 1025 + 0 from dirt; + spin frontwheels around x-axis speed <500.005495>; + spin rearwheels around x-axis speed <500.005495>; + + } + else + { + stop-spin frontwheels around x-axis decelerate <200.000000>; + stop-spin rearwheels around x-axis decelerate <200.000000>; + } + sleep 400; + } +} + + +buildflame() +{ + while( TRUE ) + { + if (building) + { + emit-sfx nanoflame from nanopoint1; + + } + sleep 600; + } +} + + +Create() +{ + moving=FALSE; + while(get BUILD_PERCENT_LEFT) + { + sleep 250; + } + start-script SmokeUnit(); + start-script Thrust(); + start-script buildflame(); +} + +RestoreAfterDelay() // restore function to turn the turret and so forth back to start +{ +sleep 3000; +turn turret to y-axis <0> speed <60>; +turn barrel1 to x-axis <0> speed <30>; +} + + +AimPrimary(heading, pitch) // single weapon with 2 fires this tell sit what to do while aiming +{ +signal SIG_AIM_2; +set-signal-mask SIG_AIM_2; +turn turret to y-axis heading speed <5000>; +turn barrel1 to x-axis <0> - pitch speed <5000>; +wait-for-turn turret around y-axis; +wait-for-turn barrel1 around x-axis; +start-script RestoreAfterDelay(); +return (1); +} + +FirePrimary() // what do while firing, fires 1 barrel then the next , and resets +{ +emit-sfx 1027 + 0 from firepoint1; +} + +AimFromPrimary(piecenum) // where it aims the weapon from +{ +piecenum = barrel1; +} + +QueryPrimary(piecenum) // where the shot is called from +{ +piecenum = firepoint1; +} + + +StartBuilding(heading, pitch) +{ + signal SIG_BUILD; + set-signal-mask SIG_BUILD; + set INBUILDSTANCE to 1; + building = 1; + while (1) { +// emit-sfx 2048 from nanopoint1; + sleep 30; + } +} + +StopBuilding() +{ + signal SIG_BUILD; + set-signal-mask SIG_BUILD; + set INBUILDSTANCE to 0; + building = 0; +} + +QueryNanoPiece(piecenum) +{ + piecenum = nanopoint1; +} + +Killed(severity, corpsetype) // how it explodes +{ + corpsetype = 1; + explode frontwheels type EXPLODE_ON_HIT; + explode rearwheels type EXPLODE_ON_HIT; + explode reartanks type EXPLODE_ON_HIT; + explode sidetanks type EXPLODE_ON_HIT; + explode nano type EXPLODE_ON_HIT; + explode barrel1 type EXPLODE_ON_HIT; +} \ No newline at end of file diff --git a/Scripts/lozcommandtank.cob b/Scripts/lozcommandtank.cob new file mode 100644 index 000000000..ddf26e520 Binary files /dev/null and b/Scripts/lozcommandtank.cob differ diff --git a/Scripts/scavs/beacon.bos b/Scripts/scavs/beacon.bos new file mode 100644 index 000000000..cb8960b35 --- /dev/null +++ b/Scripts/scavs/beacon.bos @@ -0,0 +1,37 @@ +#define TA // This is a TA script + +#include "sfxtype.h" +#include "exptype.h" + +piece base, topantenna, innerring, outerring, centerring, emit; + +Standby() +{ + while( TRUE ) + { + emit-sfx 1024 + 0 from emit; + sleep 1150; + } + sleep 50; + start-script Standby(); +} + +Create() +{ + spin topantenna around y-axis speed <8>; + spin topantenna around x-axis speed <2>; + spin innerring around y-axis speed <-3>; + spin centerring around y-axis speed <4>; + spin outerring around y-axis speed <-7>; + start-script Standby(); +} + + +Killed(severity, corpsetype) // how it explodes +{ + corpsetype = 1; + explode topantenna type EXPLODE_ON_HIT; + explode innerring type EXPLODE_ON_HIT; + explode centerring type EXPLODE_ON_HIT; + explode outerring type EXPLODE_ON_HIT; +} \ No newline at end of file diff --git a/Scripts/scavs/beacon.cob b/Scripts/scavs/beacon.cob new file mode 100644 index 000000000..043cc41dd Binary files /dev/null and b/Scripts/scavs/beacon.cob differ diff --git a/Scripts/scavs/droppod.bos b/Scripts/scavs/droppod.bos new file mode 100644 index 000000000..1864cc305 --- /dev/null +++ b/Scripts/scavs/droppod.bos @@ -0,0 +1,56 @@ +#define TA // This is a TA script + +#include "sfxtype.h" +#include "exptype.h" + +piece base, emit, launcher, arm; + + +Create() +{ + hide launcher; + hide emit; + hide base; + hide arm; + dont-shade base; + dont-cache base; + set ARMORED to 0; + move launcher to y-axis [10000.000000] speed [50000.000000]; + move launcher to x-axis [0.000000] speed [50000.000000]; + move launcher to z-axis [0.000000] speed [50000.000000]; + turn launcher to y-axis <90.000000> speed <10000.000000>; + turn launcher to x-axis <90.000000> speed <10000.000000>; + turn launcher to z-axis <90.000000> speed <10000.000000>; + sleep 100; + spin arm around y-axis speed <21.978022>; + turn arm to x-axis Rand( <0.005495>, <40.989011> ) speed <1000.000000>; + sleep Rand( 1, 100 ); + emit-sfx 2048 from launcher; + sleep 3000; + //show base; +} + +Killed(severity, corpsetype) +{ + emit-sfx 1025 from emit; +} + +QueryNanoPiece(piecenum) +{ + piecenum = base; +} + +QueryWeapon1(piecenum) +{ + piecenum = base; +} + +AimFromWeapon1(piecenum) +{ + piecenum = base; +} + +QueryLandingPad(Func_Var_1) +{ + Func_Var_1 = 1; +} diff --git a/Scripts/scavs/droppod.cob b/Scripts/scavs/droppod.cob new file mode 100644 index 000000000..a82e73aef Binary files /dev/null and b/Scripts/scavs/droppod.cob differ diff --git a/Scripts/scavs/exptype.h b/Scripts/scavs/exptype.h new file mode 100644 index 000000000..7a83187b2 --- /dev/null +++ b/Scripts/scavs/exptype.h @@ -0,0 +1,193 @@ +/* +** EXPtype.h -- Explosion Type information and GET/SET constants for scripts +** +** This Script contains constants compatible only with Spring RTS engine +** not for use with Total Annihilation or TA:Kindgoms +*/ + +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ + +// Indices for emit-sfx +#ifndef __SFXTYPE_H_ +#define SFXTYPE_VTOL 0 +//#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 // same as SFX_WAKE +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 // same as SFX_REVERSE_WAKE + +#define SFXTYPE_WHITESMOKE 257 +#define SFXTYPE_BLACKSMOKE 258 +#define SFXTYPE_SUBBUBBLES 259 +#endif + +#define SHATTER 1 // The piece will shatter instead of remaining whole +#define EXPLODE_ON_HIT 2 // The piece will explode when it hits the ground +#define FALL 4 // The piece will fall due to gravity instead of just flying off +#define SMOKE 8 // A smoke trail will follow the piece through the air +#define FIRE 16 // A fire trail will follow the piece through the air +#define BITMAPONLY 32 // The piece will not fly off or shatter or anything. Only a bitmap explosion will be rendered. +#define NOCEGTRAIL 64 // Disables the cegtrail for the specific piece (defined in the unit fbi) +#define NOHEATCLOUD 128 // No engine default heat cloud for explosion +#define BITMAP 10000001 + +// Bitmap Explosion Types +#define BITMAP1 256 +#define BITMAP2 512 +#define BITMAP3 1024 +#define BITMAP4 2048 +#define BITMAP5 4096 +#define BITMAPNUKE 8192 +#define BITMAPMASK 16128 // Mask of the possible bitmap bits + +#define EXPTYPE_SMALLEXPLOSION 256 +#define EXPTYPE_MEDIUMEXPLOSION 512 +#define EXPTYPE_LARGEEXPLOSION 1024 +#define EXPTYPE_XLARGEEXPLOSION 2048 +#define EXPTYPE_BLOODEXPLOSION 4096 + +//Customized effects (in FBI/TDF/LUA) +// Explosion generators +#define UNIT_SFX0 1024 +#define UNIT_SFX1 1025 +#define UNIT_SFX2 1026 +#define UNIT_SFX3 1027 +#define UNIT_SFX4 1028 +#define UNIT_SFX5 1029 +#define UNIT_SFX6 1030 +#define UNIT_SFX7 1031 +#define UNIT_SFX8 1032 +#define UNIT_SFX9 1033 + +// Weapons +#define FIRE_W1 2048 +#define FIRE_W2 2049 +#define FIRE_W3 2050 +#define FIRE_W4 2051 +#define FIRE_W5 2052 +#define FIRE_W6 2053 +#define FIRE_W7 2054 +#define FIRE_W8 2055 +#define FIRE_W9 2056 + +#define DETO_W1 4096 +#define DETO_W2 4097 +#define DETO_W3 4098 +#define DETO_W4 4099 +#define DETO_W5 4100 +#define DETO_W6 4101 +#define DETO_W7 4102 +#define DETO_W8 4103 +#define DETO_W9 4104 + + +// COB constants +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +#define IN_WATER 28 +#define CURRENT_SPEED 29 +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define SONAR_STEALTH 108 // set or get +#define REVERSING 109 // get + +// Indices for SET, GET, and GET_UNIT_VALUE for LUA return values +#define LUA0 110 // (LUA0 returns the lua call status, 0 or 1) +#define LUA1 111 +#define LUA2 112 +#define LUA3 113 +#define LUA4 114 +#define LUA5 115 +#define LUA6 116 +#define LUA7 117 +#define LUA8 118 +#define LUA9 119 + +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) get WEAPON_RELOADSTATE(weaponNum) for GET +#define WEAPON_RELOADTIME 126 // get (with fake set) get WEAPON_RELOADSTATE(-weaponNum,val) for SET +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) +#define WEAPON_STOCKPILE_COUNT 139 // get (with fake set) + + +#define MIN 131 // get +#define MAX 132 // get +#define ABS 133 // get +#define GAME_FRAME 134 // get +#define KSIN 135 // get, kiloSine 1024*sin(x) as COB uses only integers +#define KCOS 136 // get, kiloCosine 1024*cos(x) + +#define KTAN 137 // get, kiloTangent 1024*tan(x) carefull with angles close to 90 deg. might cause overflow +#define SQRT 138 // get, square root (floored to integer) + +#define ENERGY_MAKE 140 // set or get (100*E production) + +#define METAL_MAKE 141 // set or get (100*M production) + +// NOTE: shared variables use codes [1024 - 5119] + +#endif \ No newline at end of file diff --git a/Scripts/scavs/sfxtype.h b/Scripts/scavs/sfxtype.h new file mode 100644 index 000000000..e69de29bb diff --git a/Scripts/scavs/unitDefsTurretSpeeds.h b/Scripts/scavs/unitDefsTurretSpeeds.h new file mode 100644 index 000000000..c30940742 --- /dev/null +++ b/Scripts/scavs/unitDefsTurretSpeeds.h @@ -0,0 +1,68 @@ +/* unitDefsTurretSpeeds.h -- sets turret speed via unitDefs (through lua gadget Spring.CallCOBScript()) + The following variables are assumed to exist: + Weapon1TurretX, Weapon1TurretY + ... + Weapon10TurretX, Weapon10TurretY +*/ + +static-var Weapon1TurretX, Weapon1TurretY; +static-var Weapon2TurretX, Weapon2TurretY; +static-var Weapon3TurretX, Weapon3TurretY; +static-var Weapon4TurretX, Weapon4TurretY; +static-var Weapon5TurretX, Weapon5TurretY; +static-var Weapon6TurretX, Weapon6TurretY; +static-var Weapon7TurretX, Weapon7TurretY; +static-var Weapon8TurretX, Weapon8TurretY; +static-var Weapon9TurretX, Weapon9TurretY; +static-var Weapon10TurretX, Weapon10TurretY; + +SetWeapon1TurretSpeed(var1,var2) +{ + Weapon1TurretX = var1; + Weapon1TurretY = var2; +} +SetWeapon2TurretSpeed(var1,var2) +{ + Weapon2TurretX = var1; + Weapon2TurretY = var2; +} +SetWeapon3TurretSpeed(var1,var2) +{ + Weapon3TurretX = var1; + Weapon3TurretY = var2; +} +SetWeapon4TurretSpeed(var1,var2) +{ + Weapon4TurretX = var1; + Weapon4TurretY = var2; +} +SetWeapon5TurretSpeed(var1,var2) +{ + Weapon5TurretX = var1; + Weapon5TurretY = var2; +} +SetWeapon6TurretSpeed(var1,var2) +{ + Weapon6TurretX = var1; + Weapon6TurretY = var2; +} +SetWeapon7TurretSpeed(var1,var2) +{ + Weapon7TurretX = var1; + Weapon7TurretY = var2; +} +SetWeapon8TurretSpeed(var1,var2) +{ + Weapon8TurretX = var1; + Weapon8TurretY = var2; +} +SetWeapon9TurretSpeed(var1,var2) +{ + Weapon9TurretX = var1; + Weapon9TurretY = var2; +} +SetWeapon10TurretSpeed(var1,var2) +{ + Weapon10TurretX = var1; + Weapon10TurretY = var2; +} \ No newline at end of file diff --git a/Scripts/scavs/water2.h b/Scripts/scavs/water2.h new file mode 100644 index 000000000..b5a5be089 --- /dev/null +++ b/Scripts/scavs/water2.h @@ -0,0 +1,31 @@ +/* Rockunit.h -- Rock the unit when it fire a heavy weapon with lots of recoil */ + +#ifndef __ROCKUNIT_H_ +#define __ROCKUNIT_H_ + + +RockUnit(anglex,anglez) + { + + #define FIRST_SPEED 15 + #define SECOND_SPEED 12 + #define THIRD_SPEED 9 + + turn base to x-axis anglex speed ; + turn base to z-axis anglez speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (0-anglex) speed ; + turn base to z-axis (0-anglez) speed ; + + //wait-for-turn base around z-axis; + //wait-for-turn base around x-axis; + + //turn base to x-axis <0> speed ; + //turn base to z-axis <0> speed ; + + + } +#endif diff --git a/Scripts/scavs/water3.h b/Scripts/scavs/water3.h new file mode 100644 index 000000000..5066f3284 --- /dev/null +++ b/Scripts/scavs/water3.h @@ -0,0 +1,35 @@ +#ifndef __ROCKUNIT_H_ +#define __ROCKUNIT_H_ + + +RockUnit(anglex,anglez) + { + + #define FIRST_SPEED 10 + #define SECOND_SPEED 8 + #define THIRD_SPEED 6 + #define FIFTH_SPEED 4 + + turn base to x-axis anglex speed ; + turn base to z-axis anglez speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (0-anglex) speed ; + turn base to z-axis (0-anglez) speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis (anglex/2) speed ; + turn base to z-axis (anglez/2) speed ; + + wait-for-turn base around z-axis; + wait-for-turn base around x-axis; + + turn base to x-axis <0> speed ; + turn base to z-axis <0> speed ; + } +#endif + diff --git a/Scripts/scavs/weapon1control.h b/Scripts/scavs/weapon1control.h new file mode 100644 index 000000000..d1c1acd4f --- /dev/null +++ b/Scripts/scavs/weapon1control.h @@ -0,0 +1,154 @@ +/* +HOW TO: +- Model MUST contain aimx1 and aimy1 pieces +- Script must have defined Weapon1TurretX and Weapon1TurretY static-vars (turret turn speeds) +- Script must have defined aimx1 and aimy1 pieces +- Change script as such: +Create() +{ + [...] + start-script InitialSetup1(); + [...] +} + +AimWeapon1(heading, pitch) +{ + [...] + start-script Weapon1Drawn(); -- can call a function that draws weapons and then calls Weapon1Drawn() when done if there is an actual animation (ie pw) + [...] -- Remove animations from aimWeapon scripts (use a DrawWeapon1() if an animation is needed, weapon1control will rotate the different aimpieces) + start-script Weapon1SetWtdAim(heading, pitch); + [...] + return (aim1); +} + +RestoreAfterDelay() +{ + [...] + sleep sleeptime; + start-script RestoreWeapon1(); + [...] -- other animations; + call-script Weapon1Restored(); + [...] -- tell script wpn has been restored if needed for walkscripts +} + +- Weapon1Control moves the aim pieces depending on turretSpeeds, sets pitch = 1 when pitch reached and head = 1 when head reached +- Weapon1Drawn allows unit to fire by setting wpnReady1 = 1 +- if pitch = 1, head = 1 and wpnReady = 1 then the weapon can shoot: aim1 = 1 and aimweapon returns aim1 +- Restore animations go in RestoreAfterDelay, RestoreWeapon1() restores aimy and aimx pieces orientation, Weapon1Restored() waits for these pieces to be restored +*/ + +static-var curHead1, wtdHead1, head1, curPitch1, wtdPitch1, pitch1, aim1, wpnReady1; + +Weapon1Control() +{ + while (TRUE) + { + if (curHead1 > <180>) + { + curHead1 = <-360> + curHead1; + } + if (curPitch1 > <180>) + { + curPitch1 = <-360> + curPitch1; + } + if (curHead1 < <-180>) + { + curHead1 = <360> + curHead1; + } + if (curPitch1 < <-180>) + { + curPitch1 = <360> + curPitch1; + } + if (Static_Var_3 == 1) + { + if (((get ABS(curHead1 - wtdHead1)) > <360>) OR(((get ABS(curHead1 - wtdHead1)) > (Weapon1TurretY / 30)) AND ((get ABS(curHead1 - wtdHead1)) < <360> - (Weapon1TurretY / 30)))) + { + head1 = 0; + if(curHead1 < wtdHead1) { + if(get ABS(curHead1 - wtdHead1)< <180>) + curHead1 = curHead1 + (Weapon1TurretY / 30); + else curHead1 = curHead1 - (Weapon1TurretY / 30); + } + + else { + if(get ABS(curHead1 - wtdHead1)< <180>) + curHead1 = curHead1 - (Weapon1TurretY / 30); + else curHead1 = curHead1 + (Weapon1TurretY / 30); + } + } + else + { + head1 = 1; + curHead1 = wtdHead1; + } + if (((get ABS(curPitch1 - wtdPitch1)) > <360>) OR(((get ABS(curPitch1 - wtdPitch1)) > (Weapon1TurretX / 30)) AND ((get ABS(curPitch1 - wtdPitch1)) < <360> - (Weapon1TurretX / 30)))) + { + pitch1 = 0; + if(curPitch1 < wtdPitch1) { + if(get ABS(curPitch1 - wtdPitch1)< <180>) + curPitch1 = curPitch1 + (Weapon1TurretX / 30); + else curPitch1 = curPitch1 - (Weapon1TurretX / 30); + } + + else { + if(get ABS(curPitch1 - wtdPitch1)< <180>) + curPitch1 = curPitch1 - (Weapon1TurretX / 30); + else curPitch1 = curPitch1 + (Weapon1TurretX / 30); + } + } + else + { + pitch1 = 1; + curPitch1 = wtdPitch1; + } + if (pitch1 == 1 AND head1 == 1 AND wpnReady1 == 1 AND wtdHead1 != 0) + { + aim1 = 1; + } + else + { + aim1 = 0; + } + turn aimy1 to y-axis curHead1 now; + turn aimx1 to x-axis curPitch1 now; + } + sleep 1; + } +} + +InitialSetup1() +{ + curHead1 = 0; + curPitch1 = 0; + wtdHead1 = 0; + wtdPitch1 = 0; + wpnReady1 = 0; + start-script Weapon1Control(); +} + +Weapon1Drawn() +{ + wpnReady1 = 1; +} + +RestoreWeapon1() +{ + wtdHead1 = 0; + wtdPitch1 = 0; +} + +Weapon1Restored() +{ + wpnReady1 = 0; + while (curHead1 != 0) + { + sleep 25; + } + return (TRUE); +} + +Weapon1SetWtdAim(pitch, heading) +{ + wtdHead1 = heading; + wtdPitch1 = <0> - pitch; +} \ No newline at end of file diff --git a/Scripts/scavs/yard.h b/Scripts/scavs/yard.h new file mode 100644 index 000000000..048994e28 --- /dev/null +++ b/Scripts/scavs/yard.h @@ -0,0 +1,35 @@ +#ifndef SCRIPTS_YARD_H +#define SCRIPTS_YARD_H + +// keep trying to open building's yard until we succeed +OpenYard() + { + set YARD_OPEN to TRUE; + + while(!(get YARD_OPEN)) + { + set BUGGER_OFF to TRUE; + sleep 1500; + set YARD_OPEN to TRUE; + } + + set BUGGER_OFF to FALSE; + } + + +// keep trying to close building's yard until we succeed +CloseYard() + { + set YARD_OPEN to FALSE; + + while(get YARD_OPEN) + { + set BUGGER_OFF to TRUE; + sleep 1500; + set YARD_OPEN to FALSE; + } + + set BUGGER_OFF to FALSE; + } + +#endif // SCRIPTS_YARD_H diff --git a/Scripts/zaal/constants.h b/Scripts/zaal/constants.h new file mode 100644 index 000000000..5405aeeec --- /dev/null +++ b/Scripts/zaal/constants.h @@ -0,0 +1,146 @@ +//just replaced it with rattle's. plus no dealing with a pissy Argh claiming that now we have to GPL EEEVVVRRYYTHING +//Argh, if you read this: honestly, wtf were you thinking trying to GPL a list of #defines? +// With the original cavedog comments STILL IN THEM!? +// You could at least have made it less bloody obvious that it was a direct copy/paste. +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ +#endif + +#define SFXTYPE_VTOL 1 +#define SFXTYPE_THRUST 2 +#define SFXTYPE_WAKE1 3 +#define SFXTYPE_WAKE2 4 +#define SFXTYPE_REVERSEWAKE1 5 +#define SFXTYPE_REVERSEWAKE2 6 + +#define SFXTYPE_POINTBASED 256 +#define SFXTYPE_WHITESMOKE 256|1 +#define SFXTYPE_BLACKSMOKE 256|2 +#define SFXTYPE_SUBBUBBLES 256|3 + +#define SHATTER 1 +#define EXPLODE_ON_HIT 2 +#define FALL 4 +#define SMOKE 8 +#define FIRE 16 +#define BITMAPONLY 32 +#define BITMAP 10000001 + +// Explosion generators +#define UNIT_SFX1 1024 +#define UNIT_SFX2 1025 +#define UNIT_SFX3 1026 +#define UNIT_SFX4 1027 +#define UNIT_SFX5 1028 +#define UNIT_SFX6 1029 +#define UNIT_SFX7 1030 +#define UNIT_SFX8 1031 + +// Weapons +#define FIRE_W1 2048 +#define FIRE_W2 2049 +#define FIRE_W3 2050 +#define FIRE_W4 2051 +#define FIRE_W5 2052 +#define FIRE_W6 2053 +#define FIRE_W7 2054 +#define FIRE_W8 2055 + +#define DETO_W1 4096 +#define DETO_W2 4097 +#define DETO_W3 4098 +#define DETO_W4 4099 +#define DETO_W5 4100 +#define DETO_W6 4101 +#define DETO_W7 4102 +#define DETO_W8 4103 + +// COB constants, as in CobInstance.cpp +// Indices for set/get value +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +/*#define WEAPON_AIM_ABORTED 21 +#define WEAPON_READY 22 +#define WEAPON_LAUNCH_NOW 23 +#define FINISHED_DYING 26 +#define ORIENTATION 27*/ +#define IN_WATER 28 +#define CURRENT_SPEED 29 +//#define MAGIC_DEATH 31 +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define SONAR_STEALTH 108 // set or get + +// NOTE: [LUA0 - LUA9] are defined in CobThread.cpp as [110 - 119] + +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) +#define WEAPON_RELOADTIME 126 // get (with fake set) +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) +#define MIN 131 // get +#define MAX 132 // get +#define ABS 133 // get +#define GAME_FRAME 134 // get diff --git a/Scripts/zaal/exptype.h b/Scripts/zaal/exptype.h new file mode 100644 index 000000000..932fb4f47 --- /dev/null +++ b/Scripts/zaal/exptype.h @@ -0,0 +1,192 @@ +/* +** EXPtype.h -- Explosion Type information and GET/SET constants for scripts +** +** This Script contains constants compatible only with Spring RTS engine +** not for use with Total Annihilation or TA:Kindgoms +*/ + +#ifndef CONSTANTS_H_ +#define CONSTANTS_H_ + +// Indices for emit-sfx +#ifndef __SFXTYPE_H_ +#define SFXTYPE_VTOL 0 +//#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 // same as SFX_WAKE +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 // same as SFX_REVERSE_WAKE + +#define SFXTYPE_WHITESMOKE 257 +#define SFXTYPE_BLACKSMOKE 258 +#define SFXTYPE_SUBBUBBLES 259 +#endif + +#define SHATTER 1 // The piece will shatter instead of remaining whole +#define EXPLODE_ON_HIT 2 // The piece will explode when it hits the ground +#define FALL 4 // The piece will fall due to gravity instead of just flying off +#define SMOKE 8 // A smoke trail will follow the piece through the air +#define FIRE 16 // A fire trail will follow the piece through the air +#define BITMAPONLY 32 // The piece will not fly off or shatter or anything. Only a bitmap explosion will be rendered. +#define NOCEGTRAIL 64 // Disables the cegtrail for the specific piece (defined in the unit fbi) +#define BITMAP 10000001 + +// Bitmap Explosion Types +#define BITMAP1 256 +#define BITMAP2 512 +#define BITMAP3 1024 +#define BITMAP4 2048 +#define BITMAP5 4096 +#define BITMAPNUKE 8192 +#define BITMAPMASK 16128 // Mask of the possible bitmap bits + +#define EXPTYPE_SMALLEXPLOSION 256 +#define EXPTYPE_MEDIUMEXPLOSION 512 +#define EXPTYPE_LARGEEXPLOSION 1024 +#define EXPTYPE_XLARGEEXPLOSION 2048 +#define EXPTYPE_BLOODEXPLOSION 4096 + +//Customized effects (in FBI/TDF/LUA) +// Explosion generators +#define UNIT_SFX0 1024 +#define UNIT_SFX1 1025 +#define UNIT_SFX2 1026 +#define UNIT_SFX3 1027 +#define UNIT_SFX4 1028 +#define UNIT_SFX5 1029 +#define UNIT_SFX6 1030 +#define UNIT_SFX7 1031 +#define UNIT_SFX8 1032 +#define UNIT_SFX9 1033 + +// Weapons +#define FIRE_W1 2048 +#define FIRE_W2 2049 +#define FIRE_W3 2050 +#define FIRE_W4 2051 +#define FIRE_W5 2052 +#define FIRE_W6 2053 +#define FIRE_W7 2054 +#define FIRE_W8 2055 +#define FIRE_W9 2056 + +#define DETO_W1 4096 +#define DETO_W2 4097 +#define DETO_W3 4098 +#define DETO_W4 4099 +#define DETO_W5 4100 +#define DETO_W6 4101 +#define DETO_W7 4102 +#define DETO_W8 4103 +#define DETO_W9 4104 + + +// COB constants +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +#define IN_WATER 28 +#define CURRENT_SPEED 29 +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define SONAR_STEALTH 108 // set or get +#define REVERSING 109 // get + +// Indices for SET, GET, and GET_UNIT_VALUE for LUA return values +#define LUA0 110 // (LUA0 returns the lua call status, 0 or 1) +#define LUA1 111 +#define LUA2 112 +#define LUA3 113 +#define LUA4 114 +#define LUA5 115 +#define LUA6 116 +#define LUA7 117 +#define LUA8 118 +#define LUA9 119 + +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) get WEAPON_RELOADSTATE(weaponNum) for GET +#define WEAPON_RELOADTIME 126 // get (with fake set) get WEAPON_RELOADSTATE(-weaponNum,val) for SET +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) +#define WEAPON_STOCKPILE_COUNT 139 // get (with fake set) + + +#define MIN 131 // get +#define MAX 132 // get +#define ABS 133 // get +#define GAME_FRAME 134 // get +#define KSIN 135 // get, kiloSine 1024*sin(x) as COB uses only integers +#define KCOS 136 // get, kiloCosine 1024*cos(x) + +#define KTAN 137 // get, kiloTangent 1024*tan(x) carefull with angles close to 90 deg. might cause overflow +#define SQRT 138 // get, square root (floored to integer) + +#define ENERGY_MAKE 140 // set or get (100*E production) + +#define METAL_MAKE 141 // set or get (100*M production) + +// NOTE: shared variables use codes [1024 - 5119] + +#endif \ No newline at end of file diff --git a/Scripts/zaal/sfxtype.h b/Scripts/zaal/sfxtype.h new file mode 100644 index 000000000..610241a23 --- /dev/null +++ b/Scripts/zaal/sfxtype.h @@ -0,0 +1,51 @@ +/* +** SFXtype.h -- Special Effects Type information for scripts +** +** Copyright 1997 Cavedog Entertainment +*/ + +#ifndef __SFXTYPE_H_ +#define __SFXTYPE_H_ + +/* +Special Effect Particles referenced in the scripting language +with the command "emit-sfx". This file is included by any +scripts that use the command, as well as TAObjScr.cpp in the game, +so it can start the proper effect. +*/ + +// IMPORTANT: If you change these defines, copy the file to +// v:\totala\cdimage\scripts so the scripts have +// access to the proper data, and recompile them. + + +// Vector-based special effects + +#define SFXTYPE_VTOL 0 +#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 + + + +// Point-based (piece origin) special effects + +#define SFXTYPE_POINTBASED 256 + +#define SFXTYPE_WHITESMOKE (SFXTYPE_POINTBASED | 1) +#define SFXTYPE_BLACKSMOKE (SFXTYPE_POINTBASED | 2) +#define SFXTYPE_SUBBUBBLES +// New in TA:K +#define SFXTYPE_SMALLDAMAGEFLAME (SFXTYPE_POINTBASED | 4) + + +// Sound priorities in TA:K +#define PLAYSOUND_PRIORITY_BATTLE 4 + + +// SFX Occupy States +#define SFXOCCUPY_AIR 5 + +#endif \ No newline at end of file diff --git a/Scripts/zaal/smokeunit.h b/Scripts/zaal/smokeunit.h new file mode 100644 index 000000000..0bec00f0e --- /dev/null +++ b/Scripts/zaal/smokeunit.h @@ -0,0 +1,100 @@ +/* SmokeUnit.h -- Process unit smoke when damaged */ + +#ifndef SMOKE_H_ +#define SMOKE_H_ + +#include "SFXtype.h" +#include "EXPtype.h" + +// Figure out how many smoking pieces are defined + +#ifdef SMOKEPIECE4 + #define NUM_SMOKE_PIECES 4 +#else + #ifdef SMOKEPIECE3 + #define NUM_SMOKE_PIECES 3 + #else + #ifdef SMOKEPIECE2 + #define NUM_SMOKE_PIECES 2 + #else + #define NUM_SMOKE_PIECES 1 + #ifndef SMOKEPIECE1 + #define SMOKEPIECE1 SMOKEPIECE + #endif + #endif + #endif +#endif + + +SmokeUnit() +{ + var healthpercent; + var sleeptime; + var smoketype; + +#if NUM_SMOKE_PIECES > 1 + var choice; +#endif + + // Wait until the unit is actually built + while (get BUILD_PERCENT_LEFT) + { + sleep 400; + } + + // Smoke loop + while (TRUE) + { + // How is the unit doing? + healthpercent = get HEALTH; + + if (healthpercent < 66) + { + // Emit a puff of smoke + + smoketype = SFXTYPE_BLACKSMOKE; + + if (rand( 1, 66 ) < healthpercent) + { + smoketype = SFXTYPE_WHITESMOKE; + } + + // Figure out which piece the smoke will emit from, and spit it out + +#if NUM_SMOKE_PIECES == 1 + emit-sfx 1026 from SMOKEPIECE1; +#else + choice = rand( 1, NUM_SMOKE_PIECES ); + + if (choice == 1) + { emit-sfx 1026 from SMOKEPIECE1; } + if (choice == 2) + { emit-sfx 1026 from SMOKEPIECE2; } + #if NUM_SMOKE_PIECES >= 3 + if (choice == 3) + { emit-sfx 1026 from SMOKEPIECE3; } + #if NUM_SMOKE_PIECES >= 4 + if (choice == 4) + { emit-sfx 1026 from SMOKEPIECE4; } + #endif + #endif +#endif + } + + // Delay between puffs + + sleeptime = healthpercent * 50; + if (sleeptime < 200) + { + sleeptime = 200; // Fastest rate is five times per second + } + + sleep sleeptime; + } +} + + +// Clean up pre-processor +#undef NUM_SMOKE_PIECES + +#endif diff --git a/Scripts/zaal/springdefs.h b/Scripts/zaal/springdefs.h new file mode 100644 index 000000000..cada4991d --- /dev/null +++ b/Scripts/zaal/springdefs.h @@ -0,0 +1,164 @@ +//============================================================================== +// +// Constants and macros for Spring /units/*.BOS +// +// Made by merging the exptype.h and sfxtype.h that are tradionally shipped with Scriptor +// Which are themselves edited from the ones inside Cavedog's Totala1.hpi +// And the #define from https://spring.clan-sy.com/svn/spring/trunk/rts/Sim/Units/COB/CobInstance.cpp +// +//============================================================================== + +#ifndef SPRING_SCRIPTS_H +#define SPRING_SCRIPTS_H + + +// To use with the "emit-sfx" command: + +// Vector-based special effects +#define SFXTYPE_VTOL 0 +#define SFXTYPE_THRUST 1 +#define SFXTYPE_WAKE1 2 +#define SFXTYPE_WAKE2 3 +#define SFXTYPE_REVERSEWAKE1 4 +#define SFXTYPE_REVERSEWAKE2 5 + +// Point-based (piece origin) special effects +#define SFXTYPE_POINTBASED 256 +#define SFXTYPE_WHITESMOKE (SFXTYPE_POINTBASED | 1) +#define SFXTYPE_BLACKSMOKE (SFXTYPE_POINTBASED | 2) +#define SFXTYPE_SUBBUBBLES (SFXTYPE_POINTBASED | 3) +// TA:K sfx, maybe not implemented in Spring +#define SFXTYPE_SMALLDAMAGEFLAME (SFXTYPE_POINTBASED | 4) +#define SFXTYPE_MEDIUMDAMAGEFLAME (SFXTYPE_POINTBASED | 5) +#define SFXTYPE_LARGEDAMAGEFLAME (SFXTYPE_POINTBASED | 6) + +// Probably not implemented in Spring, TA:K stuff +#define PLAYSOUND_PRIORITY_BATTLE 4 + +// Probably not implemented in Spring, probably TA:K stuff +#define SFXOCCUPY_AIR 5 // SFX Occupy States + +// To use with the "explode" command: +#define SHATTER 1 // The piece will shatter instead of remaining whole +#define EXPLODE_ON_HIT 2 // The piece will explode when it hits the ground +#define FALL 4 // The piece will fall due to gravity instead of just flying off +#define SMOKE 8 // A smoke trail will follow the piece through the air +#define FIRE 16 // A fire trail will follow the piece through the air +#define BITMAPONLY 32 // The piece will not fly off or shatter or anything. Only a bitmap explosion will be rendered. +#define BITMAP1 256 +#define BITMAP2 512 +#define BITMAP3 1024 +#define BITMAP4 2048 +#define BITMAP5 4096 +#define BITMAPNUKE 8192 +#define BITMAPMASK 16128 // Mask of the possible bitmap bits + +// Probably not implemented in Spring, TA:K stuff +#define EXPTYPE_SMALLEXPLOSION 256 +#define EXPTYPE_MEDIUMEXPLOSION 512 +#define EXPTYPE_LARGEEXPLOSION 1024 +#define EXPTYPE_XLARGEEXPLOSION 2048 +#define EXPTYPE_BLOODEXPLOSION 4096 +#define EXPTYPE_SMALLSMOKE 8192 +#define EXPTYPE_MEDIUMSMOKE 16384 +#define EXPTYPE_XLARGESMOKE 65536 + +// Probably not implemented in Spring, TA:K stuff (DT stands for Damage Type) +#define DT_FIRE 2 +#define DT_EXPLOSION 3 +#define DT_PARALYZER 4 + +// Indices for set/get value +#define ACTIVATION 1 // set or get +#define STANDINGMOVEORDERS 2 // set or get +#define STANDINGFIREORDERS 3 // set or get +#define HEALTH 4 // get (0-100%) +#define INBUILDSTANCE 5 // set or get +#define BUSY 6 // set or get (used by misc. special case missions like transport ships) +#define PIECE_XZ 7 // get +#define PIECE_Y 8 // get +#define UNIT_XZ 9 // get +#define UNIT_Y 10 // get +#define UNIT_HEIGHT 11 // get +#define XZ_ATAN 12 // get atan of packed x,z coords +#define XZ_HYPOT 13 // get hypot of packed x,z coords +#define ATAN 14 // get ordinary two-parameter atan +#define HYPOT 15 // get ordinary two-parameter hypot +#define GROUND_HEIGHT 16 // get land height, 0 if below water +#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build +#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes) +#define BUGGER_OFF 19 // set or get (ask other units to clear the area) +#define ARMORED 20 // set or get + +#define WEAPON_AIM_ABORTED 21 // Not implemented in Spring, TAK stuff +#define WEAPON_READY 22 // Not implemented in Spring, TAK stuff +#define WEAPON_LAUNCH_NOW 23 // Not implemented in Spring, TAK stuff +#define FINISHED_DYING 26 // Not implemented in Spring, TAK stuff +#define ORIENTATION 27 // Not implemented in Spring, TAK stuff +#define IN_WATER 28 +#define CURRENT_SPEED 29 +#define MAGIC_DEATH 31 // Not implemented in Spring, TAK stuff +#define VETERAN_LEVEL 32 +#define ON_ROAD 34 + +#define MAX_ID 70 +#define MY_ID 71 +#define UNIT_TEAM 72 +#define UNIT_BUILD_PERCENT_LEFT 73 +#define UNIT_ALLIED 74 +#define MAX_SPEED 75 +#define CLOAKED 76 +#define WANT_CLOAK 77 +#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water +#define UPRIGHT 79 // set or get +#define POW 80 // get +#define PRINT 81 // get, so multiple args can be passed +#define HEADING 82 // get +#define TARGET_ID 83 // get +#define LAST_ATTACKER_ID 84 // get +#define LOS_RADIUS 85 // set or get +#define AIR_LOS_RADIUS 86 // set or get +#define RADAR_RADIUS 87 // set or get +#define JAMMER_RADIUS 88 // set or get +#define SONAR_RADIUS 89 // set or get +#define SONAR_JAM_RADIUS 90 // set or get +#define SEISMIC_RADIUS 91 // set or get +#define DO_SEISMIC_PING 92 // get +#define CURRENT_FUEL 93 // set or get +#define TRANSPORT_ID 94 // get +#define SHIELD_POWER 95 // set or get +#define STEALTH 96 // set or get +#define CRASHING 97 // set or get, returns whether aircraft isCrashing state +#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon +#define CEG_DAMAGE 99 // set +#define COB_ID 100 // get +#define PLAY_SOUND 101 // get, so multiple args can be passed +#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false) +#define ALPHA_THRESHOLD 103 // set or get +#define SET_WEAPON_UNIT_TARGET 106 // get (fake set) +#define SET_WEAPON_GROUND_TARGET 107 // get (fake set) +#define LUA0 110 +#define LUA1 111 +#define LUA2 112 +#define LUA3 113 +#define LUA4 114 +#define LUA5 115 +#define LUA6 116 +#define LUA7 117 +#define LUA8 118 +#define LUA9 119 +#define FLANK_B_MODE 120 // set or get +#define FLANK_B_DIR 121 // set or get, set is through get for multiple args +#define FLANK_B_MOBILITY_ADD 122 // set or get +#define FLANK_B_MAX_DAMAGE 123 // set or get +#define FLANK_B_MIN_DAMAGE 124 // set or get +#define WEAPON_RELOADSTATE 125 // get (with fake set) +#define WEAPON_RELOADTIME 126 // get (with fake set) +#define WEAPON_ACCURACY 127 // get (with fake set) +#define WEAPON_SPRAY 128 // get (with fake set) +#define WEAPON_RANGE 129 // get (with fake set) +#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set) + +// NOTE: shared variables use codes [1024 - 5119] + +#endif // SPRING_SCRIPTS_H diff --git a/Scripts/zaal/zarty.bos b/Scripts/zaal/zarty.bos index d5be24b87..8d827818d 100644 --- a/Scripts/zaal/zarty.bos +++ b/Scripts/zaal/zarty.bos @@ -202,8 +202,8 @@ AimPrimary(heading,pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250>; - turn head to x-axis 0 -pitch speed <200>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; wait-for-turn head around y-axis; start-script RestoreAfterDelay(); diff --git a/Scripts/zaal/zarty.cob b/Scripts/zaal/zarty.cob index de99a0753..25463e2ae 100644 Binary files a/Scripts/zaal/zarty.cob and b/Scripts/zaal/zarty.cob differ diff --git a/Scripts/zaal/zassault.bos b/Scripts/zaal/zassault.bos index 730980a57..9efdb687b 100644 --- a/Scripts/zaal/zassault.bos +++ b/Scripts/zaal/zassault.bos @@ -150,8 +150,8 @@ AimPrimary(heading,pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250>; - turn head to x-axis 0 -pitch speed <200>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; return(TRUE); } diff --git a/Scripts/zaal/zassault.cob b/Scripts/zaal/zassault.cob index 21fca000b..1fa57561c 100644 Binary files a/Scripts/zaal/zassault.cob and b/Scripts/zaal/zassault.cob differ diff --git a/Scripts/zaal/zconstructor.bos b/Scripts/zaal/zconstructor.bos new file mode 100644 index 000000000..ece50a29f --- /dev/null +++ b/Scripts/zaal/zconstructor.bos @@ -0,0 +1,196 @@ +piece body,head,tail,lthigh,lknee,lshin,lfoot,rthigh,rknee,rshin,rfoot,rsack,lsack,nano1; + +static-var aMoving, bMoving, bAiming, bCanAim, shooting_num, base_speed, restore_delay, building; + +// Signal definitions +#define SIG_BUILD 2 +#define SIG_AIM_2 4 +#define SIG_MOVE 16 +#define SIG_RESTORE 32 + +#include "sfxtype.h" +#include "exptype.h" + + + + +walk() +{ + while (aMoving) + { + bMoving = TRUE; + if (aMoving) { + turn lthigh to x-axis <70> speed<115>; + turn lknee to x-axis <-40> speed<145>; + turn lshin to x-axis <20> speed<145>; + turn lfoot to x-axis <-50> speed<210>; + + turn rthigh to x-axis <-20> speed<210>; + turn rknee to x-axis <-60> speed<210>; + turn rshin to x-axis <50> speed<210>; + turn rfoot to x-axis <30> speed<210>; + + turn body to z-axis <5> speed <20>; + turn lthigh to z-axis <-5> speed <20>; + turn rthigh to z-axis <-5> speed <20>; + move body to y-axis [0.7] speed <4000>; + turn tail to y-axis <10> speed <40>; + turn head to x-axis <-10> speed <20>; + turn tail to x-axis <10> speed <20>; + wait-for-turn lthigh around x-axis; + } + if (aMoving) { + + turn lthigh to x-axis <-10> speed<160>; + turn lknee to x-axis <15> speed<145>; + turn lshin to x-axis <-60> speed<250>; + turn lfoot to x-axis <30> speed<145>; + + turn rthigh to x-axis <40> speed<145>; + turn rknee to x-axis <-35> speed<145>; + turn rshin to x-axis <-40> speed<145>; + turn rfoot to x-axis <35> speed<145>; + + move body to y-axis [0] speed <4000>; + turn head to x-axis <10> speed <20>; + turn tail to x-axis <-10> speed <20>; + wait-for-turn lshin around x-axis; + emit-sfx 1024 from head; + } + if (aMoving) { + + turn rthigh to x-axis <70> speed<115>; + turn rknee to x-axis <-40> speed<145>; + turn rshin to x-axis <20> speed<145>; + turn rfoot to x-axis <-50> speed<210>; + + turn lthigh to x-axis <-20> speed<210>; + turn lknee to x-axis <-60> speed<210>; + turn lshin to x-axis <50> speed<210>; + turn lfoot to x-axis <30> speed<210>; + + turn tail to y-axis <-10> speed <40>; + turn body to z-axis <-5> speed <20>; + turn lthigh to z-axis <5> speed <20>; + turn rthigh to z-axis <5> speed <20>; + move body to y-axis [0.7] speed <4000>; + turn head to x-axis <-10> speed <20>; + turn tail to x-axis <10> speed <20>; + wait-for-turn rthigh around x-axis; + + } + if (aMoving) { + + turn rthigh to x-axis <-10> speed<160>; + turn rknee to x-axis <15> speed<145>; + turn rshin to x-axis <-60> speed<250>; + turn rfoot to x-axis <30> speed<145>; + + turn lthigh to x-axis <40> speed<145>; + turn lknee to x-axis <-35> speed<145>; + turn lshin to x-axis <-40> speed<145>; + turn lfoot to x-axis <35> speed<145>; + + + move body to y-axis [0] speed <4000>; + turn head to x-axis <10> speed <20>; + turn tail to x-axis <-10> speed <20>; + wait-for-turn rshin around x-axis; + emit-sfx 1024 from head; + } + + } + return 0; +} + +Halt() +{ + sleep 150; + if(!aMoving) + { + bMoving = FALSE; + turn lfoot to x-axis <0> speed <100>; + turn rfoot to x-axis <0> speed <100>; + turn rthigh to x-axis <0> speed <100>; + turn lthigh to x-axis <0> speed <100>; + turn lshin to x-axis <0> speed <100>; + turn rshin to x-axis <0> speed <100>; + turn lfoot to y-axis <0> speed <100>; + turn rfoot to y-axis <0> speed <100>; + turn rthigh to y-axis <0> speed <100>; + turn lthigh to y-axis <0> speed <100>; + turn lshin to y-axis <0> speed <100>; + turn rshin to y-axis <0> speed <100>; + } +} + +StartMoving() +{ + aMoving = TRUE; + if (!bMoving) + { + start-script Walk(); + } +} + +StopMoving() +{ + aMoving = FALSE; + start-script Halt(); +} + + +Activate() +{ + +} + +Deactivate() +{ + +} + +RestoreAfterDelay() +{ + sleep 1000; + +} + +Create() +{ + start-script RestoreAfterDelay(); +} + +StartBuilding(heading, pitch) +{ + signal SIG_BUILD; + set-signal-mask SIG_BUILD; + set INBUILDSTANCE to 1; + building = 1; + while (1) { +// emit-sfx 2048 from nanopoint1; + sleep 30; + } +} + +StopBuilding() +{ + signal SIG_BUILD; + set-signal-mask SIG_BUILD; + set INBUILDSTANCE to 0; + building = 0; +} + +QueryNanoPiece(piecenum) +{ + piecenum = nano1; +} + +SweetSpot(piecenum) + { piecenum=body; } + +Killed( severity, corpsetype ) + { + corpsetype = 1; + return( 0 ); + } \ No newline at end of file diff --git a/Scripts/zaal/zconstructor.cob b/Scripts/zaal/zconstructor.cob new file mode 100644 index 000000000..d5a0c70a0 Binary files /dev/null and b/Scripts/zaal/zconstructor.cob differ diff --git a/Scripts/zaal/zlightswarm.bos b/Scripts/zaal/zlightswarm.bos index 843457c28..10e57c76b 100644 --- a/Scripts/zaal/zlightswarm.bos +++ b/Scripts/zaal/zlightswarm.bos @@ -152,8 +152,8 @@ AimPrimary(heading,pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250>; - turn head to x-axis 0 -pitch speed <200>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; wait-for-turn head around y-axis; start-script RestoreAfterDelay(); @@ -178,9 +178,9 @@ Killed( severity, corpsetype ) { corpsetype = 1; emit-sfx 1025 from body; - explode head type FALL | NOHEATCLOUD; - explode tail type FALL | NOHEATCLOUD; - explode lblade type FALL | NOHEATCLOUD; - explode rblade type FALL | NOHEATCLOUD; + explode head type FALL; + explode tail type FALL; + explode lblade type FALL; + explode rblade type FALL; return( 0 ); } \ No newline at end of file diff --git a/Scripts/zaal/zlightswarm.cob b/Scripts/zaal/zlightswarm.cob index 4170b1fea..5210f6130 100644 Binary files a/Scripts/zaal/zlightswarm.cob and b/Scripts/zaal/zlightswarm.cob differ diff --git a/Scripts/zaal/zmedswarm.bos b/Scripts/zaal/zmedswarm.bos index f34f62392..ba681560b 100644 --- a/Scripts/zaal/zmedswarm.bos +++ b/Scripts/zaal/zmedswarm.bos @@ -155,8 +155,8 @@ AimPrimary(heading, pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250.000000>; - turn head to x-axis <0.000000> - pitch speed <200.000000>; + turn head to y-axis heading speed <5000>; + turn head to x-axis <0.000000> - pitch speed <5000>; wait-for-turn head around y-axis; start-script RestoreAfterDelay(); return (1); diff --git a/Scripts/zaal/zmedswarm.cob b/Scripts/zaal/zmedswarm.cob index 6ff60ca6b..38c302ee6 100644 Binary files a/Scripts/zaal/zmedswarm.cob and b/Scripts/zaal/zmedswarm.cob differ diff --git a/Scripts/zaal/zpyro.bos b/Scripts/zaal/zpyro.bos index 7f005f4c4..bd7e02fcb 100644 --- a/Scripts/zaal/zpyro.bos +++ b/Scripts/zaal/zpyro.bos @@ -193,8 +193,8 @@ AimSecondary(heading,pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <175>; - turn head to x-axis 0 -pitch speed <175>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; wait-for-turn head around y-axis; wait-for-turn head around x-axis; return(1); diff --git a/Scripts/zaal/zpyro.cob b/Scripts/zaal/zpyro.cob index 72cd0f67a..0cf174b1e 100644 Binary files a/Scripts/zaal/zpyro.cob and b/Scripts/zaal/zpyro.cob differ diff --git a/Scripts/zaal/zskirmisher.bos b/Scripts/zaal/zskirmisher.bos index 636ed0c8a..160308788 100644 --- a/Scripts/zaal/zskirmisher.bos +++ b/Scripts/zaal/zskirmisher.bos @@ -152,8 +152,8 @@ AimPrimary(heading,pitch) { signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250>; - turn head to x-axis 0 -pitch speed <200>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; wait-for-turn head around y-axis; start-script RestoreAfterDelay(); @@ -169,8 +169,8 @@ AimSecondary(heading,pitch) } signal SIG_AIM; set-signal-mask SIG_AIM; - turn head to y-axis heading speed <250>; - turn head to x-axis 0 -pitch speed <200>; + turn head to y-axis heading speed <5000>; + turn head to x-axis 0 -pitch speed <5000>; wait-for-turn head around y-axis; start-script RestoreAfterDelay(); diff --git a/Scripts/zaal/zskirmisher.cob b/Scripts/zaal/zskirmisher.cob index a6e7a4439..00de212d4 100644 Binary files a/Scripts/zaal/zskirmisher.cob and b/Scripts/zaal/zskirmisher.cob differ diff --git a/Unit Reassignments.txt b/Unit Reassignments.txt new file mode 100644 index 000000000..d0daae0a3 --- /dev/null +++ b/Unit Reassignments.txt @@ -0,0 +1,38 @@ +No buildings in/on water anymore + +Faction 1 - Remove Hovertank and replace with normal tank + +f1landfac + +Tech1 +eallterrlight +ehbotpeewee +eallterrriot_shotgun +ehbotthud +eallterrassault + +Tech2 +eallterrmed +ehbotsniper +eallterrheavy +ehbotrocko +eallterrshield + + +Faction 2 - Remove Waterweapon1 - Reintroduce slow movement underwater + +ebasefactory + +Tech 1 +eamphibbuggy +elighttank3 +eriottank_shotgun +eamphibneedle +eartytank +ebox + +Tech 2 +eamphibmedtank +eheavytank3 +eamphibrock +emissiletank3 \ No newline at end of file diff --git a/UnitPic Tools/constripe frame.png b/UnitPic Tools/constripe frame.png new file mode 100644 index 000000000..4a76eddb6 Binary files /dev/null and b/UnitPic Tools/constripe frame.png differ diff --git a/UnitPic Tools/lozengineer.png b/UnitPic Tools/lozengineer.png new file mode 100644 index 000000000..b3a034ca8 Binary files /dev/null and b/UnitPic Tools/lozengineer.png differ diff --git a/UnitTextures/afaction_normals.dds b/UnitTextures/afaction_normals.dds deleted file mode 100644 index 8e01568a7..000000000 Binary files a/UnitTextures/afaction_normals.dds and /dev/null differ diff --git a/UnitTextures/afaction_tex1.dds b/UnitTextures/afaction_tex1.dds deleted file mode 100644 index 900ae0e81..000000000 Binary files a/UnitTextures/afaction_tex1.dds and /dev/null differ diff --git a/UnitTextures/afaction_tex2.dds b/UnitTextures/afaction_tex2.dds deleted file mode 100644 index d053a25a7..000000000 Binary files a/UnitTextures/afaction_tex2.dds and /dev/null differ diff --git a/UnitTextures/desktop.ini b/UnitTextures/desktop.ini new file mode 100644 index 000000000..95f0b5ac1 Binary files /dev/null and b/UnitTextures/desktop.ini differ diff --git a/UnitTextures/scavbeacon.dds b/UnitTextures/scavbeacon.dds new file mode 100644 index 000000000..224f384c9 Binary files /dev/null and b/UnitTextures/scavbeacon.dds differ diff --git a/UnitTextures/scavbeacon2.dds b/UnitTextures/scavbeacon2.dds new file mode 100644 index 000000000..eb8c973a1 Binary files /dev/null and b/UnitTextures/scavbeacon2.dds differ diff --git a/UnitTextures/scavbeacon_normals.dds b/UnitTextures/scavbeacon_normals.dds new file mode 100644 index 000000000..6f8dadfd7 Binary files /dev/null and b/UnitTextures/scavbeacon_normals.dds differ diff --git a/UnitTextures/scavbeacondropped.png b/UnitTextures/scavbeacondropped.png new file mode 100644 index 000000000..3b229e8fe Binary files /dev/null and b/UnitTextures/scavbeacondropped.png differ diff --git a/UnitTextures/scavbeacondropped2.png b/UnitTextures/scavbeacondropped2.png new file mode 100644 index 000000000..d4ee0d7ec Binary files /dev/null and b/UnitTextures/scavbeacondropped2.png differ diff --git a/UnitTextures/scavcrate.png b/UnitTextures/scavcrate.png new file mode 100644 index 000000000..93fffa315 Binary files /dev/null and b/UnitTextures/scavcrate.png differ diff --git a/UnitTextures/scavcrate2.png b/UnitTextures/scavcrate2.png new file mode 100644 index 000000000..200a72c50 Binary files /dev/null and b/UnitTextures/scavcrate2.png differ diff --git a/UnitTextures/texgroups.cfg b/UnitTextures/texgroups.cfg new file mode 100644 index 000000000..95f0b5ac1 Binary files /dev/null and b/UnitTextures/texgroups.cfg differ diff --git a/Units-Configs-Basedefs/basedefs/Faction 2/f2engineer_basedef.lua b/Units-Configs-Basedefs/basedefs/Faction 2/f2engineer_basedef.lua new file mode 100644 index 000000000..7b9d58713 --- /dev/null +++ b/Units-Configs-Basedefs/basedefs/Faction 2/f2engineer_basedef.lua @@ -0,0 +1,103 @@ +unitDef = { + acceleration = 1, + brakeRate = 0.2, + buildCostEnergy = 0, + buildCostMetal = buildCostMetal, + buildDistance = buildDistance, + builder = true, + buildTime = 5, + buildpic = "lozengineer.png", + canAttack = true, + canGuard = true, + canHover = true, + canMove = true, + canPatrol = true, + CanAssist = true, + canBeAssisted = true, + CanCapture = false, + CanRepair = true, + canRestore = false, + canBuild = true, + canGuard = true, + canHover = true, + canMove = true, + canPatrol = true, + canreclaim = true, + category = "LIGHT NOTAIR SUPPORT", + description = [[Builds Units]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "mediumExplosionGenericGreen", + footprintX = 2, + footprintZ = 2, + iconType = "engineer", + idleAutoHeal = .5, + idleTime = 2200, + leaveTracks = false, + maxDamage = maxDamage, + maxVelocity = 4.5, + maxReverseVelocity = 1, + maxWaterDepth = 10, + metalStorage = 0, + movementClass = "HOVERTANK2", + name = humanName, --Because he was the first one to get the "Lobster" pun + noChaseCategory = "VTOL", + objectName = objectName, + script = script, + radarDistance = 0, + repairable = false, + selfDestructAs = "mediumExplosionGenericGreen", + showNanoSpray = false, + sightDistance = 500, + smoothAnim = true, + stealth = true, + seismicSignature = 2, + transportbyenemy = false; + -- turnInPlace = false, + -- turnInPlaceSpeedLimit = 2.3, + turnInPlace = true, + turnRate = 5000, + -- turnrate = 250, + unitname = unitName, + workerTime = 1, + capturespeed = 1, + TerraformSpeed = 2147000, + ReclaimSpeed = 0, + repairspeed = 0.5, + sfxtypes = { + pieceExplosionGenerators = { + "deathceg3", + "deathceg4", + }, + + explosiongenerators = { + "custom:nanoorb", + "custom:emptydirt", + "custom:blacksmoke", + }, + }, + buildoptions = Shared.buildListLoz, + sounds = { + underattack = "other/unitsunderattack1", + ok = { + "ack", + }, + select = { + "unitselect", + }, + }, + customParams = { + unittype = "mobile", + area_mex_def = "emetalextractor", + ProvideTech = [[tech0]], + canbetransported = "true", + death_sounds = "generic", + armortype = armortype, + nofriendlyfire = "1", + noenergycost = true, + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "Loz Alliance", + }, +} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/air/eairemp_basedef.lua b/Units-Configs-Basedefs/basedefs/air/eairemp_basedef.lua index 8be187ae0..a9957bc82 100644 --- a/Units-Configs-Basedefs/basedefs/air/eairemp_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/eairemp_basedef.lua @@ -22,8 +22,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "smallExplosionGenericBlue", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, hoverAttack = false, floater = true, iconType = "scout", @@ -31,6 +31,12 @@ unitDef = { idleTime = 2200, loopbackattack = true, maxAcc = 1, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + maxDamage = 640, maxSlope = 90, maxVelocity = 10, @@ -142,7 +148,7 @@ weaponDefs = { weaponVelocity = 800, customparams = { isupgraded = isUpgraded, - damagetype = "eraider", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -178,7 +184,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eraider", + damagetype = "antilightarmored", }, damage = { default = 15, diff --git a/Units-Configs-Basedefs/basedefs/air/eairplant_basedef.lua b/Units-Configs-Basedefs/basedefs/air/eairplant_basedef.lua index e6c71a123..41a49c78e 100644 --- a/Units-Configs-Basedefs/basedefs/air/eairplant_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/eairplant_basedef.lua @@ -1,7 +1,7 @@ unitDef = { activatewhenbuilt = true, buildCostEnergy = 0, - buildCostMetal = 30, + buildCostMetal = buildCostMetal, builder = true, buildTime = 2.5, buildpic = "eairplant.png", @@ -18,8 +18,8 @@ unitDef = { energyMake = 0, explodeAs = "hugeBuildingExplosionGenericRed", floater = true, - footprintX = 18, - footprintZ = 18, + footprintX = 9, + footprintZ = 9, iconType = "factory", idleAutoHeal = .5, idleTime = 2200, @@ -72,7 +72,7 @@ unitDef = { }, }, customParams = { - unittype = "building", + unittype = "factory", death_sounds = "generic", armortype = "building", normaltex = "unittextures/lego2skin_explorernormal.dds", diff --git a/Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua b/Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua index 631449861..c5b0c6d5f 100644 --- a/Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua @@ -16,14 +16,14 @@ unitDef = { canstop = true, category = "AIRARMORED VTOL", collide = true, - cruiseAlt = 120, + cruiseAlt = 400, description = [[Bomber]], energyMake = 0, energyStorage = 0, energyUse = 0, explodeAs = "largeExplosionGeneric", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, floater = true, hoverAttack = false, iconType = "air_bomb", @@ -31,9 +31,15 @@ unitDef = { idleTime = 2200, loopbackattack = true, maxacc = 1, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + maxDamage = 670, maxSlope = 90, - maxVelocity = 10, + maxVelocity = 13, verticalSpeed = 15, maxWaterDepth = 0, metalStorage = 0, @@ -43,12 +49,11 @@ unitDef = { repairable = false, selfDestructAs = "largeExplosionGeneric", side = "CORE", - sightDistance = 800, + sightDistance = 400, smoothAnim = true, stealth = false, transportbyenemy = false; turnRate = 5000, - turnradius = 250, unitname = unitName, upright = true, workerTime = 0, @@ -74,7 +79,7 @@ unitDef = { }, weapons = { [1] = { - def = "missile", + def = "bomb", onlyTargetCategory = "BUILDING", noChaseCategory = "VTOL LIGHT ARMORED", }, @@ -141,11 +146,55 @@ weaponDefs = { weaponVelocity = 800, customparams = { isupgraded = isUpgraded, - damagetype = "ebomber", + damagetype = "antibuilding", nofriendlyfire = 1, }, damage = { - default = 300, + default = 500, }, }, + + bomb = { + AreaOfEffect = 150, + avoidFeature = false, + avoidFriendly = false, + collideFeature = false, + collideFriendly = false, + cylinderTargeting = 0, + burst = 10, + burstrate = 0.1, + cegTag = "genericshellexplosion-large-sparks-burn", + energypershot = 0, + explosionGenerator = "custom:genericshellexplosion-medium-red", + fallOffRate = 1, + fireStarter = 50, + impulseFactor = 0, + minintensity = "1", + name = "Cluster Bomb", + range = 1000, + reloadtime = 6, + WeaponType = "Cannon", + rgbColor = "1 0.5 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/bombdrop.wav", + soundHit = "other/18402_inferno_xplo.wav", + soundHitWet = "explosions/subhitbomb.wav", + sprayangle = 5000, + size = 4, + --texture1 = "shot", + --texture2 = "empty", + thickness = 15, + tolerance = 7500, + turret = false, + weaponVelocity = 150, + customparams = { + damagetype = "antibuilding", + isupgraded = isUpgraded, + nofriendlyfire = 1, + }, + damage = { + default = 100, + }, + }, } diff --git a/Units-Configs-Basedefs/basedefs/air/edrone_basedef.lua b/Units-Configs-Basedefs/basedefs/air/edrone_basedef.lua index 3148d5987..abdf4aa3a 100644 --- a/Units-Configs-Basedefs/basedefs/air/edrone_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/edrone_basedef.lua @@ -27,8 +27,8 @@ unitDef = { flareDropVector = "0 0 -1", flareefficieny = "0.3", flareReload = 3, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, hoverAttack = true, iconType = "drone", idleAutoHeal = .5, @@ -141,7 +141,7 @@ weaponDefs = { turret = true, weaponVelocity = 750, customparams = { - damagetype = "edrone", + damagetype = "light", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/air/efighter_basedef.lua b/Units-Configs-Basedefs/basedefs/air/efighter_basedef.lua index d573fe40e..88769940e 100644 --- a/Units-Configs-Basedefs/basedefs/air/efighter_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/efighter_basedef.lua @@ -23,14 +23,20 @@ unitDef = { energyUse = 0, explodeAs = "mediumExplosionGenericWhite", floater = true, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, hoverAttack = false, iconType = "air_lit", idleAutoHeal = .5, idleTime = 2200, maxacc = 1, maxDamage = 812, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + maxSlope = 90, maxVelocity = 12, maxWaterDepth = 255, @@ -111,7 +117,6 @@ weaponDefs = { fallOffRate = 1, fireStarter = 50, impulseFactor = 0, - lineOfSight = true, minintensity = "1", name = "Laser", range = 500, @@ -130,7 +135,7 @@ weaponDefs = { turret = false, weaponVelocity = 1250, customparams = { - damagetype = "efighter", + damagetype = "light", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua b/Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua index d9e07e2a7..59bdf7340 100644 --- a/Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua @@ -30,6 +30,12 @@ unitDef = { idleAutoHeal = .5, idleTime = 2200, maxacc = 1, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + maxDamage = 940, maxSlope = 90, maxVelocity = 15, @@ -135,7 +141,7 @@ weaponDefs = { weaponVelocity = 700, customparams = { isupgraded = isUpgraded, - damagetype = "egunship2", + damagetype = "antilightarmored", }, damage = { default = 150, diff --git a/Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua b/Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua index 7d1803355..c97a1b0b1 100644 --- a/Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua @@ -5,7 +5,7 @@ unitDef = { BadTargetCategory = "VTOL", --brakeRate = 1, buildCostEnergy = 0, - buildCostMetal = 1750, + buildCostMetal = 875, builder = false, buildTime = 2.5, buildpic = "ekrow.png", @@ -144,7 +144,7 @@ weaponDefs = { turret = true, weaponVelocity = 750, customparams = { - damagetype = "ekrow", + damagetype = "antibuilding", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/air/eraider_basedef.lua b/Units-Configs-Basedefs/basedefs/air/eraider_basedef.lua index 5d1c93636..a9d96035c 100644 --- a/Units-Configs-Basedefs/basedefs/air/eraider_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/eraider_basedef.lua @@ -22,8 +22,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "smallExplosionGenericBlue", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, hoverAttack = false, floater = true, iconType = "scout", @@ -177,7 +177,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eraider", + damagetype = "light", }, damage = { default = 15, diff --git a/Units-Configs-Basedefs/basedefs/air/escout_basedef.lua b/Units-Configs-Basedefs/basedefs/air/escout_basedef.lua index 90f253fc5..2ca663e36 100644 --- a/Units-Configs-Basedefs/basedefs/air/escout_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/escout_basedef.lua @@ -21,14 +21,20 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "smallExplosionGenericBlue", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, hoverAttack = true, floater = true, iconType = "scout", idleAutoHeal = .5, idleTime = 2200, isTargetingUpgrade = false, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + maxDamage = 160, maxSlope = 90, maxVelocity = 10, diff --git a/Units-Configs-Basedefs/basedefs/air/escoutdrone_basedef.lua b/Units-Configs-Basedefs/basedefs/air/escoutdrone_basedef.lua index 373a749a7..170822fd7 100644 --- a/Units-Configs-Basedefs/basedefs/air/escoutdrone_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/escoutdrone_basedef.lua @@ -4,7 +4,7 @@ unitDef = { bankscale = "1", brakeRate = 0.7, buildCostEnergy = 0, - buildCostMetal = 20, + buildCostMetal = 10, buildTime = 2.5, buildpic = "edrone.png", canAttack = true, @@ -27,8 +27,8 @@ unitDef = { flareDropVector = "0 0 -1", flareefficieny = "0.3", flareReload = 3, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, hoverAttack = true, iconType = "drone", idleAutoHeal = .5, diff --git a/Units-Configs-Basedefs/basedefs/air/etransport_basedef.lua b/Units-Configs-Basedefs/basedefs/air/etransport_basedef.lua index 0fab4ebe5..663be4c6d 100644 --- a/Units-Configs-Basedefs/basedefs/air/etransport_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/air/etransport_basedef.lua @@ -23,8 +23,8 @@ unitDef = { energyUse = 0, explodeAs = "mediumExplosionGenericPurple", fallSpeed = 1000, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, hoverAttack = true, holdSteady = true, -- hoverAttack = true, @@ -32,6 +32,12 @@ unitDef = { maxDamage = 500, maxSlope = 90, maxVelocity = 7, + + maxAileron = 0.01, + maxElevator = 0.01, + maxRudder = 0.01, + maxBank = 0.01, + verticalSpeed = 30, name = humanName, objectName = objectName, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterranarchid_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterranarchid_basedef.lua index fd5b748e4..9e25942b9 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterranarchid_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterranarchid_basedef.lua @@ -3,7 +3,7 @@ unitDef = { acceleration = 0.18, brakeRate = 1, buildCostEnergy = 0, - buildCostMetal = 1750, + buildCostMetal = 875, builder = false, buildTime = 5, buildpic = "eallterranarchid.png", @@ -20,7 +20,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 150, decloakOnFire = true, decloakSpherical = true, @@ -75,7 +75,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:flamethrowerrange750", "custom:blacksmoke", }, @@ -111,6 +111,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -151,7 +152,7 @@ weaponDefs = { weaponVelocity = 800, customparams = { isupgraded = isUpgraded, - damagetype = "eallterranarchid", + damagetype = "antibuilding", }, damage = { default = 440, @@ -189,7 +190,7 @@ weaponDefs = { weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eallterranarchidflame", + damagetype = "antiarmored", }, damage = { default = 6, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrassault_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrassault_basedef.lua index 64ed6712e..fe084ec16 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrassault_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrassault_basedef.lua @@ -19,7 +19,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -33,8 +33,8 @@ unitDef = { energyUse = 0, explodeAs = "hugeExplosionGeneric", firestandorders = "1", - footprintX = 6, - footprintZ = 6, + footprintX = 3, + footprintZ = 3, iconType = "arty_arm", idleAutoHeal = .5, idleTime = 2200, @@ -44,7 +44,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK6", + movementClass = "ALLTERRTANK3", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -72,7 +72,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -88,6 +88,7 @@ unitDef = { weapons = { [1] = { def = "assaulttankcannon", + badTargetCategory = "VTOL LIGHT ARMORED BIO", }, }, customParams = { @@ -104,6 +105,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -142,7 +144,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrassault", + damagetype = "antibuildingarty", }, damage = { default = 150, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrheavy_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrheavy_basedef.lua index f7ea69225..149b8a60a 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrheavy_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrheavy_basedef.lua @@ -18,8 +18,8 @@ unitDef = { -- Cloaking cancloak = true, - cloakCost = 1, - cloakCostMoving = 2, + cloakCost = 0, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -33,8 +33,8 @@ unitDef = { energyUse = 0, explodeAs = "largeExplosionGenericGreen", firestandorders = "1", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "td_arm_all", idleAutoHeal = .5, idleTime = 2200, @@ -45,7 +45,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK4", + movementClass = "ALLTERRTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -73,7 +73,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -106,6 +106,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -144,10 +145,10 @@ weaponDefs = { thickness = 9, tolerance = 1000, turret = true, - weaponVelocity = 1000, + weaponVelocity = 1500, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrheavy", + damagetype = "antilightarmored", }, damage = { default = 125, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrlight_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrlight_basedef.lua index 2b30690b1..7b732e5d2 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrlight_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrlight_basedef.lua @@ -18,7 +18,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -32,8 +32,8 @@ unitDef = { energyUse = 0, explodeAs = "smallExplosionGeneric", firestandorders = "1", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "raider", idleAutoHeal = .5, idleTime = 2200, @@ -44,7 +44,7 @@ unitDef = { turninplacespeedlimit = 5.5, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK4", + movementClass = "ALLTERRTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -70,7 +70,7 @@ unitDef = { explosiongenerators = { "custom:factorysparks", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -103,6 +103,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -140,7 +141,7 @@ unitDef = { weaponVelocity = 2000, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrlight", + damagetype = "light", }, damage = { default = 50, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrmed_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrmed_basedef.lua index 2affaf72a..c3210ac0c 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrmed_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrmed_basedef.lua @@ -18,7 +18,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -31,8 +31,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericPurple", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "td_arm_arm", idleAutoHeal = .5, idleTime = 2200, @@ -45,7 +45,7 @@ unitDef = { maxWaterDepth = 10, metalStorage = 0, mobilestandorders = "1", - movementClass = "ALLTERRTANK4", + movementClass = "ALLTERRTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -71,7 +71,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -104,6 +104,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -145,10 +146,10 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrmed", + damagetype = "antiarmored", }, damage = { - default = 200, + default = 150, }, }, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_basedef.lua index 4fb909148..c5ad79489 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_basedef.lua @@ -20,7 +20,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -33,8 +33,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericRed", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -46,7 +46,7 @@ unitDef = { turninplacespeedlimit = 3.3, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK4", + movementClass = "ALLTERRTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -72,7 +72,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -111,6 +111,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -153,7 +154,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrriot", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -186,7 +187,7 @@ weaponDefs = { weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", }, damage = { default = 300, diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_shotgun_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_shotgun_basedef.lua index 5d6dd11c4..83feba2a4 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_shotgun_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrriot_shotgun_basedef.lua @@ -20,7 +20,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 70, decloakOnFire = true, decloakSpherical = true, @@ -33,8 +33,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericRed", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -46,7 +46,7 @@ unitDef = { turninplacespeedlimit = 3.3, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK4", + movementClass = "ALLTERRTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -72,7 +72,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -111,6 +111,7 @@ unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, }, } @@ -153,7 +154,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eallterrriot", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -162,34 +163,42 @@ weaponDefs = { }, riottankshotgun = { - AreaOfEffect = 250, + areaofeffect = 75, avoidFriendly = false, avoidFeature = false, collideFriendly = false, collideFeature = false, + --burstrate = 0.2, + --burst = 5, cegTag = "bruisercannon", - explosionGenerator = "custom:genericshellexplosion-medium", + edgeeffectiveness = 1, + explosionGenerator = "custom:genericshellexplosion-large-sparks-burn", energypershot = 0, interceptedByShieldType = 4, impulseFactor = 0, name = "Shotgun", - --projectiles = 10, + noSelfDamage = true, + noexplode = true, + projectiles = 5, range = 500, reloadtime = 5, + sprayangle = 3500, + size = 2, weaponType = "Cannon", soundHit = "explosions/mediumcannonhit.wav", - soundStart = "weapons/bruisercannon.wav", - --sprayangle = 2000, + soundStart = "weapons/Shotgun Boom 103.wav", turret = true, weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", + nofriendlyfire = true, + single_hit = true, }, damage = { - default = 300, + default = 150, }, }, -} +} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eallterrshield_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eallterrshield_basedef.lua index 07c7ae534..eff573e2c 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eallterrshield_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eallterrshield_basedef.lua @@ -18,7 +18,7 @@ unitDef = { cancloak = true, cloakCost = 0, - cloakCostMoving = 1, + cloakCostMoving = 0, minCloakDistance = 150, decloakOnFire = false, decloakSpherical = true, @@ -32,8 +32,8 @@ unitDef = { energyUse = 0, explodeAs = "hugeExplosionGenericPurple", fireState = "0", - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, iconType = "shield_lit", idleAutoHeal = .5, idleTime = 2200, @@ -44,7 +44,7 @@ unitDef = { turninplacespeedlimit = 4, maxWaterDepth = 10, metalStorage = 0, - movementClass = "ALLTERRTANK5", + movementClass = "ALLTERRTANK2", moveState = "0", name = humanName, noChaseCategory = "VTOL", @@ -71,7 +71,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirtsmall", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -107,6 +107,8 @@ unitDef = { corpse = "energycore", retreatRangeDAI = 600, + decloakradiushalved = true, + area_cloak = 1, -- Can this unit emit a cloaking field? area_cloak_upkeep = 5, -- How much energy does it cost to maintain the cloaking field? area_cloak_radius = 150, -- How large is the cloaking field? @@ -133,8 +135,8 @@ weaponDefs = { Shieldenergyuse = 0, Shieldradius = 300, Shieldpower = 500, - Shieldpowerregen = 50, - Shieldpowerregenenergy = 50, + Shieldpowerregen = 25, + Shieldpowerregenenergy = 25, Shieldintercepttype = 4, Shieldgoodcolor = "0.0 0.2 1.0", Shieldbadcolor = "1.0 0 0", diff --git a/Units-Configs-Basedefs/basedefs/allterrain/eminifac_basedef.lua b/Units-Configs-Basedefs/basedefs/allterrain/eminifac_basedef.lua index ecda1e72a..c3f4b816e 100644 --- a/Units-Configs-Basedefs/basedefs/allterrain/eminifac_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/allterrain/eminifac_basedef.lua @@ -37,8 +37,8 @@ unitDef = { energyUse = 0, energyMake = 0, explodeAs = "largeExplosionGenericGreen", - footprintX = 22, - footprintZ = 22, + footprintX = 11, + footprintZ = 11, iconType = "factory", idleAutoHeal = .5, idleTime = 2200, @@ -60,7 +60,7 @@ unitDef = { unitname = unitName, -- unitRestricted = 1, workerTime = 1, - yardMap = "oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyyyooo", + yardMap = "ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ccccccccccc ", -- usePieceCollisionVolumes = true, sfxtypes = { pieceExplosionGenerators = { @@ -83,13 +83,14 @@ unitDef = { }, }, customParams = { - unittype = "building", + unittype = "factory", death_sounds = "generic", armortype = "building", normaltex = "unittextures/lego2skin_explorernormal.dds", buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", corpse = "energycore", + decloakradiushalved = true, -- ProvideTech = "1 Powergrid", -- ProvideTechRange = "1500", -- groundtexselectimg = ":nc:bitmaps/power/powergrid.png", diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibarty_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibarty_basedef.lua index aacdeaa5c..6122e2db2 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibarty_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibarty_basedef.lua @@ -17,8 +17,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "largeExplosionGenericBlue", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "arty_lit", idleAutoHeal = .5, idleTime = 2200, @@ -29,7 +29,7 @@ unitDef = { maxReverseVelocity = 1, minWaterDepth = 10, metalStorage = 0, - movementClass = "TANK4", + movementClass = "TANK2", name = humanName, objectName = objectName, script = script, @@ -58,7 +58,7 @@ unitDef = { explosiongenerators = { "custom:factorysparks", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -74,6 +74,7 @@ unitDef = { weapons = { [1] = { def = "assimilatorbeamweapon", + badTargetCategory = "VTOL LIGHT ARMORED BIO", }, }, customParams = { @@ -131,7 +132,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibarty", + damagetype = "antibuildingarty", }, damage = { default = 100, diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibbuggy_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibbuggy_basedef.lua index 41040f7e3..d34e194bd 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibbuggy_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibbuggy_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:factorysparks", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -136,7 +136,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibbuggy", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibfac_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibfac_basedef.lua index 7e59e8f32..cea468d3a 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibfac_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibfac_basedef.lua @@ -23,8 +23,8 @@ unitDef = { energyUse = 0, energyMake = 0, explodeAs = "hugeBuildingExplosionGenericBlue", - footprintX = 16, - footprintZ = 16, + footprintX = 8, + footprintZ = 8, iconType = "factory", idleAutoHeal = .5, idleTime = 2200, @@ -48,7 +48,7 @@ unitDef = { unitname = unitName, -- unitRestricted = 1, workerTime = 1, - yardMap = "yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo yyyyyyyyoooooooo", + yardMap = "cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc cccccccc ", -- usePieceCollisionVolumes = true, useGroundDecal = true, @@ -77,7 +77,7 @@ unitDef = { }, }, customParams = { - unittype = "building", + unittype = "factory", death_sounds = "generic", armortype = "building", normaltex = "unittextures/lego2skin_explorernormal.dds", diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibleveler_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibleveler_basedef.lua index 9c43079c0..7ab5284d5 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibleveler_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibleveler_basedef.lua @@ -2,7 +2,7 @@ unitDef = { acceleration = 0.18, brakeRate = 0.1, buildCostEnergy = 0, - buildCostMetal = 1750, + buildCostMetal = 875, builder = false, buildTime = 5, buildpic = "eamphibleveler.png", @@ -56,7 +56,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -124,7 +124,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibleveler", + damagetype = "antiarmored", }, damage = { default = 250, @@ -163,7 +163,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibleveler", + damagetype = "light", }, damage = { default = 6, diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibmedtank_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibmedtank_basedef.lua index 9124bffc1..efacc9bbf 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibmedtank_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibmedtank_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericGreen", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "td_lit_all", idleAutoHeal = .5, idleTime = 2200, @@ -30,7 +30,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 5000, metalStorage = 0, - movementClass = "TANK3", + movementClass = "TANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -61,7 +61,7 @@ unitDef = { explosiongenerators = { "custom:factorysparks", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -139,10 +139,10 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibmedtank", + damagetype = "light", }, damage = { - default = 12.5, -- multiply * 1.2 for correct dps output + default = 16, -- multiply * 1.2 for correct dps output }, }, } diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibneedle_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibneedle_basedef.lua index 0fcb62775..7694a919f 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibneedle_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibneedle_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericPurple", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "td_lit_lit", idleAutoHeal = .5, idleTime = 2200, @@ -30,7 +30,7 @@ unitDef = { maxReverseVelocity = 2, maxWaterDepth = 5000, metalStorage = 0, - movementClass = "TANK4", + movementClass = "TANK2", name = humanName, objectName = objectName, script = script, @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -137,7 +137,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibneedle", + damagetype = "light", }, damage = { default = 20, -- multiply * 1.2 for correct dps output diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_basedef.lua index 4c81b17aa..620955d9e 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericWhite", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -31,7 +31,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 5000, metalStorage = 0, - movementClass = "TANK3", + movementClass = "TANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -62,7 +62,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -141,7 +141,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibriot", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -174,7 +174,7 @@ weaponDefs = { weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", }, damage = { default = 300, diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_shotgun_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_shotgun_basedef.lua index 99b09f2a3..2345dab85 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_shotgun_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibriot_shotgun_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericWhite", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -31,7 +31,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 5000, metalStorage = 0, - movementClass = "TANK3", + movementClass = "TANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -62,7 +62,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -141,7 +141,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibriot", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -150,34 +150,42 @@ weaponDefs = { }, riottankshotgun = { - AreaOfEffect = 250, + AreaOfEffect = 75, avoidFriendly = false, avoidFeature = false, collideFriendly = false, collideFeature = false, + --burstrate = 0.2, + --burst = 5, cegTag = "bruisercannon", - explosionGenerator = "custom:genericshellexplosion-medium", + edgeeffectiveness = 1, + explosionGenerator = "custom:genericshellexplosion-large-sparks-burn", energypershot = 0, interceptedByShieldType = 4, impulseFactor = 0, name = "Shotgun", - --projectiles = 10, + noSelfDamage = true, + noexplode = true, + projectiles = 5, range = 500, reloadtime = 5, + sprayangle = 3500, + size = 2, weaponType = "Cannon", soundHit = "explosions/mediumcannonhit.wav", - soundStart = "weapons/bruisercannon.wav", - --sprayangle = 2000, + soundStart = "weapons/Shotgun Boom 101.wav", turret = true, weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", + nofriendlyfire = true, + single_hit = true, }, damage = { - default = 300, + default = 150, }, }, -} +} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/amphib/eamphibrock_basedef.lua b/Units-Configs-Basedefs/basedefs/amphib/eamphibrock_basedef.lua index d9c9249fb..af788216e 100644 --- a/Units-Configs-Basedefs/basedefs/amphib/eamphibrock_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/amphib/eamphibrock_basedef.lua @@ -17,8 +17,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGeneric", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "mtd_lit_arm", idleAutoHeal = .5, idleTime = 2200, @@ -29,7 +29,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 5000, metalStorage = 0, - movementClass = "TANK4", + movementClass = "TANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -59,7 +59,7 @@ unitDef = { }, explosiongenerators = { - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:jethtrail", }, @@ -126,16 +126,14 @@ weaponDefs = { soundHit = "explosions/explode5.wav", startVelocity = 250, tolerance = 8000, - turnrate = 5000, - predictBoost = 0.5, + turnrate = 30000, turret = true, - weaponAcceleration = 50, + weaponAcceleration = 400, flightTime = 5, - trajectoryHeight = 1.5, - weaponVelocity = 500, + weaponVelocity = 3000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibrock", + damagetype = "antiarmoredair", }, damage = { default = 200, @@ -167,17 +165,14 @@ weaponDefs = { soundHit = "explosions/explode5.wav", startVelocity = 250, tolerance = 8000, - turnrate = 10000, - predictBoost = 0.5, + turnrate = 30000, turret = true, - weaponAcceleration = 50, + weaponAcceleration = 400, flightTime = 5, - trajectoryHeight = 1.5, - sprayangle = 10000, - weaponVelocity = 500, + weaponVelocity = 3000, customparams = { isupgraded = isUpgraded, - damagetype = "eamphibrock", + damagetype = "antiarmoredair", }, damage = { default = 200, diff --git a/Units-Configs-Basedefs/basedefs/buildings/eartyturret_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/eartyturret_basedef.lua index 4e0d26757..662ff9aa7 100644 --- a/Units-Configs-Basedefs/basedefs/buildings/eartyturret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/buildings/eartyturret_basedef.lua @@ -54,7 +54,7 @@ unitDef = { [1] = { def = "artyweapon", badtargetcategory = "LIGHT ARMORED VTOL", - onlyTargetCategory = "BUILDING BIO", + --onlyTargetCategory = "BUILDING BIO", }, }, customParams = { @@ -94,9 +94,12 @@ weaponDefs = { impulseFactor = 0, interceptedByShieldType = 4, + + minIntensity = 1, + name = "Plasma Cannon", range = 8000, - reloadtime = 40, + reloadtime = 30, size = 16, weaponType = "Cannon", soundHit = "explosions/artyhit.wav", @@ -105,9 +108,9 @@ weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eartytank", + damagetype = "antibuilding", isupgraded = isUpgraded, - effectedByunitHealthModifier = true, + --effectedByunitHealthModifier = true, }, damage = { default = 1000, diff --git a/Units-Configs-Basedefs/basedefs/faction/xllt_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/eflakturret_basedef.lua similarity index 63% rename from Units-Configs-Basedefs/basedefs/faction/xllt_basedef.lua rename to Units-Configs-Basedefs/basedefs/buildings/eflakturret_basedef.lua index 11c4a8adb..5cf9f0876 100644 --- a/Units-Configs-Basedefs/basedefs/faction/xllt_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/buildings/eflakturret_basedef.lua @@ -1,20 +1,20 @@ unitDef = { buildAngle = 2048, buildCostEnergy = 0, - buildCostMetal = 27, + buildCostMetal = 50, builder = false, buildTime = 5, - buildpic = [[pattern/xllt.png]], + buildpic = "elaserbattery.png", canAttack = true, canstop = "1", category = "BUILDING NOTAIR", collisionVolumeTest = "1", - description = [[Anti-Raid Defense Platform (Anti-Light)]], + description = [[Anti-AIR Flak Defense Platform]], energyStorage = 0, energyUse = 0, explodeAs = "mediumBuildingExplosionGeneric", - footprintX = 4, - footprintZ = 4, + footprintX = 3, + footprintZ = 3, floater = true, idleAutoHeal = .5, idleTime = 2200, @@ -35,7 +35,8 @@ unitDef = { repairable = false, selfDestructAs = "mediumBuildingExplosionGeneric", side = "CORE", - sightDistance = 650, + sightDistance = 100, + airsightdistance = 1500, smoothAnim = true, unitname = unitName, workerTime = 0, @@ -61,9 +62,8 @@ unitDef = { }, weapons = { [1] = { - def = "lighteweapon", - badTargetCategory = "VTOL ARMORED", - onlyTargetCategory = "BIO LIGHT VTOL ARMORED", + def = "aircannon", + onlyTargetCategory = "VTOL", }, }, customParams = { @@ -74,58 +74,61 @@ unitDef = { --supply_cost = supply, death_sounds = "generic", armortype = armortype, - normaltex = "unittextures/afaction_normals.dds", - factionname = "pattern", + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "ateran", corpse = "energycore", }, useGroundDecal = true, BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 6, - BuildingGroundDecalSizeY = 6, + BuildingGroundDecalSizeX = 8, + BuildingGroundDecalSizeY = 8, BuildingGroundDecalDecaySpeed = 0.9, } weaponDefs = { - lighteweapon = { - AreaOfEffect = 25, + aircannon = { + AreaOfEffect = 250, avoidFeature = false, avoidFriendly = false, collideFeature = false, collideFriendly = false, - cegTag = "railgun", + canAttackGround = false, coreThickness = 0.5, - duration = 0.1, + burnblow = true, + --cegTag = "railgun", + duration = 0.05, energypershot = 0, - explosionGenerator = "custom:genericshellexplosion-small-blue", - fallOffRate = 0, + explosionGenerator = "custom:genericshellexplosion-medium-purple", + edgeEffectiveness = 1, + fallOffRate = 1, fireStarter = 50, impulseFactor = 0, - interceptedByShieldType = 4, - minintensity = "1", name = "Laser", - range = 650, - reloadtime = 0.5, - WeaponType = "LaserCannon", - rgbColor = "0 0 1", - rgbColor2 = "1 1 1", + range = 1500, + reloadtime = 1, + WeaponType = "Cannon", + rgbColor = "1 0.5 0", + rgbColor2 = "1 1 1", + projectiles = 4, soundTrigger = true, - soundstart = "weapons/lightturret.wav", - texture1 = "shot", - texture2 = "empty", - thickness = 12, - tolerance = 1000, + soundstart = "weapons/Assault Rifle Shot_05.wav", + soundhit = "deathsounds/generic/Explosion Fireworks_01.wav", + sprayangle = 3000, + size = 5, + --texture1 = "shot", + --texture2 = "empty", + tolerance = 7500, turret = true, - weaponVelocity = 2000, - waterweapon = true, - customparams = { - isupgraded = isUpgraded, - damagetype = "elightturret2", - unittype = "turret", + weaponVelocity = 3000, + customparams = { + damagetype = "antiair", + isupgraded = isUpgraded, effectedByunitHealthModifier = true, - }, - damage = { - default = 100, + }, + damage = { + default = 125, }, - }, + }, } \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/buildings/eheavyturret2_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/eheavyturret2_basedef.lua index 4ad345786..a1fdcf179 100644 --- a/Units-Configs-Basedefs/basedefs/buildings/eheavyturret2_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/buildings/eheavyturret2_basedef.lua @@ -16,8 +16,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "largeBuildingExplosionGenericRed", - footprintX = 6, - footprintZ = 6, + footprintX = 3, + footprintZ = 3, floater = true, idleAutoHeal = .5, idleTime = 2200, @@ -64,7 +64,7 @@ unitDef = { weapons = { [1] = { def = "eheavyturretweapon2", - badTargetCategory = "LIGHT VTOL", + badTargetCategory = "LIGHT VTOL BUILDING", onlyTargetCategory = "BIO ARMORED LIGHT", }, }, @@ -124,7 +124,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "eheavyturret2", + damagetype = "turretantilightarmored", effectedByunitHealthModifier = true, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/buildings/elaserbattery_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/elaserbattery_basedef.lua index 060c55088..7ec880e9a 100644 --- a/Units-Configs-Basedefs/basedefs/buildings/elaserbattery_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/buildings/elaserbattery_basedef.lua @@ -9,12 +9,12 @@ unitDef = { canstop = "1", category = "BUILDING NOTAIR", collisionVolumeTest = "1", - description = [[Anti-AIR Defense Platform]], + description = [[Anti-AIR Laser Defense Platform]], energyStorage = 0, energyUse = 0, explodeAs = "mediumBuildingExplosionGeneric", - footprintX = 6, - footprintZ = 6, + footprintX = 3, + footprintZ = 3, floater = true, idleAutoHeal = .5, idleTime = 2200, @@ -127,7 +127,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "elaserbattery", + damagetype = "antiair", effectedByunitHealthModifier = true, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/buildings/elightturret2_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/elightturret2_basedef.lua index b156f8b93..efa83eeb5 100644 --- a/Units-Configs-Basedefs/basedefs/buildings/elightturret2_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/buildings/elightturret2_basedef.lua @@ -13,8 +13,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumBuildingExplosionGeneric", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, floater = true, idleAutoHeal = .5, idleTime = 2200, @@ -62,7 +62,7 @@ unitDef = { weapons = { [1] = { def = "lighteweapon", - badTargetCategory = "VTOL ARMORED", + badTargetCategory = "VTOL ARMORED BUILDING", onlyTargetCategory = "BIO LIGHT VTOL ARMORED", }, }, @@ -121,7 +121,7 @@ weaponDefs = { waterweapon = true, customparams = { isupgraded = isUpgraded, - damagetype = "elightturret2", + damagetype = "turretantilight", unittype = "turret", effectedByunitHealthModifier = true, }, diff --git a/Units-Configs-Basedefs/basedefs/buildings/eradar2_basedef.lua b/Units-Configs-Basedefs/basedefs/buildings/eradar2_basedef.lua new file mode 100644 index 000000000..adc30b62e --- /dev/null +++ b/Units-Configs-Basedefs/basedefs/buildings/eradar2_basedef.lua @@ -0,0 +1,76 @@ +unitDef = { + activateWhenBuilt = true, + buildAngle = 16384, + buildCostEnergy = 0, + buildCostMetal = buildCostMetal, + builder = false, + buildTime = 5, + category = "BUILDING NOTAIR", + description = [[Radar Dome/Sensor Tower]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "largeBuildingExplosionGenericWhite", + footprintX = 6, + footprintZ = 6, + floater = true, + iconType = "radar", + idleAutoHeal = .5, + idleTime = 2200, + isTargetingUpgrade = false, + maxDamage = 250, + maxSlope = 75, + maxWaterDepth = 999999, + metalStorage = 0, + name = humanName, + objectName = objectName, + script = "eradar3.cob", + onoffable = false, + radarDistance = radarDistance, + radarEmitHeight = radarEmitHeight, + repairable = false, + selfDestructAs = "largeBuildingExplosionGenericWhite", + side = "CORE", + sightDistance = sightDistance, + smoothAnim = true, + sonarDistance = sonarDistance, + seismicDistance = seismicDistance, + unitname = "eradar2", + workerTime = 0, + yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", + + sfxtypes = { + pieceExplosionGenerators = { + "deathceg3", + "deathceg4", + }, + + explosiongenerators = { + "custom:blacksmoke", + }, + }, + + sounds = { + underattack = "other/unitsunderattack1", + select = { + "other/gdradar", + }, + }, + customParams = { + RequireTech = tech, + unittype = "building", + needed_cover = 2, + death_sounds = "generic", + armortype = armortype, + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "ateran", + corpse = "energycore", + helptext = [[]], + }, + useGroundDecal = true, + BuildingGroundDecalType = "factorygroundplate.dds", + BuildingGroundDecalSizeX = 8, + BuildingGroundDecalSizeY = 8, + BuildingGroundDecalDecaySpeed = 0.9, +} diff --git a/Units-Configs-Basedefs/basedefs/commander_basedef.lua b/Units-Configs-Basedefs/basedefs/commander_basedef.lua new file mode 100644 index 000000000..cba38873f --- /dev/null +++ b/Units-Configs-Basedefs/basedefs/commander_basedef.lua @@ -0,0 +1,381 @@ +unitDef = { + + --mobileunit + transportbyenemy = false; + --** + + acceleration = 0.2, + brakeRate = 1, + buildCostEnergy = 0, + buildCostMetal = 1000, + buildDistance = 350, + builder = true, + buildTime = 2.5, + buildpic = buildpicture, + capturable = false, + CanAttack = true, + CanAssist = true, + canBeAssisted = true, + CanCapture = false, + CanRepair = true, + canRestore = false, + + canGuard = true, + canMove = true, + canPatrol = true, + canreclaim = true, + canstop = true, + category = "NOTAIR SUPPORT LIGHT", + description = [[Builds Units]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "commnuke", + footprintX = footprintx, + footprintZ = footprintz, + + iconType = "commander", + idleAutoHeal = .5, + idleTime = 2200, + levelground = true, + maxDamage = maxdamage, + maxSlope = 180, + maxVelocity = maxvelocity, + maxReverseVelocity = 1, + maxWaterDepth = 5000, + metalmake = 0, + metalStorage = 0, + movementClass = movementclass, + moveState = "0", + name = humanname, + noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", + objectName = objectname, + script = script, + radarDistance = 0, + repairable = false, + selfDestructAs = "commnuke", + showPlayerName = true, + showNanoSpray = true, + sightDistance = 500, + smoothAnim = true, + stealth = true, + seismicSignature = 2, + turnInPlace = true, + turnRate = 5000, + unitname = unitName, + upright = false, + workerTime = 1, + capturespeed = 0.25, + TerraformSpeed = 2147000, + ReclaimSpeed = 1, -- 0.03125 = 1 hp per second + repairspeed = 0.5, + sfxtypes = { + pieceExplosionGenerators = { + "deathceg3", + "deathceg4", + }, + + explosiongenerators = { + "custom:nanoorb", + "custom:emptydirt", + "custom:blacksmoke", + "custom:gdhcannon", + }, + }, + buildoptions = buildlist, + sounds = { + build = "miscfx/buildstart.wav", + underattack = "other/unitsunderattack1", + ok = { + "ack", + }, + select = { + "unitselect", + }, + }, + weapons = { + [1] = { + def = weapon1, + }, + }, + customParams = { + unittype = "mobile", + area_mex_def = "emetalextractor", + ProvideTech = techprovided, + RequireTech = techrequired, + canbetransported = "true", + iscommander = true, + needed_cover = 2, + supply_granted = supplygiven, + death_sounds = "generic", + + armortype = armortype, + nofriendlyfire = "1", + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "ateran", + }, +} + +-------------------------------------------------------------------------------- + +weaponDefs = { + + machinegun = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "1 0 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 200, + }, + }, + + machinegun_up1 = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "0.5 0.5 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 300, + }, + }, + + machinegun_up2 = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "0 1 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 450, + }, + }, + + machinegun_up3 = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "0 0 1", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 675, + }, + }, + + commnuke = { + AreaOfEffect = 500, + avoidFriendly = false, + avoidFeature = false, + cegTag = "NUKETRAIL", + collideFriendly = false, + collideFeature = false, + commandfire = true, + craterBoost = 0, + craterMult = 0, + edgeeffectiveness = 0.1, + energypershot = 0, + explosionGenerator = "custom:NUKEDATBEWMSMALL", + fireStarter = 100, + flightTime = 400, + + id = 124, + impulseBoost = 0, + impulseFactor = 0, + interceptedByShieldType = 4, + + metalpershot = 0, + model = "enuke.s3o", + name = "Nuke", + range = 32000, + reloadtime = 60, + weaponType = "MissileLauncher", + + + smokeTrail = false, + soundHit = "explosions/explosion_enormous.wav", + soundStart = "weapons/nukelaunch.wav", + +-- stockpile = true, +-- stockpileTime = stockpiletime, + startVelocity = 10, + tracks = true, + turnRate = 3000, + targetable = 1, + + weaponAcceleration = 30, + weaponTimer = 15, + weaponType = "StarburstLauncher", + weaponVelocity = 1000, + customparams = { + damagetype = "light", + death_sounds = "nuke", + nocosttofire = true, + }, + damage = { + default = 1000, + }, + }, + + heavybeamweapon = { + AreaOfEffect = 10, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + largebeamlaser = true, + beamTime = 0.5, + cameraShake = 0, + coreThickness = 0.5, + -- cegTag = "mediumcannonweapon3", + -- duration = 0.2, + energypershot = 0, + explosionGenerator = "custom:genericshellexplosion-large-sparks-burn", + fallOffRate = 0, + fireStarter = 50, + impulseFactor = 0, + interceptedByShieldType = 4, + minintensity = 1, + name = "Laser", + range = 800, + reloadtime = 0.5, + WeaponType = "BeamLaser", + rgbColor = "0 0 1", + rgbColor2 = "0.5 0.5 0.5", + soundTrigger = true, + soundstart = "weapons/Sci Fi Beam 3-short.wav", + -- soundHit = "explosions/mediumcannonhit.wav", + -- sweepfire = true, + texture1 = "lightning", + texture2 = "laserend", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 800, + customparams = { + isupgraded = isUpgraded, + damagetype = "antilightarmored", + }, + damage = { + default = 500, + }, + }, +} diff --git a/Units-Configs-Basedefs/basedefs/eorb_basedef.lua b/Units-Configs-Basedefs/basedefs/eorb_basedef.lua index db26d56c5..dc6434014 100644 --- a/Units-Configs-Basedefs/basedefs/eorb_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/eorb_basedef.lua @@ -24,7 +24,7 @@ unitDef = { canHover = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "LIGHT NOTAIR SUPPORT", description = [[Field Medic / Construction Assistant]], @@ -32,8 +32,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericGreen", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, fireState = "0", iconType = "orb", idleAutoHeal = .5, @@ -46,7 +46,7 @@ unitDef = { maxWaterDepth = 5000, metalmake = 0, metalStorage = 0, - movementClass = "HOVERHBOT3", + movementClass = "HOVERHBOT2", moveState = "2", name = humanName, objectName = objectName, @@ -82,10 +82,11 @@ unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, + buildoptions = buildlist, sounds = { build = "miscfx/buildstart.wav", underattack = "other/unitsunderattack1", @@ -106,7 +107,7 @@ unitDef = { energycorecollect = true, armortype = armortype, noenergycost = true, --- supply_cost = supply, + area_mex_def = "emetalextractor", normaltex = "unittextures/lego2skin_explorernormal.dds", buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", diff --git a/Units-Configs-Basedefs/basedefs/faction/xcrasher_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xcrasher_basedef.lua deleted file mode 100644 index f0b708da2..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xcrasher_basedef.lua +++ /dev/null @@ -1,148 +0,0 @@ -unitDef = { - - --mobileunit - transportbyenemy = false; - --** - - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 40, - builder = false, - buildTime = 5, - buildpic = [[pattern/xcrasher.png]], - canAttack = true, - - canGuard = true, - canHover = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT NOTAIR RAID", - description = [[Long-Range Light Main Battle Tank]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "mediumExplosionGenericRed", - footprintX = 5, - footprintZ = 5, - --highTrajectory = 2, - iconType = "mtd_lit_all", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 350, - maxSlope = 90, - maxVelocity = 2, - maxReverseVelocity = 1, - maxWaterDepth = 10, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "mediumExplosionGenericRed", - side = "CORE", - sightDistance = 300, - smoothAnim = true, - stealth = true, - seismicSignature = 2, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 5.5, - turnInPlace = true, - turnRate = 5000, - -- turnrate = 475, - unitname = unitName, - --usePieceCollisionVolumes = true, - upright = true, - workerTime = 0, - - sfxtypes = { - explosiongenerators = { - "custom:gdhcannon", - "custom:dirt", - "custom:blacksmoke", - "custom:airfactoryhtrail", - }, - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "rockets", --- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! --- maxAngleDif = 70, - badTargetCategory = "BUILDING", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = armortype, - nofriendlyfire = "1", - supply_cost = supply, - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "pattern", - corpse = "energycore", - }, -} - -weaponDefs = { - rockets = { - accuracy = 1000, - AreaOfEffect = 30, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - cegTag = "ehbotrocko-optimized", - explosionGenerator = "custom:genericshellexplosion-large-red", - energypershot = 0, - fireStarter = 70, - impulseFactor = 0, - interceptedByShieldType = 4, - model = "missilesmalllauncher.s3o", - name = "Rockets", - range = 850, - reloadtime = 0.5, - weaponType = "MissileLauncher", - smokeTrail = false, - soundStart = "weapons/emediumtankfire2.wav", - soundHit = "explosions/explode5.wav", - startVelocity = 500, - tolerance = 8000, - turnrate = 3000, - turret = true, - tracks = true, - weaponAcceleration = 100, - flightTime = 3, - weaponVelocity = 2500, - customparams = { - damagetype = "ehbotrocko", - isupgraded = isUpgraded, - }, - damage = { - default = 20, - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xflea_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xflea_basedef.lua deleted file mode 100644 index e04beb0b1..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xflea_basedef.lua +++ /dev/null @@ -1,146 +0,0 @@ -unitDef = { - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 18, - builder = false, - buildTime = 5, - buildpic = [[pattern/xflea.png]], - canAttack = true, - canGuard = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT AMPHIB RAID", - description = [[Scout]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "smallExplosionGenericRed", - footprintX = 3, - footprintZ = 3, - iconType = "raider", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 120, - maxSlope = 28, - maxVelocity = 6.5, - maxReverseVelocity = 2, - maxWaterDepth = 5000, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "smallExplosionGenericRed", - sightDistance = 650, - sonarDistance = 650, - stealth = true, - seismicSignature = 2, - sonarStealth = false, - smoothAnim = true, - transportbyenemy = false, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 6.0, - turnInPlace = true, - turnRate = 5000, - upright = true, - -- turnrate = 475, - unitname = unitName, - workerTime = 0, - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:factorysparks", - "custom:dirt", - "custom:blacksmoke", - }, - }, - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - -- [1] = { - -- def = "lightbeamlaser", - -- badTargetCategory = "ARMORED BUILDING WALL", - -- }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = "light", - nofriendlyfire = "1", - supply_cost = 1, - normaltex = "unittextures/afaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "pattern", - corpse = "energycore", - }, -} - -weaponDefs = { - lightbeamlaser = { - TargetMoveError = 0.3, - AreaOfEffect = 0, - avoidFeature = false, - avoidFriendly = false, - beamTime = 0.1, - collideFeature = false, - collideFriendly = false, - coreThickness = 0.2, - duration = 0.1, - explosionGenerator = "custom:genericshellexplosion-small-sparks-burn", - energypershot = 0, - fallOffRate = 1, - fireStarter = 50, - interceptedByShieldType = 4, - impulsefactor = 0.1, - laserflaresize = 5, - largebeamlaser = true, - leadlimit = 10, - minintensity = 1, - name = "Laser", - range = 300, - reloadtime = 0.5, - WeaponType = "BeamLaser", - rgbColor = "0.5 0 0", - rgbColor2 = "0.8 0.8 0.8", - soundTrigger = true, - soundstart = "weapons/amphibbuggytankshothit.wav", - -- soundHit = "weapons/amphibbuggytankshothit.wav", - scrollspeed = 5, - texture1 = "lightning", - texture2 = "laserend", - thickness = 5, - tolerance = 3000, - turret = true, - weaponVelocity = 1000, - waterweapon = true, - customparams = { - isupgraded = isUpgraded, - damagetype = "eamphibbuggy", - }, - damage = { - default = 1, -- multiply * 1.2 for correct dps output - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xhammer_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xhammer_basedef.lua deleted file mode 100644 index be57acc47..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xhammer_basedef.lua +++ /dev/null @@ -1,149 +0,0 @@ -unitDef = { - - --mobileunit - transportbyenemy = false; - --** - - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 27, - builder = false, - buildTime = 5, - buildpic = [[pattern/xhammer.png]], - canAttack = true, - - canGuard = true, - canHover = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT NOTAIR RAID", - description = [[Light Tank Destroyer]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "mediumExplosionGeneric", - footprintX = 5, - footprintZ = 5, - highTrajectory = 2, - iconType = "td_lit_lit", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 325, - maxSlope = 90, - maxVelocity = 2.5, - maxReverseVelocity = 1, - maxWaterDepth = 10, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "mediumExplosionGeneric", - side = "CORE", - sightDistance = 800, - smoothAnim = true, - stealth = true, - seismicSignature = 2, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 5.5, - turnInPlace = true, - turnRate = 5000, - -- turnrate = 475, - unitname = unitName, - upright = true, - --usePieceCollisionVolumes = true, - workerTime = 0, - - sfxtypes = { - explosiongenerators = { - "custom:gdhcannon", - --"custom:dirt", - "custom:blacksmoke", - }, - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "plasmacannon", --- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! --- maxAngleDif = 70, - badTargetCategory = "VTOL ARMORED WALL", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = armortype, - nofriendlyfire = "1", - supply_cost = supply, - normaltex = "unittextures/afaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "patterns", - corpse = "energycore", - }, -} - -weaponDefs = { - plasmacannon = { - AreaOfEffect = 25, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - cegTag = "thudshot", - --burst = burst, - --burstrate = 0.1, - edgeEffectiveness = 1, - explosionGenerator = "custom:genericshellexplosion-small", - energypershot = 0, - --duration = 0.25, - highTrajectory = 2, - impulseFactor = 0, - interceptedByShieldType = 4, - name = "Plasma Cannon", - --noExplode = true, - range = 800, - reloadtime = 2, - size = 8, - --projectiles = projectiles, - weaponType = "Cannon", - soundStart = "weapons/bruisercannon.wav", - soundHit = "explosions/mediumcannonhit.wav", - soundTrigger = true, - --sprayAngle = 1000, - tolerance = 10000, - turret = true, - weaponTimer = 1, - weaponVelocity = 600, - customparams = { - damagetype = "ehbotthud", - isupgraded = isUpgraded, - }, - damage = { - default = 150, - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xklab_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xklab_basedef.lua deleted file mode 100644 index e3184b0dc..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xklab_basedef.lua +++ /dev/null @@ -1,83 +0,0 @@ -unitDef = { - - activatewhenbuilt = false, - buildAngle = 1024, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = true, - buildTime = 5, - buildpic = "ebasefactory.png", - canAttack = false, - canBeAssisted = true, - canGuard = true, - canMove = true, - canPatrol = true, - canReclaim = false, - canstop = true, - category = "BUILDING NOTAIR", - description = [[Build a Tech Facility to unlock units. Build Supply Depots to increase your army size.]], - energyStorage = 0, - energyUse = 0, - energyMake = 0, - explodeAs = "hugeBuildingExplosionGeneric", - footprintX = 16, - footprintZ = 16, - floater = true, - iconType = "factory", - idleAutoHeal = .5, - idleTime = 2200, - maxDamage = maxDamage, - maxSlope = 25, - maxWaterDepth = 99999999999, - metalStorage = 0, - metalMake = 0, - name = humanName, - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "hugeBuildingExplosionGeneric", - showNanoSpray = true, - side = "CORE", - sightDistance = 388, - smoothAnim = true, - TEDClass = "PLANT", - unitname = unitName, - -- unitRestricted = 1, - workerTime = 1, - yardMap = "oooooooooooooooo oooooooooooooooo oooooooooooooooo oooooooooooooooo oooooooooooooooo oooooooooooooooo yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy", - -- usePieceCollisionVolumes = true, - -- modelCenterOffset = {108, 10, 0}, - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - }, - }, - buildoptions = hoverFactoryBuildList, - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/gdfactoryselect", - }, - }, - weapons = { - }, - customParams = { - unittype = "building", - death_sounds = "generic", - armortype = "building", - normaltex = "unittextures/bfaction_normals.dds", - factionname = "pattern", - corpse = "energycore", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 21, - BuildingGroundDecalSizeY = 21, - BuildingGroundDecalDecaySpeed = 0.9, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xmetalextractor_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xmetalextractor_basedef.lua deleted file mode 100644 index fcc467e61..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xmetalextractor_basedef.lua +++ /dev/null @@ -1,79 +0,0 @@ -unitDef = { - - activateWhenBuilt = true, - buildAngle = 2048, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - buildingMask = 0, - builder = false, - buildTime = 5, - buildPic = buildPic, - canAttack = false, - category = "BUILDING NOTAIR ECO", - description = [[Generates Metal from Resource Nodes]], - energyStorage = 0, - energyUse = energyUse, - explodeAs = "largeBuildingExplosionGenericRed", - makesMetal = 0, - footprintX = 9, - footprintZ = 9, - iconType = "eco", - idleAutoHeal = .5, - idleTime = 2200, - maxDamage = buildCostMetal * 12.5, - maxSlope = 90, - maxWaterDepth = 5000, - metalStorage = 0, - metalMake = 0, - name = humanName, - objectName = objectName, - script = script, - onoffable = true, - radarDistance = 0, - repairable = false, - selfDestructAs = "largeBuildingExplosionGenericRed", - selfDestructCountdown = 15, - side = "CORE", - sightDistance = 200, - smoothAnim = true, - unitName = unitName, - workerTime = 0, - yardMap = "yyyyyyyyy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yoooooooy yyyyyyyyy", - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - }, - }, - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/gdmex", - }, - }, - weapons = { - }, - customParams = { - RequireTech = tech, - unittype = "building", - metal_extractor = metalMultiplier, - iseco = 1, - needed_cover = 3, - death_sounds = "generic", - armortype = armortype, - noenergycost = true, - normaltex = "unittextures/afaction_normals.dds", - factionname = "pattern", - corpse = "energycore", - helptext = [[]], - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 9, - BuildingGroundDecalSizeY = 9, - BuildingGroundDecalDecaySpeed = 0.9, -} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/faction/xrocketturret_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xrocketturret_basedef.lua deleted file mode 100644 index df9ab5ce8..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xrocketturret_basedef.lua +++ /dev/null @@ -1,126 +0,0 @@ -unitDef = { - buildAngle = 2048, - buildCostEnergy = 0, - buildCostMetal = 27, - builder = false, - buildTime = 5, - buildpic = [[pattern/xrocketturret.png]], - canAttack = true, - canstop = "1", - category = "BUILDING NOTAIR", - collisionVolumeTest = "1", - description = [[Anti-Raid Defense Platform (Anti-Light)]], - energyStorage = 0, - energyUse = 0, - explodeAs = "mediumBuildingExplosionGeneric", - footprintX = 4, - footprintZ = 4, - floater = true, - idleAutoHeal = .5, - idleTime = 2200, - iconType = "turret_lit", - maxDamage = 625, - maxSlope = 60, - maxWaterDepth = 999999, - metalStorage = 0, - name = humanName, - objectName = objectName, - script = script, - onlytargetcategory2 = "NOTAIR", - onlytargetcategory3 = "NOTAIR", - onlytargetcategory4 = "NOTAIR", - onlytargetcategory5 = "NOTAIR", - onlytargetcategory6 = "NOTAIR", - radarDistance = 0, - repairable = false, - selfDestructAs = "mediumBuildingExplosionGeneric", - side = "CORE", - sightDistance = 650, - smoothAnim = true, - unitname = unitName, - workerTime = 0, - yardMap = "oooo oooo oooo oooo", - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:gdhcannon", - "custom:needspower", - "custom:blacksmoke", - }, - }, - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/turretselect", - }, - }, - weapons = { - [1] = { - def = "rockets", - badTargetCategory = "VTOL ARMORED", - onlyTargetCategory = "BIO LIGHT VTOL ARMORED", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "turret", - RequireTech = tech, - needed_cover = 2, - --supply_cost = supply, - death_sounds = "generic", - armortype = armortype, - normaltex = "unittextures/afaction_normals.dds", - factionname = "pattern", - corpse = "energycore", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 6, - BuildingGroundDecalSizeY = 6, - BuildingGroundDecalDecaySpeed = 0.9, -} - -weaponDefs = { - rockets = { - accuracy = 1000, - AreaOfEffect = 30, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - cegTag = "ehbotrocko-optimized", - explosionGenerator = "custom:genericshellexplosion-large-red", - energypershot = 0, - fireStarter = 70, - impulseFactor = 0, - interceptedByShieldType = 4, - model = "missilesmalllauncher.s3o", - name = "Rockets", - range = 850, - reloadtime = 0.5, - weaponType = "MissileLauncher", - smokeTrail = false, - soundStart = "weapons/emediumtankfire2.wav", - soundHit = "explosions/explode5.wav", - startVelocity = 500, - tolerance = 8000, - turnrate = 3000, - turret = true, - tracks = true, - weaponAcceleration = 100, - flightTime = 3, - weaponVelocity = 2500, - customparams = { - damagetype = "ehbotrocko", - isupgraded = isUpgraded, - }, - damage = { - default = 20, - }, - }, -} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/faction/xrocko_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xrocko_basedef.lua deleted file mode 100644 index 3a980ba45..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xrocko_basedef.lua +++ /dev/null @@ -1,148 +0,0 @@ -unitDef = { - - --mobileunit - transportbyenemy = false; - --** - - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 40, - builder = false, - buildTime = 5, - buildpic = [[pattern/xrocko.png]], - canAttack = true, - - canGuard = true, - canHover = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT NOTAIR RAID", - description = [[Long-Range Light Main Battle Tank]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "mediumExplosionGenericRed", - footprintX = 5, - footprintZ = 5, - --highTrajectory = 2, - iconType = "mtd_lit_all", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 350, - maxSlope = 90, - maxVelocity = 2, - maxReverseVelocity = 1, - maxWaterDepth = 10, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "mediumExplosionGenericRed", - side = "CORE", - sightDistance = 300, - smoothAnim = true, - stealth = true, - seismicSignature = 2, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 5.5, - turnInPlace = true, - turnRate = 5000, - -- turnrate = 475, - unitname = unitName, - --usePieceCollisionVolumes = true, - upright = true, - workerTime = 0, - - sfxtypes = { - explosiongenerators = { - "custom:gdhcannon", - "custom:dirt", - "custom:blacksmoke", - "custom:airfactoryhtrail", - }, - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "rockets", --- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! --- maxAngleDif = 70, - badTargetCategory = "BUILDING", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = armortype, - nofriendlyfire = "1", - supply_cost = supply, - normaltex = "unittextures/afaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "pattern", - corpse = "energycore", - }, -} - -weaponDefs = { - rockets = { - accuracy = 1000, - AreaOfEffect = 250, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - cegTag = "ehbotrocko-optimized", - explosionGenerator = "custom:genericshellexplosion-large-red", - energypershot = 0, - fireStarter = 70, - impulseFactor = 0, - interceptedByShieldType = 4, - model = "missilesmalllauncher.s3o", - name = "Rockets", - range = 850, - reloadtime = 2.5, - weaponType = "MissileLauncher", - smokeTrail = false, - soundStart = "weapons/emediumtankfire2.wav", - soundHit = "explosions/explode5.wav", - startVelocity = 250, - tolerance = 8000, - turnrate = 1500, - turret = true, - tracks = true, - weaponAcceleration = 100, - flightTime = 3, - weaponVelocity = 1500, - customparams = { - damagetype = "ehbotrocko", - isupgraded = isUpgraded, - }, - damage = { - default = 100, - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xskulk_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xskulk_basedef.lua deleted file mode 100644 index 6b7a28bcf..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xskulk_basedef.lua +++ /dev/null @@ -1,146 +0,0 @@ -unitDef = { - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 18, - builder = false, - buildTime = 5, - buildpic = [[pattern/xskulk.png]], - canAttack = true, - canGuard = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT AMPHIB RAID", - description = [[Raider]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "smallExplosionGenericRed", - footprintX = 2, - footprintZ = 2, - iconType = "raider", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 120, - maxSlope = 28, - maxVelocity = 6.5, - maxReverseVelocity = 2, - maxWaterDepth = 5000, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "smallExplosionGenericRed", - sightDistance = 650, - sonarDistance = 650, - stealth = true, - seismicSignature = 2, - sonarStealth = false, - smoothAnim = true, - transportbyenemy = false, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 6.0, - turnInPlace = true, - turnRate = 5000, - upright = true, - -- turnrate = 475, - unitname = unitName, - workerTime = 0, - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:factorysparks", - "custom:dirt", - "custom:blacksmoke", - }, - }, - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "lightbeamlaser", - badTargetCategory = "ARMORED BUILDING WALL", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = "light", - nofriendlyfire = "1", - supply_cost = 1, - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "pattern", - corpse = "energycore", - }, -} - -weaponDefs = { - lightbeamlaser = { - TargetMoveError = 0.3, - AreaOfEffect = 0, - avoidFeature = false, - avoidFriendly = false, - beamTime = 0.1, - collideFeature = false, - collideFriendly = false, - coreThickness = 0.2, - duration = 0.1, - explosionGenerator = "custom:genericshellexplosion-small-sparks-burn", - energypershot = 0, - fallOffRate = 1, - fireStarter = 50, - interceptedByShieldType = 4, - impulsefactor = 0.1, - laserflaresize = 5, - largebeamlaser = true, - leadlimit = 10, - minintensity = 1, - name = "Laser", - range = 300, - reloadtime = 0.5, - WeaponType = "BeamLaser", - rgbColor = "0.5 0 0", - rgbColor2 = "0.8 0.8 0.8", - soundTrigger = true, - soundstart = "weapons/amphibbuggytankshothit.wav", - -- soundHit = "weapons/amphibbuggytankshothit.wav", - scrollspeed = 5, - texture1 = "lightning", - texture2 = "laserend", - thickness = 5, - tolerance = 3000, - turret = true, - weaponVelocity = 1000, - waterweapon = true, - customparams = { - isupgraded = isUpgraded, - damagetype = "eamphibbuggy", - }, - damage = { - default = 13.5, -- multiply * 1.2 for correct dps output - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/faction/xwarrior_basedef.lua b/Units-Configs-Basedefs/basedefs/faction/xwarrior_basedef.lua deleted file mode 100644 index 027818bca..000000000 --- a/Units-Configs-Basedefs/basedefs/faction/xwarrior_basedef.lua +++ /dev/null @@ -1,146 +0,0 @@ -unitDef = { - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 18, - builder = false, - buildTime = 5, - buildpic = [[pattern/xwarrior.png]], - canAttack = true, - canGuard = true, - canMove = true, - canPatrol = true, - canstop = "1", - category = "LIGHT AMPHIB RAID", - description = [[Raider]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "smallExplosionGenericRed", - footprintX = 2, - footprintZ = 2, - iconType = "raider", - idleAutoHeal = .5, - idleTime = 2200, - leaveTracks = false, - maxDamage = 120, - maxSlope = 28, - maxVelocity = 3, - maxReverseVelocity = 2, - maxWaterDepth = 5000, - metalStorage = 0, - movementClass = "PATTERNKBOT3", - name = humanName, - noChaseCategory = "VTOL", - objectName = objectName, - script = script, - radarDistance = 0, - repairable = false, - selfDestructAs = "smallExplosionGenericRed", - sightDistance = 650, - sonarDistance = 650, - stealth = true, - seismicSignature = 2, - sonarStealth = false, - smoothAnim = true, - transportbyenemy = false, - -- turnInPlace = false, - -- turnInPlaceSpeedLimit = 6.0, - turnInPlace = true, - turnRate = 5000, - upright = true, - -- turnrate = 475, - unitname = unitName, - workerTime = 0, - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:factorysparks", - "custom:dirt", - "custom:blacksmoke", - }, - }, - sounds = { - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "lightbeamlaser", - badTargetCategory = "ARMORED BUILDING WALL", - }, - }, - customParams = { - isupgraded = isUpgraded, - unittype = "mobile", - canbetransported = "true", - needed_cover = 1, - death_sounds = "generic", - RequireTech = tech, - armortype = "light", - nofriendlyfire = "1", - supply_cost = 1, - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "xed", - corpse = "energycore", - }, -} - -weaponDefs = { - lightbeamlaser = { - TargetMoveError = 0.3, - AreaOfEffect = 0, - avoidFeature = false, - avoidFriendly = false, - beamTime = 0.1, - collideFeature = false, - collideFriendly = false, - coreThickness = 0.2, - duration = 0.1, - explosionGenerator = "custom:genericshellexplosion-small-sparks-burn", - energypershot = 0, - fallOffRate = 1, - fireStarter = 50, - interceptedByShieldType = 4, - impulsefactor = 0.1, - laserflaresize = 5, - largebeamlaser = true, - leadlimit = 10, - minintensity = 1, - name = "Laser", - range = 300, - reloadtime = 0.5, - WeaponType = "BeamLaser", - rgbColor = "0.5 0 0", - rgbColor2 = "0.8 0.8 0.8", - soundTrigger = true, - soundstart = "weapons/amphibbuggytankshothit.wav", - -- soundHit = "weapons/amphibbuggytankshothit.wav", - scrollspeed = 5, - texture1 = "lightning", - texture2 = "laserend", - thickness = 5, - tolerance = 3000, - turret = true, - weaponVelocity = 1000, - waterweapon = true, - customparams = { - isupgraded = isUpgraded, - damagetype = "eamphibbuggy", - }, - damage = { - default = 13.5, -- multiply * 1.2 for correct dps output - }, - }, -} diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotfac_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotfac_basedef.lua index 74a23bce3..8db03603a 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotfac_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotfac_basedef.lua @@ -20,8 +20,8 @@ unitDef = { energyUse = 0, energyMake = 0, explodeAs = "hugeBuildingExplosionGeneric", - footprintX = 20, - footprintZ = 20, + footprintX = 10, + footprintZ = 10, floater = true, iconType = "factory", idleAutoHeal = .5, @@ -45,7 +45,7 @@ unitDef = { unitname = unitName, -- unitRestricted = 1, workerTime = 1, - yardMap = "oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo", + yardMap = "cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc ", -- usePieceCollisionVolumes = true, -- modelCenterOffset = {108, 10, 0}, sfxtypes = { @@ -71,7 +71,7 @@ unitDef = { weapons = { }, customParams = { - unittype = "building", + unittype = "factory", death_sounds = "generic", armortype = "building", normaltex = "unittextures/lego2skin_explorernormal.dds", diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotkarganneth_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotkarganneth_basedef.lua index 2d9acff94..d7868b392 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotkarganneth_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotkarganneth_basedef.lua @@ -7,7 +7,7 @@ unitDef = { acceleration = 1, brakeRate = 1, buildCostEnergy = 0, - buildCostMetal = 1500, + buildCostMetal = 750, builder = false, buildTime = 5, buildpic = [[ehbotkarganneth.png]], @@ -62,7 +62,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -122,24 +122,28 @@ weaponDefs = { fallOffRate = 0, fireStarter = 50, interceptedByShieldType = 4, + impulsefactor = 0, minintensity = "1", - name = "Machine Gun", + name = "Gatling Laser Cannon", + largebeamlaser = true, + laserflaresize = 5, range = 1000, reloadtime = 0.1, - WeaponType = "LaserCannon", + WeaponType = "BeamLaser", rgbColor = "1 0 0", rgbColor2 = "1 1 1", soundTrigger = true, - soundstart = "weapons/tgunshipfire.wav", - texture1 = "shot", - texture2 = "empty", + soundstart = "weapons/plasma2.wav", + scrollspeed = 5, + texture1 = "lightning", + texture2 = "laserend", thickness = 8, tolerance = 1000, turret = true, weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "ehbotkarganneth", + damagetype = "antiarmored", }, damage = { default = 40, diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotpeewee_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotpeewee_basedef.lua index e3261d0e1..459209ae2 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotpeewee_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotpeewee_basedef.lua @@ -24,8 +24,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "smallExplosionGenericBlue", - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, iconType = "raider", idleAutoHeal = .5, idleTime = 2200, @@ -36,7 +36,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERHBOT5", + movementClass = "HOVERHBOT2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -62,7 +62,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -114,7 +114,7 @@ weaponDefs = { collideFriendly = false, collideFeature = false, cegTag = "railgun", - rgbColor = "0 0 1", + rgbColor = "1 0 0", rgbColor2 = "1 1 1", explosionGenerator = "custom:genericshellexplosion-medium-sparks-burn", edgeEffectiveness = 1, @@ -125,27 +125,25 @@ weaponDefs = { interceptedByShieldType = 4, name = "E.M.G.", range = 650, - reloadtime = 1, - projectiles = 5, + reloadtime = 0.5, + --projectiles = 5, weaponType = "LaserCannon", - soundStart = "weapons/shotgun-reload.wav", - soundTrigger = true, - sprayAngle = 500, + soundStart = "weapons/plasma3c.wav", texture1 = "shot", texture2 = "empty", - coreThickness = 0.3, + coreThickness = 0.6, thickness = 6, tolerance = 10000, turret = true, weaponTimer = 1, - weaponVelocity = 2000, + weaponVelocity = 1500, customparams = { - damagetype = "ehbotpeewee", + damagetype = "light", single_hit = true, isupgraded = isUpgraded, }, damage = { - default = 10, + default = 45, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotrocko_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotrocko_basedef.lua index 1a1b8f8c1..fe4928009 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotrocko_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotrocko_basedef.lua @@ -24,8 +24,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericRed", - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, --highTrajectory = 2, iconType = "mtd_lit_all", idleAutoHeal = .5, @@ -37,7 +37,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERHBOT5", + movementClass = "HOVERHBOT2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -63,7 +63,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -131,14 +131,14 @@ weaponDefs = { soundHit = "explosions/explode5.wav", startVelocity = 250, tolerance = 8000, - turnrate = 1500, + turnrate = 30000, turret = true, tracks = true, - weaponAcceleration = 100, - flightTime = 3, - weaponVelocity = 1500, + weaponAcceleration = 400, + flightTime = 5, + weaponVelocity = 3000, customparams = { - damagetype = "ehbotrocko", + damagetype = "antilightarmored", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotsniper_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotsniper_basedef.lua index 396dba453..7b88bb421 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotsniper_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotsniper_basedef.lua @@ -24,8 +24,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericPurple", - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, --highTrajectory = 2, iconType = "td_lit_arm", idleAutoHeal = .5, @@ -37,7 +37,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERHBOT5", + movementClass = "HOVERHBOT2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -63,7 +63,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -109,7 +109,6 @@ unitDef = { weaponDefs = { sniper = { - AreaOfEffect = 10, avoidFeature = false, avoidFriendly = false, @@ -144,7 +143,7 @@ weaponDefs = { turret = true, weaponVelocity = 3000, customparams = { - damagetype = "ehbotsniper", + damagetype = "antilightarmored", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotthud_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotthud_basedef.lua index e40423e39..1737d887d 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotthud_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/mobile/ehbotthud_basedef.lua @@ -24,8 +24,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGeneric", - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, highTrajectory = 2, iconType = "td_lit_lit", idleAutoHeal = .5, @@ -37,7 +37,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERHBOT5", + movementClass = "HOVERHBOT2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -63,7 +63,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -140,7 +140,7 @@ weaponDefs = { weaponTimer = 1, weaponVelocity = 600, customparams = { - damagetype = "ehbotthud", + damagetype = "antilight", isupgraded = isUpgraded, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotkarganneth_turret_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotkarganneth_turret_basedef.lua index 674835dae..0ba9b754f 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotkarganneth_turret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotkarganneth_turret_basedef.lua @@ -8,7 +8,7 @@ unitDef = { acceleration = 1, brakeRate = 1, buildCostEnergy = 0, - buildCostMetal = 1500, + buildCostMetal = 750, builder = false, buildTime = 5, buildpic = [[ehbotkarganneth_turret.png]], @@ -46,7 +46,7 @@ unitDef = { repairable = false, selfDestructAs = "hugeExplosionGenericPurple", side = "CORE", - sightDistance = 1000*1.33, + sightDistance = 1000, smoothAnim = true, stealth = true, seismicSignature = 2, @@ -63,7 +63,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -87,7 +87,7 @@ unitDef = { def = "machinegun", -- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! -- maxAngleDif = 70, - onlyTargetCategory = "LIGHT ARMORED BIO", + --onlyTargetCategory = "LIGHT ARMORED BIO", }, }, customParams = { @@ -123,27 +123,31 @@ weaponDefs = { fallOffRate = 0, fireStarter = 50, interceptedByShieldType = 4, + impulsefactor = 0, minintensity = "1", - name = "Machine Gun", - range = 1000*1.33, + name = "Gatling Laser Cannon", + largebeamlaser = true, + laserflaresize = 5, + range = 1000, reloadtime = 0.1, - WeaponType = "LaserCannon", + WeaponType = "BeamLaser", rgbColor = "1 0 0", rgbColor2 = "1 1 1", soundTrigger = true, - soundstart = "weapons/tgunshipfire.wav", - texture1 = "shot", - texture2 = "empty", + soundstart = "weapons/plasma2.wav", + scrollspeed = 5, + texture1 = "lightning", + texture2 = "laserend", thickness = 8, tolerance = 1000, turret = true, weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "ehbotkarganneth", + damagetype = "antiarmored", }, damage = { - default = 40, + default = 40*1.33, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotpeewee_turret_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotpeewee_turret_basedef.lua index 280bbd174..295f6a95f 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotpeewee_turret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotpeewee_turret_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyUse = 0, explodeAs = "smallExplosionGenericBlue", floater = true, - footprintX = 5, - footprintZ = 5, + footprintX = 2, + footprintZ = 2, iconType = "turret_lit", idleAutoHeal = .5, idleTime = 2200, @@ -41,7 +41,7 @@ unitDef = { repairable = false, selfDestructAs = "smallExplosionGenericBlue", side = "CORE", - sightDistance = 650*1.33, + sightDistance = 650, smoothAnim = true, stealth = false, seismicSignature = 2, @@ -59,7 +59,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -83,7 +83,7 @@ unitDef = { def = "flashweapon", -- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! -- maxAngleDif = 70, - onlyTargetCategory = "LIGHT ARMORED BIO", + --onlyTargetCategory = "LIGHT ARMORED BIO", badTargetCategory = "VTOL ARMORED WALL", }, }, @@ -112,7 +112,7 @@ weaponDefs = { collideFriendly = false, collideFeature = false, cegTag = "railgun", - rgbColor = "0 0 1", + rgbColor = "1 0 0", rgbColor2 = "1 1 1", explosionGenerator = "custom:genericshellexplosion-medium-sparks-burn", edgeEffectiveness = 1, @@ -122,28 +122,26 @@ weaponDefs = { impulseFactor = 0, interceptedByShieldType = 4, name = "E.M.G.", - range = 650*1.33, - reloadtime = 1, - projectiles = 5, + range = 650, + reloadtime = 0.5, + --projectiles = 5, weaponType = "LaserCannon", - soundStart = "weapons/shotgun-reload.wav", - soundTrigger = true, - sprayAngle = 500, + soundStart = "weapons/plasma3c.wav", texture1 = "shot", texture2 = "empty", - coreThickness = 0.3, + coreThickness = 0.6, thickness = 6, tolerance = 10000, turret = true, weaponTimer = 1, - weaponVelocity = 2000, + weaponVelocity = 1500, customparams = { - damagetype = "ehbotpeewee", + damagetype = "light", single_hit = true, isupgraded = isUpgraded, }, damage = { - default = 10, + default = 45*1.33, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotrocko_turret_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotrocko_turret_basedef.lua index bf425ccbc..9d86b69c4 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotrocko_turret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotrocko_turret_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyUse = 0, explodeAs = "mediumExplosionGenericRed", floater = true, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, --highTrajectory = 2, iconType = "turret_arm", idleAutoHeal = .5, @@ -42,7 +42,7 @@ unitDef = { repairable = false, selfDestructAs = "mediumExplosionGenericRed", side = "CORE", - sightDistance = 300*1.33, + sightDistance = 300, smoothAnim = true, stealth = false, seismicSignature = 2, @@ -60,7 +60,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -84,7 +84,7 @@ unitDef = { def = "rockets", -- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! -- maxAngleDif = 70, - onlyTargetCategory = "LIGHT ARMORED BIO", + --onlyTargetCategory = "LIGHT ARMORED BIO", --badTargetCategory = "BUILDING", }, }, @@ -121,7 +121,7 @@ weaponDefs = { interceptedByShieldType = 4, model = "missilesmalllauncher.s3o", name = "Rockets", - range = 850*1.33, + range = 850, reloadtime = 2.5, weaponType = "MissileLauncher", smokeTrail = false, @@ -136,11 +136,11 @@ weaponDefs = { flightTime = 3, weaponVelocity = 1500, customparams = { - damagetype = "ehbotrocko", + damagetype = "antilightarmored", isupgraded = isUpgraded, }, damage = { - default = 100, + default = 100*1.33, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotsniper_turret_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotsniper_turret_basedef.lua index 6615e63ef..b48c996e6 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotsniper_turret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotsniper_turret_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyUse = 0, explodeAs = "mediumExplosionGenericPurple", floater = true, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, --highTrajectory = 2, iconType = "turret_arm", idleAutoHeal = .5, @@ -42,7 +42,7 @@ unitDef = { repairable = false, selfDestructAs = "mediumExplosionGenericPurple", side = "CORE", - sightDistance = 300*1.33, + sightDistance = 300, smoothAnim = true, stealth = false, seismicSignature = 2, @@ -60,7 +60,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -84,7 +84,7 @@ unitDef = { def = "sniper", -- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! -- maxAngleDif = 70, - onlyTargetCategory = "LIGHT ARMORED BIO", + --onlyTargetCategory = "LIGHT ARMORED BIO", badTargetCategory = "LIGHT", }, }, @@ -127,7 +127,7 @@ weaponDefs = { minintensity = "1", name = "Laser", - range = 900*1.33, + range = 900, reloadtime = 7.5, WeaponType = "LaserCannon", rgbColor = "0 0.5 1", @@ -142,11 +142,11 @@ weaponDefs = { turret = true, weaponVelocity = 3000, customparams = { - damagetype = "ehbotsniper", + damagetype = "antilightarmored", isupgraded = isUpgraded, }, damage = { - default = 500, + default = 500*1.33, }, }, diff --git a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotthud_turret_basedef.lua b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotthud_turret_basedef.lua index 07ea0f778..2f948ddfc 100644 --- a/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotthud_turret_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hbot/turret/ehbotthud_turret_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyUse = 0, explodeAs = "mediumExplosionGeneric", floater = true, - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, highTrajectory = 2, iconType = "turret_lit", idleAutoHeal = .5, @@ -42,7 +42,7 @@ unitDef = { repairable = false, selfDestructAs = "mediumExplosionGeneric", side = "CORE", - sightDistance = 800*1.33, + sightDistance = 800, smoothAnim = true, stealth = false, seismicSignature = 2, @@ -60,7 +60,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:airfactoryhtrail", }, @@ -84,7 +84,7 @@ unitDef = { def = "plasmacannon", -- mainDir = "0 0 1", -- x:0 y:0 z:1 => that's forward! -- maxAngleDif = 70, - onlyTargetCategory = "LIGHT ARMORED BIO", + --onlyTargetCategory = "LIGHT ARMORED BIO", badTargetCategory = "VTOL ARMORED WALL", }, }, @@ -124,7 +124,7 @@ weaponDefs = { interceptedByShieldType = 4, name = "Plasma Cannon", --noExplode = true, - range = 800*1.33, + range = 800, reloadtime = 2, size = 8, --projectiles = projectiles, @@ -138,11 +138,11 @@ weaponDefs = { weaponTimer = 1, weaponVelocity = 600, customparams = { - damagetype = "ehbotthud", + damagetype = "antilight", isupgraded = isUpgraded, }, damage = { - default = 150, + default = 150*1.33, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hover/eartytank_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/eartytank_basedef.lua index 04f389dba..5166c2ad5 100644 --- a/Units-Configs-Basedefs/basedefs/hover/eartytank_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/eartytank_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGeneric", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "arty_lit", idleAutoHeal = .5, idleTime = 2200, @@ -29,7 +29,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK3", + movementClass = "HOVERTANK2", name = humanName, --Because he was the first one to get the "Lobster" pun noChaseCategory = "VTOL", objectName = objectName, @@ -58,7 +58,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -74,7 +74,7 @@ unitDef = { weapons = { [1] = { def = "Artilleryweapon", - badTargetCategory = "VTOL", + badTargetCategory = "VTOL LIGHT ARMORED BIO", }, -- [2] = { -- def = "SaturationArtilleryweapon", @@ -132,7 +132,7 @@ weaponDefs = { weaponVelocity = 500, customparams = { isupgraded = isUpgraded, - damagetype = "eartytank", + damagetype = "antibuildingarty", }, damage = { default = 200, @@ -169,7 +169,7 @@ weaponDefs = { weaponVelocity = 500, customparams = { isupgraded = isUpgraded, - damagetype = "eartytank", + damagetype = "antibuildingarty", }, damage = { default = 20, diff --git a/Units-Configs-Basedefs/basedefs/hover/eartytanksaturation_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/eartytanksaturation_basedef.lua index b22ff425d..e5cc800e2 100644 --- a/Units-Configs-Basedefs/basedefs/hover/eartytanksaturation_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/eartytanksaturation_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGeneric", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "arty_lit", idleAutoHeal = .5, idleTime = 2200, @@ -29,7 +29,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK3", + movementClass = "HOVERTANK2", name = humanName, --Because he was the first one to get the "Lobster" pun noChaseCategory = "VTOL", objectName = objectName, @@ -58,7 +58,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -105,7 +105,7 @@ unitDef = { weaponDefs = { SaturationArtilleryweapon = { - AreaOfEffect = 200, + AreaOfEffect = 250, avoidFriendly = false, avoidFeature = false, collideFriendly = false, @@ -116,7 +116,7 @@ weaponDefs = { explosionGenerator = "custom:genericshellexplosion-medium", energypershot = 0, - burst = 5, + burst = 20, burstRate = 0.25, impulseFactor = 0, @@ -135,10 +135,10 @@ weaponDefs = { weaponVelocity = 500, customparams = { isupgraded = isUpgraded, - damagetype = "eartytank_saturation", + damagetype = "antibuildingarty", }, damage = { - default = 200, + default = 100, }, }, } diff --git a/Units-Configs-Basedefs/basedefs/hover/ebasefactory_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/ebasefactory_basedef.lua index f7d237642..967c8bbc2 100644 --- a/Units-Configs-Basedefs/basedefs/hover/ebasefactory_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/ebasefactory_basedef.lua @@ -20,8 +20,8 @@ unitDef = { energyUse = 0, energyMake = 0, explodeAs = "hugeBuildingExplosionGeneric", - footprintX = 20, - footprintZ = 20, + footprintX = 10, + footprintZ = 10, floater = true, iconType = "factory", idleAutoHeal = .5, @@ -45,7 +45,7 @@ unitDef = { unitname = unitName, -- unitRestricted = 1, workerTime = 1, - yardMap = "oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo oooyyyyyyyyyyyyyyooo", + yardMap = "cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc ", -- usePieceCollisionVolumes = true, -- modelCenterOffset = {108, 10, 0}, sfxtypes = { @@ -71,7 +71,7 @@ unitDef = { weapons = { }, customParams = { - unittype = "building", + unittype = "factory", death_sounds = "generic", armortype = "building", normaltex = "unittextures/lego2skin_explorernormal.dds", @@ -80,8 +80,4 @@ unitDef = { corpse = "energycore", }, useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 26, - BuildingGroundDecalSizeY = 26, - BuildingGroundDecalDecaySpeed = 0.9, } diff --git a/Units-Configs-Basedefs/basedefs/hover/eheavytank3_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/eheavytank3_basedef.lua index 77b04d601..0b1e3ca52 100644 --- a/Units-Configs-Basedefs/basedefs/hover/eheavytank3_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/eheavytank3_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "largeExplosionGenericRed", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "td_arm_all", idleAutoHeal = .5, idleTime = 2200, @@ -30,7 +30,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK4", + movementClass = "HOVERTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -121,7 +121,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eheavytank3", + damagetype = "antilightarmored", }, damage = { default = 150, diff --git a/Units-Configs-Basedefs/basedefs/hover/elacerator_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/elacerator_basedef.lua index ef6a74311..6381e3383 100644 --- a/Units-Configs-Basedefs/basedefs/hover/elacerator_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/elacerator_basedef.lua @@ -2,7 +2,7 @@ unitDef = { acceleration = 0.18, brakeRate = 0.2, buildCostEnergy = 0, - buildCostMetal = 1750, + buildCostMetal = 875, builder = false, buildTime = 5, buildpic = "elacerator.png", @@ -58,7 +58,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -119,7 +119,7 @@ weaponDefs = { weaponVelocity = 800, customparams = { isupgraded = isUpgraded, - damagetype = "elacerator", + damagetype = "antibuilding", }, damage = { default = 280, diff --git a/Units-Configs-Basedefs/basedefs/hover/elighttank3_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/elighttank3_basedef.lua index 1fe96fcf8..7466baccc 100644 --- a/Units-Configs-Basedefs/basedefs/hover/elighttank3_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/elighttank3_basedef.lua @@ -39,7 +39,7 @@ unitDef = { repairable = false, selfDestructAs = "smallExplosionGenericBlue", side = "CORE", - sightDistance = 725, + sightDistance = 650, smoothAnim = true, stealth = true, seismicSignature = 2, @@ -56,7 +56,7 @@ unitDef = { sfxtypes = { explosiongenerators = { "custom:electricity", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, pieceExplosionGenerators = { @@ -112,7 +112,7 @@ weaponDefs = { craterBoost = 0, craterMult = 0, beamTTL = 10, - explosionGenerator = "custom:genericshellexplosion-medium-lightning", + explosionGenerator = "custom:genericshellexplosion-small-lightning", energypershot = 0, edgeeffectiveness = 1, impulseBoost = 0, @@ -126,7 +126,7 @@ weaponDefs = { WeaponType = "LightningCannon", rgbColor = "0.1 0.2 0.5", rgbColor2 = "0 0 1", - soundStart = "weapons/jacobs.wav", + soundStart = "weapons/lightningstrike.wav", texture1 = "lightning", thickness = 5, @@ -134,7 +134,7 @@ weaponDefs = { weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "elighttank3", + damagetype = "antilightbuilding", }, damage = { default = 60, diff --git a/Units-Configs-Basedefs/basedefs/hover/emissiletank_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/emissiletank_basedef.lua index 89cbc037e..daf2fcce2 100644 --- a/Units-Configs-Basedefs/basedefs/hover/emissiletank_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/emissiletank_basedef.lua @@ -19,8 +19,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "largeExplosionGeneric", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "mtd_lit_all", idleAutoHeal = .5, idleTime = 2200, @@ -31,7 +31,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK4", + movementClass = "HOVERTANK2", name = humanName, objectName = objectName, script = script, @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:factorysparks", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -76,7 +76,6 @@ unitDef = { weapons = { [1] = { def = "missletankweapon", - onlyTargetCategory = "BIO LIGHT ARMORED BUILDING", badTargetCategory = "BUILDING LIGHT", }, }, @@ -133,15 +132,15 @@ weaponDefs = { soundStart = "weapons/missile_launch1.wav", tracks = true, - turnrate = 17500, + turnrate = 30000, weaponAcceleration = 400, weaponTimer = 1, weaponType = "StarburstLauncher", - weaponVelocity = 1000, + weaponVelocity = 3000, customparams = { isupgraded = isUpgraded, - damagetype = "emissiletank", + damagetype = "antilightarmored", }, damage = { default = 150, diff --git a/Units-Configs-Basedefs/basedefs/hover/eriottank2_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/eriottank2_basedef.lua index 5bc273cc2..6ede05de5 100644 --- a/Units-Configs-Basedefs/basedefs/hover/eriottank2_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/eriottank2_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericBlue", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -30,7 +30,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK3", + movementClass = "HOVERTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -143,7 +143,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -176,7 +176,7 @@ weaponDefs = { weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", }, damage = { default = 300, diff --git a/Units-Configs-Basedefs/basedefs/hover/eriottank2_shotgun_basedef.lua b/Units-Configs-Basedefs/basedefs/hover/eriottank2_shotgun_basedef.lua index 3314e91fa..0c73a2647 100644 --- a/Units-Configs-Basedefs/basedefs/hover/eriottank2_shotgun_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/hover/eriottank2_shotgun_basedef.lua @@ -18,8 +18,8 @@ unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericBlue", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, iconType = "riot_lit", idleAutoHeal = .5, idleTime = 2200, @@ -30,7 +30,7 @@ unitDef = { maxReverseVelocity = 1, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK3", + movementClass = "HOVERTANK2", name = humanName, noChaseCategory = "VTOL", objectName = objectName, @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -143,7 +143,7 @@ weaponDefs = { weaponVelocity = 1000, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -152,35 +152,42 @@ weaponDefs = { }, riottankshotgun = { - AreaOfEffect = 250, + AreaOfEffect = 75, avoidFriendly = false, avoidFeature = false, collideFriendly = false, collideFeature = false, + --burstrate = 0.2, + --burst = 5, cegTag = "bruisercannon", - explosionGenerator = "custom:genericshellexplosion-medium", + edgeeffectiveness = 1, + explosionGenerator = "custom:genericshellexplosion-large-sparks-burn", energypershot = 0, interceptedByShieldType = 4, impulseFactor = 0, name = "Shotgun", - --projectiles = 10, + noSelfDamage = true, + noexplode = true, + projectiles = 5, range = 500, reloadtime = 5, + sprayangle = 3500, + size = 2, weaponType = "Cannon", soundHit = "explosions/mediumcannonhit.wav", - soundStart = "weapons/bruisercannon.wav", - --sprayangle = 2000, + soundStart = "weapons/Shotgun Boom 102.wav", turret = true, weaponVelocity = 400, customparams = { isupgraded = isUpgraded, - damagetype = "eriottank2shotgun", + damagetype = "light", + nofriendlyfire = true, + single_hit = true, }, damage = { - default = 300, + default = 150, }, }, - -} +} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/scavs/boss/ekrowboss_basedef.lua b/Units-Configs-Basedefs/basedefs/scavs/boss/ekrowboss_basedef.lua new file mode 100644 index 000000000..95bf31280 --- /dev/null +++ b/Units-Configs-Basedefs/basedefs/scavs/boss/ekrowboss_basedef.lua @@ -0,0 +1,154 @@ +unitDef = { + --acceleration = 0.5, + airStrafe = false, + airHoverFactor = 0, + BadTargetCategory = "VTOL", + --brakeRate = 1, + buildCostEnergy = 0, + buildCostMetal = 1750, + builder = false, + buildTime = 2.5, + buildpic = "ekrow.png", + canAttack = true, + canFly = true, + canGuard = true, + canMove = true, + canPatrol = true, + canstop = true, + category = "AIRARMORED VTOL", + collide = true, + cruiseAlt = 150, + description = [[Endbringer Flying Fortress]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "hugeExplosionGeneric", + footprintX = 10, + footprintZ = 10, + floater = true, + hoverAttack = true, + iconType = "krow", + idleAutoHeal = .5, + idleTime = 2200, + loopbackattack = false, + maxDamage = 24000, + maxSlope = 90, + maxVelocity = 2.5, + verticalSpeed = 15, + maxWaterDepth = 0, + metalStorage = 0, + name = humanName, + noChaseCategory = "VTOL", + objectName = objectName, + script = script, + radarDistance = 0, + repairable = false, + selfDestructAs = "hugeExplosionGeneric", + side = "CORE", + sightDistance = 1050, + smoothAnim = true, + stealth = false, + transportbyenemy = false; + turnRate = 100, + unitname = unitName, + upright = true, + workerTime = 0, + sfxtypes = { + pieceExplosionGenerators = { + "deathceg3", + "deathceg4", + }, + + explosiongenerators = { + "custom:gdhcannon", + "custom:blacksmoke", + }, + }, + sounds = { + underattack = "other/unitsunderattack1", + ok = { + "ack", + }, + select = { + "unitselect", + }, + }, + weapons = { + [1] = { + def = "aircannon", + noChaseCategory = "VTOL LIGHT ARMORED", + badTargetCategory = "VTOL LIGHT ARMORED", + mainDir = "0 -1 0", + maxAngleDif = 170, + }, + }, + customParams = { + isupgraded = isUpgraded, + unittype = "mobile", + -- needed_cover = 2, + death_sounds = "generic", + nofriendlyfire = "1", + RequireTech = tech, + armortype = armortype, + nofriendlyfire = "1", + --supply_cost = supply, + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "ateran", + corpse = "energycore", + retreatRangeDAI = 0, + }, +} + +weaponDefs = { + aircannon = { + AreaOfEffect = 250, + avoidFeature = false, + avoidFriendly = false, + collideFeature = false, + collideFriendly = false, + coreThickness = 0.5, + beamTime = 0.1, + beamTTL = 10, + beamDecay = 1, + burnblow = true, + largeBeamLaser = true, + laserflaresize = 7, + minIntensity = 1, + --cegTag = "railgun", + heightmod = 1, + duration = 0.6, + edgeeffectiveness = 1, + energypershot = 0, + explosionGenerator = "custom:genericshellexplosion-large-red", + fallOffRate = 0.1, + fireStarter = 50, + impulseFactor = 0, + fallOffRate = 0, + interceptedByShieldType = 4, + minintensity = 1, + name = "Laser", + range = 750, + reloadtime = 1, + WeaponType = "BeamLaser", + waterweapon = true, + rgbColor = "0.4 0.2 0.5", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/eturretfire.wav", + soundHit = "explosions/artyhit.wav", + texture1 = "lightning", + texture2 = "laserend", + thickness = 25, + tolerance = 10000, + turret = true, + weaponVelocity = 750, + customparams = { + damagetype = "antibuilding", + isupgraded = isUpgraded, + }, + damage = { + default = 300, + }, + }, +} diff --git a/Units-Configs-Basedefs/basedefs/zaal/zairbomber_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zairbomber_basedef.lua index 23ff0860e..d8bc01b38 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zairbomber_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zairbomber_basedef.lua @@ -112,7 +112,7 @@ weaponDefs = { reloadtime = 9, weaponType = "MissileLauncher", smokeTrail = false, - --soundStart = "weapons/rocket1.wav", + soundStart = "weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 4.wav", --soundHit = "explosions/explode5.wav", startVelocity = 250, tolerance = 8000, @@ -125,7 +125,7 @@ weaponDefs = { weaponVelocity = 1000, waterWeapon = true, customparams = { - damagetype = "default", + damagetype = "antibuilding", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zairtoairfighter_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zairtoairfighter_basedef.lua index d9e263934..4cbde37f2 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zairtoairfighter_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zairtoairfighter_basedef.lua @@ -125,7 +125,7 @@ weaponDefs = { weapontimer = 1, weaponvelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zairtogroundfighter_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zairtogroundfighter_basedef.lua index 435e533fc..49b9314f0 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zairtogroundfighter_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zairtogroundfighter_basedef.lua @@ -123,7 +123,7 @@ weaponDefs = { weapontimer = 1, weaponvelocity = 350, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zarm_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zarm_basedef.lua index 58c939698..3527ddae7 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zarm_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zarm_basedef.lua @@ -18,10 +18,10 @@ unitDef = { canHover = false, canMove = false, canPatrol = false, - canreclaim = false, + canreclaim = true, canstop = true, category = "BUILDING", - description = [[Builds Units]], + description = [[Provides Tech/Builds Construction Bugs]], energyMake = 0, energyStorage = 0, energyUse = 0, @@ -92,7 +92,6 @@ unitDef = { shownametag = true, noalert = false, unittype = "building", - area_mex_def = "zmex", ProvideTech = techprovided, canbetransported = "false", needed_cover = 1, @@ -127,6 +126,7 @@ weaponDefs = { reloadtime = 2.5, smoketrail = false, soundhit = "ChickenDefenseSounds/e25", + soundstart = "weapons/zaal/large monster attack/large monster attack 5.wav", startvelocity = 200, tolerance = 10000, tracks = true, @@ -137,7 +137,7 @@ weaponDefs = { weapontype = "MissileLauncher", weaponvelocity = 2500, customparams = { - damagetype = "default", + damagetype = "antilightarmored", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zarty_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zarty_basedef.lua index ea0422543..022029891 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zarty_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zarty_basedef.lua @@ -58,7 +58,7 @@ unitDef = { explosiongenerators = { "custom:gdhcannon", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -125,14 +125,14 @@ weaponDefs = { rgbcolor = "0.1 0.6 1", size = 16, weaponType = "Cannon", - --soundHit = "explosions/artyhit.wav", - soundStart = "weapons/zaal/zartyroar.wav", + soundHit = "deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_25.wav", + soundStart = "weapons/zaal/Large monster Growls/Large monster Growls 5.wav", turret = true, waterWeapon = true, weaponVelocity = 500, customparams = { - damagetype = "zarty", + damagetype = "antibuilding", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zassault_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zassault_basedef.lua index 4963736e1..c03dc54e3 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zassault_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zassault_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -75,8 +75,8 @@ unitDef = { weapons = { [1] = { def = "WEAPON", - maindir = "0 0 1", - maxangledif = 180, + --maindir = "0 0 1", + --maxangledif = 180, badTargetCategory = "NOTAIR", onlyTargetCategory = "NOTAIR BUILDING", }, @@ -121,7 +121,7 @@ weaponDefs = { rgbColor = "1 1 1", rgbColor2 = "1 1 1", soundTrigger = true, - soundstart = "weapons/zaal/ultraliskroar.wav", + soundstart = "weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 1.wav", texture1 = "shot", texture2 = "empty", thickness = 40, @@ -130,7 +130,7 @@ weaponDefs = { weaponVelocity = 2000, waterWeapon = true, customparams = { - damagetype = "zassault", + damagetype = "antilightarmored", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zconstructor_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zconstructor_basedef.lua new file mode 100644 index 000000000..fc8fe1c65 --- /dev/null +++ b/Units-Configs-Basedefs/basedefs/zaal/zconstructor_basedef.lua @@ -0,0 +1,100 @@ +unitDef = { + acceleration = 1, + brakeRate = 1, + buildCostEnergy = 0, + buildCostMetal = 10, + builder = true, + buildTime = 5, + buildDistance = buildDistance, + buildpic = "zaal_unitpics/zkamikaze.png", + CanAttack = false, + CanAssist = true, + canBeAssisted = true, + CanCapture = false, + CanRepair = true, + canRestore = false, + cantBeTransported = true, + canGuard = true, + canHover = false, + canMove = true, + canPatrol = true, + canreclaim = true, + canstop = true, + category = "LIGHT NOTAIR", + description = [[Construction Bug]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "BUG_DEATH_SMALL", + footprintX = 2, + footprintZ = 2, + iconType = "raider", + idleAutoHeal = 2.5, + idleTime = 5, + leaveTracks = false, + maxDamage = 50, + maxSlope = 26, + maxVelocity = 10, + maxReverseVelocity = 1, + maxWaterDepth = 10, + metalStorage = 0, + movementClass = "ZAALKBOT2", + name = humanName, + noChaseCategory = "VTOL", + objectName = objectName, + script = script, + radarDistance = 0, + repairable = false, + showNanoSpray = false, + selfDestructAs = "BUG_DEATH_SMALL", + side = "CORE", + sightDistance = 200, + smoothAnim = true, + stealth = true, + seismicSignature = 2, + transportbyenemy = false; + -- turnInPlace = false, + -- turnInPlaceSpeedLimit = 2.8, + turnInPlace = true, + turnRate = 5000, + -- turnrate = 350, + unitname = unitName, + upright = true, + workerTime = 0.5, + TerraformSpeed = 2147000, + sfxtypes = { + pieceExplosionGenerators = { + "blood_spray", + }, + + explosiongenerators = { + "custom:blood_spray", + "custom:blood_explode", + "custom:emptydirt", + }, + }, + buildoptions = Shared.buildListZaalConstructor, + sounds = { + underattack = "other/unitsunderattack1", + ok = { + "ack", + }, + select = { + "unitselect", + }, + }, + customParams = { + isupgraded = isUpgraded, + unittype = "mobile", + area_mex_def = "zmex", + canbetransported = "true", + needed_cover = 3, + death_sounds = "bug", + noenergycost = true, + armortype = armortype, + --nofriendlyfire = "1", + normaltex = "unittextures/z_normals.dds", + factionname = "zaal", + --corpse = "energycore", + }, +} \ No newline at end of file diff --git a/Units-Configs-Basedefs/basedefs/zaal/zhive_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zhive_basedef.lua index 45240cfc3..bc4191c76 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zhive_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zhive_basedef.lua @@ -2,7 +2,7 @@ unitDef = { activatewhenbuilt = true, buildAngle = 1024, buildCostEnergy = 0, - buildCostMetal = 100, + buildCostMetal = buildCostMetal, builder = true, buildTime = 5, buildpic = "zaal_unitpics/zhatch.png", @@ -68,7 +68,7 @@ unitDef = { }, customParams = { noalert = true, - ProvideTech = techprovided, + --ProvideTech = techprovided, unittype = "building", death_sounds = "bug", armortype = "building", diff --git a/Units-Configs-Basedefs/basedefs/zaal/zkamikaze_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zkamikaze_basedef.lua index 35aa22a34..430dccb73 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zkamikaze_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zkamikaze_basedef.lua @@ -62,7 +62,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zlightswarm_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zlightswarm_basedef.lua index 706ea3218..2ceb1e366 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zlightswarm_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zlightswarm_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -75,8 +75,8 @@ unitDef = { weapons = { [1] = { def = "WEAPON", - maindir = "0 0 1", - maxangledif = 180, + --maindir = "0 0 1", + --maxangledif = 180, badTargetCategory = "BUILDING WALL", }, }, @@ -130,7 +130,7 @@ weaponDefs = { weaponVelocity = 2000, waterWeapon = true, customparams = { - damagetype = "zlightswarm", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zmedswarm_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zmedswarm_basedef.lua index b9bdd0ab9..e2f9d5304 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zmedswarm_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zmedswarm_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -75,8 +75,8 @@ unitDef = { weapons = { [1] = { def = "WEAPON", - maindir = "0 0 1", - maxangledif = 180, + --maindir = "0 0 1", + --maxangledif = 180, badTargetCategory = "BUILDING WALL", }, }, @@ -129,7 +129,7 @@ weaponDefs = { weaponVelocity = 2000, waterWeapon = true, customparams = { - damagetype = "zmedswarm", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zpyro_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zpyro_basedef.lua index a947e668e..b8ea4e349 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zpyro_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zpyro_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -75,9 +75,9 @@ unitDef = { weapons = { [1] = { def = "WEAPON", - maindir = "0 0 1", - maxangledif = 180, - badTargetCategory = "NOTAIR", + --maindir = "0 0 1", + --maxangledif = 180, + badTargetCategory = "NOTAIR LIGHT ARMORED", onlyTargetCategory = "BUILDING NOTAIR", }, }, @@ -121,7 +121,7 @@ weaponDefs = { rgbColor = "1 1 1", rgbColor2 = "1 1 1", soundTrigger = true, - --soundstart = "weapons/heavycannonGD.wav", + soundstart = "weapons/zaal/Medium monster attack/Medium monster attack 4.wav", texture1 = "shot", texture2 = "empty", thickness = 20, @@ -130,7 +130,7 @@ weaponDefs = { waterWeapon = true, weaponVelocity = 2000, customparams = { - damagetype = "zpyro", + damagetype = "antilightbuilding", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zqueen_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zqueen_basedef.lua index 608f3dcb1..417699d82 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zqueen_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zqueen_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -101,7 +101,7 @@ unitDef = { unittype = "mobile", canbetransported = "true", needed_cover = 3, - death_sounds = "bug", + death_sounds = "bugqueen", RequireTech = tech, armortype = armortype, nofriendlyfire = "1", @@ -140,7 +140,7 @@ weaponDefs = { size = 8, sizedecay = 0, soundhit = "ChickenDefenseSounds/e16", - soundstart = "weapons/zaal/queenroar.wav", + soundstart = "weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 10.wav", soundTrigger = true, sprayangle = 6000, tolerance = 5000, @@ -148,7 +148,7 @@ weaponDefs = { weapontimer = 0.2, weaponvelocity = 400, customparams = { - damagetype = "default", + damagetype = "antilightarmored", nofriendlyfire = 1, }, damage = { @@ -173,14 +173,14 @@ weaponDefs = { range = 280, reloadtime = 2.5, model = "ChickenDefenseModels/spike.s3o", - soundstart = "weapons/zaal/queenmeleeroar.wav", + soundstart = "weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 7.wav", tolerance = 5000, turret = true, waterweapon = true, weapontype = "Cannon", weaponvelocity = 2500, customparams = { - damagetype = "default", + damagetype = "antilightarmored", nofriendlyfire = 1, }, damage = { @@ -215,6 +215,7 @@ weaponDefs = { reloadtime = 1.5, smoketrail = true, soundhit = "ChickenDefenseSounds/e25", + soundstart = "weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 1.wav", startvelocity = 200, texture1 = "", texture2 = "sporetrail", @@ -229,7 +230,7 @@ weaponDefs = { weaponvelocity = 1000, wobble = 64000, customparams = { - damagetype = "default", + damagetype = "antiarmoredair", nofriendlyfire = 1, }, damage = { @@ -264,6 +265,7 @@ weaponDefs = { reloadtime = 1.25, smoketrail = true, soundhit = "ChickenDefenseSounds/e25", + soundstart = "weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 2.wav", startvelocity = 200, texture1 = "", texture2 = "sporetrail", @@ -278,7 +280,7 @@ weaponDefs = { weaponvelocity = 1000, wobble = 64000, customparams = { - damagetype = "default", + damagetype = "antiarmoredair", nofriendlyfire = 1, }, damage = { @@ -313,6 +315,7 @@ weaponDefs = { reloadtime = 1.75, smoketrail = true, soundhit = "ChickenDefenseSounds/e25", + soundstart = "weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 3.wav", startvelocity = 200, texture1 = "", texture2 = "sporetrail", @@ -327,7 +330,7 @@ weaponDefs = { weaponvelocity = 1000, wobble = 64000, customparams = { - damagetype = "default", + damagetype = "antiarmoredair", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/zskirmisher_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/zskirmisher_basedef.lua index 2967add7c..bd35f97a7 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/zskirmisher_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/zskirmisher_basedef.lua @@ -60,7 +60,7 @@ unitDef = { explosiongenerators = { "custom:blood_spray", "custom:blood_explode", - "custom:dirt", + "custom:emptydirt", }, }, sounds = { @@ -75,8 +75,8 @@ unitDef = { weapons = { [1] = { def = "WEAPON", - maindir = "0 0 1", - maxangledif = 180, + --maindir = "0 0 1", + --maxangledif = 180, badTargetCategory = "BUILDING WALL", }, }, @@ -120,7 +120,7 @@ weaponDefs = { rgbColor = "0.5 1 0.5", rgbColor2 = "1 1 1", soundTrigger = true, - --soundstart = "weapons/heavycannonGD.wav", + soundstart = "weapons/zaal/large monster attack/large monster attack 1.wav", texture1 = "shot", texture2 = "empty", thickness = 6, @@ -129,7 +129,7 @@ weaponDefs = { weaponVelocity = 2000, waterWeapon = true, customparams = { - damagetype = "skirmisher", + damagetype = "antilightarmored", nofriendlyfire = 1, }, damage = { diff --git a/Units-Configs-Basedefs/basedefs/zaal/ztenticle_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/ztenticle_basedef.lua index 9545bd82a..02ae7dd4e 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/ztenticle_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/ztenticle_basedef.lua @@ -18,7 +18,7 @@ unitDef = { canHover = false, canMove = false, canPatrol = false, - canreclaim = false, + canreclaim = true, canstop = true, category = "BUILDING", description = [[Builds Units]], diff --git a/Units-Configs-Basedefs/basedefs/zaal/ztiberium_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/ztiberium_basedef.lua index 7dbb122ca..6da997f27 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/ztiberium_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/ztiberium_basedef.lua @@ -2,7 +2,7 @@ unitDef = { activateWhenBuilt = true, buildAngle = 8196, buildCostEnergy = 0, - buildCostMetal = 25, + buildCostMetal = 15, builder = false, buildTime = 5, canAttack = false, @@ -12,8 +12,8 @@ unitDef = { metalStorage = storage, energyUse = 0, explodeAs = "BUG_DEATH_MEDIUM", - footprintX = 8, - footprintZ = 8, + footprintX = 4, + footprintZ = 4, idleAutoHeal = .5, idleTime = 2200, icontype = "storage", @@ -65,8 +65,8 @@ unitDef = { }, useGroundDecal = true, BuildingGroundDecalType = "zgroundtexture.dds", - BuildingGroundDecalSizeX = 14, - BuildingGroundDecalSizeY = 14, + BuildingGroundDecalSizeX = 8, + BuildingGroundDecalSizeY = 8, BuildingGroundDecalDecaySpeed = 0.9, } diff --git a/Units-Configs-Basedefs/basedefs/zaal/ztumor_basedef.lua b/Units-Configs-Basedefs/basedefs/zaal/ztumor_basedef.lua index 89166ae35..8c6a22e63 100644 --- a/Units-Configs-Basedefs/basedefs/zaal/ztumor_basedef.lua +++ b/Units-Configs-Basedefs/basedefs/zaal/ztumor_basedef.lua @@ -1,10 +1,10 @@ unitDef = { buildCostEnergy = 0, - buildCostMetal = 10, + buildCostMetal = 5, buildDistance = buildDistance, builder = true, - buildTime = 20, + buildTime = 10, buildpic = "zaal_unitpics/ztumor.png", blocking = false, CanAttack = true, @@ -61,13 +61,14 @@ unitDef = { repairable = false, selfDestructAs = "BUG_DEATH_MEDIUM", showNanoSpray = false, - sightDistance = buildDistance, + sightDistance = 0, smoothAnim = true, stealth = false, + seismicDistance = buildDistance, seismicSignature = 2, unitname = unitName, upright = false, - yardmap = "cccc cccc cccc cccc", + yardmap = "oooo oooo oooo oooo", workerTime = 1, TerraformSpeed = 2147000, usePieceCollisionVolumes = false, @@ -95,7 +96,7 @@ unitDef = { --area_mex_def = "zhatch", --ProvideTech = techprovided, unitdefbuildtime = true, - decloakradiusmodifier = 20, + decloakradiusmodifier = 1, canbetransported = "false", needed_cover = 1, death_sounds = "bug", diff --git a/Units/Federation of Kala - Faction 1/f1landfac.lua b/Units/Federation of Kala - Faction 1/f1landfac.lua new file mode 100644 index 000000000..500e7c3ed --- /dev/null +++ b/Units/Federation of Kala - Faction 1/f1landfac.lua @@ -0,0 +1,24 @@ +-- UNITDEF -- f1landfac -- +-------------------------------------------------------------------------------- + +unitName = "f1landfac" + +-------------------------------------------------------------------------------- + +buildCostMetal = 60 +maxDamage = buildCostMetal * 12.5 + +humanName = [[Land Factory]] + +objectName = "eallterrfac2.s3o" +script = "eallterrfac2.cob" + +AllTerrainFactoryBuildList = Shared.buildListf1landfac + +VFS.Include("units-configs-basedefs/basedefs/allterrain/eminifac_basedef.lua") + +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/Federation of Kala - Faction 1/fedcommander.lua b/Units/Federation of Kala - Faction 1/fedcommander.lua new file mode 100644 index 000000000..d519aa1de --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedcommander.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- fedcommander -- +-------------------------------------------------------------------------------- + +unitName = [[fedcommander]] + +-------------------------------------------------------------------------------- + +humanname = [[Federation of Kala Command Unit]] +buildpicture = [[ecommander.png]] + +armortype = [[light]] +supplygiven = [[0]] +techprovided = [[tech0, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 2000 +maxvelocity = 3 +workertime = 1 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[ecommander4-battle.s3o]] +script = [[ecommander4-battle.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListFed + +weapon1 = [[machinegun]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Federation of Kala - Faction 1/fedcommander_up1.lua b/Units/Federation of Kala - Faction 1/fedcommander_up1.lua new file mode 100644 index 000000000..a87ffbac0 --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedcommander_up1.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- fedcommander_up1 -- +-------------------------------------------------------------------------------- + +unitName = [[fedcommander_up1]] + +-------------------------------------------------------------------------------- + +humanname = [[Federation of Kala Command Unit]] +buildpicture = [[ecommander.png]] + +armortype = [[light]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 5000 +maxvelocity = 3 +workertime = 2 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[ecommander4-battle.s3o]] +script = [[ecommander4-battle.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListFed + +weapon1 = [[machinegun_up1]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Federation of Kala - Faction 1/fedcommander_up2.lua b/Units/Federation of Kala - Faction 1/fedcommander_up2.lua new file mode 100644 index 000000000..963973cea --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedcommander_up2.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- fedcommander_up2 -- +-------------------------------------------------------------------------------- + +unitName = [[fedcommander_up2]] + +-------------------------------------------------------------------------------- + +humanname = [[Federation of Kala Command Unit]] +buildpicture = [[ecommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 10000 +maxvelocity = 3 +workertime = 3 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[ecommander4-battle.s3o]] +script = [[ecommander4-battle.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListFed + +weapon1 = [[machinegun_up2]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Federation of Kala - Faction 1/fedcommander_up3.lua b/Units/Federation of Kala - Faction 1/fedcommander_up3.lua new file mode 100644 index 000000000..ad8734c6b --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedcommander_up3.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- fedcommander_up3 -- +-------------------------------------------------------------------------------- + +unitName = [[fedcommander_up3]] + +-------------------------------------------------------------------------------- + +humanname = [[Federation of Kala Command Unit]] +buildpicture = [[ecommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, tech3, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 15000 +maxvelocity = 3 +workertime = 4 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[ecommander4-battle.s3o]] +script = [[ecommander4-battle.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListFed + +weapon1 = [[machinegun_up3]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Federation of Kala - Faction 1/fedcommander_up4.lua b/Units/Federation of Kala - Faction 1/fedcommander_up4.lua new file mode 100644 index 000000000..2ab6d4885 --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedcommander_up4.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- fedcommander_up4 -- +-------------------------------------------------------------------------------- + +unitName = [[fedcommander_up4]] + +-------------------------------------------------------------------------------- + +humanname = [[Federation of Kala BattleMech Command Unit]] +buildpicture = [[ecommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, tech3, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 20000 +maxvelocity = 3 +workertime = 5 + +movementclass = [[COMMANDERTANK6]] + +objectname = [[ecommander4-battle-large.s3o]] +script = [[ecommander4-battle.cob]] + +footprintx = 6 +footprintz = 6 + +buildlist = Shared.buildListFed + +weapon1 = [[heavybeamweapon]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/faction/xkconstructor.lua b/Units/Federation of Kala - Faction 1/fedengineer.lua similarity index 82% rename from Units/faction/xkconstructor.lua rename to Units/Federation of Kala - Faction 1/fedengineer.lua index 229793499..bf8bf40f4 100644 --- a/Units/faction/xkconstructor.lua +++ b/Units/Federation of Kala - Faction 1/fedengineer.lua @@ -1,13 +1,13 @@ --- UNITDEF -- xkconstructor -- +-- UNITDEF -- FEDENGINEER -- -------------------------------------------------------------------------------- -local unitName = "xkconstructor" +local unitName = "fedengineer" -------------------------------------------------------------------------------- local buildCostMetal = 40 local maxDamage = 400 -local buildDistance = 800 +local buildDistance = 350 local armortype = [[light]] --local supply = [[2]] @@ -28,7 +28,7 @@ local unitDef = { buildDistance = buildDistance, builder = true, buildTime = 5, - buildpic = [[pattern/xkconstructor.png]], + buildpic = "ehbotengineer.png", CanAttack = false, CanAssist = true, canBeAssisted = true, @@ -40,7 +40,7 @@ local unitDef = { canHover = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "LIGHT NOTAIR SUPPORT", description = [[Builds Units]], @@ -48,8 +48,8 @@ local unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericGreen", - footprintX = 6, - footprintZ = 6, + footprintX = 2, + footprintZ = 2, iconType = "engineer", idleAutoHeal = .5, idleTime = 2200, @@ -61,11 +61,11 @@ local unitDef = { maxWaterDepth = 10, metalmake = 0, metalStorage = 0, - movementClass = "PATTERNKBOT3", + movementClass = "HOVERHBOT2", moveState = "2", - name = "The Whatever", - objectName = "faction/xkconstructor.s3o", - script = "faction/xkconstructor.cob", + name = "The Lifter", + objectName = "ehbotengineer2.s3o", + script = "ehbotengineer_lus.lua", radarDistance = 0, repairable = false, selfDestructAs = "mediumExplosionGenericGreen", @@ -94,11 +94,11 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, - buildoptions = Shared.buildListXCommander, + buildoptions = Shared.buildListFed, sounds = { underattack = "other/unitsunderattack1", ok = { @@ -118,9 +118,9 @@ local unitDef = { armortype = armortype, noenergycost = true, -- supply_cost = supply, - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "pattern", + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + factionname = "ateran", }, } diff --git a/Units/Federation of Kala - Faction 1/fedengineer_turret.lua b/Units/Federation of Kala - Faction 1/fedengineer_turret.lua new file mode 100644 index 000000000..a4f7f73b8 --- /dev/null +++ b/Units/Federation of Kala - Faction 1/fedengineer_turret.lua @@ -0,0 +1,129 @@ +-- UNITDEF -- FEDENGINEER_turret -- +-------------------------------------------------------------------------------- + +local unitName = "fedengineer_turret" + +-------------------------------------------------------------------------------- + +local buildCostMetal = 90 +local maxDamage = 400 +local buildDistance = 800 + +local armortype = [[light]] +--local supply = [[2]] + +local unitDef = { + + --mobileunit + transportbyenemy = false; + + --** + + + acceleration = 1, + brakeRate = 0.24, + buildCostEnergy = 0, + buildCostMetal = buildCostMetal, + buildDistance = buildDistance, + builder = true, + buildTime = 5, + buildpic = "ehbotengineer_turret.png", + CanAttack = false, + CanAssist = true, + canBeAssisted = true, + CanCapture = false, + CanRepair = true, + canRestore = false, + cantBeTransported = true, + canGuard = true, + canHover = true, + canMove = true, + canPatrol = true, + canreclaim = true, + canstop = true, + category = "LIGHT NOTAIR SUPPORT", + description = [[Builds Units]], + energyMake = 0, + energyStorage = 0, + energyUse = 0, + explodeAs = "mediumExplosionGenericGreen", + floater = true, + footprintX = 2, + footprintZ = 2, + iconType = "engineer", + idleAutoHeal = .5, + idleTime = 2200, + levelground = true, + maxDamage = maxDamage, + maxSlope = 26, + maxVelocity = 0.001, + maxReverseVelocity = 0.001, + maxWaterDepth = 5000, + metalmake = 0, + metalStorage = 0, + movementClass = "HOVERHBOT2", + moveState = "0", + pushResistant = true, + name = "The Lifter Turret", + objectName = "ehbotengineer_turret.s3o", + script = "ehbotengineer_turret_lus.lua", + radarDistance = 0, + repairable = false, + selfDestructAs = "mediumExplosionGenericGreen", + showNanoSpray = false, + side = "ARM", + sightDistance = buildDistance, + smoothAnim = true, + stealth = false, + seismicSignature = 2, + -- turnInPlace = false, + turnInPlace = true, + turnRate = 0.001, + -- turnrate = 1020, + unitname = unitName, + upright = true, + workerTime = 1, + capturespeed = 1, + TerraformSpeed = 100000, + ReclaimSpeed = 0, + repairspeed = 0.5, + sfxtypes = { + pieceExplosionGenerators = { + "deathceg3", + "deathceg4", + }, + + explosiongenerators = { + "custom:nanoorb", + "custom:emptydirt", + "custom:blacksmoke", + }, + }, + buildoptions = Shared.buildListTurret, + sounds = { + underattack = "other/unitsunderattack1", + ok = { + "ack", + }, + select = { + "unitselect", + }, + }, + customParams = { + unittype = "mobile", + area_mex_def = "emetalextractor", + canbetransported = "true", + needed_cover = 1, + death_sounds = "generic", + armortype = armortype, +-- supply_cost = supply, + normaltex = "unittextures/lego2skin_explorernormal.dds", + buckettex = "unittextures/lego2skin_explorerbucket.dds", + }, +} + +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/faction/turrets/xrocketturret.lua b/Units/Federation of Kala - Faction 1/fedorb.lua similarity index 60% rename from Units/faction/turrets/xrocketturret.lua rename to Units/Federation of Kala - Faction 1/fedorb.lua index 24fed451a..7e5cda2da 100644 --- a/Units/faction/turrets/xrocketturret.lua +++ b/Units/Federation of Kala - Faction 1/fedorb.lua @@ -1,22 +1,25 @@ --- UNITDEF -- xrocketturret -- -------------------------------------------------------------------------------- -unitName = [[xrocketturret]] +unitName = [[fedorb]] -------------------------------------------------------------------------------- isUpgraded = [[0]] -humanName = [[Rocket Turret]] +humanName = [[O.R.B.]] -objectName = [[faction/xrocketturret.s3o]] -script = [[faction/xrocketturret.cob]] +objectName = [[eorb4.s3o]] +script = [[eorb3.cob]] + +workerTime = 1 +buildDistance = 350 tech = [[tech0]] -armortype = [[building]] ---supply = [[3]] +armortype = [[light]] + +buildlist = Shared.fedOrb -VFS.Include("units-configs-basedefs/basedefs/faction/xrocketturret_basedef.lua") +VFS.Include("units-configs-basedefs/basedefs/eorb_basedef.lua") unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/faction/factories/xklab.lua b/Units/Loz Alliance - Faction 2/f2landfac.lua similarity index 59% rename from Units/faction/factories/xklab.lua rename to Units/Loz Alliance - Faction 2/f2landfac.lua index 30d538a3f..3084be068 100644 --- a/Units/faction/factories/xklab.lua +++ b/Units/Loz Alliance - Faction 2/f2landfac.lua @@ -1,20 +1,21 @@ --- UNITDEF -- XKLAB -- +-- UNITDEF -- f2landfac -- -------------------------------------------------------------------------------- -unitName = "xklab" +unitName = "f2landfac" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 -humanName = "K-Bot Lab" -objectName = "faction/xklab.s3o" -script = "faction/xklab.cob" +humanName = [[Land Factory]] -hoverFactoryBuildList = Shared.buildListXKLab +objectName = "ehoverfactory.s3o" +script = "ehoverfac.cob" -VFS.Include("units-configs-basedefs/basedefs/faction/xklab_basedef.lua") +hoverFactoryBuildList = Shared.buildListf2landfac + +VFS.Include("units-configs-basedefs/basedefs/hover/ebasefactory_basedef.lua") -------------------------------------------------------------------------------- diff --git a/Units/Loz Alliance - Faction 2/lozcommander.lua b/Units/Loz Alliance - Faction 2/lozcommander.lua new file mode 100644 index 000000000..35fb813d4 --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozcommander.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- lozcommander -- +-------------------------------------------------------------------------------- + +unitName = [[lozcommander]] + +-------------------------------------------------------------------------------- + +humanname = [[Loz Alliance Command Unit]] +buildpicture = [[lozcommander.png]] + +armortype = [[light]] +supplygiven = [[0]] +techprovided = [[tech0, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 2000 +maxvelocity = 3 +workertime = 1 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[lozcommandtank.s3o]] +script = [[lozcommandtank.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListLoz + +weapon1 = [[machinegun]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Loz Alliance - Faction 2/lozcommander_up1.lua b/Units/Loz Alliance - Faction 2/lozcommander_up1.lua new file mode 100644 index 000000000..766a128e9 --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozcommander_up1.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- lozcommander_up1 -- +-------------------------------------------------------------------------------- + +unitName = [[lozcommander_up1]] + +-------------------------------------------------------------------------------- + +humanname = [[Loz Alliance Command Unit]] +buildpicture = [[lozcommander.png]] + +armortype = [[light]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 5000 +maxvelocity = 3 +workertime = 2 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[lozcommandtank.s3o]] +script = [[lozcommandtank.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListLoz + +weapon1 = [[machinegun_up1]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Loz Alliance - Faction 2/lozcommander_up2.lua b/Units/Loz Alliance - Faction 2/lozcommander_up2.lua new file mode 100644 index 000000000..21cc0678f --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozcommander_up2.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- lozcommander_up2 -- +-------------------------------------------------------------------------------- + +unitName = [[lozcommander_up2]] + +-------------------------------------------------------------------------------- + +humanname = [[Loz Alliance Command Unit]] +buildpicture = [[lozcommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 10000 +maxvelocity = 3 +workertime = 3 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[lozcommandtank.s3o]] +script = [[lozcommandtank.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListLoz + +weapon1 = [[machinegun_up2]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Loz Alliance - Faction 2/lozcommander_up3.lua b/Units/Loz Alliance - Faction 2/lozcommander_up3.lua new file mode 100644 index 000000000..450f6b89e --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozcommander_up3.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- lozcommander_up3 -- +-------------------------------------------------------------------------------- + +unitName = [[lozcommander_up3]] + +-------------------------------------------------------------------------------- + +humanname = [[Loz Alliance Command Unit]] +buildpicture = [[lozcommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, tech3, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 15000 +maxvelocity = 3 +workertime = 4 + +movementclass = [[COMMANDERTANK4]] + +objectname = [[lozcommandtank.s3o]] +script = [[lozcommandtank.cob]] + +footprintx = 4 +footprintz = 4 + +buildlist = Shared.buildListLoz + +weapon1 = [[machinegun_up3]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Loz Alliance - Faction 2/lozcommander_up4.lua b/Units/Loz Alliance - Faction 2/lozcommander_up4.lua new file mode 100644 index 000000000..659d98e1a --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozcommander_up4.lua @@ -0,0 +1,39 @@ +-- UNITDEF -- lozcommander_up4 -- +-------------------------------------------------------------------------------- + +unitName = [[lozcommander_up4]] + +-------------------------------------------------------------------------------- + +humanname = [[Loz Alliance BattleMech Command Unit]] +buildpicture = [[lozcommander.png]] + +armortype = [[armored]] +supplygiven = [[0]] +techprovided = [[tech0, tech1, tech2, tech3, -overseer]] +techrequired = [[0 overseer]] + +maxdamage = 20000 +maxvelocity = 3 +workertime = 5 + +movementclass = [[COMMANDERTANK6]] + +objectname = [[lozcommandtank-battle.s3o]] +script = [[lozcommandtank.cob]] + +footprintx = 6 +footprintz = 6 + +buildlist = Shared.buildListLoz + +weapon1 = [[heavybeamweapon]] + +VFS.Include("units-configs-basedefs/basedefs/commander_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/Loz Alliance - Faction 2/lozengineer.lua b/Units/Loz Alliance - Faction 2/lozengineer.lua new file mode 100644 index 000000000..887c96b22 --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozengineer.lua @@ -0,0 +1,26 @@ +-- UNITDEF -- lozengineer -- +-------------------------------------------------------------------------------- + +unitName = "lozengineer" + +-------------------------------------------------------------------------------- + +buildCostMetal = 40 +buildDistance = 350 + +maxDamage = 500 + +humanName = [[Architect]] + +objectName = [[f2engineer.s3o]] +script = [[f2engineer_lus.lua]] + +armortype = [[light]] + +VFS.Include("units-configs-basedefs/basedefs/Faction 2/f2engineer_basedef.lua") + +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/Loz Alliance - Faction 2/lozorb.lua b/Units/Loz Alliance - Faction 2/lozorb.lua new file mode 100644 index 000000000..57b3fc328 --- /dev/null +++ b/Units/Loz Alliance - Faction 2/lozorb.lua @@ -0,0 +1,29 @@ +-------------------------------------------------------------------------------- + +unitName = [[lozorb]] + +-------------------------------------------------------------------------------- + +isUpgraded = [[0]] + +humanName = [[O.R.B.]] + +objectName = [[eorb4.s3o]] +script = [[eorb3.cob]] + +workerTime = 1 +buildDistance = 350 + +tech = [[tech0]] +armortype = [[light]] + +buildlist = Shared.lozOrb + +VFS.Include("units-configs-basedefs/basedefs/eorb_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/aiunits/ecommanderbattleai.lua b/Units/aiunits/ecommanderbattleai.lua index 842ed7b26..17be64ed9 100644 --- a/Units/aiunits/ecommanderbattleai.lua +++ b/Units/aiunits/ecommanderbattleai.lua @@ -6,7 +6,7 @@ local unitName = "ecommanderbattleai" -------------------------------------------------------------------------------- local armortype = [[armored]] local supplyGiven = [[0]] -local techprovided = [[tech0, 1 tech0ai]] +local techprovided = [[tech0, tech1, tech2, tech3, 1 tech0ai]] local techrequired = [[0 overseer]] local weapon1Damage = 200 @@ -98,7 +98,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:gdhcannon", }, @@ -180,7 +180,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, }, @@ -213,7 +213,7 @@ local weaponDefs = { weaponVelocity = 10000, waterweapon = true, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, }, @@ -267,7 +267,7 @@ local weaponDefs = { weaponVelocity = 1000, waterweapon = true, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, @@ -310,7 +310,7 @@ local weaponDefs = { weaponVelocity = 1000, waterweapon = true, customparams = { - damagetype = "ecommanderbattle", + damagetype = "light", nocosttofire = true, }, damage = { diff --git a/Units/aiunits/ecommanderbuildai.lua b/Units/aiunits/ecommanderbuildai.lua index 4ba8c9dc9..2ab3e6c75 100644 --- a/Units/aiunits/ecommanderbuildai.lua +++ b/Units/aiunits/ecommanderbuildai.lua @@ -95,7 +95,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -182,7 +182,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -217,7 +217,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -273,7 +273,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/aiunits/ecommandercloakai.lua b/Units/aiunits/ecommandercloakai.lua index 5ae6f604a..1e81ab080 100644 --- a/Units/aiunits/ecommandercloakai.lua +++ b/Units/aiunits/ecommandercloakai.lua @@ -96,7 +96,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -188,7 +188,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -223,7 +223,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -279,7 +279,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/aiunits/ecommanderfactoryai.lua b/Units/aiunits/ecommanderfactoryai.lua index 56cd6a132..ebd3b3d4b 100644 --- a/Units/aiunits/ecommanderfactoryai.lua +++ b/Units/aiunits/ecommanderfactoryai.lua @@ -95,7 +95,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -176,7 +176,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -211,7 +211,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -267,7 +267,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/aiunits/ecommanderhealerai.lua b/Units/aiunits/ecommanderhealerai.lua index 90ed3c9a9..6ba73bd90 100644 --- a/Units/aiunits/ecommanderhealerai.lua +++ b/Units/aiunits/ecommanderhealerai.lua @@ -95,7 +95,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -176,7 +176,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -211,7 +211,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -267,7 +267,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/aiunits/ecommandershieldai.lua b/Units/aiunits/ecommandershieldai.lua index 2f80c18a6..4038038f4 100644 --- a/Units/aiunits/ecommandershieldai.lua +++ b/Units/aiunits/ecommandershieldai.lua @@ -99,7 +99,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -188,7 +188,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -223,7 +223,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -307,7 +307,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/dev/atm.lua b/Units/dev/atm.lua index 7e7ee2ed6..b011361c1 100644 --- a/Units/dev/atm.lua +++ b/Units/dev/atm.lua @@ -35,6 +35,7 @@ local unitDef = { metalStorage = 900, name = "ATM Machine", objectName = "efusion2.s3o", + script = "efusion2.cob", radarDistance = 1000, reclaimable = false, selfDestructAs = "FUSIONPOP", diff --git a/Units/eair/eairemp.lua b/Units/eair/eairemp.lua index e46a28537..44b1b91de 100644 --- a/Units/eair/eairemp.lua +++ b/Units/eair/eairemp.lua @@ -14,7 +14,7 @@ script = "eairemp.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[air]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/eairemp_basedef.lua") diff --git a/Units/eair/eairemp_up1.lua b/Units/eair/eairemp_up1.lua index 698826d0b..a5951b5a3 100644 --- a/Units/eair/eairemp_up1.lua +++ b/Units/eair/eairemp_up1.lua @@ -14,7 +14,7 @@ script = "eairemp.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/eairemp_basedef.lua") diff --git a/Units/eair/eairemp_up2.lua b/Units/eair/eairemp_up2.lua index 9ddf544fb..b72ae1e25 100644 --- a/Units/eair/eairemp_up2.lua +++ b/Units/eair/eairemp_up2.lua @@ -14,7 +14,7 @@ script = "eairemp.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/eairemp_basedef.lua") diff --git a/Units/eair/eairemp_up3.lua b/Units/eair/eairemp_up3.lua index 7dda2f88b..13c65a9ee 100644 --- a/Units/eair/eairemp_up3.lua +++ b/Units/eair/eairemp_up3.lua @@ -14,7 +14,7 @@ script = "eairemp.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/eairemp_basedef.lua") diff --git a/Units/eair/eairplant.lua b/Units/eair/eairplant.lua index 6f44f5c29..e8ccc02c2 100644 --- a/Units/eair/eairplant.lua +++ b/Units/eair/eairplant.lua @@ -5,7 +5,7 @@ unitName = "eairplant" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 humanName = [[VTOL Factory]] diff --git a/Units/eair/ebomber.lua b/Units/eair/ebomber.lua index 4fce92ee5..a0abd0dff 100644 --- a/Units/eair/ebomber.lua +++ b/Units/eair/ebomber.lua @@ -14,7 +14,7 @@ script = "ebomber2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[air]] supply = [[5]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua") diff --git a/Units/eair/ebomber2_up1.lua b/Units/eair/ebomber2_up1.lua index de667e09f..3c9eb0e88 100644 --- a/Units/eair/ebomber2_up1.lua +++ b/Units/eair/ebomber2_up1.lua @@ -14,7 +14,7 @@ script = "ebomber2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[5]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua") diff --git a/Units/eair/ebomber2_up2.lua b/Units/eair/ebomber2_up2.lua index bbb45ed63..d4693989f 100644 --- a/Units/eair/ebomber2_up2.lua +++ b/Units/eair/ebomber2_up2.lua @@ -14,7 +14,7 @@ script = "ebomber2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[5]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua") diff --git a/Units/eair/ebomber2_up3.lua b/Units/eair/ebomber2_up3.lua index ea825a281..7ededa36d 100644 --- a/Units/eair/ebomber2_up3.lua +++ b/Units/eair/ebomber2_up3.lua @@ -14,7 +14,7 @@ script = "ebomber2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[5]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ebomber_basedef.lua") diff --git a/Units/eair/efighter.lua b/Units/eair/efighter.lua index 1d1029ebf..9e325db28 100644 --- a/Units/eair/efighter.lua +++ b/Units/eair/efighter.lua @@ -14,7 +14,7 @@ script = "efighter2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[air]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/efighter_basedef.lua") diff --git a/Units/eair/efighter_up1.lua b/Units/eair/efighter_up1.lua index 5ee5cea23..93c0aca1a 100644 --- a/Units/eair/efighter_up1.lua +++ b/Units/eair/efighter_up1.lua @@ -14,7 +14,7 @@ script = "efighter2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/efighter_basedef.lua") diff --git a/Units/eair/efighter_up2.lua b/Units/eair/efighter_up2.lua index ac3c6e3dc..e8e8686e5 100644 --- a/Units/eair/efighter_up2.lua +++ b/Units/eair/efighter_up2.lua @@ -14,7 +14,7 @@ script = "efighter2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/efighter_basedef.lua") diff --git a/Units/eair/efighter_up3.lua b/Units/eair/efighter_up3.lua index 7fe347431..f575c5e22 100644 --- a/Units/eair/efighter_up3.lua +++ b/Units/eair/efighter_up3.lua @@ -14,7 +14,7 @@ script = "efighter2.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/air/efighter_basedef.lua") diff --git a/Units/eair/egunship2.lua b/Units/eair/egunship2.lua index c5607be32..5acab7c7e 100644 --- a/Units/eair/egunship2.lua +++ b/Units/eair/egunship2.lua @@ -14,7 +14,7 @@ script = "egunship3.cob" tech = [[tech2]] -armortype = [[airarmored]] +armortype = [[air]] supply = [[4]] VFS.Include("Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua") diff --git a/Units/eair/egunship2_up1.lua b/Units/eair/egunship2_up1.lua index 691cdcdb6..5fa577ca3 100644 --- a/Units/eair/egunship2_up1.lua +++ b/Units/eair/egunship2_up1.lua @@ -14,7 +14,7 @@ script = "egunship3.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[4]] VFS.Include("Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua") diff --git a/Units/eair/egunship2_up2.lua b/Units/eair/egunship2_up2.lua index db8ade5f4..4ca8f6209 100644 --- a/Units/eair/egunship2_up2.lua +++ b/Units/eair/egunship2_up2.lua @@ -14,7 +14,7 @@ script = "egunship3.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[4]] VFS.Include("Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua") diff --git a/Units/eair/egunship2_up3.lua b/Units/eair/egunship2_up3.lua index 147f77a1e..545b7828f 100644 --- a/Units/eair/egunship2_up3.lua +++ b/Units/eair/egunship2_up3.lua @@ -14,7 +14,7 @@ script = "egunship3.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[light]] supply = [[4]] VFS.Include("Units-Configs-Basedefs/basedefs/air/egunship2_basedef.lua") diff --git a/Units/eair/ekrow.lua b/Units/eair/ekrow.lua index d464b9583..5da3bde41 100644 --- a/Units/eair/ekrow.lua +++ b/Units/eair/ekrow.lua @@ -14,7 +14,7 @@ script = "ekrow.cob" tech = [[tech3]] -armortype = [[airarmored]] +armortype = [[air]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua") diff --git a/Units/eair/ekrow_up1.lua b/Units/eair/ekrow_up1.lua index 708c16638..c157dc3c4 100644 --- a/Units/eair/ekrow_up1.lua +++ b/Units/eair/ekrow_up1.lua @@ -14,7 +14,7 @@ script = "ekrow.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua") diff --git a/Units/eair/ekrow_up2.lua b/Units/eair/ekrow_up2.lua index c4dfd1d9c..4dde44435 100644 --- a/Units/eair/ekrow_up2.lua +++ b/Units/eair/ekrow_up2.lua @@ -14,7 +14,7 @@ script = "ekrow.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua") diff --git a/Units/eair/ekrow_up3.lua b/Units/eair/ekrow_up3.lua index 70d3d49df..aeaee9656 100644 --- a/Units/eair/ekrow_up3.lua +++ b/Units/eair/ekrow_up3.lua @@ -14,7 +14,7 @@ script = "ekrow.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[light]] VFS.Include("Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua") diff --git a/Units/eair/escoutdrone.lua b/Units/eair/escoutdrone.lua index fd7f248f9..6c6a9ecde 100644 --- a/Units/eair/escoutdrone.lua +++ b/Units/eair/escoutdrone.lua @@ -10,7 +10,7 @@ humanName = [[Mosquito]] objectName = "edrone2.s3o" script = "edrone2.cob" -armortype = [[airlight]] +armortype = [[air]] tech = [[tech0]] diff --git a/Units/eair/etransport.lua b/Units/eair/etransport.lua index 6f2dc038e..192777b27 100644 --- a/Units/eair/etransport.lua +++ b/Units/eair/etransport.lua @@ -14,7 +14,7 @@ script = "etransport2.cob" --tech = [[tech1]] -armortype = [[airarmored]] +armortype = [[armored]] supply = [[0]] VFS.Include("units-configs-basedefs/basedefs/air/etransport_basedef.lua") diff --git a/Units/eair/etransport_up1.lua b/Units/eair/etransport_up1.lua index a2348013d..5c233a5eb 100644 --- a/Units/eair/etransport_up1.lua +++ b/Units/eair/etransport_up1.lua @@ -14,7 +14,7 @@ script = "etransport2.cob" --tech = [[tech1]] -armortype = [[airarmored]] +armortype = [[armored]] supply = [[0]] VFS.Include("units-configs-basedefs/basedefs/air/etransport_basedef.lua") diff --git a/Units/eair/etransport_up2.lua b/Units/eair/etransport_up2.lua index 6aa8360a3..36b45af74 100644 --- a/Units/eair/etransport_up2.lua +++ b/Units/eair/etransport_up2.lua @@ -14,7 +14,7 @@ script = "etransport2.cob" --tech = [[tech1]] -armortype = [[airarmored]] +armortype = [[armored]] supply = [[0]] VFS.Include("units-configs-basedefs/basedefs/air/etransport_basedef.lua") diff --git a/Units/eair/etransport_up3.lua b/Units/eair/etransport_up3.lua index 815bf7413..b2ec29ab3 100644 --- a/Units/eair/etransport_up3.lua +++ b/Units/eair/etransport_up3.lua @@ -14,7 +14,7 @@ script = "etransport2.cob" --tech = [[tech1]] -armortype = [[airarmored]] +armortype = [[armored]] supply = [[0]] VFS.Include("units-configs-basedefs/basedefs/air/etransport_basedef.lua") diff --git a/Units/eallterrain/eminifac.lua b/Units/eallterrain/eminifac.lua index e76b92e4b..a5fa7397e 100644 --- a/Units/eallterrain/eminifac.lua +++ b/Units/eallterrain/eminifac.lua @@ -5,7 +5,7 @@ unitName = "eminifac" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 humanName = [[All-Terrain Strider Factory]] diff --git a/Units/eamphib/eamphibfac.lua b/Units/eamphib/eamphibfac.lua index 33ee5b086..99d0a99ee 100644 --- a/Units/eamphib/eamphibfac.lua +++ b/Units/eamphib/eamphibfac.lua @@ -5,7 +5,7 @@ unitName = "eamphibfac" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 humanName = [[Amphibious Tank Factory]] diff --git a/Units/ebox.lua b/Units/ebox.lua index 3571a95c7..03c3d4822 100644 --- a/Units/ebox.lua +++ b/Units/ebox.lua @@ -19,7 +19,7 @@ local unitDef = { acceleration = 1, brakeRate = 1, buildCostEnergy = 0, - buildCostMetal = 35, + buildCostMetal = 15, buildDistance = 400, builder = false, buildTime = 5, @@ -36,8 +36,8 @@ local unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "largeExplosionGenericWhite", - footprintX = 6, - footprintZ = 6, + footprintX = 2, + footprintZ = 2, iconType = "box", idleAutoHeal = .5, idleTime = 2200, @@ -48,17 +48,16 @@ local unitDef = { maxReverseVelocity = 4, maxWaterDepth = 10, metalStorage = 0, - movementClass = "HOVERTANK6", + movementClass = "HOVERTANK2", name = "B.O.X.", noChaseCategory = "VTOL", - objectName = "ebox.s3o", + objectName = "ebox_small.s3o", script = "ebox_lus.lua", radarDistance = 1250, - radarEmitHeight = 300, repairable = false, selfDestructAs = "largeExplosionGenericWhite", side = "CORE", - sightDistance = 250, + sightDistance = 750, smoothAnim = true, stealth = true, seismicSignature = 2, @@ -75,7 +74,7 @@ local unitDef = { "deathceg4", }, explosiongenerators = { - "custom:dirt", + "custom:emptydirt", }, }, diff --git a/Units/ebuilding/eartyturret.lua b/Units/ebuilding/eartyturret.lua index ec9ba6b91..e79acafa2 100644 --- a/Units/ebuilding/eartyturret.lua +++ b/Units/ebuilding/eartyturret.lua @@ -12,7 +12,7 @@ script = [[eartyturret.cob]] tech = [[tech3]] armortype = [[building]] -AreaOfEffect = 600 +AreaOfEffect = 500 VFS.Include("units-configs-basedefs/basedefs/buildings/eartyturret_basedef.lua") diff --git a/Units/faction/turrets/xllt.lua b/Units/ebuilding/eflakturret.lua similarity index 66% rename from Units/faction/turrets/xllt.lua rename to Units/ebuilding/eflakturret.lua index f4f0cd001..d7beba03b 100644 --- a/Units/faction/turrets/xllt.lua +++ b/Units/ebuilding/eflakturret.lua @@ -1,22 +1,22 @@ --- UNITDEF -- xllt -- +-- UNITDEF -- EFLAKTURRET -- -------------------------------------------------------------------------------- -unitName = [[xllt]] +unitName = [[eflakturret]] -------------------------------------------------------------------------------- isUpgraded = [[0]] -humanName = [[LLT]] +humanName = [[Fortifier]] -objectName = [[faction/xllt.s3o]] -script = [[faction/xllt.cob]] +objectName = [[eflakturret.s3o]] +script = [[eflakturret.cob]] -tech = [[tech0]] +tech = [[tech2]] armortype = [[building]] --supply = [[3]] -VFS.Include("units-configs-basedefs/basedefs/faction/xllt_basedef.lua") +VFS.Include("units-configs-basedefs/basedefs/buildings/eflakturret_basedef.lua") unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/ebuilding/egeothermal.lua b/Units/ebuilding/egeothermal.lua index a2ca00f48..883985992 100644 --- a/Units/ebuilding/egeothermal.lua +++ b/Units/ebuilding/egeothermal.lua @@ -26,8 +26,8 @@ local unitDef = { energyMake = energyproduced, energyStorage = 0, explodeAs = "largeBuildingExplosionGenericBlueEMP", - footprintX = 8, - footprintZ = 8, + footprintX = 4, + footprintZ = 4, iconType = "generator", idleAutoHeal = .5, idleTime = 2200, @@ -37,6 +37,7 @@ local unitDef = { metalStorage = 0, name = "Fusion Energy Generator", objectName = "egeothermal2.s3o", + script = "egeothermal.cob", onoffable = false, radarDistance = 0, repairable = false, diff --git a/Units/ebuilding/ejammer2.lua b/Units/ebuilding/ejammer2.lua index ed9a1fa0b..525b8433d 100644 --- a/Units/ebuilding/ejammer2.lua +++ b/Units/ebuilding/ejammer2.lua @@ -25,8 +25,8 @@ local unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "smallBuildingExplosionGenericPurple", - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "radarjam", idleAutoHeal = .5, idleTime = 2200, diff --git a/Units/ebuilding/ekmar.lua b/Units/ebuilding/ekmar.lua index 8afd3bebf..5b756a7ad 100644 --- a/Units/ebuilding/ekmar.lua +++ b/Units/ebuilding/ekmar.lua @@ -9,10 +9,10 @@ local armortype = [[building]] local techrequired = [[tech2]] -local shield1Power = 10000 -local shield1PowerRegen = 100 -local shield1PowerRegenEnergy = 100 -local buildCostMetal = 1000 +local shield1Power = 2500 +local shield1PowerRegen = 25 +local shield1PowerRegenEnergy = 25 +local buildCostMetal = 50 local maxDamage = buildCostMetal * 12.5 local unitDef = { @@ -30,8 +30,8 @@ local unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumBuildingExplosionGenericBlue", - footprintX = 3, - footprintZ = 3, + footprintX = 2, + footprintZ = 2, floater = true, iconType = "baseshield", idleAutoHeal = .5, @@ -110,7 +110,7 @@ local weaponDefs = { Visibleshieldrepulse = false, ShieldStartingPower = 0, Shieldenergyuse = 0, - Shieldradius = 1000, + Shieldradius = 750, Shieldpower = shield1Power, Shieldpowerregen = shield1PowerRegen, Shieldpowerregenenergy = shield1PowerRegenEnergy, diff --git a/Units/ebuilding/emediumgen.lua b/Units/ebuilding/emediumgen.lua index 0f5bd5bbe..2ce9ab364 100644 --- a/Units/ebuilding/emediumgen.lua +++ b/Units/ebuilding/emediumgen.lua @@ -29,8 +29,8 @@ Provides +]] .. powerprovided, energyStorage = 0, energyMake = energyproduced, explodeAs = "largeBuildingExplosionGenericBlueEMP", - footprintX = 6, - footprintZ = 6, + footprintX = 3, + footprintZ = 3, icontype = "generator", idleAutoHeal = .5, idleTime = 2200, diff --git a/Units/ebuilding/emetalextractor.lua b/Units/ebuilding/emetalextractor.lua index 56fc5ff32..9d8e6221d 100644 --- a/Units/ebuilding/emetalextractor.lua +++ b/Units/ebuilding/emetalextractor.lua @@ -5,16 +5,18 @@ unitName = [[emetalextractor]] -------------------------------------------------------------------------------- +ateranMexCost = Spring.GetModOptions().metalextractorcostateran or 50 + metalMultiplier = 1 -buildCostMetal = 20 +buildCostMetal = ateranMexCost energyUse = 0 primaryCEG = "custom:fusionreactionnuclear-1color" humanName = [[Metal Extractor]] -objectName = [[emetalextractor2.s3o]] +objectName = [[emetalextractor2_small.s3o]] script = [[emetalextractor.cob]] tech = [[tech0]] diff --git a/Units/ebuilding/emetalextractor_up1.lua b/Units/ebuilding/emetalextractor_up1.lua index ba9612edb..0bf8c1b86 100644 --- a/Units/ebuilding/emetalextractor_up1.lua +++ b/Units/ebuilding/emetalextractor_up1.lua @@ -5,16 +5,16 @@ unitName = [[emetalextractor_up1]] -------------------------------------------------------------------------------- -metalMultiplier = 1.33 +metalMultiplier = 2 -buildCostMetal = 100 +buildCostMetal = 150 energyUse = 2 primaryCEG = "custom:fusionreactionnuclear-2color" humanName = [[Metal Extractor Mk II]] -objectName = [[emetalextractor2.s3o]] +objectName = [[emetalextractor2_up1.s3o]] script = [[emetalextractor.cob]] tech = [[tech1]] diff --git a/Units/ebuilding/emetalextractor_up2.lua b/Units/ebuilding/emetalextractor_up2.lua index 30929dc2c..80fb77189 100644 --- a/Units/ebuilding/emetalextractor_up2.lua +++ b/Units/ebuilding/emetalextractor_up2.lua @@ -5,16 +5,16 @@ unitName = [[emetalextractor_up2]] -------------------------------------------------------------------------------- -metalMultiplier = 1.66 +metalMultiplier = 4 -buildCostMetal = 200 -energyUse = 5 +buildCostMetal = 300 +energyUse = 25 primaryCEG = "custom:fusionreactionnuclear-3color" humanName = [[Metal Extractor Mk III]] -objectName = [[emetalextractor2.s3o]] +objectName = [[emetalextractor2_up2.s3o]] script = [[emetalextractor.cob]] tech = [[tech2]] diff --git a/Units/ebuilding/emetalextractor_up3.lua b/Units/ebuilding/emetalextractor_up3.lua index bf3874801..1e5ae3181 100644 --- a/Units/ebuilding/emetalextractor_up3.lua +++ b/Units/ebuilding/emetalextractor_up3.lua @@ -5,16 +5,16 @@ unitName = [[emetalextractor_up3]] -------------------------------------------------------------------------------- -metalMultiplier = 2 +metalMultiplier = 8 -buildCostMetal = 300 -energyUse = 10 +buildCostMetal = 600 +energyUse = 50 primaryCEG = "custom:fusionreactionnuclear-4color" humanName = [[Metal Extractor Mk IV]] -objectName = [[emetalextractor2.s3o]] +objectName = [[emetalextractor2_up3.s3o]] script = [[emetalextractor.cob]] tech = [[tech3]] diff --git a/Units/ebuilding/emine.lua b/Units/ebuilding/emine.lua index 627ea357d..120e22ed7 100644 --- a/Units/ebuilding/emine.lua +++ b/Units/ebuilding/emine.lua @@ -8,9 +8,8 @@ local unitName = "emine" local armortype = [[building]] --local supply = [[1]] -local weapon1Damage = 305 -local weapon1AOE = 1 -local energycosttofire = weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) +local weapon1Damage = 1000 +local weapon1AOE = 25 local function roundToFirstDecimal(energycosttofire) return math.floor(energycosttofire*10 + 0.5)*0.1 @@ -21,7 +20,7 @@ local unitDef = { blocking = false, buildAngle = 1024, buildCostEnergy = 0, - buildCostMetal = 10, + buildCostMetal = 5, builder = false, buildTime = 5, category = "LIGHT NOTAIR", @@ -32,7 +31,7 @@ local unitDef = { cloakCost = 0, cloakCostMoving = 0, minCloakDistance = 0, - decloakOnFire = false, + decloakOnFire = true, decloakSpherical = true, initCloaked = true, @@ -136,7 +135,7 @@ local weaponDefs = { model = "missilesmallvlaunch.s3o", edgeeffectiveness = 1, - energypershot = energycosttofire, + energypershot = 0, range =400, reloadtime =8, weaponvelocity =2500, @@ -154,7 +153,7 @@ local weaponDefs = { soundStart = "weapons/minewhir.wav", explosiongenerator ="custom:genericshellexplosion-small-white", customparams = { - damagetype = "emine", + damagetype = "light", nofriendlyfire = "true", effectedByunitHealthModifier = true, }, diff --git a/Units/ebuilding/eradar2.lua b/Units/ebuilding/eradar2.lua index 5cb8989d7..1ee47c0ba 100644 --- a/Units/ebuilding/eradar2.lua +++ b/Units/ebuilding/eradar2.lua @@ -1,97 +1,28 @@ --- UNITDEF -- ERADAR2 -- +-- UNITDEF -- eradar2 -- -------------------------------------------------------------------------------- -local unitName = "eradar2" +unitName = [[eradar2]] --------------------------------------------------------------------------------- - -local armortype = [[building]] +buildCostMetal = 5 -local techrequired = [[tech1]] +humanName = [[Radar Tower]] +objectName = [[eradar3_small.s3o]] -local buildCostMetal = 10 -local maxDamage = buildCostMetal * 12.5 +radarDistance = 1000 +radarEmitHeight = 64 -local unitDef = { - activateWhenBuilt = true, - buildAngle = 16384, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = false, - buildTime = 5, - category = "BUILDING NOTAIR", - description = [[Radar Dome/Sensor Tower]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "largeBuildingExplosionGenericWhite", - footprintX = 6, - footprintZ = 6, - floater = true, - iconType = "radar", - idleAutoHeal = .5, - idleTime = 2200, - isTargetingUpgrade = false, - maxDamage = maxDamage, - maxSlope = 75, - maxWaterDepth = 999999, - metalStorage = 0, - name = "Radar Dome", - objectName = "eradar3.s3o", - script = "eradar3.cob", - onoffable = true, - radarDistance = 1500, - radarEmitHeight = 300, - repairable = false, - selfDestructAs = "largeBuildingExplosionGenericWhite", - side = "CORE", - sightDistance = 250, - smoothAnim = true, - sonarDistance = 1000, - seismicDistance = 1000, - unitname = "eradar2", - workerTime = 0, - yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", +sightDistance = 750 +sonarDistance = 750 +seismicDistance = 750 - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - }, - }, +tech = [[tech0]] +armortype = [[building]] - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/gdradar", - }, - }, - customParams = { - RequireTech = techrequired, - unittype = "building", - needed_cover = 2, - death_sounds = "generic", - armortype = armortype, - normaltex = "unittextures/lego2skin_explorernormal.dds", - buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "ateran", - corpse = "energycore", - helptext = [[]], - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 8, - BuildingGroundDecalSizeY = 8, - BuildingGroundDecalDecaySpeed = 0.9, -} +VFS.Include("units-configs-basedefs/basedefs/buildings/eradar2_basedef.lua") -------------------------------------------------------------------------------- -return lowerkeys({ [unitName] = unitDef }) +return lowerkeys({ [unitName] = unitDef }) --------------------------------------------------------------------------------- +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/ebuilding/eradar2_up1.lua b/Units/ebuilding/eradar2_up1.lua new file mode 100644 index 000000000..52d2660a1 --- /dev/null +++ b/Units/ebuilding/eradar2_up1.lua @@ -0,0 +1,28 @@ +-- UNITDEF -- eradar2_up1 -- +-------------------------------------------------------------------------------- + +unitName = [[eradar2_up1]] + +buildCostMetal = 40 + +humanName = [[Radar Tower]] +objectName = [[eradar3_large.s3o]] + +radarDistance = 3000 +radarEmitHeight = 128 + +sightDistance = 1500 +sonarDistance = 1500 +seismicDistance = 1500 + +tech = [[tech2]] +armortype = [[building]] + + +VFS.Include("units-configs-basedefs/basedefs/buildings/eradar2_basedef.lua") + +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/ebuilding/eshieldgen.lua b/Units/ebuilding/eshieldgen.lua index cb80f2e28..5014ec1bd 100644 --- a/Units/ebuilding/eshieldgen.lua +++ b/Units/ebuilding/eshieldgen.lua @@ -40,7 +40,7 @@ local unitDef = { maxSlope = 30, maxWaterDepth = 0, metalStorage = 0, - name = "Protector", + name = "Tuning Fork", objectName = "eantinuke.s3o", script = "eshieldgen2.cob", onlytargetcategory2 = "NOTAIR", diff --git a/Units/ebuilding/esilo.lua b/Units/ebuilding/esilo.lua index b43cfa1ce..e8a48b31b 100644 --- a/Units/ebuilding/esilo.lua +++ b/Units/ebuilding/esilo.lua @@ -157,7 +157,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "antibuilding", death_sounds = "nuke", oldcosttofireforumula = true, effectedByunitHealthModifier = true, diff --git a/Units/ebuilding/esolar2.lua b/Units/ebuilding/esolar2.lua index 3bdbb72fa..51cfe9ce3 100644 --- a/Units/ebuilding/esolar2.lua +++ b/Units/ebuilding/esolar2.lua @@ -6,9 +6,9 @@ local unitName = "esolar2" -------------------------------------------------------------------------------- local armortype = [[building]] -local energyproduced = [[10]] +local energyproduced = [[5]] -local buildCostMetal = 100 +local buildCostMetal = 50 local maxDamage = buildCostMetal * 12.5 local unitDef = { @@ -24,8 +24,8 @@ local unitDef = { energyStorage = 0, energyMake = energyproduced, explodeAs = "mediumBuildingExplosionGenericBlueEMP", - footprintX = 6, - footprintZ = 6, + footprintX = 2, + footprintZ = 2, icontype = "generator", idleAutoHeal = .5, idleTime = 2200, @@ -34,7 +34,8 @@ local unitDef = { maxWaterDepth = 5000, metalStorage = 0, name = "Fission Energy Generator", - objectName = "epowerplant6x6.s3o", + objectName = "epowerplant3x3.s3o", + script = "esolar2.cob", onoffable = false, radarDistance = 0, repairable = false, @@ -43,7 +44,7 @@ local unitDef = { sightDistance = 367, smoothAnim = true, unitname = "esolar2", - yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", + yardMap = "ooo ooo ooo", sfxtypes = { pieceExplosionGenerators = { @@ -93,8 +94,8 @@ local unitDef = { }, useGroundDecal = true, BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 8, - BuildingGroundDecalSizeY = 8, + BuildingGroundDecalSizeX = 5, + BuildingGroundDecalSizeY = 5, BuildingGroundDecalDecaySpeed = 0.9, } -------------------------------------------------------------------------------- diff --git a/Units/ebuilding/estorage.lua b/Units/ebuilding/estorage.lua index 065fb2063..dce2a5938 100644 --- a/Units/ebuilding/estorage.lua +++ b/Units/ebuilding/estorage.lua @@ -6,10 +6,10 @@ local unitName = "estorage" -------------------------------------------------------------------------------- local armortype = [[building]] -local storage = 25 -local supplygranted = 10 +local storage = 50 +local supplygranted = 25 -local buildCostMetal = 25 +local buildCostMetal = 15 local maxDamage = buildCostMetal * 12.5 local unitDef = { @@ -32,8 +32,8 @@ local unitDef = { metalStorage = storage, energyUse = 0, explodeAs = "smallBuildingExplosionGenericPurple", - footprintX = 4, - footprintZ = 8, + footprintX = 2, + footprintZ = 4, idleAutoHeal = .5, idleTime = 2200, icontype = "storage", @@ -42,7 +42,7 @@ local unitDef = { maxWaterDepth = 5000, --metalStorage = storage, name = "Supply/Storage Depot", - objectName = "estorage2.s3o", + objectName = "estorage2_small.s3o", script = "estorage2.cob", radarDistance = 0, repairable = false, @@ -52,7 +52,7 @@ local unitDef = { smoothAnim = true, unitname = "estorage", workerTime = 0, - yardMap = "yyooooyy yyooooyy yyooooyy yyooooyy yyooooyy yyooooyy yyooooyy yyooooyy ", + yardMap = "oo oo oo oo oo oo oo oo", sfxtypes = { pieceExplosionGenerators = { @@ -62,8 +62,8 @@ local unitDef = { explosiongenerators = { "custom:blacksmoke", - "custom:fusionreactionstoragenew", - "custom:fusionreactionstoragenew-blue", + "custom:fusionreactionstoragenew-small", + "custom:fusionreactionstoragenew-blue-small", "custom:skyhatelaser", }, }, @@ -92,8 +92,8 @@ local unitDef = { }, useGroundDecal = true, BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 10, - BuildingGroundDecalSizeY = 10, + BuildingGroundDecalSizeX = 4, + BuildingGroundDecalSizeY = 6, BuildingGroundDecalDecaySpeed = 0.9, } diff --git a/Units/ebuilding/etech1.lua b/Units/ebuilding/etech1.lua index 3c822d07e..8dc5459bc 100644 --- a/Units/ebuilding/etech1.lua +++ b/Units/ebuilding/etech1.lua @@ -28,8 +28,8 @@ local unitDef = { energyStorage = 0, energyMake = energyproduced, explodeAs = "hugeBuildingExplosionGenericBlue", - footprintX = 8, - footprintZ = 8, + footprintX = 4, + footprintZ = 4, icontype = "energy", idleAutoHeal = .5, idleTime = 2200, diff --git a/Units/ebuilding/etech2.lua b/Units/ebuilding/etech2.lua index 1c9c948d2..6235a5f05 100644 --- a/Units/ebuilding/etech2.lua +++ b/Units/ebuilding/etech2.lua @@ -30,8 +30,8 @@ local unitDef = { energyStorage = 0, energyMake = energyproduced, explodeAs = "hugeBuildingExplosionGenericPurple", - footprintX = 8, - footprintZ = 8, + footprintX = 4, + footprintZ = 4, icontype = "energy", idleAutoHeal = .5, idleTime = 2200, diff --git a/Units/ebuilding/etech3.lua b/Units/ebuilding/etech3.lua index cec2abb52..23947c5e5 100644 --- a/Units/ebuilding/etech3.lua +++ b/Units/ebuilding/etech3.lua @@ -30,8 +30,8 @@ local unitDef = { energyStorage = 0, energyMake = energyproduced, explodeAs = "hugeBuildingExplosionGenericGreen", - footprintX = 8, - footprintZ = 8, + footprintX = 4, + footprintZ = 4, icontype = "energy", idleAutoHeal = .5, idleTime = 2200, diff --git a/Units/ecommander.lua b/Units/ecommander.lua index c2de39afb..8c75f03e6 100644 --- a/Units/ecommander.lua +++ b/Units/ecommander.lua @@ -10,9 +10,6 @@ local supplyGiven = [[0]] local techprovided = [[tech0, -overseer]] local techrequired = [[0 overseer]] -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) local unitDef = { @@ -26,9 +23,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 1000, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -40,7 +38,7 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", description = [[Builds Units]], @@ -50,12 +48,12 @@ local unitDef = { explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = .5, idleTime = 2200, levelground = true, - maxDamage = 5000, + maxDamage = 2000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -64,10 +62,10 @@ local unitDef = { metalStorage = 0, movementClass = "COMMANDERTANK4", moveState = "0", - name = "The Healer Overseer", + name = "The Overseer", noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", - objectName = "ecommander4.s3o", - script = "ecommander3.cob", + objectName = "ecommander4-battle.s3o", + script = "ecommander4-battle.cob", radarDistance = 0, repairable = false, selfDestructAs = "commnuke", @@ -84,8 +82,7 @@ local unitDef = { workerTime = 1, capturespeed = 0.25, TerraformSpeed = 2147000, - ReclaimSpeed = 0, - -- 0.03125 = 1 hp per second + ReclaimSpeed = 1, -- 0.03125 = 1 hp per second repairspeed = 0.5, sfxtypes = { pieceExplosionGenerators = { @@ -95,8 +92,9 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", + "custom:gdhcannon", }, }, buildoptions = Shared.buildList, @@ -112,7 +110,7 @@ local unitDef = { }, weapons = { [1] = { - def = "riottankempweapon", + def = "machinegun", }, }, customParams = { @@ -138,90 +136,46 @@ local unitDef = { local weaponDefs = { - riottankempweapon = { - - AreaOfEffect = weapon1AOE, - avoidFeature = false, + machinegun = { + AreaOfEffect = 50, avoidFriendly = false, - avoidGround = false, - collideFeature = false, + avoidFeature = false, collideFriendly = false, - coreThickness = 0.6, - -- cegTag = "mediumcannonweapon3", - duration = 0.05, - edgeeffectiveness = 0.1, - energypershot = energycosttofire, - explosionGenerator = "custom:genericshellexplosion-medium-lightning", - fallOffRate = 1, - fireStarter = 100, - impulseFactor = 0, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, - minintensity = 1, - name = "EMP Blast Wave", - noexplode = true, - paralyzer = true, - paralyzetime = 2.5, - range = 500, + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, reloadtime = 1, WeaponType = "LaserCannon", - rgbColor = "0 0.2 1", + rgbColor = "1 0.2 0", rgbColor2 = "1 1 1", soundTrigger = true, - soundstart = "weapons/fnubeamfire.wav", - soundHit = "explosions/phasegun1hit.wav", - texture1 = "wave", + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", texture2 = "empty", - thickness = 40, + thickness = 7, tolerance = 1000, turret = true, - weaponVelocity = 1000, + weaponVelocity = 1500, customparams = { - damagetype = "eriottank2", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", + damagetype = "light", + nocosttofire = true, }, damage = { - default = weapon1Damage, + default = 200, }, }, - emp = { - AreaOfEffect = 500, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - explosionGenerator = "custom:genericshellexplosion-large-blue-emp", - tolerance = 1000, - energypershot = 0, - explosionScar = false, - impulseFactor = 0, - name = "Emp Blast Weapon", - noSelfDamage = true, - paralyzer = true, - paralyzetime = 5, - range = 500, - reloadtime = 10, - weaponType = "Cannon", - soundhit = "explosions/emp.wav", - size = 0, - turret = true, - weaponVelocity = 10000, - customparams = { - damagetype = "default", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", - }, - damage = { - default = 1000, - }, - }, commnuke = { AreaOfEffect = 500, avoidFriendly = false, @@ -267,7 +221,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ecommanderbattle.lua b/Units/ecommanderbattle.lua index 2cddb47fc..c920721fe 100644 --- a/Units/ecommanderbattle.lua +++ b/Units/ecommanderbattle.lua @@ -30,9 +30,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 500, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -44,23 +45,23 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT ARMORED", - description = [[Builds Units • Provides support in battles]], + description = [[Experimental Assault Overseer]], energyMake = 0, energyStorage = 0, energyUse = 0, explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", - autoHeal = 10, - idleAutoHeal = 20, + autoHeal = 0.5, + idleAutoHeal = 50, idleTime = 300, levelground = true, - maxDamage = 10000, + maxDamage = 15000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -100,9 +101,9 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", - "custom:gdhcannon", + "custom:electricity", }, }, --buildoptions = Shared.buildList, @@ -121,8 +122,8 @@ local unitDef = { -- def = "riottankempweapon", -- }, [1] = { - def = "machinegun", - badTargetCategory = "BUILDING ARMORED WALL", + def = "heavybeamweapon", + badTargetCategory = "BUILDING WALL", }, }, customParams = { @@ -186,7 +187,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -221,7 +222,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -277,7 +278,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, @@ -319,7 +320,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "ecommanderbattle", + damagetype = "antiarmored", nocosttofire = true, }, @@ -327,6 +328,92 @@ local weaponDefs = { default = weapon2Damage, }, }, + sniper = { + AreaOfEffect = 25, + avoidFeature = false, + avoidFriendly = false, + beamTime = 0.1, + + collideFeature = false, + collideFriendly = false, + coreThickness = 0.6, + -- cegTag = "mediumcannonweapon3", + duration = 0.2, + energypershot = 0, + explosionGenerator = "custom:genericshellexplosion-medium-purple", + fallOffRate = 0, + fireStarter = 100, + impulseFactor = 0, + interceptedByShieldType = 4, + + minintensity = "1", + name = "Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "0 0.5 1", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Blaster 4.wav", + soundHit = "explosions/explode5.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 5, + tolerance = 1000, + turret = true, + weaponVelocity = 3000, + customparams = { + damagetype = "antilightarmored", + }, + damage = { + default = 750, + }, + }, + + heavybeamweapon = { + AreaOfEffect = 10, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + largebeamlaser = true, + beamTime = 0.5, + cameraShake = 0, + coreThickness = 0.5, + -- cegTag = "mediumcannonweapon3", + -- duration = 0.2, + energypershot = 0, + explosionGenerator = "custom:genericshellexplosion-large-sparks-burn", + fallOffRate = 0, + fireStarter = 50, + impulseFactor = 0, + interceptedByShieldType = 4, + minintensity = 1, + name = "Laser", + range = 800, + reloadtime = 0.5, + WeaponType = "BeamLaser", + rgbColor = "0.25 0 0.25", + rgbColor2 = "0.5 0.5 0.5", + soundTrigger = true, + soundstart = "weapons/Sci Fi Beam 3-short.wav", + -- soundHit = "explosions/mediumcannonhit.wav", + -- sweepfire = true, + texture1 = "shot", + texture2 = "empty", + thickness = 5, + tolerance = 1000, + turret = true, + weaponVelocity = 800, + customparams = { + isupgraded = isUpgraded, + damagetype = "antilightarmored", + }, + damage = { + default = 500, + }, + }, + } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/ecommanderbuild.lua b/Units/ecommanderbuild.lua index d9db630a7..533e94fc3 100644 --- a/Units/ecommanderbuild.lua +++ b/Units/ecommanderbuild.lua @@ -10,9 +10,9 @@ local supplyGiven = [[0]] local techprovided = [[tech0, -overseer]] local techrequired = [[0 overseer]] -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) +local weapon1Damage = 15 +local weapon1AOE = 25 +local energycosttofire1 = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) local unitDef = { @@ -26,9 +26,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 1500, + buildDistance = 600, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -40,22 +41,22 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", - description = [[Builds Units x3 as fast]], + description = [[Builds Units x8 as fast]], energyMake = 0, energyStorage = 0, energyUse = 0, explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = .5, idleTime = 2200, levelground = true, - maxDamage = 10000, + maxDamage = 6000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -66,8 +67,8 @@ local unitDef = { moveState = "0", name = "The Builder Overseer", noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", - objectName = "ecommander4.s3o", - script = "ecommander3.cob", + objectName = "ecommander4-battle.s3o", + script = "ecommander4-battle.cob", radarDistance = 0, repairable = false, selfDestructAs = "commnuke", @@ -81,7 +82,7 @@ local unitDef = { turnRate = 5000, unitname = unitName, upright = false, - workerTime = 4, + workerTime = 8, capturespeed = 0.25, TerraformSpeed = 2147000, ReclaimSpeed = 0, @@ -95,8 +96,9 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", + "custom:gdhcannon", }, }, buildoptions = Shared.buildList, @@ -112,7 +114,7 @@ local unitDef = { }, weapons = { [1] = { - def = "riottankempweapon", + def = "machinegun", }, }, customParams = { @@ -144,6 +146,46 @@ Reclaims any energy cores within it's proximity.]], local weaponDefs = { + machinegun = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "1 0.2 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 200, + }, + }, + riottankempweapon = { AreaOfEffect = weapon1AOE, @@ -182,7 +224,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -217,7 +259,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -273,7 +315,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ecommandercloak.lua b/Units/ecommandercloak.lua index f9b31cce6..8ebf3556e 100644 --- a/Units/ecommandercloak.lua +++ b/Units/ecommandercloak.lua @@ -10,9 +10,9 @@ local supplyGiven = [[0]] local techprovided = [[tech0, -overseer]] local techrequired = [[0 overseer]] -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) +local weapon1Damage = 15 +local weapon1AOE = 25 +local energycosttofire1 = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) local unitDef = { @@ -26,9 +26,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 1000, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -40,7 +41,7 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", description = [[Provides Massive Cloak Field]], @@ -50,12 +51,12 @@ local unitDef = { explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = .5, idleTime = 2200, levelground = true, - maxDamage = 15000, + maxDamage = 10000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -96,7 +97,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -188,7 +189,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -223,7 +224,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -279,7 +280,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ecommanderfactory.lua b/Units/ecommanderfactory.lua index 49a26aaa6..394559e95 100644 --- a/Units/ecommanderfactory.lua +++ b/Units/ecommanderfactory.lua @@ -10,9 +10,9 @@ local supplyGiven = [[15]] local techprovided = [[tech0, -overseer]] local techrequired = [[0 overseer]] -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) +local weapon1Damage = 15 +local weapon1AOE = 25 +local energycosttofire1 = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) local unitDef = { @@ -29,6 +29,7 @@ local unitDef = { buildDistance = 250, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -40,7 +41,7 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", description = [[Creates buildings and mobile units • Gives ]] ..supplyGiven.. [[ Supply]], @@ -50,7 +51,7 @@ local unitDef = { explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = .5, idleTime = 2200, @@ -66,8 +67,8 @@ local unitDef = { moveState = "0", name = "The Factory Overseer", noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", - objectName = "ecommander4.s3o", - script = "ecommander3.cob", + objectName = "ecommander4-battle.s3o", + script = "ecommander4-battle.cob", radarDistance = 0, repairable = false, selfDestructAs = "commnuke", @@ -95,8 +96,9 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", + "custom:gdhcannon", }, }, buildoptions = Shared.buildListeCommanderFactory, @@ -112,7 +114,7 @@ local unitDef = { }, weapons = { [1] = { - def = "riottankempweapon", + def = "machinegun", }, }, customParams = { @@ -138,6 +140,46 @@ local unitDef = { local weaponDefs = { + machinegun = { + AreaOfEffect = 50, + avoidFriendly = false, + avoidFeature = false, + collideFriendly = false, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, + + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, + reloadtime = 1, + WeaponType = "LaserCannon", + rgbColor = "1 0.2 0", + rgbColor2 = "1 1 1", + soundTrigger = true, + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", + texture2 = "empty", + thickness = 7, + tolerance = 1000, + turret = true, + weaponVelocity = 1500, + customparams = { + damagetype = "light", + nocosttofire = true, + }, + damage = { + default = 200, + }, + }, + riottankempweapon = { AreaOfEffect = weapon1AOE, @@ -176,7 +218,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -211,7 +253,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -267,7 +309,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/scavengers/scavcommanderateran.lua b/Units/ecommanderhealer.lua similarity index 66% rename from Units/scavengers/scavcommanderateran.lua rename to Units/ecommanderhealer.lua index 7c50eb862..05cdb517a 100644 --- a/Units/scavengers/scavcommanderateran.lua +++ b/Units/ecommanderhealer.lua @@ -1,18 +1,15 @@ --- UNITDEF -- scavcommanderateran -- +-- UNITDEF -- ECOMMANDERHEALER -- -------------------------------------------------------------------------------- -local unitName = "scavcommanderateran" +local unitName = "ecommanderhealer" -------------------------------------------------------------------------------- local armortype = [[light]] local supplyGiven = [[0]] -local techprovided = [[tech0,tech1,tech2,tech3]] +local techprovided = [[tech0, -overseer]] local techrequired = [[0 overseer]] -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) local unitDef = { @@ -26,9 +23,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 1000, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -40,22 +38,22 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", - description = [[Builds Units]], + description = [[Provides a Large Healing Area of Effect]], energyMake = 0, energyStorage = 0, energyUse = 0, explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = .5, idleTime = 2200, levelground = true, - maxDamage = 5000, + maxDamage = 6000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -64,10 +62,10 @@ local unitDef = { metalStorage = 0, movementClass = "COMMANDERTANK4", moveState = "0", - name = "Scavenger Overseer", + name = "The Healer Overseer", noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", - objectName = "ecommander4.s3o", - script = "ecommander3.cob", + objectName = "ecommander4-battle.s3o", + script = "ecommander4-battle.cob", radarDistance = 0, repairable = false, selfDestructAs = "commnuke", @@ -84,8 +82,7 @@ local unitDef = { workerTime = 1, capturespeed = 0.25, TerraformSpeed = 2147000, - ReclaimSpeed = 0, - -- 0.03125 = 1 hp per second + ReclaimSpeed = 1, -- 0.03125 = 1 hp per second repairspeed = 0.5, sfxtypes = { pieceExplosionGenerators = { @@ -95,8 +92,9 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", + "custom:gdhcannon", }, }, buildoptions = Shared.buildList, @@ -112,7 +110,7 @@ local unitDef = { }, weapons = { [1] = { - def = "riottankempweapon", + def = "machinegun", }, }, customParams = { @@ -121,7 +119,7 @@ local unitDef = { ProvideTech = techprovided, RequireTech = techrequired, canbetransported = "true", - iscommander = false, + iscommander = true, needed_cover = 2, supply_granted = supplyGiven, death_sounds = "generic", @@ -138,90 +136,46 @@ local unitDef = { local weaponDefs = { - riottankempweapon = { - - AreaOfEffect = weapon1AOE, - avoidFeature = false, + machinegun = { + AreaOfEffect = 50, avoidFriendly = false, - avoidGround = false, - collideFeature = false, + avoidFeature = false, collideFriendly = false, - coreThickness = 0.6, - -- cegTag = "mediumcannonweapon3", - duration = 0.05, - edgeeffectiveness = 0.1, - energypershot = energycosttofire, - explosionGenerator = "custom:genericshellexplosion-medium-lightning", - fallOffRate = 1, - fireStarter = 100, - impulseFactor = 0, + collideFeature = false, + + coreThickness = 0.5, + duration = 0.2, + explosionGenerator = "custom:genericshellexplosion-small", + energypershot = 0, + fallOffRate = 0, + fireStarter = 50, + interceptedByShieldType = 4, + impulsefactor = 0, - minintensity = 1, - name = "EMP Blast Wave", - noexplode = true, - paralyzer = true, - paralyzetime = 2.5, - range = 500, + minintensity = "1", + name = "Overseer Pulse Laser", + range = 650, reloadtime = 1, WeaponType = "LaserCannon", - rgbColor = "0 0.2 1", + rgbColor = "1 0.2 0", rgbColor2 = "1 1 1", soundTrigger = true, - soundstart = "weapons/fnubeamfire.wav", - soundHit = "explosions/phasegun1hit.wav", - texture1 = "wave", + soundstart = "weapons/Sci Fi Sniper 10.wav", + texture1 = "shot", texture2 = "empty", - thickness = 40, + thickness = 7, tolerance = 1000, turret = true, - weaponVelocity = 1000, + weaponVelocity = 1500, customparams = { - damagetype = "eriottank2", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", + damagetype = "light", + nocosttofire = true, }, damage = { - default = weapon1Damage, + default = 200, }, }, - emp = { - AreaOfEffect = 500, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - explosionGenerator = "custom:genericshellexplosion-large-blue-emp", - tolerance = 1000, - energypershot = 0, - explosionScar = false, - impulseFactor = 0, - name = "Emp Blast Weapon", - noSelfDamage = true, - paralyzer = true, - paralyzetime = 5, - range = 500, - reloadtime = 10, - weaponType = "Cannon", - soundhit = "explosions/emp.wav", - size = 0, - turret = true, - weaponVelocity = 10000, - customparams = { - damagetype = "default", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", - }, - damage = { - default = 1000, - }, - }, commnuke = { AreaOfEffect = 500, avoidFriendly = false, @@ -267,7 +221,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ecommandermeteor.lua b/Units/ecommandermeteor.lua index 6af979c9f..faf5506e1 100644 --- a/Units/ecommandermeteor.lua +++ b/Units/ecommandermeteor.lua @@ -17,73 +17,62 @@ local unitDef = { transportbyenemy = false; --** - - acceleration = 0.2, - brakeRate = 1, + buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 500, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, - CanAssist = true, + CanAssist = false, canBeAssisted = true, CanCapture = false, - CanRepair = true, + CanRepair = false, canRestore = false, canGuard = true, - canMove = true, - canPatrol = true, + canMove = false, + canPatrol = false, canreclaim = false, canstop = true, - category = "NOTAIR SUPPORT ARMORED", - description = [[Builds Units • Provides support in battles]], + category = "NOTAIR BUILDING", + description = [[Astrological Control Center]], energyMake = 0, energyStorage = 0, energyUse = 0, explodeAs = "commnuke", - footprintX = 4, - footprintZ = 4, - hideDamage = true, + footprintX = 8, + footprintZ = 8, + iconType = "commander", idleAutoHeal = 5, idleTime = 300, levelground = true, - maxDamage = 10000, + maxDamage = 20000, maxSlope = 180, - maxVelocity = 3, - maxReverseVelocity = 1, maxWaterDepth = 5000, metalmake = 0, metalStorage = 0, - movementClass = "COMMANDERTANK4", moveState = "0", name = "The Meteor Overseer", noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", fireState = 0, - objectName = "ecommander4.s3o", + objectName = "ecommander-meteor.s3o", script = "ecommander4-meteor.cob", radarDistance = 0, repairable = false, selfDestructAs = "commnuke", showPlayerName = true, showNanoSpray = true, - sightDistance = 650, + sightDistance = 250, smoothAnim = true, stealth = true, - seismicSignature = 2, - turnInPlace = true, - turnRate = 5000, unitname = unitName, upright = false, - workerTime = 1, - capturespeed = 0.25, - TerraformSpeed = 2147000, - ReclaimSpeed = 0, - -- 0.03125 = 1 hp per second - repairspeed = 0.5, + yardmap = "oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo", + sfxtypes = { pieceExplosionGenerators = { "deathceg3", @@ -92,7 +81,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", "custom:gdhcannon", }, @@ -114,7 +103,7 @@ local unitDef = { -- }, [1] = { def = "meteor", - badtargetcategory = "VTOL", + badtargetcategory = "VTOL LIGHT ARMORED", }, }, customParams = { @@ -134,6 +123,11 @@ local unitDef = { buckettex = "unittextures/lego2skin_explorerbucket.dds", factionname = "ateran", }, + useGroundDecal = true, + BuildingGroundDecalType = "factorygroundplate.dds", + BuildingGroundDecalSizeX = 10, + BuildingGroundDecalSizeY = 10, + BuildingGroundDecalDecaySpeed = 0.9, } -------------------------------------------------------------------------------- @@ -156,7 +150,7 @@ local weaponDefs = { impulseFactor = 0, interceptedByShieldType = 4, name = unitName .. "Weapon", - range = 10000, + range = 50000, reloadtime = 120, size = 16, weaponType = "Cannon", @@ -167,7 +161,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "ecommandermeteor", + damagetype = "antibuilding", friendlyfireexception = true, }, damage = { @@ -218,7 +212,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ecommandershield.lua b/Units/ecommandershield.lua index b04e66741..48dee7a5c 100644 --- a/Units/ecommandershield.lua +++ b/Units/ecommandershield.lua @@ -30,9 +30,10 @@ local unitDef = { brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 1000, - buildDistance = 1000, + buildDistance = 350, builder = true, buildTime = 2.5, + buildpic = "ecommanderbattle.png", capturable = false, CanAttack = true, CanAssist = true, @@ -44,7 +45,7 @@ local unitDef = { canGuard = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "NOTAIR SUPPORT LIGHT", description = [[Provides large shielding • Self-Heals out of combat 40hp/s when idle]], @@ -54,12 +55,12 @@ local unitDef = { explodeAs = "commnuke", footprintX = 4, footprintZ = 4, - hideDamage = true, + iconType = "commander", idleAutoHeal = 40, idleTime = 5, levelground = true, - maxDamage = 7500, + maxDamage = 8000, maxSlope = 180, maxVelocity = 3, maxReverseVelocity = 1, @@ -99,7 +100,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -188,7 +189,7 @@ local weaponDefs = { turret = true, weaponVelocity = 1000, customparams = { - damagetype = "eriottank2", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -223,7 +224,7 @@ local weaponDefs = { turret = true, weaponVelocity = 10000, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, nocosttofire = true, @@ -307,7 +308,7 @@ local weaponDefs = { weaponType = "StarburstLauncher", weaponVelocity = 1000, customparams = { - damagetype = "default", + damagetype = "light", death_sounds = "nuke", nocosttofire = true, }, diff --git a/Units/ehbot/mobile/ehbotfac.lua b/Units/ehbot/mobile/ehbotfac.lua index 13845e7f4..535de8b8e 100644 --- a/Units/ehbot/mobile/ehbotfac.lua +++ b/Units/ehbot/mobile/ehbotfac.lua @@ -5,7 +5,7 @@ unitName = "ehbotfac" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 humanName = [[H-Bot Factory]] diff --git a/Units/ehbotengineer.lua b/Units/ehbotengineer.lua index b8efc6bfe..1fabe17d4 100644 --- a/Units/ehbotengineer.lua +++ b/Units/ehbotengineer.lua @@ -7,7 +7,7 @@ local unitName = "ehbotengineer" local buildCostMetal = 40 local maxDamage = 400 -local buildDistance = 800 +local buildDistance = 350 local armortype = [[light]] --local supply = [[2]] @@ -39,7 +39,7 @@ local unitDef = { canHover = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "LIGHT NOTAIR SUPPORT", description = [[Builds Units]], @@ -47,8 +47,8 @@ local unitDef = { energyStorage = 0, energyUse = 0, explodeAs = "mediumExplosionGenericGreen", - footprintX = 6, - footprintZ = 6, + footprintX = 2, + footprintZ = 2, iconType = "engineer", idleAutoHeal = .5, idleTime = 2200, @@ -60,7 +60,7 @@ local unitDef = { maxWaterDepth = 10, metalmake = 0, metalStorage = 0, - movementClass = "HOVERHBOT6", + movementClass = "HOVERHBOT2", moveState = "2", name = "The Lifter", objectName = "ehbotengineer2.s3o", @@ -93,7 +93,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, diff --git a/Units/ehbotengineer_turret.lua b/Units/ehbotengineer_turret.lua index b2f01d507..cbff6d4e9 100644 --- a/Units/ehbotengineer_turret.lua +++ b/Units/ehbotengineer_turret.lua @@ -7,7 +7,7 @@ local unitName = "ehbotengineer_turret" local buildCostMetal = 90 local maxDamage = 400 -local buildDistance = 1000 +local buildDistance = 800 local armortype = [[light]] --local supply = [[2]] @@ -38,7 +38,7 @@ local unitDef = { canHover = true, canMove = true, canPatrol = true, - canreclaim = false, + canreclaim = true, canstop = true, category = "LIGHT NOTAIR SUPPORT", description = [[Builds Units]], @@ -47,8 +47,8 @@ local unitDef = { energyUse = 0, explodeAs = "mediumExplosionGenericGreen", floater = true, - footprintX = 4, - footprintZ = 4, + footprintX = 2, + footprintZ = 2, iconType = "engineer", idleAutoHeal = .5, idleTime = 2200, @@ -60,7 +60,7 @@ local unitDef = { maxWaterDepth = 5000, metalmake = 0, metalStorage = 0, - movementClass = "HOVERHBOT4", + movementClass = "HOVERHBOT2", moveState = "0", pushResistant = true, name = "The Lifter Turret", @@ -94,7 +94,7 @@ local unitDef = { explosiongenerators = { "custom:nanoorb", - "custom:dirt", + "custom:emptydirt", "custom:blacksmoke", }, }, @@ -118,10 +118,6 @@ local unitDef = { -- supply_cost = supply, normaltex = "unittextures/lego2skin_explorernormal.dds", buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "ateran", - helptext = [[Armortype: ]] .. armortype .. [[ - -Moving an Engineer in proximity to a Energy Core will spawn a small gunship drone from that core.]], }, } diff --git a/Units/ehover/ebasefactory.lua b/Units/ehover/ebasefactory.lua index 443c2e966..13b4d3f97 100644 --- a/Units/ehover/ebasefactory.lua +++ b/Units/ehover/ebasefactory.lua @@ -5,7 +5,7 @@ unitName = "ebasefactory" -------------------------------------------------------------------------------- -buildCostMetal = 30 +buildCostMetal = 60 maxDamage = buildCostMetal * 12.5 humanName = "Hover Factory" diff --git a/Units/eorb.lua b/Units/eorb.lua index d52f85596..5f332034d 100644 --- a/Units/eorb.lua +++ b/Units/eorb.lua @@ -12,7 +12,7 @@ objectName = [[eorb4.s3o]] script = [[eorb3.cob]] workerTime = 1 -buildDistance = 800 +buildDistance = 350 tech = [[tech0]] armortype = [[light]] diff --git a/Units/faction/eco/xmetalextractor.lua b/Units/faction/eco/xmetalextractor.lua deleted file mode 100644 index be3044185..000000000 --- a/Units/faction/eco/xmetalextractor.lua +++ /dev/null @@ -1,30 +0,0 @@ --- UNITDEF -- XMETALEXTRACTOR -- --------------------------------------------------------------------------------- - -unitName = [[xmetalextractor]] - --------------------------------------------------------------------------------- - -metalMultiplier = 1 - -buildCostMetal = 20 -energyUse = 0 - -buildPic = "pattern/xmetalextractor.png" - -humanName = [[Metal Extractor]] - -objectName = [[faction/xmetalextractor.s3o]] -script = [[faction/xmetalextractor.cob]] - -tech = [[tech0]] -armortype = [[building]] - -VFS.Include("units-configs-basedefs/basedefs/faction/xmetalextractor_basedef.lua") - -unitDef.weaponDefs = weaponDefs --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/faction/eco/xmetalextractormoho.lua b/Units/faction/eco/xmetalextractormoho.lua deleted file mode 100644 index d352b31a7..000000000 --- a/Units/faction/eco/xmetalextractormoho.lua +++ /dev/null @@ -1,30 +0,0 @@ --- UNITDEF -- XMETALEXTRACTORMOHO -- --------------------------------------------------------------------------------- - -unitName = [[xmetalextractormoho]] - --------------------------------------------------------------------------------- - -metalMultiplier = 2 - -buildCostMetal = 300 -energyUse = 10 - -buildPic = "pattern/xmetalextractormoho.png" - -humanName = [[Metal Extractor]] - -objectName = [[faction/xmetalextractormoho.s3o]] -script = [[faction/xmetalextractor.cob]] - -tech = [[tech0]] -armortype = [[building]] - -VFS.Include("units-configs-basedefs/basedefs/faction/xmetalextractor_basedef.lua") - -unitDef.weaponDefs = weaponDefs --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/faction/eco/xsolar.lua b/Units/faction/eco/xsolar.lua deleted file mode 100644 index 4d5b9923f..000000000 --- a/Units/faction/eco/xsolar.lua +++ /dev/null @@ -1,92 +0,0 @@ --- UNITDEF -- XSOLAR -- --------------------------------------------------------------------------------- - -local unitName = "xsolar" - --------------------------------------------------------------------------------- - -local armortype = [[building]] -local techrequired = [[tech1]] -local energyproduced = [[10]] - -local buildCostMetal = 100 -local maxDamage = buildCostMetal * 12.5 - -local unitDef = { - activateWhenBuilt = true, - buildAngle = 2048, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = false, - buildTime = 5, - buildPic = "pattern/xsolar.png", - canAttack = false, - category = "BUILDING NOTAIR ECO", - description = [[Produces +]] .. energyproduced .. [[ Energy]], - energyStorage = 0, - energyMake = energyproduced, - explodeAs = "mediumBuildingExplosionGenericBlueEMP", - footprintX = 6, - footprintZ = 6, - icontype = "generator", - idleAutoHeal = .5, - idleTime = 2200, - maxDamage = maxDamage, - maxSlope = 60, - maxWaterDepth = 5000, - metalStorage = 0, - name = "Fission Energy Generator", - objectName = "faction/xsolar.s3o", - script = "faction/xsolar.cob", - onoffable = false, - radarDistance = 0, - repairable = false, - selfDestructAs = "mediumBuildingExplosionGenericBlueEMP", - side = "CORE", - sightDistance = 367, - smoothAnim = true, - unitname = "esolar2", - yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/gdenergy", - }, - }, - weapons = { - }, - customParams = { - unittype = "building", - iseco = 1, - needed_cover = 2, - death_sounds = "generic", - RequireTech = techrequired, - armortype = armortype, - noenergycost = true, - normaltex = "unittextures/bfaction_normals.dds", - factionname = "pattern", - corpse = "energycore", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 8, - BuildingGroundDecalSizeY = 8, - BuildingGroundDecalDecaySpeed = 0.9, -} --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- diff --git a/Units/faction/eco/xstorage.lua b/Units/faction/eco/xstorage.lua deleted file mode 100644 index 20f915013..000000000 --- a/Units/faction/eco/xstorage.lua +++ /dev/null @@ -1,100 +0,0 @@ --- UNITDEF -- xstorage -- --------------------------------------------------------------------------------- - -local unitName = "xstorage" - --------------------------------------------------------------------------------- - -local armortype = [[building]] -local storage = 25 -local supplygranted = 10 - -local buildCostMetal = 25 -local maxDamage = buildCostMetal * 12.5 - -local unitDef = { - activateWhenBuilt = true, - buildAngle = 8196, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = false, - buildTime = 5, - buildpic = [[pattern/xstorage.png]], - canAttack = false, - category = "BUILDING NOTAIR ECO", - - description = [[Provides +]] .. supplygranted .. [[ Supply • Provides +]] .. storage .. [[ Metal/Energy Storage]], - energyStorage = storage, - metalStorage = storage, - energyUse = 0, - explodeAs = "smallBuildingExplosionGenericPurple", - footprintX = 8, - footprintZ = 8, - idleAutoHeal = .5, - idleTime = 2200, - icontype = "storage", - maxDamage = maxDamage, - maxSlope = 50, - maxWaterDepth = 5000, - --metalStorage = storage, - name = "Supply/Storage Depot", - objectName = "faction/xstorage.s3o", - script = "faction/xstorage.cob", - radarDistance = 0, - repairable = false, - selfDestructAs = "smallBuildingExplosionGenericPurple", - side = "CORE", - sightDistance = 367, - smoothAnim = true, - unitname = "xstorage", - workerTime = 0, - yardMap = "oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo", - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - "custom:fusionreactionstoragenew", - "custom:fusionreactionstoragenew-blue", - "custom:skyhatelaser", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/gdenergy", - }, - }, - weapons = { - }, - customParams = { - unittype = "building", - iseco = 1, - needed_cover = 2, - supply_granted = supplygranted, - death_sounds = "generic", - armortype = "building", - noenergycost = true, - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "ateran", - helptext = [[]], - corpse = "energycore", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 12, - BuildingGroundDecalSizeY = 12, - BuildingGroundDecalDecaySpeed = 0.9, -} - --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- diff --git a/Units/faction/kbots/xhammer.lua b/Units/faction/kbots/xhammer.lua deleted file mode 100644 index 142b94a95..000000000 --- a/Units/faction/kbots/xhammer.lua +++ /dev/null @@ -1,26 +0,0 @@ --- UNITDEF -- xhammer -- --------------------------------------------------------------------------------- - -unitName = "xhammer" - --------------------------------------------------------------------------------- - -isUpgraded = [[0]] - -humanName = [[Hammer]] - -objectName = "faction/xhammer.s3o" -script = "faction/xhammer.cob" - -tech = [[tech1]] -armortype = [[light]] -supply = [[1]] - -VFS.Include("units-configs-basedefs/basedefs/faction/xhammer_basedef.lua") - -unitDef.weaponDefs = weaponDefs --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/faction/misc/xantinuke.lua b/Units/faction/misc/xantinuke.lua deleted file mode 100644 index 8e11b29b3..000000000 --- a/Units/faction/misc/xantinuke.lua +++ /dev/null @@ -1,162 +0,0 @@ --- UNITDEF -- ESHIELDGEN -- --------------------------------------------------------------------------------- - -local unitName = "xantinuke" - --------------------------------------------------------------------------------- - -local armortype = [[building]] ---local supply = [[20]] ---local techprovided = [[-baseshield]] -local techrequired = [[tech2]] - -local weapon1Damage = 3001 -local weapon1AOE = 1 ---local stockpiletime = 60 - -local buildCostMetal = 450 -local maxDamage = buildCostMetal * 12.5 - -local unitDef = { - buildAngle = 8192, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = false, - buildTime = 5, - canAttack = false, - canstop = "1", - category = "BUILDING NOTAIR", - description = [[Anti-Nuke Defense Facility]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "hugeBuildingExplosionGenericGreen", - footprintX = 5, - footprintZ = 5, - iconType = "nukeshield", - idleAutoHeal = .5, - idleTime = 2200, - maxDamage = maxDamage, - maxSlope = 30, - maxWaterDepth = 0, - metalStorage = 0, - name = "Anti-Nuke", - objectName = "faction/xantinuke.s3o", - script = "faction/xantinuke.cob", - onlytargetcategory2 = "NOTAIR", - onlytargetcategory3 = "NOTAIR", - onlytargetcategory4 = "NOTAIR", - onlytargetcategory5 = "NOTAIR", - onlytargetcategory6 = "NOTAIR", - radarDistance = 0, - repairable = false, - selfDestructAs = "hugeBuildingExplosionGenericGreen", - side = "ARM", - sightDistance = 600, - smoothAnim = true, - unitlimit = "2", - unitname = unitName, - workerTime = 0, - yardMap = "ooooo ooooo ooooo ooooo ooooo", - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:blacksmoke", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/turretselect", - }, - }, - weapons = { - [1] = { - def = "nukeinterceptor", - }, - }, - customParams = { - --ProvideTech = techprovided, - RequireTech = techrequired, - unittype = "building", - --supply_cost = supply, - needed_cover = 5, - death_sounds = "generic", - --ProvideTechRange = "300", - armortype = armortype, - normaltex = "unittextures/afaction_normals.dds", - corpse = "energycore", - factionname = "ateran", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 7, - BuildingGroundDecalSizeY = 7, - BuildingGroundDecalDecaySpeed = 0.9, -} - - --------------------------------------------------------------------------------- - - -local weaponDefs = { - nukeinterceptor = { - AreaOfEffect = weapon1AOE, - avoidFeature = false, - avoidFriendly = false, - beamTime = 5, - collideFeature = false, - collideFriendly = false, - coverage = 2000, - rgbColor = "0.5 0.5 0", - rgbColor2 = "0.5 0.5 0.5", - coreThickness = 0.5, - duration = 0.4, - explosionGenerator = "custom:genericshellexplosion-large-blue", - energypershot = 0, - fallOffRate = 0.1, - fireStarter = 50, - interceptor = 1, - interceptSolo = false, - largeBeamLaser = true, - laserflaresize = 5, - - minintensity = 1, - name = "Laser", - range = 2000, - reloadtime = 170, - WeaponType = "BeamLaser", - soundStart = "weapons/antinukelaser.wav", - soundTrigger = true, - --stockpile = true, - --stockpiletime = stockpiletime, - texture1 = "lightning", - texture2 = "laserend", - thickness = 20, - tolerance = 500, - turret = true, - weaponVelocity = 1500, - waterweapon = true, - customparams = { - nofriendlyfire = 1, - nocosttofire = true, - }, - damage = { - default = weapon1Damage, - }, - }, -} -unitDef.weaponDefs = weaponDefs - - --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- diff --git a/Units/faction/misc/xnukesilo.lua b/Units/faction/misc/xnukesilo.lua deleted file mode 100644 index ed96f9323..000000000 --- a/Units/faction/misc/xnukesilo.lua +++ /dev/null @@ -1,178 +0,0 @@ --- UNITDEF -- xnukesilo -- --------------------------------------------------------------------------------- - -local unitName = "xnukesilo" - --------------------------------------------------------------------------------- - -local armortype = [[building]] ---local supply = [[50]] ---local techprovided = [[-nukxnukesilo]] -local techrequired = [[tech3]] - -local weapon1Damage = 3000 -local weapon1AOE = 1500 -local energycosttofire = weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) ---local stockpiletime = 60 - -local function roundToFirstDecimal(energycosttofire) - return math.floor(energycosttofire*10 + 0.5)*0.1 -end - -local buildCostMetal = 1750 -local maxDamage = buildCostMetal * 12.5 - -local unitDef = { - - buildAngle = 8192, - buildCostEnergy = 0, - buildCostMetal = buildCostMetal, - builder = false, - buildTime = 5, - canAttack = true, - canstop = "1", - category = "BUILDING NOTAIR", - description = [[ ]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "nukemissile", - floater = true, - fireState = 0, - footprintX = 8, - footprintZ = 8, - iconType = "xnukesilo", - idleAutoHeal = .5, - idleTime = 2200, - maxDamage = maxDamage, - maxSlope = 30, - maxWaterDepth = 5000, - metalStorage = 0, - name = [[Eradicator: Nuclear Strike Facility]], - objectName = "faction/xnukesilo.s3o", - radarDistance = 0, - repairable = false, - script = "faction/xnukesilo.cob", - selfDestructAs = "nukemissile", - side = "ARM", - sightDistance = 600, - smoothAnim = true, - unitlimit = "2", - unitname = "xnukesilo", - workerTime = 0, - yardMap = "oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo", - - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:needspower", - "custom:blacksmoke", - "custom:steam", - }, - }, - - sounds = { - underattack = "other/unitsunderattack1", - select = { - "other/turretselect", - }, - }, - weapons = { - [1] = { - def = "nukemissile", - badTargetCategory = "LIGHT ARMORED", - }, - }, - customParams = { - --ProvideTech = techprovided, - RequireTech = techrequired, - unittype = "turret", - needed_cover = 8, - --supply_cost = supply, - death_sounds = "nuke", - armortype = "building", - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - corpse = "energycore", - factionname = "ateran", - }, - useGroundDecal = true, - BuildingGroundDecalType = "factorygroundplate.dds", - BuildingGroundDecalSizeX = 10, - BuildingGroundDecalSizeY = 10, - BuildingGroundDecalDecaySpeed = 0.9, -} - - --------------------------------------------------------------------------------- --- Energy Per Shot Calculation is: dmg / 20 * ((aoe / 1000) + 1) - -local weaponDefs = { - nukemissile = { - AreaOfEffect = weapon1AOE, - avoidFriendly = false, - avoidFeature = false, - cegTag = "NUKETRAIL", - collideFriendly = false, - collideFeature = false, - commandFire = true, - craterBoost = 0, - craterMult = 0, - edgeeffectiveness = 1, - energypershot = energycosttofire, - explosionGenerator = "custom:nukedatbewm", - fireStarter = 100, - flightTime = 400, - - id = 124, - impulseBoost = 0, - impulseFactor = 0, - --interceptedByShieldType = 4, - - metalpershot = 0, - model = "enuke.s3o", - name = "Nuke", - range = 32000, - reloadtime = 200, - weaponType = "MissileLauncher", - - - smokeTrail = false, - soundHit = "explosions/explosion_enormous.wav", - soundStart = "weapons/nukelaunch.wav", - --- stockpile = true, --- stockpileTime = stockpiletime, - startVelocity = 10, - tracks = true, - turnRate = 3000, - targetable = 1, - - weaponAcceleration = 60, - weaponTimer = 5, - weaponType = "StarburstLauncher", - weaponVelocity = 1000, - customparams = { - damagetype = "default", - death_sounds = "nuke", - oldcosttofireforumula = true, - effectedByunitHealthModifier = true, - friendlyfireexception = true, - }, - damage = { - default = weapon1Damage, - }, - }, -} -unitDef.weaponDefs = weaponDefs - - --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- diff --git a/Units/faction/xcommander.lua b/Units/faction/xcommander.lua deleted file mode 100644 index 8cb9c5649..000000000 --- a/Units/faction/xcommander.lua +++ /dev/null @@ -1,285 +0,0 @@ --- UNITDEF -- XCOMMANDER -- --------------------------------------------------------------------------------- - -local unitName = "xcommander" - --------------------------------------------------------------------------------- - -local armortype = [[light]] -local supplyGiven = [[0]] -local techprovided = [[tech0,tech1,tech2,tech3 -overseer]] -local techrequired = [[0 overseer]] - -local weapon1Damage = 200 -local weapon1AOE = 250 -local energycosttofire = 0 --weapon1Damage / 10 * ((weapon1AOE / 1000) + 1) - - -local unitDef = { - - --mobileunit - transportbyenemy = false; - - --** - - acceleration = 1, - brakeRate = 1, - buildCostEnergy = 0, - buildCostMetal = 1000, - buildDistance = 1000, - buildpic = [[pattern/xcommander.png]], - builder = true, - buildTime = 2.5, - capturable = false, - CanAttack = true, - CanAssist = true, - canBeAssisted = true, - CanCapture = false, - CanRepair = true, - canRestore = false, - - canGuard = true, - canMove = true, - canPatrol = true, - canreclaim = false, - canstop = true, - category = "NOTAIR SUPPORT LIGHT", - description = [[Builds Units]], - energyMake = 0, - energyStorage = 0, - energyUse = 0, - explodeAs = "commnuke", - footprintX = 4, - footprintZ = 4, - hideDamage = true, - iconType = "commander", - idleAutoHeal = .5, - idleTime = 2200, - levelground = true, - maxDamage = 5000, - maxSlope = 180, - maxVelocity = 3, - maxReverseVelocity = 1, - maxWaterDepth = 5000, - metalmake = 0, - metalStorage = 0, - movementClass = "COMMANDERTANK4", - moveState = "0", - name = "The Healer Overseer", - noChaseCategories = "NOTAIR SUPPORT VTOL AMPHIB", - objectName = "faction/xcommander.s3o", - script = "faction/xcommander.cob", - radarDistance = 0, - repairable = false, - selfDestructAs = "commnuke", - showPlayerName = true, - showNanoSpray = true, - sightDistance = 500, - smoothAnim = true, - stealth = true, - seismicSignature = 2, - turnInPlace = true, - turnRate = 5000, - unitname = unitName, - upright = true, - workerTime = 1, - capturespeed = 0.25, - TerraformSpeed = 2147000, - ReclaimSpeed = 0, - -- 0.03125 = 1 hp per second - repairspeed = 0.5, - sfxtypes = { - pieceExplosionGenerators = { - "deathceg3", - "deathceg4", - }, - - explosiongenerators = { - "custom:nanoorb", - "custom:dirt", - "custom:blacksmoke", - }, - }, - buildoptions = Shared.buildListXCommander, - sounds = { - build = "miscfx/buildstart.wav", - underattack = "other/unitsunderattack1", - ok = { - "ack", - }, - select = { - "unitselect", - }, - }, - weapons = { - [1] = { - def = "riottankempweapon", - }, - }, - customParams = { - unittype = "mobile", - area_mex_def = "emetalextractor", - ProvideTech = techprovided, - RequireTech = techrequired, - canbetransported = "true", - iscommander = true, - needed_cover = 2, - supply_granted = supplyGiven, - death_sounds = "generic", - - armortype = armortype, - nofriendlyfire = "1", - normaltex = "unittextures/bfaction_normals.dds", - --buckettex = "unittextures/lego2skin_explorerbucket.dds", - factionname = "xed", - }, -} - --------------------------------------------------------------------------------- - -local weaponDefs = { - - riottankempweapon = { - - AreaOfEffect = weapon1AOE, - avoidFeature = false, - avoidFriendly = false, - avoidGround = false, - collideFeature = false, - collideFriendly = false, - coreThickness = 0.6, - -- cegTag = "mediumcannonweapon3", - duration = 0.05, - edgeeffectiveness = 0.1, - energypershot = energycosttofire, - explosionGenerator = "custom:genericshellexplosion-medium-lightning", - fallOffRate = 1, - fireStarter = 100, - impulseFactor = 0, - - minintensity = 1, - name = "EMP Blast Wave", - noexplode = true, - paralyzer = true, - paralyzetime = 2.5, - range = 500, - reloadtime = 1, - WeaponType = "LaserCannon", - rgbColor = "0 0.2 1", - rgbColor2 = "1 1 1", - soundTrigger = true, - soundstart = "weapons/fnubeamfire.wav", - soundHit = "explosions/phasegun1hit.wav", - texture1 = "wave", - texture2 = "empty", - thickness = 40, - tolerance = 1000, - turret = true, - weaponVelocity = 1000, - customparams = { - damagetype = "eriottank2", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", - }, - damage = { - default = weapon1Damage, - }, - }, - - emp = { - AreaOfEffect = 500, - avoidFriendly = false, - avoidFeature = false, - collideFriendly = false, - collideFeature = false, - explosionGenerator = "custom:genericshellexplosion-large-blue-emp", - tolerance = 1000, - energypershot = 0, - explosionScar = false, - impulseFactor = 0, - name = "Emp Blast Weapon", - noSelfDamage = true, - paralyzer = true, - paralyzetime = 5, - range = 500, - reloadtime = 10, - weaponType = "Cannon", - soundhit = "explosions/emp.wav", - size = 0, - turret = true, - weaponVelocity = 10000, - customparams = { - damagetype = "default", - nofriendlyfire = 1, - nocosttofire = true, - - --Upgrades-- - upgradeClass = "groundweapons", - }, - damage = { - default = 1000, - }, - }, - commnuke = { - AreaOfEffect = 500, - avoidFriendly = false, - avoidFeature = false, - cegTag = "NUKETRAIL", - collideFriendly = false, - collideFeature = false, - commandfire = true, - craterBoost = 0, - craterMult = 0, - edgeeffectiveness = 0.1, - energypershot = 0, - explosionGenerator = "custom:NUKEDATBEWMSMALL", - fireStarter = 100, - flightTime = 400, - - id = 124, - impulseBoost = 0, - impulseFactor = 0, - interceptedByShieldType = 4, - - metalpershot = 0, - model = "enuke.s3o", - name = "Nuke", - range = 32000, - reloadtime = 60, - weaponType = "MissileLauncher", - - - smokeTrail = false, - soundHit = "explosions/explosion_enormous.wav", - soundStart = "weapons/nukelaunch.wav", - --- stockpile = true, --- stockpileTime = stockpiletime, - startVelocity = 10, - tracks = true, - turnRate = 3000, - targetable = 1, - - weaponAcceleration = 30, - weaponTimer = 15, - weaponType = "StarburstLauncher", - weaponVelocity = 1000, - customparams = { - damagetype = "default", - death_sounds = "nuke", - nocosttofire = true, - }, - damage = { - default = 1000, - }, - }, -} -unitDef.weaponDefs = weaponDefs --------------------------------------------------------------------------------- - -return lowerkeys({ [unitName] = unitDef }) - --------------------------------------------------------------------------------- diff --git a/Units/lootboxes/lootboxbronze.lua b/Units/lootboxes/lootboxbronze.lua new file mode 100644 index 000000000..92d38eee2 --- /dev/null +++ b/Units/lootboxes/lootboxbronze.lua @@ -0,0 +1,71 @@ +return { + lootboxbronze = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1, + brakerate = 0, + buildcostenergy = 25000, + buildcostmetal = 375, + buildtime = 5000, + canfight = false, + canguard = false, + canhover = true, + canmove = false, + canpatrol = false, + canrepeat = false, + canselfdestruct = false, + canstop = false, + cantbetransported = false, + capturable = true, + category = "BUILDING", + + description = "Bronze Lootbox: While you maintain control of it, this lootbox will provide extra resources.", + energymake = 20, + explodeas = "lootboxExplosion1", + floater = true, + footprintx = 3, + footprintz = 3, + icontype = "lootbox", + idleautoheal = 10, + idletime = 1800, + levelground = false, + mass = 4000, + maxdamage = 3000, + maxslope = 10, + maxvelocity = 0.00000001, + maxwaterdepth = 0, + metalmake = 1, + movestate = 0, + name = "Lootbox", + noautofire = false, + objectname = "lootboxes/lootbox3x3.s3o", + pushResistant = true, + script = "lootboxes/lootboxgold.cob", + seismicsignature = 0, + selfdestructas = "lootboxExplosion1", + selfdestructcountdown = 9, + sightdistance = 96, + transportbyenemy = true, + turninplace = false, + turnrate = 0, + unitname = "lootboxgold", + upright = true, + usebuildinggrounddecal = true, + --waterline = 0, + yardmap = "ooo ooo ooo", + customparams = { + normaltex = "unittextures/bfaction_normals.dds", + subfolder = "other/lootboxes", + }, + sfxtypes = { + explosiongenerators = { + [1] = "custom:LootboxLightGold", + [2] = "custom:LootboxBeaconBronze", + }, + pieceexplosiongenerators = { + [1] = "deathceg3", + [2] = "deathceg4", + }, + }, + }, +} diff --git a/Units/lootboxes/lootboxgold.lua b/Units/lootboxes/lootboxgold.lua new file mode 100644 index 000000000..6c354fc00 --- /dev/null +++ b/Units/lootboxes/lootboxgold.lua @@ -0,0 +1,70 @@ +return { + lootboxgold = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1, + brakerate = 1, + buildcostenergy = 25000, + buildcostmetal = 1500, + buildtime = 5000, + canfight = false, + canguard = false, + canmove = false, + canpatrol = false, + canrepeat = false, + canselfdestruct = false, + canstop = false, + cantbetransported = false, + capturable = true, + category = "BUILDING", + + description = "Gold Lootbox: While you maintain control of it, this lootbox will provide extra resources.", + energymake = 40, + explodeas = "lootboxExplosion3", + floater = true, + footprintx = 5, + footprintz = 5, + icontype = "lootbox", + idleautoheal = 10, + idletime = 1800, + levelground = false, + mass = 4000, + maxdamage = 5000, + maxslope = 10, + maxvelocity = 0.00000001, + maxwaterdepth = 0, + metalmake = 3, + movestate = 0, + name = "Lootbox", + noautofire = false, + objectname = "lootboxes/lootbox5x5.s3o", + pushResistant = true, + script = "lootboxes/lootboxgold.cob", + seismicsignature = 0, + selfdestructas = "lootboxExplosion3", + selfdestructcountdown = 9, + sightdistance = 96, + transportbyenemy = true, + turninplace = false, + turnrate = 0, + unitname = "lootboxgold", + upright = true, + usebuildinggrounddecal = true, + --waterline = 0, + yardmap = "ooooo ooooo ooooo ooooo ooooo", + customparams = { + normaltex = "unittextures/bfaction_normals.dds", + subfolder = "other/lootboxes", + }, + sfxtypes = { + explosiongenerators = { + [1] = "custom:LootboxLightGold", + [2] = "custom:LootboxBeaconGold", + }, + pieceexplosiongenerators = { + [1] = "deathceg3", + [2] = "deathceg4", + }, + }, + }, +} diff --git a/Units/lootboxes/lootboxplatinum.lua b/Units/lootboxes/lootboxplatinum.lua new file mode 100644 index 000000000..6594c8633 --- /dev/null +++ b/Units/lootboxes/lootboxplatinum.lua @@ -0,0 +1,70 @@ +return { + lootboxplatinum = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1, + brakerate = 1, + buildcostenergy = 25000, + buildcostmetal = 2500, + buildtime = 5000, + canfight = false, + canguard = false, + canmove = false, + canpatrol = false, + canrepeat = false, + canselfdestruct = false, + canstop = false, + cantbetransported = false, + capturable = true, + category = "BUILDING", + + description = "Platinum Lootbox: While you maintain control of it, this lootbox will provide extra resources.", + energymake = 80, + explodeas = "lootboxExplosion4", + floater = true, + footprintx = 6, + footprintz = 6, + icontype = "lootbox", + idleautoheal = 10, + idletime = 1800, + levelground = false, + mass = 4000, + maxdamage = 6000, + maxslope = 10, + maxvelocity = 0.00000001, + maxwaterdepth = 0, + metalmake = 4, + movestate = 0, + name = "Lootbox", + noautofire = false, + objectname = "lootboxes/lootbox6x6.s3o", + pushResistant = true, + script = "lootboxes/lootboxgold.cob", + seismicsignature = 0, + selfdestructas = "lootboxExplosion4", + selfdestructcountdown = 9, + sightdistance = 96, + transportbyenemy = true, + turninplace = false, + turnrate = 0, + unitname = "lootboxgold", + upright = true, + usebuildinggrounddecal = true, + --waterline = 0, + yardmap = "oooooo oooooo oooooo oooooo oooooo oooooo", + customparams = { + normaltex = "unittextures/bfaction_normals.dds", + subfolder = "other/lootboxes", + }, + sfxtypes = { + explosiongenerators = { + [1] = "custom:LootboxLightGold", + [2] = "custom:LootboxBeaconPlatinum", + }, + pieceexplosiongenerators = { + [1] = "deathceg3", + [2] = "deathceg4", + }, + }, + }, +} diff --git a/Units/lootboxes/lootboxsilver.lua b/Units/lootboxes/lootboxsilver.lua new file mode 100644 index 000000000..7f285116a --- /dev/null +++ b/Units/lootboxes/lootboxsilver.lua @@ -0,0 +1,70 @@ +return { + lootboxsilver = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1, + brakerate = 1, + buildcostenergy = 25000, + buildcostmetal = 750, + buildtime = 5000, + canfight = false, + canguard = false, + canmove = false, + canpatrol = false, + canrepeat = false, + canselfdestruct = false, + canstop = false, + cantbetransported = false, + capturable = true, + category = "BUILDING", + + description = "Silver Lootbox: While you maintain control of it, this lootbox will provide extra resources.", + energymake = 30, + explodeas = "lootboxExplosion2", + floater = true, + footprintx = 4, + footprintz = 4, + icontype = "lootbox", + idleautoheal = 10, + idletime = 1800, + levelground = false, + mass = 4000, + maxdamage = 4000, + maxslope = 10, + maxvelocity = 0.00000001, + maxwaterdepth = 0, + metalmake = 2, + movestate = 0, + name = "Lootbox", + noautofire = false, + objectname = "lootboxes/lootbox4x4.s3o", + pushResistant = true, + script = "lootboxes/lootboxgold.cob", + seismicsignature = 0, + selfdestructas = "lootboxExplosion2", + selfdestructcountdown = 9, + sightdistance = 96, + transportbyenemy = true, + turninplace = false, + turnrate = 0, + unitname = "lootboxgold", + upright = true, + usebuildinggrounddecal = true, + --waterline = 0, + yardmap = "oooo oooo oooo oooo", + customparams = { + normaltex = "unittextures/bfaction_normals.dds", + subfolder = "other/lootboxes", + }, + sfxtypes = { + explosiongenerators = { + [1] = "custom:LootboxLightGold", + [2] = "custom:LootboxBeaconSilver", + }, + pieceexplosiongenerators = { + [1] = "deathceg3", + [2] = "deathceg4", + }, + }, + }, +} diff --git a/Units/lootboxes/lootdroppod_gold.lua b/Units/lootboxes/lootdroppod_gold.lua new file mode 100644 index 000000000..38f751846 --- /dev/null +++ b/Units/lootboxes/lootdroppod_gold.lua @@ -0,0 +1,110 @@ +return { + lootdroppod_gold = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1.8, + bmcode = "0", + brakerate = 0, + buildcostenergy = 25000, + buildcostmetal = 400, + builddistance = 90, + buildtime = 10500, + canmove = false, + capturable = false, + category = "ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE", + collisionvolumeoffsets = "0 0 0", + collisionvolumescales = "0 0 0", + collisionvolumetype = "box", + description = "Drops LOOT in your battle", + energystorage = 1000, + explodeas = "", + footprintx = 0, + footprintz = 0, + idleautoheal = 10, + idletime = 90, + levelground = false, + mass = 165.75, + maxdamage = 1800, + maxvelocity = 0, + name = "Lootbox Droppod", + noautofire = false, + objectname = "scavs/cube.s3o", + pushResistant = true, + radardistance = 900, + script = "scavs/droppod.cob", + seismicsignature = 4, + selfdestructas = "", + selfdestructcountdown = 0, + side = "ARM", + sightdistance = 450, + smoothanim = true, + tedclass = "ENERGY", + turninplace = true, + turninplaceanglelimit = 90, + turnrate = 0, + unitname = "lootdroppod_gold", + upright = false, + waterline = 0, + workertime = 1500, + yardmap = "", + customparams = { + isairbase = true, + normaltex = "unittextures/bfaction_normals.dds", + subfolder = "other/lootboxes", + }, + featuredefs = {}, + sfxtypes = { + explosiongenerators = { + [1] = "custom:dirtpoof", + }, + }, + weapondefs = { + weapon = { + alwaysvisible = true, + areaofeffect = 500, + avoidfriendly = 0, + cegtag = "lootbox-trail", + collidefriendly = 0, + craterboost = 0, + cratermult = 0, + edgeeffectiveness = 0.3, + explosiongenerator = "custom:dirtpoof", + firestarter = 70, + flighttime = 800, + impulsefactor = 0.1, + interceptedbyshieldtype = 4, + metalpershot = 0, + --model = "Lootboxes/lootbox.s3o", + name = "Lootbox", + range = 59999, + reloadtime = 5, + rgbcolor = "0.95 0.78 0", + smoketrail = 1, + soundhit = "voice/scavengers/scavspawn", + startvelocity = 1, + targetborder = 0.75, + turret = 1, + weaponacceleration = 50, + weapontimer = 2, + weapontype = "MissileLauncher", + weaponvelocity = 100, + wobble = 50, + customparams = { + expl_light_color = "0.95 0.78 0", + expl_light_life_mult = 2.4, + expl_light_mult = 1.4, + expl_light_radius_mult = 1.6, + }, + damage = { + chicken = 1, + default = 1, + }, + }, + }, + weapons = { + [1] = { + def = "WEAPON", + }, + }, + }, +} diff --git a/Units/faction/kbots/xflea.lua b/Units/other/Scavengers/big/eamphibbuggybig.lua similarity index 61% rename from Units/faction/kbots/xflea.lua rename to Units/other/Scavengers/big/eamphibbuggybig.lua index 9a5ee8003..2b019bcc5 100644 --- a/Units/faction/kbots/xflea.lua +++ b/Units/other/Scavengers/big/eamphibbuggybig.lua @@ -1,22 +1,22 @@ --- UNITDEF -- xflea -- +-- UNITDEF -- EAMPHIBBUGGY -- -------------------------------------------------------------------------------- -unitName = "xflea" +unitName = "eamphibbuggybig" -------------------------------------------------------------------------------- -isUpgraded = [[0]] +isUpgraded = [[boss]] -humanName = [[Skulk]] +humanName = [[Big Snake]] -objectName = "faction/xflea.s3o" -script = "faction/xflea.cob" +objectName = "scavs/big/eamphibbuggy2big.s3o" +script = "eamphibbuggy_lus.lua" -tech = [[tech1]] +tech = [[tech3]] armortype = [[light]] supply = [[1]] -VFS.Include("units-configs-basedefs/basedefs/faction/xflea_basedef.lua") +VFS.Include("units-configs-basedefs/basedefs/amphib/eamphibbuggy_basedef.lua") unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/other/Scavengers/boss/eallterranarchidboss.lua b/Units/other/Scavengers/boss/eallterranarchidboss.lua new file mode 100644 index 000000000..c75bd11d7 --- /dev/null +++ b/Units/other/Scavengers/boss/eallterranarchidboss.lua @@ -0,0 +1,26 @@ +-- UNITDEF -- eallterranarchid -- Anarchid -- +-------------------------------------------------------------------------------- + +unitName = "eallterranarchidboss" + +-------------------------------------------------------------------------------- + +isUpgraded = [[boss]] + +humanName = [[Mega Anarchid]] + +objectName = "scavs/boss/eallterranarchidboss.s3o" +script = "eallterranarchid.cob" + +tech = [[tech3]] +armortype = [[armored]] +--supply = [[35]] + +VFS.Include("Units-Configs-Basedefs/basedefs/allterrain/eallterranarchid_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- \ No newline at end of file diff --git a/Units/other/Scavengers/boss/eamphiblevelerboss.lua b/Units/other/Scavengers/boss/eamphiblevelerboss.lua new file mode 100644 index 000000000..935b2d535 --- /dev/null +++ b/Units/other/Scavengers/boss/eamphiblevelerboss.lua @@ -0,0 +1,26 @@ +-- UNITDEF -- eamphibleveler -- +-------------------------------------------------------------------------------- + +unitName = "eamphiblevelerboss" + +-------------------------------------------------------------------------------- + +isUpgraded = [[boss]] + +humanName = [[Mega Leveler]] + +objectName = "scavs/boss/eamphiblevelerboss.s3o" +script = "eamphibleveler.cob" + +tech = [[tech3]] +armortype = [[armored]] +--supply = [[30]] + +VFS.Include("units-configs-basedefs/basedefs/amphib/eamphibleveler_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/faction/kbots/xcrasher.lua b/Units/other/Scavengers/boss/ehbotkargannethboss.lua similarity index 55% rename from Units/faction/kbots/xcrasher.lua rename to Units/other/Scavengers/boss/ehbotkargannethboss.lua index 02e9943ba..a4d3b9a0b 100644 --- a/Units/faction/kbots/xcrasher.lua +++ b/Units/other/Scavengers/boss/ehbotkargannethboss.lua @@ -1,22 +1,21 @@ --- UNITDEF -- xcrasher -- +-- UNITDEF -- ehbotkarganneth -- -------------------------------------------------------------------------------- -unitName = "xcrasher" +unitName = "ehbotkargannethboss" -------------------------------------------------------------------------------- -isUpgraded = [[0]] +isUpgraded = [[boss]] -humanName = [[Crasher]] +humanName = [[Mega Karganneth]] -objectName = "faction/xcrasher.s3o" -script = "faction/xcrasher.cob" +objectName = "scavs/boss/ehbotkargannethboss.s3o" +script = "ehbotkarganneth_lus.lua" -tech = [[tech1]] -armortype = [[light]] -supply = [[1]] +tech = [[tech3]] +armortype = [[armored]] -VFS.Include("units-configs-basedefs/basedefs/faction/xcrasher_basedef.lua") +VFS.Include("units-configs-basedefs/basedefs/hbot/mobile/ehbotkarganneth_basedef.lua") unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/faction/kbots/xrocko.lua b/Units/other/Scavengers/boss/ekrowboss.lua similarity index 57% rename from Units/faction/kbots/xrocko.lua rename to Units/other/Scavengers/boss/ekrowboss.lua index 2b0409dda..c0249cb4f 100644 --- a/Units/faction/kbots/xrocko.lua +++ b/Units/other/Scavengers/boss/ekrowboss.lua @@ -1,26 +1,27 @@ --- UNITDEF -- xrocko -- +-- UNITDEF -- EKROW -- -------------------------------------------------------------------------------- -unitName = "xrocko" +unitName = "ekrowboss" -------------------------------------------------------------------------------- -isUpgraded = [[0]] +isUpgraded = [[boss]] -humanName = [[Rocko]] +humanName = [[Mega Krow]] -objectName = "faction/xrocko.s3o" -script = "faction/xrocko.cob" +objectName = "scavs/boss/ekrowboss.s3o" +script = "ekrow.cob" -tech = [[tech1]] -armortype = [[light]] -supply = [[1]] -VFS.Include("units-configs-basedefs/basedefs/faction/xrocko_basedef.lua") +tech = [[tech3]] +armortype = [[armored]] + +VFS.Include("Units-Configs-Basedefs/basedefs/air/ekrow_basedef.lua") unitDef.weaponDefs = weaponDefs + -------------------------------------------------------------------------------- return lowerkeys({ [unitName] = unitDef }) --------------------------------------------------------------------------------- \ No newline at end of file +-------------------------------------------------------------------------------- diff --git a/Units/faction/kbots/xwarrior.lua b/Units/other/Scavengers/boss/elaceratorboss.lua similarity index 61% rename from Units/faction/kbots/xwarrior.lua rename to Units/other/Scavengers/boss/elaceratorboss.lua index 136237228..ad169bac1 100644 --- a/Units/faction/kbots/xwarrior.lua +++ b/Units/other/Scavengers/boss/elaceratorboss.lua @@ -1,22 +1,22 @@ --- UNITDEF -- xwarrior -- +-- UNITDEF -- elacerator -- -------------------------------------------------------------------------------- -unitName = "xwarrior" +unitName = "elaceratorboss" -------------------------------------------------------------------------------- -isUpgraded = [[0]] +isUpgraded = [[boss]] -humanName = [[Warrior]] +humanName = "Mega Lacerator" -objectName = "faction/xwarrior.s3o" -script = "faction/xwarrior.cob" +objectName = "scavs/boss/elaceratorboss.s3o" +script = "elacerator.cob" -tech = [[tech1]] +tech = [[tech3]] armortype = [[armored]] -supply = [[1]] +--supply = [[25]] -VFS.Include("units-configs-basedefs/basedefs/faction/xwarrior_basedef.lua") +VFS.Include("units-configs-basedefs/basedefs/hover/elacerator_basedef.lua") unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Units/other/Scavengers/scavengerdroppod.lua b/Units/other/Scavengers/scavengerdroppod.lua new file mode 100644 index 000000000..c6e66f735 --- /dev/null +++ b/Units/other/Scavengers/scavengerdroppod.lua @@ -0,0 +1,112 @@ +return { + scavengerdroppod = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1.8, + bmcode = "0", + blocking = false, + brakerate = 0, + buildcostenergy = 25000, + buildcostmetal = 400, + builddistance = 90, + --builder = true, + --buildpic = "chickens/roost.PNG", + buildtime = 10500, + category = "ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE", + canmove = false, + capturable = false, + collisionvolumeoffsets = "0 0 0", + collisionvolumescales = "0 0 0", + collisionvolumetype = "box", + description = "Spawning droppod for Scavengers", + energystorage = 1000, + explodeas = "", + footprintx = 0, + footprintz = 0, + idleautoheal = 10, + idletime = 90, + levelground = false, + mass = 165.75, + maxdamage = 1800, + maxvelocity = 0, + name = "Scavenger Droppod", + noautofire = false, + objectname = "scavs/cube.s3o", + radardistance = 900, + script = "scavs/droppod.cob", + seismicsignature = 4, + selfdestructcountdown = 0, + selfdestructas = "", + side = "ARM", + sightdistance = 450, + smoothanim = true, + tedclass = "ENERGY", + turninplace = true, + turninplaceanglelimit = 90, + turnrate = 0, + unitname = "scavengerdroppod_scav", + upright = false, + waterline = 0, + workertime = 1500, + yardmap = "", + customparams = { + subfolder = "scavengers", + isairbase = true, + normaltex = "unittextures/Core_normal.dds", + }, + featuredefs = {}, + sfxtypes = { + explosiongenerators = { + [1] = "custom:dirtpoof", + }, + }, + weapondefs = { + weapon = { + alwaysVisible = true, + areaofeffect = 500, + avoidfriendly = 0, + cegtag = "scaspawn-trail", + collidefriendly = 0, + craterboost = 0, + cratermult = 0, + edgeeffectiveness = 0.3, + explosiongenerator = "custom:dirtpoof", + firestarter = 70, + flighttime = 100, + impulsefactor = 0.1, + interceptedbyshieldtype = 4, + metalpershot = 0, + model = "scavs/scavbeacondroppod.s3o", + name = "Droppod", + range = 29999, + reloadtime = 5, + rgbcolor = "0.85 0 1", + smoketrail = 1, + soundhit = "voice/scavengers/scavspawn", + startvelocity = 1, + targetborder = 0.75, + turret = 1, + weaponacceleration = 1800, + weapontimer = 2, + weapontype = "MissileLauncher", + weaponvelocity = 1500, + wobble = 50, + customparams = { + expl_light_color = "0.85 0.10 1", + expl_light_life_mult = 1.2, + expl_light_mult = 1.0, + expl_light_radius_mult = 1.0, + }, + damage = { + chicken = 0, + default = 0, + }, + }, + }, + weapons = { + [1] = { + def = "WEAPON", + }, + }, + }, +} diff --git a/Units/other/Scavengers/scavengerdroppodbeacon.lua b/Units/other/Scavengers/scavengerdroppodbeacon.lua new file mode 100644 index 000000000..d4d366663 --- /dev/null +++ b/Units/other/Scavengers/scavengerdroppodbeacon.lua @@ -0,0 +1,123 @@ +return { + scavengerdroppodbeacon = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 10, + --bmcode = "0", + blocking = false, + brakerate = 0, + buildcostenergy = 25000, + buildcostmetal = 400, + builddistance = 90, + --builder = true, + --buildpic = "chickens/roost.PNG", + buildtime = 10500, + category = "BUILDING", + canmove = false, + canSelfDestruct = false, + capturable = false, + cantbetransported = false, + collisionvolumeoffsets = "0 0 0", + collisionvolumescales = "0 0 0", + collisionvolumetype = "box", + description = "Spawner", + energystorage = 1000, + explodeas = "mediumScavengerExplosionNuke", + footprintx = 10, + footprintz = 10, + idleautoheal = 10, + idletime = 90, + levelground = true, + mass = 165.75, + maxdamage = 2000, + maxvelocity = 0, + name = "Scavenger Spawn Beacon", + noautofire = false, + objectname = "scavs/scavbeacon.s3o", + radardistance = 0, + script = "scavs/beacon.cob", + seismicsignature = 4, + selfdestructcountdown = 1, + --selfdestructas = "ROOST_DEATH", + side = "ARM", + sightdistance = 0, + smoothanim = true, + tedclass = "ENERGY", + transportByEnemy = true, + turninplace = true, + turninplaceanglelimit = 90, + turnrate = 0, + unitname = "scavengerbeacon_scav", + upright = true, + waterline = 0, + workertime = 1500, + yardmap = "yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy yyyyyyyyyy", + -- + useGroundDecal = true, + BuildingGroundDecalType = "zgroundtexture2.dds", + BuildingGroundDecalSizeX = 18, + BuildingGroundDecalSizeY = 18, + BuildingGroundDecalDecaySpeed = 0.9, + -- + customparams = { + subfolder = "scavengers", + isairbase = true, + normaltex = "unittextures/scavbeacon_normals.dds", + armortype = "building", + }, + featuredefs = {}, + sfxtypes = { + explosiongenerators = { + [1] = "custom:PurpleLight", + }, + }, + weapondefs = { + weapon = { + alwaysVisible = true, + areaofeffect = 500, + avoidfriendly = 0, + cegtag = "scaspawn-trail", + collidefriendly = 0, + craterboost = 0, + cratermult = 0, + edgeeffectiveness = 0.3, + explosiongenerator = "custom:genericshellexplosion", + firestarter = 70, + flighttime = 100, + impulsefactor = 0.1, + interceptedbyshieldtype = 4, + metalpershot = 0, + model = "scavs/scavbeacondroppod.s3o", + name = "Droppod", + range = 256, + reloadtime = 5, + rgbcolor = "1 0 0", + smoketrail = 1, + soundhit = "voice/scavengers/scavspawn", + startvelocity = 1, + targetborder = 0.75, + turret = 1, + weaponacceleration = 1800, + weapontimer = 2, + weapontype = "MissileLauncher", + weaponvelocity = 1500, + wobble = 50, + customparams = { + expl_light_color = "1 0 0", + expl_light_life_mult = 1.2, + expl_light_mult = 1.0, + expl_light_radius_mult = 1.0, + }, + damage = { + chicken = 0, + default = 0, + }, + }, + }, + weapons = { + [1] = { + def = "WEAPON", + }, + }, + }, +} diff --git a/Units/other/Scavengers/scavengerdroppodfriendly.lua b/Units/other/Scavengers/scavengerdroppodfriendly.lua new file mode 100644 index 000000000..041437357 --- /dev/null +++ b/Units/other/Scavengers/scavengerdroppodfriendly.lua @@ -0,0 +1,110 @@ +return { + scavengerdroppodfriendly = { + acceleration = 0, + activatewhenbuilt = true, + autoheal = 1.8, + blocking = false, + bmcode = "0", + brakerate = 0, + buildcostenergy = 25000, + buildcostmetal = 400, + builddistance = 90, + buildtime = 10500, + canmove = false, + capturable = false, + category = "ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE", + collisionvolumeoffsets = "0 0 0", + collisionvolumescales = "0 0 0", + collisionvolumetype = "box", + description = "Spawning droppod for reinforments", + energystorage = 1000, + explodeas = "", + footprintx = 0, + footprintz = 0, + idleautoheal = 10, + idletime = 90, + levelground = false, + mass = 165.75, + maxdamage = 1800, + maxvelocity = 0, + name = "Friendly Droppod", + noautofire = false, + objectname = "scavs/cube.s3o", + radardistance = 900, + script = "scavs/droppod.cob", + seismicsignature = 4, + selfdestructas = "", + selfdestructcountdown = 0, + side = "ARM", + sightdistance = 450, + smoothanim = true, + tedclass = "ENERGY", + turninplace = true, + turninplaceanglelimit = 90, + turnrate = 0, + unitname = "scavengerfriendlydroppod", + upright = false, + waterline = 0, + workertime = 1500, + yardmap = "", + customparams = { + isairbase = true, + normaltex = "unittextures/Core_normal.dds", + subfolder = "other/scavengers", + }, + featuredefs = {}, + sfxtypes = { + explosiongenerators = { + [1] = "custom:dirtpoof", + }, + }, + weapondefs = { + weapon = { + alwaysvisible = true, + areaofeffect = 500, + avoidfriendly = 0, + cegtag = "scaspawn-greentrail", + collidefriendly = 0, + craterboost = 0, + cratermult = 0, + edgeeffectiveness = 0.3, + explosiongenerator = "custom:dirtpoof", + firestarter = 70, + flighttime = 250, + impulsefactor = 0.1, + interceptedbyshieldtype = 4, + metalpershot = 0, + model = "scavs/scavbeacondroppod.s3o", + name = "Droppod", + range = 29999, + reloadtime = 5, + rgbcolor = "0 1 0", + smoketrail = 1, + soundhit = "voice/scavengers/scavspawn", + startvelocity = 1, + targetborder = 0.75, + turret = 1, + weaponacceleration = 450, + weapontimer = 2, + weapontype = "MissileLauncher", + weaponvelocity = 900, + wobble = 50, + customparams = { + expl_light_color = "0.1 0.95 0.1", + expl_light_life_mult = 1.1, + expl_light_mult = 0.65, + expl_light_radius_mult = 0.5, + }, + damage = { + chicken = 0, + default = 0, + }, + }, + }, + weapons = { + [1] = { + def = "WEAPON", + }, + }, + }, +} diff --git a/Units/zaal/buildings/zarm_up1.lua b/Units/zaal/buildings/zarm_up1.lua new file mode 100644 index 000000000..bae284f90 --- /dev/null +++ b/Units/zaal/buildings/zarm_up1.lua @@ -0,0 +1,25 @@ +-- UNITDEF -- zarm_up1 -- +-------------------------------------------------------------------------------- + +unitName = "zarm_up1" + +-------------------------------------------------------------------------------- + +buildDistance = 65000 + +humanName = "Arm" + +objectName = "zaal/zarm.s3o" +script = "zaal/zarm_lus.lua" + +armortype = [[building]] +techprovided = [[tech0, tech1]] + +VFS.Include("units-configs-basedefs/basedefs/zaal/zarm_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/zaal/buildings/zarm_up2.lua b/Units/zaal/buildings/zarm_up2.lua new file mode 100644 index 000000000..384fbfbea --- /dev/null +++ b/Units/zaal/buildings/zarm_up2.lua @@ -0,0 +1,25 @@ +-- UNITDEF -- zarm_up2 -- +-------------------------------------------------------------------------------- + +unitName = "zarm_up2" + +-------------------------------------------------------------------------------- + +buildDistance = 65000 + +humanName = "Arm" + +objectName = "zaal/zarm.s3o" +script = "zaal/zarm_lus.lua" + +armortype = [[building]] +techprovided = [[tech0, tech1, tech2]] + +VFS.Include("units-configs-basedefs/basedefs/zaal/zarm_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/zaal/buildings/zarm_up3.lua b/Units/zaal/buildings/zarm_up3.lua new file mode 100644 index 000000000..88fd3ca5e --- /dev/null +++ b/Units/zaal/buildings/zarm_up3.lua @@ -0,0 +1,25 @@ +-- UNITDEF -- zarm_up3 -- +-------------------------------------------------------------------------------- + +unitName = "zarm_up3" + +-------------------------------------------------------------------------------- + +buildDistance = 65000 + +humanName = "Arm" + +objectName = "zaal/zarm.s3o" +script = "zaal/zarm_lus.lua" + +armortype = [[building]] +techprovided = [[tech0, tech1, tech2, tech3]] + +VFS.Include("units-configs-basedefs/basedefs/zaal/zarm_basedef.lua") + +unitDef.weaponDefs = weaponDefs +-------------------------------------------------------------------------------- + +return lowerkeys({ [unitName] = unitDef }) + +-------------------------------------------------------------------------------- diff --git a/Units/zaal/buildings/zespire1.lua b/Units/zaal/buildings/zespire1.lua index 51825cbc3..aaf7b9497 100644 --- a/Units/zaal/buildings/zespire1.lua +++ b/Units/zaal/buildings/zespire1.lua @@ -4,10 +4,10 @@ unitName = "zespire1" -------------------------------------------------------------------------------- -buildCostMetal = 100 +buildCostMetal = 50 supplygranted = 0 -energyMake = 10 +energyMake = 5 humanName = "Basic Energy Spire" diff --git a/Units/zaal/buildings/zhatch.lua b/Units/zaal/buildings/zhatch.lua index e5f8e9f1b..4f63f7aec 100644 --- a/Units/zaal/buildings/zhatch.lua +++ b/Units/zaal/buildings/zhatch.lua @@ -11,10 +11,10 @@ buildCostMetal = 50 humanName = [[Zaal Hatchery]] -objectName = [[zaal/zfactory.s3o]] +objectName = [[zaal/zfactory_up2.s3o]] script = [[zaal/zfactory.cob]] -techprovided = [[tech1, tech0]] +--techprovided = [[tech1, tech0]] armortype = [[building]] VFS.Include("units-configs-basedefs/basedefs/zaal/zhive_basedef.lua") diff --git a/Units/zaal/buildings/zmex.lua b/Units/zaal/buildings/zmex.lua index 05676bced..69687bb74 100644 --- a/Units/zaal/buildings/zmex.lua +++ b/Units/zaal/buildings/zmex.lua @@ -5,11 +5,13 @@ unitName = [[zmex]] -------------------------------------------------------------------------------- +zaalMexCost = Spring.GetModOptions().metalextractorcostzaal or 65 + metalMultiplier = 1 energyUse = 0 -buildCostMetal = 50 +buildCostMetal = zaalMexCost yardMap = [[oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo]] diff --git a/Units/zaal/buildings/ztiberium.lua b/Units/zaal/buildings/ztiberium.lua index 4bf87fb2b..865b81eaa 100644 --- a/Units/zaal/buildings/ztiberium.lua +++ b/Units/zaal/buildings/ztiberium.lua @@ -5,11 +5,11 @@ unitName = "ztiberium" -------------------------------------------------------------------------------- supplygranted = 25 -storage = 25 +storage = 50 humanName = "Tiberium Supply/Storage" -objectName = "zaal/ztiberium.s3o" +objectName = "zaal/ztiberium_small.s3o" script = "zaal/ztiberium.cob" armortype = [[building]] diff --git a/Units/zaal/units/air/zairbomber.lua b/Units/zaal/units/air/zairbomber.lua index 089fbc423..7753d5bc8 100644 --- a/Units/zaal/units/air/zairbomber.lua +++ b/Units/zaal/units/air/zairbomber.lua @@ -14,7 +14,7 @@ script = "zaal/zairbomber.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[air]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/zaal/zairbomber_basedef.lua") diff --git a/Units/zaal/units/air/zairscout.lua b/Units/zaal/units/air/zairscout.lua index a4201297d..82feebd2c 100644 --- a/Units/zaal/units/air/zairscout.lua +++ b/Units/zaal/units/air/zairscout.lua @@ -10,7 +10,7 @@ humanName = [[Sparrow]] objectName = "zaal/zairscout.s3o" script = "zaal/zairscout.cob" -armortype = [[airlight]] +armortype = [[air]] tech = [[tech1]] diff --git a/Units/zaal/units/air/zairtoairfighter.lua b/Units/zaal/units/air/zairtoairfighter.lua index 292f85c84..2693e5a97 100644 --- a/Units/zaal/units/air/zairtoairfighter.lua +++ b/Units/zaal/units/air/zairtoairfighter.lua @@ -14,7 +14,7 @@ script = "zaal/zairtoairfighter.cob" tech = [[tech2]] -armortype = [[airlight]] +armortype = [[air]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/zaal/zairtoairfighter_basedef.lua") diff --git a/Units/zaal/units/air/zairtogroundfighter.lua b/Units/zaal/units/air/zairtogroundfighter.lua index 21cdaed8f..22953d376 100644 --- a/Units/zaal/units/air/zairtogroundfighter.lua +++ b/Units/zaal/units/air/zairtogroundfighter.lua @@ -14,7 +14,7 @@ script = "zaal/zairtogroundfighter.cob" tech = [[tech3]] -armortype = [[airlight]] +armortype = [[air]] supply = [[2]] VFS.Include("units-configs-basedefs/basedefs/zaal/zairtogroundfighter_basedef.lua") diff --git a/Units/faction/kbots/xskulk.lua b/Units/zaal/units/land/zconstructor.lua similarity index 61% rename from Units/faction/kbots/xskulk.lua rename to Units/zaal/units/land/zconstructor.lua index 74324976f..41980f97c 100644 --- a/Units/faction/kbots/xskulk.lua +++ b/Units/zaal/units/land/zconstructor.lua @@ -1,23 +1,23 @@ --- UNITDEF -- XSKULK -- +-- UNITDEF -- zconstructor -- -------------------------------------------------------------------------------- -unitName = "xskulk" +unitName = "zconstructor" -------------------------------------------------------------------------------- -isUpgraded = [[0]] +isUpgraded = [[0]] -humanName = [[Skulk]] +buildDistance = 400 -objectName = "faction/xskulk.s3o" -script = "faction/xskulk.cob" +humanName = "Worker Drone" -tech = [[tech1]] -armortype = [[light]] -supply = [[1]] +objectName = "zaal/zkamikaze.s3o" +script = "zaal/zconstructor.cob" -VFS.Include("units-configs-basedefs/basedefs/faction/xskulk_basedef.lua") +armortype = [[light]] +VFS.Include("units-configs-basedefs/basedefs/zaal/zconstructor_basedef.lua") + unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- diff --git a/Weapons/ChickenDefenseWeapons/bug_death.lua b/Weapons/ChickenDefenseWeapons/bug_death.lua index 83503c9c9..924ea5be2 100644 --- a/Weapons/ChickenDefenseWeapons/bug_death.lua +++ b/Weapons/ChickenDefenseWeapons/bug_death.lua @@ -13,7 +13,7 @@ return { turret = 1, weaponvelocity = 250, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -34,7 +34,7 @@ return { turret = 1, weaponvelocity = 250, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -55,7 +55,7 @@ return { turret = 1, weaponvelocity = 250, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { @@ -76,7 +76,7 @@ return { turret = 1, weaponvelocity = 250, customparams = { - damagetype = "default", + damagetype = "light", nofriendlyfire = 1, }, damage = { diff --git a/Weapons/NOWEAPON.lua b/Weapons/NOWEAPON.lua new file mode 100644 index 000000000..397e63807 --- /dev/null +++ b/Weapons/NOWEAPON.lua @@ -0,0 +1,14 @@ +unitDeaths = { + + NOWEAPON = { + weaponType = "Cannon", + impulseFactor = 0, + AreaOfEffect=0, + explosiongenerator="custom:empty", + cameraShake=0, + damage = { + default = 0, + }, + }, +} +return lowerkeys(unitDeaths) \ No newline at end of file diff --git a/Weapons/scavenger_explosions.lua b/Weapons/scavenger_explosions.lua new file mode 100644 index 000000000..ae80f3262 --- /dev/null +++ b/Weapons/scavenger_explosions.lua @@ -0,0 +1,49 @@ +-------------------------------------------------------------------------------- +-- These represent both the area of effect and the camerashake amount +local smallExplosion = 200 +local smallExplosionImpulseFactor = 0 +local mediumExplosion = 400 +local mediumExplosionImpulseFactor = 0 +local largeExplosion = 600 +local largeExplosionImpulseFactor = 0 +local hugeExplosion = 1000 +local hugeExplosionImpulseFactor = 0 + + +unitDeaths = { + + mediumScavengerExplosionGeneric = { + weaponType = "Cannon", + impulseFactor = mediumExplosionImpulseFactor, + AreaOfEffect=mediumExplosion, + explosiongenerator="custom:genericscavengerbuildingexplosion-medium-purple", + cameraShake=mediumExplosion, + damage = { + default = 0, + }, + }, + + mediumScavengerExplosionNuke = { + weaponType = "Cannon", + impulseFactor = mediumExplosionImpulseFactor, + AreaOfEffect=mediumExplosion, + explosionGenerator = "custom:NUKEDATBEWMSMALL", + cameraShake=mediumExplosion, + damage = { + default = 5000, + }, + }, + + bossScavengerExplosionNuke = { + weaponType = "Cannon", + impulseFactor = hugeExplosionImpulseFactor, + AreaOfEffect = 1500, + explosionGenerator = "custom:NUKEDATBEWM", + cameraShake = hugeExplosion, + damage = { + default = 9999999, + }, + }, + +} +return lowerkeys(unitDeaths) \ No newline at end of file diff --git a/bitmaps/default/metal_basic.dds b/bitmaps/default/metal_basic.dds new file mode 100644 index 000000000..681d444ec Binary files /dev/null and b/bitmaps/default/metal_basic.dds differ diff --git a/bitmaps/default/metalshimmer_color.dds b/bitmaps/default/metalshimmer_color.dds new file mode 100644 index 000000000..0fbda6f48 Binary files /dev/null and b/bitmaps/default/metalshimmer_color.dds differ diff --git a/bitmaps/default/metalshimmer_color2.dds b/bitmaps/default/metalshimmer_color2.dds new file mode 100644 index 000000000..3a29478fb Binary files /dev/null and b/bitmaps/default/metalshimmer_color2.dds differ diff --git a/bitmaps/default/metalshimmer_color3.dds b/bitmaps/default/metalshimmer_color3.dds new file mode 100644 index 000000000..06410ccb5 Binary files /dev/null and b/bitmaps/default/metalshimmer_color3.dds differ diff --git a/bitmaps/default/metalshimmer_color4.dds b/bitmaps/default/metalshimmer_color4.dds new file mode 100644 index 000000000..ea205a95e Binary files /dev/null and b/bitmaps/default/metalshimmer_color4.dds differ diff --git a/bitmaps/default/metalshimmer_color5.dds b/bitmaps/default/metalshimmer_color5.dds new file mode 100644 index 000000000..a4ef2f780 Binary files /dev/null and b/bitmaps/default/metalshimmer_color5.dds differ diff --git a/bitmaps/default/metalshimmer_color6.dds b/bitmaps/default/metalshimmer_color6.dds new file mode 100644 index 000000000..abfb6342b Binary files /dev/null and b/bitmaps/default/metalshimmer_color6.dds differ diff --git a/bitmaps/default/metalshimmer_color7.dds b/bitmaps/default/metalshimmer_color7.dds new file mode 100644 index 000000000..b20d8ecd8 Binary files /dev/null and b/bitmaps/default/metalshimmer_color7.dds differ diff --git a/bitmaps/default/metalshimmer_color8.dds b/bitmaps/default/metalshimmer_color8.dds new file mode 100644 index 000000000..f5c436bb9 Binary files /dev/null and b/bitmaps/default/metalshimmer_color8.dds differ diff --git a/bitmaps/default/metalshimmer_color9.dds b/bitmaps/default/metalshimmer_color9.dds new file mode 100644 index 000000000..eefd5f0d1 Binary files /dev/null and b/bitmaps/default/metalshimmer_color9.dds differ diff --git a/bitmaps/projectiletextures/circlefx0.png b/bitmaps/projectiletextures/circlefx0.png new file mode 100644 index 000000000..26b5524f6 Binary files /dev/null and b/bitmaps/projectiletextures/circlefx0.png differ diff --git a/bitmaps/projectiletextures/circlefx1.png b/bitmaps/projectiletextures/circlefx1.png new file mode 100644 index 000000000..c45077162 Binary files /dev/null and b/bitmaps/projectiletextures/circlefx1.png differ diff --git a/bitmaps/projectiletextures/circlefx2.png b/bitmaps/projectiletextures/circlefx2.png new file mode 100644 index 000000000..0f6118278 Binary files /dev/null and b/bitmaps/projectiletextures/circlefx2.png differ diff --git a/bitmaps/projectiletextures/circlefx3.png b/bitmaps/projectiletextures/circlefx3.png new file mode 100644 index 000000000..9c3eb1c42 Binary files /dev/null and b/bitmaps/projectiletextures/circlefx3.png differ diff --git a/bitmaps/projectiletextures/smoke_puff.png b/bitmaps/projectiletextures/smoke_puff.png new file mode 100644 index 000000000..ebf191938 Binary files /dev/null and b/bitmaps/projectiletextures/smoke_puff.png differ diff --git a/license.txt b/license.txt deleted file mode 100644 index 56f1d46e1..000000000 --- a/license.txt +++ /dev/null @@ -1 +0,0 @@ -All assets are CC BY SA except where otherwise marked (Most LUA falls under GPL, for example). \ No newline at end of file diff --git a/modinfo.lua b/modinfo.lua index 9ce2ec979..3a800d498 100644 --- a/modinfo.lua +++ b/modinfo.lua @@ -13,13 +13,14 @@ return { name='Evolution RTS -', description='EvoRTS', shortname='EvoRTS', - version='$VERSION', + version='dev', mutator='Official', game='Evolution RTS', shortGame='EvoRTS', modtype=1, depend = { - "Spring Features v1.9", + "Evolution RTS Music Addon v3", + -- "Spring Features v1.9", -- "Evolution RTS Music Addon v1", -- "Shard LuaAI $VERSION", -- "Evolution RTS Shard LuaAI $VERSION", diff --git a/sounds/acknowledgements/dothis.wav b/sounds/acknowledgements/dothis.wav new file mode 100644 index 000000000..e2ac0f66a Binary files /dev/null and b/sounds/acknowledgements/dothis.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Death 1.wav b/sounds/deathsounds/bug/Huge monster Death 1.wav new file mode 100644 index 000000000..6dfcb4a9b Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Death 1.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Death 2.wav b/sounds/deathsounds/bug/Huge monster Death 2.wav new file mode 100644 index 000000000..a0b2d6797 Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Death 2.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 1.wav b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 1.wav new file mode 100644 index 000000000..9f28afec5 Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 1.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 2.wav b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 2.wav new file mode 100644 index 000000000..fde421881 Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 2.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 3.wav b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 3.wav new file mode 100644 index 000000000..2eba3c5ea Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 3.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 4.wav b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 4.wav new file mode 100644 index 000000000..d2a131537 Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 4.wav differ diff --git a/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 5.wav b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 5.wav new file mode 100644 index 000000000..087f97da0 Binary files /dev/null and b/sounds/deathsounds/bug/Huge monster Grunt (Gets hit) 5.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Death 1.wav b/sounds/deathsounds/bug/Medium monster Death 1.wav new file mode 100644 index 000000000..e7b0a019e Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Death 1.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Death 2.wav b/sounds/deathsounds/bug/Medium monster Death 2.wav new file mode 100644 index 000000000..454f18be6 Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Death 2.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 1.wav b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 1.wav new file mode 100644 index 000000000..73b9cfd5b Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 1.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 2.wav b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 2.wav new file mode 100644 index 000000000..8f8c1727d Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 2.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 3.wav b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 3.wav new file mode 100644 index 000000000..05c520bea Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 3.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 4.wav b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 4.wav new file mode 100644 index 000000000..e32629e6b Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 4.wav differ diff --git a/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 5.wav b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 5.wav new file mode 100644 index 000000000..d7e9dc964 Binary files /dev/null and b/sounds/deathsounds/bug/Medium monster Grunt (Gets hit) 5.wav differ diff --git a/sounds/deathsounds/bug/Small monster Death 1.wav b/sounds/deathsounds/bug/Small monster Death 1.wav new file mode 100644 index 000000000..91d8b8307 Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Death 1.wav differ diff --git a/sounds/deathsounds/bug/Small monster Death 2.wav b/sounds/deathsounds/bug/Small monster Death 2.wav new file mode 100644 index 000000000..c895b305e Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Death 2.wav differ diff --git a/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 1.wav b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 1.wav new file mode 100644 index 000000000..9bb7088f1 Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 1.wav differ diff --git a/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 2.wav b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 2.wav new file mode 100644 index 000000000..3e05c4bfa Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 2.wav differ diff --git a/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 3.wav b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 3.wav new file mode 100644 index 000000000..79745d353 Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 3.wav differ diff --git a/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 4.wav b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 4.wav new file mode 100644 index 000000000..bd8e18236 Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 4.wav differ diff --git a/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 5.wav b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 5.wav new file mode 100644 index 000000000..fa575ca1b Binary files /dev/null and b/sounds/deathsounds/bug/Small monster Grunt (Gets hit) 5.wav differ diff --git a/sounds/deathsounds/bug/large monster Death 1.wav b/sounds/deathsounds/bug/large monster Death 1.wav new file mode 100644 index 000000000..0bffbb517 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Death 1.wav differ diff --git a/sounds/deathsounds/bug/large monster Death 2.wav b/sounds/deathsounds/bug/large monster Death 2.wav new file mode 100644 index 000000000..9a69fdf42 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Death 2.wav differ diff --git a/sounds/deathsounds/bug/large monster Grunt (Gets hit) 1.wav b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 1.wav new file mode 100644 index 000000000..3bebfcb51 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 1.wav differ diff --git a/sounds/deathsounds/bug/large monster Grunt (Gets hit) 2.wav b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 2.wav new file mode 100644 index 000000000..4d2f80d46 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 2.wav differ diff --git a/sounds/deathsounds/bug/large monster Grunt (Gets hit) 3.wav b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 3.wav new file mode 100644 index 000000000..918ece451 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 3.wav differ diff --git a/sounds/deathsounds/bug/large monster Grunt (Gets hit) 4.wav b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 4.wav new file mode 100644 index 000000000..3a35c9750 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 4.wav differ diff --git a/sounds/deathsounds/bug/large monster Grunt (Gets hit) 5.wav b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 5.wav new file mode 100644 index 000000000..a5c13e051 Binary files /dev/null and b/sounds/deathsounds/bug/large monster Grunt (Gets hit) 5.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 1.wav b/sounds/deathsounds/bugqueen/DEATH 1.wav new file mode 100644 index 000000000..d533a9c3b Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 1.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 10.wav b/sounds/deathsounds/bugqueen/DEATH 10.wav new file mode 100644 index 000000000..35b0a683c Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 10.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 2.wav b/sounds/deathsounds/bugqueen/DEATH 2.wav new file mode 100644 index 000000000..6794993c9 Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 2.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 3.wav b/sounds/deathsounds/bugqueen/DEATH 3.wav new file mode 100644 index 000000000..9b7911547 Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 3.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 4.wav b/sounds/deathsounds/bugqueen/DEATH 4.wav new file mode 100644 index 000000000..5eee4fd92 Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 4.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 5.wav b/sounds/deathsounds/bugqueen/DEATH 5.wav new file mode 100644 index 000000000..450c67e4d Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 5.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 6.wav b/sounds/deathsounds/bugqueen/DEATH 6.wav new file mode 100644 index 000000000..15a8f108a Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 6.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 7.wav b/sounds/deathsounds/bugqueen/DEATH 7.wav new file mode 100644 index 000000000..8fe5e5944 Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 7.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 8.wav b/sounds/deathsounds/bugqueen/DEATH 8.wav new file mode 100644 index 000000000..676977bbd Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 8.wav differ diff --git a/sounds/deathsounds/bugqueen/DEATH 9.wav b/sounds/deathsounds/bugqueen/DEATH 9.wav new file mode 100644 index 000000000..366d9ca5b Binary files /dev/null and b/sounds/deathsounds/bugqueen/DEATH 9.wav differ diff --git a/sounds/deathsounds/generic/Explosion Barrel_01.wav b/sounds/deathsounds/generic/Explosion Barrel_01.wav new file mode 100644 index 000000000..f0500f521 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Barrel_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion C4_01.wav b/sounds/deathsounds/generic/Explosion C4_01.wav new file mode 100644 index 000000000..a9665b159 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion C4_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion C4_02.wav b/sounds/deathsounds/generic/Explosion C4_02.wav new file mode 100644 index 000000000..3d7899ca6 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion C4_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Car_01.wav b/sounds/deathsounds/generic/Explosion Car_01.wav new file mode 100644 index 000000000..23fffc0e4 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Car_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Car_02.wav b/sounds/deathsounds/generic/Explosion Car_02.wav new file mode 100644 index 000000000..c88996a86 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Car_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Car_03.wav b/sounds/deathsounds/generic/Explosion Car_03.wav new file mode 100644 index 000000000..aff4750bb Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Car_03.wav differ diff --git a/sounds/deathsounds/generic/Explosion Car_04.wav b/sounds/deathsounds/generic/Explosion Car_04.wav new file mode 100644 index 000000000..160154cf8 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Car_04.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_01.wav b/sounds/deathsounds/generic/Explosion Classic_01.wav new file mode 100644 index 000000000..ae54a53fe Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_02.wav b/sounds/deathsounds/generic/Explosion Classic_02.wav new file mode 100644 index 000000000..e1c2299ad Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_03.wav b/sounds/deathsounds/generic/Explosion Classic_03.wav new file mode 100644 index 000000000..e42340694 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_03.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_04.wav b/sounds/deathsounds/generic/Explosion Classic_04.wav new file mode 100644 index 000000000..072936a33 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_04.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_05.wav b/sounds/deathsounds/generic/Explosion Classic_05.wav new file mode 100644 index 000000000..48565804b Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_05.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_06.wav b/sounds/deathsounds/generic/Explosion Classic_06.wav new file mode 100644 index 000000000..ce3d61149 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_06.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_07.wav b/sounds/deathsounds/generic/Explosion Classic_07.wav new file mode 100644 index 000000000..526a06686 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_07.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_08.wav b/sounds/deathsounds/generic/Explosion Classic_08.wav new file mode 100644 index 000000000..d1047cd14 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_08.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_09.wav b/sounds/deathsounds/generic/Explosion Classic_09.wav new file mode 100644 index 000000000..34919088d Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_09.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_10.wav b/sounds/deathsounds/generic/Explosion Classic_10.wav new file mode 100644 index 000000000..120d19481 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_10.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_11.wav b/sounds/deathsounds/generic/Explosion Classic_11.wav new file mode 100644 index 000000000..e81e9e338 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_11.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_12.wav b/sounds/deathsounds/generic/Explosion Classic_12.wav new file mode 100644 index 000000000..4dbdff109 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_12.wav differ diff --git a/sounds/deathsounds/generic/Explosion Classic_13.wav b/sounds/deathsounds/generic/Explosion Classic_13.wav new file mode 100644 index 000000000..5c892f077 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Classic_13.wav differ diff --git a/sounds/deathsounds/generic/Explosion Fireworks_01.wav b/sounds/deathsounds/generic/Explosion Fireworks_01.wav new file mode 100644 index 000000000..25d275c02 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Fireworks_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Fireworks_02.wav b/sounds/deathsounds/generic/Explosion Fireworks_02.wav new file mode 100644 index 000000000..5064a497e Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Fireworks_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_01.wav b/sounds/deathsounds/generic/Explosion Flesh_01.wav new file mode 100644 index 000000000..a898e68b2 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_02.wav b/sounds/deathsounds/generic/Explosion Flesh_02.wav new file mode 100644 index 000000000..456451911 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_03.wav b/sounds/deathsounds/generic/Explosion Flesh_03.wav new file mode 100644 index 000000000..7e57f7834 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_03.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_04.wav b/sounds/deathsounds/generic/Explosion Flesh_04.wav new file mode 100644 index 000000000..eccb5b331 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_04.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_05.wav b/sounds/deathsounds/generic/Explosion Flesh_05.wav new file mode 100644 index 000000000..3bf89b3d0 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_05.wav differ diff --git a/sounds/deathsounds/generic/Explosion Flesh_06.wav b/sounds/deathsounds/generic/Explosion Flesh_06.wav new file mode 100644 index 000000000..39d338daa Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Flesh_06.wav differ diff --git a/sounds/deathsounds/generic/Explosion Gas_01.wav b/sounds/deathsounds/generic/Explosion Gas_01.wav new file mode 100644 index 000000000..503c4c6c9 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Gas_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Gas_02.wav b/sounds/deathsounds/generic/Explosion Gas_02.wav new file mode 100644 index 000000000..54e61d506 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Gas_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Glass_01.wav b/sounds/deathsounds/generic/Explosion Glass_01.wav new file mode 100644 index 000000000..294297713 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Glass_01.wav differ diff --git a/sounds/deathsounds/generic/Explosion Glass_02.wav b/sounds/deathsounds/generic/Explosion Glass_02.wav new file mode 100644 index 000000000..d5dcf11c6 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Glass_02.wav differ diff --git a/sounds/deathsounds/generic/Explosion Glass_03.wav b/sounds/deathsounds/generic/Explosion Glass_03.wav new file mode 100644 index 000000000..fbd984a86 Binary files /dev/null and b/sounds/deathsounds/generic/Explosion Glass_03.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_01.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_01.wav new file mode 100644 index 000000000..9779c5a92 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_01.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_02.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_02.wav new file mode 100644 index 000000000..75d9d79c0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_02.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_03.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_03.wav new file mode 100644 index 000000000..93b4af5bb Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_03.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_04.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_04.wav new file mode 100644 index 000000000..4a32d746b Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_04.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_05.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_05.wav new file mode 100644 index 000000000..f6c2b151f Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_05.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_06.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_06.wav new file mode 100644 index 000000000..1bb9ee1de Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_06.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_07.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_07.wav new file mode 100644 index 000000000..f463ac490 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_07.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_08.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_08.wav new file mode 100644 index 000000000..0a8be7f51 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_08.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_09.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_09.wav new file mode 100644 index 000000000..a467d8c1d Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_09.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_10.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_10.wav new file mode 100644 index 000000000..b6c0afb42 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_10.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_11.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_11.wav new file mode 100644 index 000000000..b88b82179 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_11.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_12.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_12.wav new file mode 100644 index 000000000..ca1597ce0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_12.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_13.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_13.wav new file mode 100644 index 000000000..fd09f3ad8 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_13.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_14.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_14.wav new file mode 100644 index 000000000..85c9d6248 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_14.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_15.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_15.wav new file mode 100644 index 000000000..537451e78 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_15.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_16.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_16.wav new file mode 100644 index 000000000..1611a1fb3 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_16.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_17.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_17.wav new file mode 100644 index 000000000..fb873b229 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_17.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_18.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_18.wav new file mode 100644 index 000000000..e8d8860ad Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_18.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_19.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_19.wav new file mode 100644 index 000000000..7a73a9280 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_19.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_20.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_20.wav new file mode 100644 index 000000000..03db3df8d Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_20.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_21.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_21.wav new file mode 100644 index 000000000..b828126bf Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_21.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_22.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_22.wav new file mode 100644 index 000000000..cde9c2088 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_22.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_23.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_23.wav new file mode 100644 index 000000000..0bae15651 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_23.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_24.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_24.wav new file mode 100644 index 000000000..44d02bfce Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_24.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_25.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_25.wav new file mode 100644 index 000000000..08605716d Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_25.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_26.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_26.wav new file mode 100644 index 000000000..8441a5c6a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_26.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_27.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_27.wav new file mode 100644 index 000000000..ce386ba20 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_27.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_28.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_28.wav new file mode 100644 index 000000000..41b870f01 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_CloseExplosion_28.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_01.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_01.wav new file mode 100644 index 000000000..ee2b144e4 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_01.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_02.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_02.wav new file mode 100644 index 000000000..52d996d66 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_02.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_03.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_03.wav new file mode 100644 index 000000000..9d9ef7661 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_03.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_04.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_04.wav new file mode 100644 index 000000000..18e808e18 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_04.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_05.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_05.wav new file mode 100644 index 000000000..3c7296219 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_05.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_06.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_06.wav new file mode 100644 index 000000000..aebfeba9a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_06.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_07.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_07.wav new file mode 100644 index 000000000..0a6011455 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_07.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_08.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_08.wav new file mode 100644 index 000000000..46028dcdf Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_08.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_09.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_09.wav new file mode 100644 index 000000000..e77c108c2 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_09.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_10.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_10.wav new file mode 100644 index 000000000..4d6d8a762 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_10.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_11.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_11.wav new file mode 100644 index 000000000..ba177ae38 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_11.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_12.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_12.wav new file mode 100644 index 000000000..726bdba0a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_12.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_13.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_13.wav new file mode 100644 index 000000000..91ab5add9 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_13.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_14.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_14.wav new file mode 100644 index 000000000..6b2896d98 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_14.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_15.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_15.wav new file mode 100644 index 000000000..172d27c0a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_15.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_16.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_16.wav new file mode 100644 index 000000000..6adfb121d Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_16.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_17.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_17.wav new file mode 100644 index 000000000..29ce9b40e Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_17.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_18.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_18.wav new file mode 100644 index 000000000..e4d405ed0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_18.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_19.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_19.wav new file mode 100644 index 000000000..994ffb867 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_19.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_20.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_20.wav new file mode 100644 index 000000000..044fc9742 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_20.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_21.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_21.wav new file mode 100644 index 000000000..6838ba8ed Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_21.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_22.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_22.wav new file mode 100644 index 000000000..9b65c25a0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_22.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_23.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_23.wav new file mode 100644 index 000000000..4f4da3a92 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_23.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_24.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_24.wav new file mode 100644 index 000000000..6f19d169f Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_24.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_25.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_25.wav new file mode 100644 index 000000000..4c4d92fbf Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_25.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_26.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_26.wav new file mode 100644 index 000000000..a6c6f008a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_26.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_27.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_27.wav new file mode 100644 index 000000000..a6933c493 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_27.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_28.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_28.wav new file mode 100644 index 000000000..50b59fd48 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_DistantExplosion_28.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_01.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_01.wav new file mode 100644 index 000000000..4f7fa33ec Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_01.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_02.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_02.wav new file mode 100644 index 000000000..45970742c Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_02.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_03.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_03.wav new file mode 100644 index 000000000..6c50e1ae4 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_03.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_04.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_04.wav new file mode 100644 index 000000000..ec74f6965 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_04.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_05.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_05.wav new file mode 100644 index 000000000..4209819d3 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_05.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_06.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_06.wav new file mode 100644 index 000000000..8ffc4da51 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_06.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_07.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_07.wav new file mode 100644 index 000000000..25095ea77 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_07.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_08.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_08.wav new file mode 100644 index 000000000..fa2d416fd Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_08.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_09.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_09.wav new file mode 100644 index 000000000..a17863862 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_09.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_10.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_10.wav new file mode 100644 index 000000000..ba07c608a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_10.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_11.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_11.wav new file mode 100644 index 000000000..107a5fc1c Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_11.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_12.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_12.wav new file mode 100644 index 000000000..f00d12d26 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_12.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_13.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_13.wav new file mode 100644 index 000000000..6e7125935 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_13.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_14.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_14.wav new file mode 100644 index 000000000..485892f11 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_14.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_15.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_15.wav new file mode 100644 index 000000000..5a0ba3927 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_15.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_16.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_16.wav new file mode 100644 index 000000000..d7b2036cb Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_16.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_17.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_17.wav new file mode 100644 index 000000000..4e39c89b0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_17.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_18.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_18.wav new file mode 100644 index 000000000..8050d98a0 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_18.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_19.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_19.wav new file mode 100644 index 000000000..15bcb0a31 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_19.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_20.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_20.wav new file mode 100644 index 000000000..3d0a8de19 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_20.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_21.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_21.wav new file mode 100644 index 000000000..449709519 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_21.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_22.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_22.wav new file mode 100644 index 000000000..a7af8923c Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_22.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_23.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_23.wav new file mode 100644 index 000000000..406fd101e Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_23.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_24.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_24.wav new file mode 100644 index 000000000..fb9887c40 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_24.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_25.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_25.wav new file mode 100644 index 000000000..7a98b901a Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_25.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_26.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_26.wav new file mode 100644 index 000000000..b0fb9f493 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_26.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_27.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_27.wav new file mode 100644 index 000000000..1127a3ce4 Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_27.wav differ diff --git a/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_28.wav b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_28.wav new file mode 100644 index 000000000..76898400b Binary files /dev/null and b/sounds/deathsounds/generic/TomWinandySFX_Explosions Volume I_MediumExplosion_28.wav differ diff --git a/sounds/unitselections/amphibselect.wav b/sounds/unitselections/amphibselect.wav new file mode 100644 index 000000000..42aa31a06 Binary files /dev/null and b/sounds/unitselections/amphibselect.wav differ diff --git a/sounds/unitselections/engineidle.wav b/sounds/unitselections/engineidle.wav new file mode 100644 index 000000000..2dedf9ccf Binary files /dev/null and b/sounds/unitselections/engineidle.wav differ diff --git a/sounds/unitselections/enginestart.wav b/sounds/unitselections/enginestart.wav new file mode 100644 index 000000000..c7096928c Binary files /dev/null and b/sounds/unitselections/enginestart.wav differ diff --git a/sounds/voice/scavengers/BotrailcannonDetected.wav b/sounds/voice/scavengers/BotrailcannonDetected.wav new file mode 100644 index 000000000..7280a6c38 Binary files /dev/null and b/sounds/voice/scavengers/BotrailcannonDetected.wav differ diff --git a/sounds/voice/scavengers/DemonDetected.wav b/sounds/voice/scavengers/DemonDetected.wav new file mode 100644 index 000000000..2b0fb97fe Binary files /dev/null and b/sounds/voice/scavengers/DemonDetected.wav differ diff --git a/sounds/voice/scavengers/EpicDragonDetected.wav b/sounds/voice/scavengers/EpicDragonDetected.wav new file mode 100644 index 000000000..518304b9e Binary files /dev/null and b/sounds/voice/scavengers/EpicDragonDetected.wav differ diff --git a/sounds/voice/scavengers/EpicGruntDetected.wav b/sounds/voice/scavengers/EpicGruntDetected.wav new file mode 100644 index 000000000..48f50f2d6 Binary files /dev/null and b/sounds/voice/scavengers/EpicGruntDetected.wav differ diff --git a/sounds/voice/scavengers/EpicPawnDetected.wav b/sounds/voice/scavengers/EpicPawnDetected.wav new file mode 100644 index 000000000..9177aab12 Binary files /dev/null and b/sounds/voice/scavengers/EpicPawnDetected.wav differ diff --git a/sounds/voice/scavengers/EpicTzarDetected.wav b/sounds/voice/scavengers/EpicTzarDetected.wav new file mode 100644 index 000000000..d4e6d4fdd Binary files /dev/null and b/sounds/voice/scavengers/EpicTzarDetected.wav differ diff --git a/sounds/voice/scavengers/RatteDetected.wav b/sounds/voice/scavengers/RatteDetected.wav new file mode 100644 index 000000000..6ecbf8a21 Binary files /dev/null and b/sounds/voice/scavengers/RatteDetected.wav differ diff --git a/sounds/voice/scavengers/SuperKrogDetected.wav b/sounds/voice/scavengers/SuperKrogDetected.wav new file mode 100644 index 000000000..a615f3069 Binary files /dev/null and b/sounds/voice/scavengers/SuperKrogDetected.wav differ diff --git a/sounds/voice/scavengers/SuperKrowDetected.wav b/sounds/voice/scavengers/SuperKrowDetected.wav new file mode 100644 index 000000000..fbc1ad99f Binary files /dev/null and b/sounds/voice/scavengers/SuperKrowDetected.wav differ diff --git a/sounds/voice/scavengers/SuperPeeWeeDetected.wav b/sounds/voice/scavengers/SuperPeeWeeDetected.wav new file mode 100644 index 000000000..3a44c0fd1 Binary files /dev/null and b/sounds/voice/scavengers/SuperPeeWeeDetected.wav differ diff --git a/sounds/voice/scavengers/SuperStumpyDetected.wav b/sounds/voice/scavengers/SuperStumpyDetected.wav new file mode 100644 index 000000000..df9448f29 Binary files /dev/null and b/sounds/voice/scavengers/SuperStumpyDetected.wav differ diff --git a/sounds/voice/scavengers/additionalforcesjoining.wav b/sounds/voice/scavengers/additionalforcesjoining.wav new file mode 100644 index 000000000..ee5e86b2a Binary files /dev/null and b/sounds/voice/scavengers/additionalforcesjoining.wav differ diff --git a/sounds/voice/scavengers/additionalunitsdropping.wav b/sounds/voice/scavengers/additionalunitsdropping.wav new file mode 100644 index 000000000..4a7b100e5 Binary files /dev/null and b/sounds/voice/scavengers/additionalunitsdropping.wav differ diff --git a/sounds/voice/scavengers/classifiedAsScavengers.wav b/sounds/voice/scavengers/classifiedAsScavengers.wav new file mode 100644 index 000000000..5a5bc6f4b Binary files /dev/null and b/sounds/voice/scavengers/classifiedAsScavengers.wav differ diff --git a/sounds/voice/scavengers/droppingUnits.wav b/sounds/voice/scavengers/droppingUnits.wav new file mode 100644 index 000000000..a5e897a81 Binary files /dev/null and b/sounds/voice/scavengers/droppingUnits.wav differ diff --git a/sounds/voice/scavengers/droppodsDetectedInArea.wav b/sounds/voice/scavengers/droppodsDetectedInArea.wav new file mode 100644 index 000000000..05bfb0aba Binary files /dev/null and b/sounds/voice/scavengers/droppodsDetectedInArea.wav differ diff --git a/sounds/voice/scavengers/droppodsDetectedNearby.wav b/sounds/voice/scavengers/droppodsDetectedNearby.wav new file mode 100644 index 000000000..13f42627c Binary files /dev/null and b/sounds/voice/scavengers/droppodsDetectedNearby.wav differ diff --git a/sounds/voice/scavengers/newunitsdropshipped.wav b/sounds/voice/scavengers/newunitsdropshipped.wav new file mode 100644 index 000000000..48896d74e Binary files /dev/null and b/sounds/voice/scavengers/newunitsdropshipped.wav differ diff --git a/sounds/voice/scavengers/reinforcementshavearrived.wav b/sounds/voice/scavengers/reinforcementshavearrived.wav new file mode 100644 index 000000000..8276a92a7 Binary files /dev/null and b/sounds/voice/scavengers/reinforcementshavearrived.wav differ diff --git a/sounds/voice/scavengers/scav-event-airtransport.wav b/sounds/voice/scavengers/scav-event-airtransport.wav new file mode 100644 index 000000000..2b9ab1454 Binary files /dev/null and b/sounds/voice/scavengers/scav-event-airtransport.wav differ diff --git a/sounds/voice/scavengers/scav-event-cloud.wav b/sounds/voice/scavengers/scav-event-cloud.wav new file mode 100644 index 000000000..3b69354a4 Binary files /dev/null and b/sounds/voice/scavengers/scav-event-cloud.wav differ diff --git a/sounds/voice/scavengers/scav-event-malfunctions.wav b/sounds/voice/scavengers/scav-event-malfunctions.wav new file mode 100644 index 000000000..bf2727a14 Binary files /dev/null and b/sounds/voice/scavengers/scav-event-malfunctions.wav differ diff --git a/sounds/voice/scavengers/scav-event-miniboss.wav b/sounds/voice/scavengers/scav-event-miniboss.wav new file mode 100644 index 000000000..c2ee7e2bd Binary files /dev/null and b/sounds/voice/scavengers/scav-event-miniboss.wav differ diff --git a/sounds/voice/scavengers/scav-event-paralysis.wav b/sounds/voice/scavengers/scav-event-paralysis.wav new file mode 100644 index 000000000..0d5dee64b Binary files /dev/null and b/sounds/voice/scavengers/scav-event-paralysis.wav differ diff --git a/sounds/voice/scavengers/scav-event-rebellion.wav b/sounds/voice/scavengers/scav-event-rebellion.wav new file mode 100644 index 000000000..e6a31410d Binary files /dev/null and b/sounds/voice/scavengers/scav-event-rebellion.wav differ diff --git a/sounds/voice/scavengers/scav-event-swarmdetected.wav b/sounds/voice/scavengers/scav-event-swarmdetected.wav new file mode 100644 index 000000000..a751893e0 Binary files /dev/null and b/sounds/voice/scavengers/scav-event-swarmdetected.wav differ diff --git a/sounds/voice/scavengers/scavShutdownDetected.wav b/sounds/voice/scavengers/scavShutdownDetected.wav new file mode 100644 index 000000000..ecd4d51c3 Binary files /dev/null and b/sounds/voice/scavengers/scavShutdownDetected.wav differ diff --git a/sounds/voice/scavengers/scavadditionalcomdetected.wav b/sounds/voice/scavengers/scavadditionalcomdetected.wav new file mode 100644 index 000000000..7df5be596 Binary files /dev/null and b/sounds/voice/scavengers/scavadditionalcomdetected.wav differ diff --git a/sounds/voice/scavengers/scavanotherscavcomdetected.wav b/sounds/voice/scavengers/scavanotherscavcomdetected.wav new file mode 100644 index 000000000..49e962d02 Binary files /dev/null and b/sounds/voice/scavengers/scavanotherscavcomdetected.wav differ diff --git a/sounds/voice/scavengers/scavbossdetected.wav b/sounds/voice/scavengers/scavbossdetected.wav new file mode 100644 index 000000000..3456257d6 Binary files /dev/null and b/sounds/voice/scavengers/scavbossdetected.wav differ diff --git a/sounds/voice/scavengers/scavcomdetected.wav b/sounds/voice/scavengers/scavcomdetected.wav new file mode 100644 index 000000000..6df3c7178 Binary files /dev/null and b/sounds/voice/scavengers/scavcomdetected.wav differ diff --git a/sounds/voice/scavengers/scavcomnewdetect.wav b/sounds/voice/scavengers/scavcomnewdetect.wav new file mode 100644 index 000000000..f10dccb48 Binary files /dev/null and b/sounds/voice/scavengers/scavcomnewdetect.wav differ diff --git a/sounds/voice/scavengers/scavcomspotted.wav b/sounds/voice/scavengers/scavcomspotted.wav new file mode 100644 index 000000000..241808e58 Binary files /dev/null and b/sounds/voice/scavengers/scavcomspotted.wav differ diff --git a/sounds/voice/scavengers/scavdrop.wav b/sounds/voice/scavengers/scavdrop.wav new file mode 100644 index 000000000..d60eec7aa Binary files /dev/null and b/sounds/voice/scavengers/scavdrop.wav differ diff --git a/sounds/voice/scavengers/scavdroplootspawn.wav b/sounds/voice/scavengers/scavdroplootspawn.wav new file mode 100644 index 000000000..827847ccf Binary files /dev/null and b/sounds/voice/scavengers/scavdroplootspawn.wav differ diff --git a/sounds/voice/scavengers/scavdropspawn.wav b/sounds/voice/scavengers/scavdropspawn.wav new file mode 100644 index 000000000..a1dcf5dd5 Binary files /dev/null and b/sounds/voice/scavengers/scavdropspawn.wav differ diff --git a/sounds/voice/scavengers/scavdropspawnbeacon.wav b/sounds/voice/scavengers/scavdropspawnbeacon.wav new file mode 100644 index 000000000..5ca7e7ab0 Binary files /dev/null and b/sounds/voice/scavengers/scavdropspawnbeacon.wav differ diff --git a/sounds/voice/scavengers/scavdropspawnprinter.wav b/sounds/voice/scavengers/scavdropspawnprinter.wav new file mode 100644 index 000000000..1ab70c6ec Binary files /dev/null and b/sounds/voice/scavengers/scavdropspawnprinter.wav differ diff --git a/sounds/voice/scavengers/scavfinal01remain.wav b/sounds/voice/scavengers/scavfinal01remain.wav new file mode 100644 index 000000000..b5f224957 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal01remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal02remain.wav b/sounds/voice/scavengers/scavfinal02remain.wav new file mode 100644 index 000000000..e348dc0e0 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal02remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal03remain.wav b/sounds/voice/scavengers/scavfinal03remain.wav new file mode 100644 index 000000000..e30629230 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal03remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal04remain.wav b/sounds/voice/scavengers/scavfinal04remain.wav new file mode 100644 index 000000000..028f4166d Binary files /dev/null and b/sounds/voice/scavengers/scavfinal04remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal05remain.wav b/sounds/voice/scavengers/scavfinal05remain.wav new file mode 100644 index 000000000..b8c3e02f8 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal05remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal06remain.wav b/sounds/voice/scavengers/scavfinal06remain.wav new file mode 100644 index 000000000..3316c899c Binary files /dev/null and b/sounds/voice/scavengers/scavfinal06remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal07remain.wav b/sounds/voice/scavengers/scavfinal07remain.wav new file mode 100644 index 000000000..5aa1883e4 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal07remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal08remain.wav b/sounds/voice/scavengers/scavfinal08remain.wav new file mode 100644 index 000000000..667400062 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal08remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal09remain.wav b/sounds/voice/scavengers/scavfinal09remain.wav new file mode 100644 index 000000000..f59cadf6a Binary files /dev/null and b/sounds/voice/scavengers/scavfinal09remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal10remain.wav b/sounds/voice/scavengers/scavfinal10remain.wav new file mode 100644 index 000000000..457d87ac1 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal10remain.wav differ diff --git a/sounds/voice/scavengers/scavfinal12remain.wav b/sounds/voice/scavengers/scavfinal12remain.wav new file mode 100644 index 000000000..dd1d3f118 Binary files /dev/null and b/sounds/voice/scavengers/scavfinal12remain.wav differ diff --git a/sounds/voice/scavengers/scavfinalattack.wav b/sounds/voice/scavengers/scavfinalattack.wav new file mode 100644 index 000000000..f79cdfa25 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalattack.wav differ diff --git a/sounds/voice/scavengers/scavfinalboss.wav b/sounds/voice/scavengers/scavfinalboss.wav new file mode 100644 index 000000000..415ba5545 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalboss.wav differ diff --git a/sounds/voice/scavengers/scavfinalcountdown.wav b/sounds/voice/scavengers/scavfinalcountdown.wav new file mode 100644 index 000000000..c9b5a79c9 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalcountdown.wav differ diff --git a/sounds/voice/scavengers/scavfinalretreating.wav b/sounds/voice/scavengers/scavfinalretreating.wav new file mode 100644 index 000000000..32c8af636 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalretreating.wav differ diff --git a/sounds/voice/scavengers/scavfinalretreatingyes.wav b/sounds/voice/scavengers/scavfinalretreatingyes.wav new file mode 100644 index 000000000..4c5464ca8 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalretreatingyes.wav differ diff --git a/sounds/voice/scavengers/scavfinalsurvive10min.wav b/sounds/voice/scavengers/scavfinalsurvive10min.wav new file mode 100644 index 000000000..cf64a2578 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalsurvive10min.wav differ diff --git a/sounds/voice/scavengers/scavfinalsurvive15min.wav b/sounds/voice/scavengers/scavfinalsurvive15min.wav new file mode 100644 index 000000000..c8775147b Binary files /dev/null and b/sounds/voice/scavengers/scavfinalsurvive15min.wav differ diff --git a/sounds/voice/scavengers/scavfinalvictory.wav b/sounds/voice/scavengers/scavfinalvictory.wav new file mode 100644 index 000000000..e379716d5 Binary files /dev/null and b/sounds/voice/scavengers/scavfinalvictory.wav differ diff --git a/sounds/voice/scavengers/scavheavyairdetected.wav b/sounds/voice/scavengers/scavheavyairdetected.wav new file mode 100644 index 000000000..bf98ad595 Binary files /dev/null and b/sounds/voice/scavengers/scavheavyairdetected.wav differ diff --git a/sounds/voice/scavengers/scavheavyshipsdetected.wav b/sounds/voice/scavengers/scavheavyshipsdetected.wav new file mode 100644 index 000000000..8d6faa23a Binary files /dev/null and b/sounds/voice/scavengers/scavheavyshipsdetected.wav differ diff --git a/sounds/voice/scavengers/scavlootdrop.wav b/sounds/voice/scavengers/scavlootdrop.wav new file mode 100644 index 000000000..7178aa371 Binary files /dev/null and b/sounds/voice/scavengers/scavlootdrop.wav differ diff --git a/sounds/voice/scavengers/scavnewcomentered.wav b/sounds/voice/scavengers/scavnewcomentered.wav new file mode 100644 index 000000000..f733c7f93 Binary files /dev/null and b/sounds/voice/scavengers/scavnewcomentered.wav differ diff --git a/sounds/voice/scavengers/scavpreparingfinalattack.wav b/sounds/voice/scavengers/scavpreparingfinalattack.wav new file mode 100644 index 000000000..e7be7a320 Binary files /dev/null and b/sounds/voice/scavengers/scavpreparingfinalattack.wav differ diff --git a/sounds/voice/scavengers/scavspawn.wav b/sounds/voice/scavengers/scavspawn.wav new file mode 100644 index 000000000..a1a91b79a Binary files /dev/null and b/sounds/voice/scavengers/scavspawn.wav differ diff --git a/sounds/voice/scavengers/scavtech3.wav b/sounds/voice/scavengers/scavtech3.wav new file mode 100644 index 000000000..c5cb2af95 Binary files /dev/null and b/sounds/voice/scavengers/scavtech3.wav differ diff --git a/sounds/voice/scavengers/scavtech3b.wav b/sounds/voice/scavengers/scavtech3b.wav new file mode 100644 index 000000000..6fd5c2a7c Binary files /dev/null and b/sounds/voice/scavengers/scavtech3b.wav differ diff --git a/sounds/voice/scavengers/scavtech3c.wav b/sounds/voice/scavengers/scavtech3c.wav new file mode 100644 index 000000000..9dd699313 Binary files /dev/null and b/sounds/voice/scavengers/scavtech3c.wav differ diff --git a/sounds/voice/scavengers/scavtech3d.wav b/sounds/voice/scavengers/scavtech3d.wav new file mode 100644 index 000000000..c493e4a63 Binary files /dev/null and b/sounds/voice/scavengers/scavtech3d.wav differ diff --git a/sounds/voice/scavengers/scavtech3e.wav b/sounds/voice/scavengers/scavtech3e.wav new file mode 100644 index 000000000..c981538b8 Binary files /dev/null and b/sounds/voice/scavengers/scavtech3e.wav differ diff --git a/sounds/voice/scavengers/unidentifiedObjectsDetected.wav b/sounds/voice/scavengers/unidentifiedObjectsDetected.wav new file mode 100644 index 000000000..502721fd6 Binary files /dev/null and b/sounds/voice/scavengers/unidentifiedObjectsDetected.wav differ diff --git a/sounds/voice/scavengers/waitingForIntel.wav b/sounds/voice/scavengers/waitingForIntel.wav new file mode 100644 index 000000000..39c6f7b4d Binary files /dev/null and b/sounds/voice/scavengers/waitingForIntel.wav differ diff --git a/sounds/voice/scavengers/warning.wav b/sounds/voice/scavengers/warning.wav new file mode 100644 index 000000000..6b161dc9b Binary files /dev/null and b/sounds/voice/scavengers/warning.wav differ diff --git a/sounds/weapons/Assault Rifle Shot_05.wav b/sounds/weapons/Assault Rifle Shot_05.wav new file mode 100644 index 000000000..ad4d46315 Binary files /dev/null and b/sounds/weapons/Assault Rifle Shot_05.wav differ diff --git a/sounds/weapons/Machine Gun Shot_05.wav b/sounds/weapons/Machine Gun Shot_05.wav new file mode 100644 index 000000000..ff9c53f0b Binary files /dev/null and b/sounds/weapons/Machine Gun Shot_05.wav differ diff --git a/sounds/weapons/Sci Fi Beam 3-short.wav b/sounds/weapons/Sci Fi Beam 3-short.wav new file mode 100644 index 000000000..90a765134 Binary files /dev/null and b/sounds/weapons/Sci Fi Beam 3-short.wav differ diff --git a/sounds/weapons/Sci Fi Beam 3.wav b/sounds/weapons/Sci Fi Beam 3.wav new file mode 100644 index 000000000..2868a0a00 Binary files /dev/null and b/sounds/weapons/Sci Fi Beam 3.wav differ diff --git a/sounds/weapons/Sci Fi Blaster 4.wav b/sounds/weapons/Sci Fi Blaster 4.wav new file mode 100644 index 000000000..cd593acd7 Binary files /dev/null and b/sounds/weapons/Sci Fi Blaster 4.wav differ diff --git a/sounds/weapons/Sci Fi Sniper 10.wav b/sounds/weapons/Sci Fi Sniper 10.wav new file mode 100644 index 000000000..5c09315e3 Binary files /dev/null and b/sounds/weapons/Sci Fi Sniper 10.wav differ diff --git a/sounds/weapons/Shotgun Boom 101.wav b/sounds/weapons/Shotgun Boom 101.wav new file mode 100644 index 000000000..de85512e9 Binary files /dev/null and b/sounds/weapons/Shotgun Boom 101.wav differ diff --git a/sounds/weapons/Shotgun Boom 102.wav b/sounds/weapons/Shotgun Boom 102.wav new file mode 100644 index 000000000..6628ddcb0 Binary files /dev/null and b/sounds/weapons/Shotgun Boom 102.wav differ diff --git a/sounds/weapons/Shotgun Boom 103.wav b/sounds/weapons/Shotgun Boom 103.wav new file mode 100644 index 000000000..81b13969f Binary files /dev/null and b/sounds/weapons/Shotgun Boom 103.wav differ diff --git a/sounds/weapons/bombdrop.wav b/sounds/weapons/bombdrop.wav new file mode 100644 index 000000000..e537d6b0a Binary files /dev/null and b/sounds/weapons/bombdrop.wav differ diff --git a/sounds/weapons/lightningstrike.wav b/sounds/weapons/lightningstrike.wav new file mode 100644 index 000000000..5d4d8377b Binary files /dev/null and b/sounds/weapons/lightningstrike.wav differ diff --git a/sounds/weapons/plasma3.wav b/sounds/weapons/plasma3.wav new file mode 100644 index 000000000..872e4297f Binary files /dev/null and b/sounds/weapons/plasma3.wav differ diff --git a/sounds/weapons/plasma3c.wav b/sounds/weapons/plasma3c.wav new file mode 100644 index 000000000..0017bdf94 Binary files /dev/null and b/sounds/weapons/plasma3c.wav differ diff --git a/sounds/weapons/shotgun-reload.wav b/sounds/weapons/shotgun-reload.wav index 89c38ccb1..26d27a9ec 100644 Binary files a/sounds/weapons/shotgun-reload.wav and b/sounds/weapons/shotgun-reload.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 1.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 1.wav new file mode 100644 index 000000000..b65561fe5 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 1.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 2.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 2.wav new file mode 100644 index 000000000..e435298eb Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 2.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 3.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 3.wav new file mode 100644 index 000000000..391a550bf Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 3.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 4.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 4.wav new file mode 100644 index 000000000..fa27ed7e7 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 4.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 5.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 5.wav new file mode 100644 index 000000000..fc31c4292 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY BREATHING FIRE/BABY BREATHING FIRE 5.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 1.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 1.wav new file mode 100644 index 000000000..580751deb Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 1.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 2.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 2.wav new file mode 100644 index 000000000..92c549a40 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 2.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 3.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 3.wav new file mode 100644 index 000000000..abd43be00 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 3.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 4.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 4.wav new file mode 100644 index 000000000..c0a151e3a Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 4.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 5.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 5.wav new file mode 100644 index 000000000..146054541 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY FOOTSTEPS/BABY FOOTSTEPS 5.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 1.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 1.wav new file mode 100644 index 000000000..1afe6f524 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 1.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 2.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 2.wav new file mode 100644 index 000000000..649395fe5 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 2.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 3.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 3.wav new file mode 100644 index 000000000..dd49a6f13 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 3.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 4.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 4.wav new file mode 100644 index 000000000..185f441c3 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 4.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 5.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 5.wav new file mode 100644 index 000000000..197acf44c Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY ROAR/BABY ROAR 5.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 1.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 1.wav new file mode 100644 index 000000000..7382ecdfd Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 1.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 2.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 2.wav new file mode 100644 index 000000000..b7a66a712 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 2.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 3.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 3.wav new file mode 100644 index 000000000..cc48551c3 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 3.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 4.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 4.wav new file mode 100644 index 000000000..6e93fd744 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 4.wav differ diff --git a/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 5.wav b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 5.wav new file mode 100644 index 000000000..7cfbcc8a0 Binary files /dev/null and b/sounds/weapons/zaal/BABY DRAGONS/BABY TAKING DAMAGE/BABY TAKING DAMAGE 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 1.wav new file mode 100644 index 000000000..de9c23d5c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 2.wav new file mode 100644 index 000000000..fa19af3f1 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 3.wav new file mode 100644 index 000000000..a402f2c0f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 4.wav new file mode 100644 index 000000000..f8e1da6d3 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 5.wav new file mode 100644 index 000000000..b7e96f940 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON AGGRO/AGGRO 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 1.wav new file mode 100644 index 000000000..c04e12191 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 10.wav new file mode 100644 index 000000000..5e46f6837 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 2.wav new file mode 100644 index 000000000..e2297ce39 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 3.wav new file mode 100644 index 000000000..27b4ffe6e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 4.wav new file mode 100644 index 000000000..44b24b4ea Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 5.wav new file mode 100644 index 000000000..a7f25b6d6 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 6.wav new file mode 100644 index 000000000..06b856eda Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 7.wav new file mode 100644 index 000000000..e42b97784 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 8.wav new file mode 100644 index 000000000..e05ec81a2 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 9.wav new file mode 100644 index 000000000..383845fc6 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ATTACKS/DRAGON ATTACKS 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 1.wav new file mode 100644 index 000000000..3d8fa8442 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 10.wav new file mode 100644 index 000000000..08cfbac1d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 2.wav new file mode 100644 index 000000000..83c4c0c14 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 3.wav new file mode 100644 index 000000000..8d8883018 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 4.wav new file mode 100644 index 000000000..c19a74ae9 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 5.wav new file mode 100644 index 000000000..cc8dae6d9 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 6.wav new file mode 100644 index 000000000..02f5cdd91 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 7.wav new file mode 100644 index 000000000..acf47fd05 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 8.wav new file mode 100644 index 000000000..db9b7b7fb Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 9.wav new file mode 100644 index 000000000..dc6fdf9bb Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BITES/DRAGON BITES 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 1.wav new file mode 100644 index 000000000..87b41415e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 10.wav new file mode 100644 index 000000000..a1adf52a1 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 11.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 11.wav new file mode 100644 index 000000000..90f4e84f7 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 11.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 12.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 12.wav new file mode 100644 index 000000000..47be900f0 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 12.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 13.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 13.wav new file mode 100644 index 000000000..b699a4f7b Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 13.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 14.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 14.wav new file mode 100644 index 000000000..364a84069 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 14.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 15.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 15.wav new file mode 100644 index 000000000..7468bf85c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 15.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 16.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 16.wav new file mode 100644 index 000000000..6aa492203 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 16.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 17.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 17.wav new file mode 100644 index 000000000..5e7f9a79f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 17.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 18.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 18.wav new file mode 100644 index 000000000..51482347d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 18.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 19.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 19.wav new file mode 100644 index 000000000..603939cb4 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 19.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 2.wav new file mode 100644 index 000000000..b58be3ddc Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 20.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 20.wav new file mode 100644 index 000000000..f211ebf0b Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 20.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 21.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 21.wav new file mode 100644 index 000000000..b8e953e54 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 21.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 22.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 22.wav new file mode 100644 index 000000000..839a796c2 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 22.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 23.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 23.wav new file mode 100644 index 000000000..5d54349ec Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 23.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 3.wav new file mode 100644 index 000000000..bb01e3001 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 4.wav new file mode 100644 index 000000000..2b2e5dac4 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 5.wav new file mode 100644 index 000000000..4d8e5746f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 6.wav new file mode 100644 index 000000000..bac77c1f5 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 7.wav new file mode 100644 index 000000000..303e5a1f4 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 8.wav new file mode 100644 index 000000000..619dacd85 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 9.wav new file mode 100644 index 000000000..2a8c3e217 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING FIRE/DRAGON BREATHING FIRE 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 1.wav new file mode 100644 index 000000000..8fa013f28 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 10.wav new file mode 100644 index 000000000..70e626b93 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 11.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 11.wav new file mode 100644 index 000000000..908d68deb Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 11.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 12.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 12.wav new file mode 100644 index 000000000..a87125e33 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 12.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 13.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 13.wav new file mode 100644 index 000000000..9d8998c1f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 13.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 14.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 14.wav new file mode 100644 index 000000000..2ff6cb658 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 14.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 15.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 15.wav new file mode 100644 index 000000000..c91c119b0 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 15.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 16.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 16.wav new file mode 100644 index 000000000..a2e44f3bd Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 16.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 17.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 17.wav new file mode 100644 index 000000000..fec021402 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 17.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 18.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 18.wav new file mode 100644 index 000000000..dc236b0c0 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 18.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 19.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 19.wav new file mode 100644 index 000000000..1d441c7fd Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 19.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 2.wav new file mode 100644 index 000000000..84450547a Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 20.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 20.wav new file mode 100644 index 000000000..cbf64fba7 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 20.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 3.wav new file mode 100644 index 000000000..6d5da92b3 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 4.wav new file mode 100644 index 000000000..fa34ccacb Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 5.wav new file mode 100644 index 000000000..a75912eda Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 6.wav new file mode 100644 index 000000000..deba0ec21 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 7.wav new file mode 100644 index 000000000..7556cb664 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 8.wav new file mode 100644 index 000000000..34bb06130 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 9.wav new file mode 100644 index 000000000..252ba0b72 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON BREATHING/BREATHING 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 1.wav new file mode 100644 index 000000000..909832d63 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 2.wav new file mode 100644 index 000000000..6410391cd Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 3.wav new file mode 100644 index 000000000..5f6ff8839 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 4.wav new file mode 100644 index 000000000..c674cb1dd Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 5.wav new file mode 100644 index 000000000..f13257aef Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON EATING/EATING 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 1.wav new file mode 100644 index 000000000..e117fa1c8 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 10.wav new file mode 100644 index 000000000..20a727207 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 11.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 11.wav new file mode 100644 index 000000000..7d312c284 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 11.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 12.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 12.wav new file mode 100644 index 000000000..ef8096c1c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 12.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 13.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 13.wav new file mode 100644 index 000000000..b613b921f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 13.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 14.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 14.wav new file mode 100644 index 000000000..4d222e386 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 14.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 15.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 15.wav new file mode 100644 index 000000000..1b8e6b314 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 15.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 16.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 16.wav new file mode 100644 index 000000000..e56d4b440 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 16.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 17.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 17.wav new file mode 100644 index 000000000..3af373d19 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 17.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 18.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 18.wav new file mode 100644 index 000000000..2f1a5019c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 18.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 19.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 19.wav new file mode 100644 index 000000000..c0a120542 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 19.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 2.wav new file mode 100644 index 000000000..3b18dc665 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 20.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 20.wav new file mode 100644 index 000000000..c7d689c36 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 20.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 3.wav new file mode 100644 index 000000000..494a64005 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 4.wav new file mode 100644 index 000000000..52cb18baf Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 5.wav new file mode 100644 index 000000000..651577240 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 6.wav new file mode 100644 index 000000000..17391f785 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 7.wav new file mode 100644 index 000000000..52e21c993 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 8.wav new file mode 100644 index 000000000..da40ddd68 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 9.wav new file mode 100644 index 000000000..4686f74a3 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON FOOTSTEPS/Footsteps 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 1.wav new file mode 100644 index 000000000..3d5c3bf9e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 2.wav new file mode 100644 index 000000000..1d09feb1e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 3.wav new file mode 100644 index 000000000..bc9459c4b Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 4.wav new file mode 100644 index 000000000..8c64761e0 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 5.wav new file mode 100644 index 000000000..872684104 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON HISSES/HISSES 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 1.wav new file mode 100644 index 000000000..8f61fd016 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 2.wav new file mode 100644 index 000000000..a8f1d82a2 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 3.wav new file mode 100644 index 000000000..e18f32d8f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 4.wav new file mode 100644 index 000000000..ce32389ae Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 5.wav new file mode 100644 index 000000000..115c818da Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON LANDING/LANDING 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 1.wav new file mode 100644 index 000000000..adf1c384d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 10.wav new file mode 100644 index 000000000..ac88531c4 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 11.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 11.wav new file mode 100644 index 000000000..6c45e92a1 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 11.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 12.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 12.wav new file mode 100644 index 000000000..6eeb6449e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 12.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 13.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 13.wav new file mode 100644 index 000000000..18f70202c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 13.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 14.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 14.wav new file mode 100644 index 000000000..022b54228 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 14.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 15.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 15.wav new file mode 100644 index 000000000..ae9307a40 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 15.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 16.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 16.wav new file mode 100644 index 000000000..3339d1098 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 16.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 17.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 17.wav new file mode 100644 index 000000000..86a81392d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 17.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 18.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 18.wav new file mode 100644 index 000000000..fffa31dea Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 18.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 19.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 19.wav new file mode 100644 index 000000000..7965ee64d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 19.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 2.wav new file mode 100644 index 000000000..061f85b82 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 20.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 20.wav new file mode 100644 index 000000000..3e63e16e5 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 20.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 3.wav new file mode 100644 index 000000000..6bedd9d6f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 4.wav new file mode 100644 index 000000000..9bc8adff5 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 5.wav new file mode 100644 index 000000000..bdcbe4744 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 6.wav new file mode 100644 index 000000000..c284870ea Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 7.wav new file mode 100644 index 000000000..3ef5ae0c2 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 8.wav new file mode 100644 index 000000000..65c90557e Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 9.wav new file mode 100644 index 000000000..107b47c13 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON ROAR/ROAR 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 1.wav new file mode 100644 index 000000000..c38bf3938 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 2.wav new file mode 100644 index 000000000..b976d9724 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 3.wav new file mode 100644 index 000000000..2d5241c2a Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 4.wav new file mode 100644 index 000000000..21b56cb2c Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 5.wav new file mode 100644 index 000000000..22af82c32 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON SCREECH/SCREECH 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 1.wav new file mode 100644 index 000000000..9f4fa095f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 10.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 10.wav new file mode 100644 index 000000000..241de9846 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 2.wav new file mode 100644 index 000000000..02992270f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 3.wav new file mode 100644 index 000000000..f5273df57 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 4.wav new file mode 100644 index 000000000..9e8bc8432 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 5.wav new file mode 100644 index 000000000..66712f94b Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 6.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 6.wav new file mode 100644 index 000000000..69b544aac Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 7.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 7.wav new file mode 100644 index 000000000..5f99f6bed Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 8.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 8.wav new file mode 100644 index 000000000..af3aad33f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 9.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 9.wav new file mode 100644 index 000000000..bc88eb3a6 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING DAMAGE/TAKING DAMAGE 9.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 1.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 1.wav new file mode 100644 index 000000000..5b195db82 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 2.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 2.wav new file mode 100644 index 000000000..9da5cb69a Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 3.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 3.wav new file mode 100644 index 000000000..4221dab95 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 4.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 4.wav new file mode 100644 index 000000000..1960a88df Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 5.wav b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 5.wav new file mode 100644 index 000000000..5fa708e65 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/DRAGON TAKING FLIGHT/TAKING FLIGHT 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 1.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 1.wav new file mode 100644 index 000000000..4a415f5cb Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 1.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 10.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 10.wav new file mode 100644 index 000000000..cc396ca82 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 10.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 2.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 2.wav new file mode 100644 index 000000000..53938d42d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 2.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 3.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 3.wav new file mode 100644 index 000000000..5c2c3136d Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 3.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 4.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 4.wav new file mode 100644 index 000000000..8ed4ea3d1 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 4.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 5.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 5.wav new file mode 100644 index 000000000..1203df050 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 5.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 6.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 6.wav new file mode 100644 index 000000000..78b10cba8 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 6.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 7.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 7.wav new file mode 100644 index 000000000..5572020d8 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 7.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 8.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 8.wav new file mode 100644 index 000000000..e87acca1f Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 8.wav differ diff --git a/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 9.wav b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 9.wav new file mode 100644 index 000000000..8866a1d99 Binary files /dev/null and b/sounds/weapons/zaal/DRAGONS/FLAPPING WINGS/FLAPPING WINGS 9.wav differ diff --git a/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 1.wav b/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 1.wav new file mode 100644 index 000000000..5c845053a Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 1.wav differ diff --git a/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 2.wav b/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 2.wav new file mode 100644 index 000000000..b7ea1f315 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Breathing/Huge monster Breathing 2.wav differ diff --git a/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 1.wav b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 1.wav new file mode 100644 index 000000000..efce8bec8 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 1.wav differ diff --git a/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 2.wav b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 2.wav new file mode 100644 index 000000000..cf84de34e Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 2.wav differ diff --git a/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 3.wav b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 3.wav new file mode 100644 index 000000000..65cd4baef Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 3.wav differ diff --git a/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 4.wav b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 4.wav new file mode 100644 index 000000000..cd88c2380 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 4.wav differ diff --git a/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 5.wav b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 5.wav new file mode 100644 index 000000000..2b2d58c84 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster Growls/Huge monster Growls 5.wav differ diff --git a/sounds/weapons/zaal/Huge monster attack/Huge monster attack 1.wav b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 1.wav new file mode 100644 index 000000000..eaf302231 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 1.wav differ diff --git a/sounds/weapons/zaal/Huge monster attack/Huge monster attack 2.wav b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 2.wav new file mode 100644 index 000000000..2aefdaa5c Binary files /dev/null and b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 2.wav differ diff --git a/sounds/weapons/zaal/Huge monster attack/Huge monster attack 3.wav b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 3.wav new file mode 100644 index 000000000..902ad5f8c Binary files /dev/null and b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 3.wav differ diff --git a/sounds/weapons/zaal/Huge monster attack/Huge monster attack 4.wav b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 4.wav new file mode 100644 index 000000000..9a48fc475 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 4.wav differ diff --git a/sounds/weapons/zaal/Huge monster attack/Huge monster attack 5.wav b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 5.wav new file mode 100644 index 000000000..9655ff28c Binary files /dev/null and b/sounds/weapons/zaal/Huge monster attack/Huge monster attack 5.wav differ diff --git a/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 1.wav b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 1.wav new file mode 100644 index 000000000..c75cb5b14 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 1.wav differ diff --git a/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 2.wav b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 2.wav new file mode 100644 index 000000000..68116229f Binary files /dev/null and b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 2.wav differ diff --git a/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 3.wav b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 3.wav new file mode 100644 index 000000000..602411e78 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 3.wav differ diff --git a/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 4.wav b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 4.wav new file mode 100644 index 000000000..82af7ec89 Binary files /dev/null and b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 4.wav differ diff --git a/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 5.wav b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 5.wav new file mode 100644 index 000000000..f3c1113fb Binary files /dev/null and b/sounds/weapons/zaal/Huge monster footsteps/Huge monster footsteps 5.wav differ diff --git a/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 1.wav b/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 1.wav new file mode 100644 index 000000000..4c1c34d9c Binary files /dev/null and b/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 1.wav differ diff --git a/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 2.wav b/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 2.wav new file mode 100644 index 000000000..9466812ca Binary files /dev/null and b/sounds/weapons/zaal/Huge monster laugh/Huge monster laugh 2.wav differ diff --git a/sounds/weapons/zaal/Large monster Growls/Large monster Growls 1.wav b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 1.wav new file mode 100644 index 000000000..8d256b77a Binary files /dev/null and b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 1.wav differ diff --git a/sounds/weapons/zaal/Large monster Growls/Large monster Growls 2.wav b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 2.wav new file mode 100644 index 000000000..b2daee2b8 Binary files /dev/null and b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 2.wav differ diff --git a/sounds/weapons/zaal/Large monster Growls/Large monster Growls 3.wav b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 3.wav new file mode 100644 index 000000000..87c24e600 Binary files /dev/null and b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 3.wav differ diff --git a/sounds/weapons/zaal/Large monster Growls/Large monster Growls 4.wav b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 4.wav new file mode 100644 index 000000000..f1aebccda Binary files /dev/null and b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 4.wav differ diff --git a/sounds/weapons/zaal/Large monster Growls/Large monster Growls 5.wav b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 5.wav new file mode 100644 index 000000000..af77a9eef Binary files /dev/null and b/sounds/weapons/zaal/Large monster Growls/Large monster Growls 5.wav differ diff --git a/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 1.wav b/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 1.wav new file mode 100644 index 000000000..cd80ba9ba Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 1.wav differ diff --git a/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 2.wav b/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 2.wav new file mode 100644 index 000000000..14fa641b1 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Breathing/Medium monster Breathing 2.wav differ diff --git a/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 1.wav b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 1.wav new file mode 100644 index 000000000..a91109d16 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 1.wav differ diff --git a/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 2.wav b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 2.wav new file mode 100644 index 000000000..6f4f02246 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 2.wav differ diff --git a/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 3.wav b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 3.wav new file mode 100644 index 000000000..c0185a9bf Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 3.wav differ diff --git a/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 4.wav b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 4.wav new file mode 100644 index 000000000..b0eab2991 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 4.wav differ diff --git a/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 5.wav b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 5.wav new file mode 100644 index 000000000..87f6a6d17 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster Growls/Medium monster Growls 5.wav differ diff --git a/sounds/weapons/zaal/Medium monster attack/Medium monster attack 1.wav b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 1.wav new file mode 100644 index 000000000..845a00863 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 1.wav differ diff --git a/sounds/weapons/zaal/Medium monster attack/Medium monster attack 2.wav b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 2.wav new file mode 100644 index 000000000..33b1d0c1d Binary files /dev/null and b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 2.wav differ diff --git a/sounds/weapons/zaal/Medium monster attack/Medium monster attack 3.wav b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 3.wav new file mode 100644 index 000000000..8578ea344 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 3.wav differ diff --git a/sounds/weapons/zaal/Medium monster attack/Medium monster attack 4.wav b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 4.wav new file mode 100644 index 000000000..6bb4c5d23 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 4.wav differ diff --git a/sounds/weapons/zaal/Medium monster attack/Medium monster attack 5.wav b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 5.wav new file mode 100644 index 000000000..210f37a6c Binary files /dev/null and b/sounds/weapons/zaal/Medium monster attack/Medium monster attack 5.wav differ diff --git a/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 1.wav b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 1.wav new file mode 100644 index 000000000..f044f93a4 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 1.wav differ diff --git a/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 2.wav b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 2.wav new file mode 100644 index 000000000..fe5d08f11 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 2.wav differ diff --git a/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 3.wav b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 3.wav new file mode 100644 index 000000000..d1f07087d Binary files /dev/null and b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 3.wav differ diff --git a/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 4.wav b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 4.wav new file mode 100644 index 000000000..afae2e678 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 4.wav differ diff --git a/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 5.wav b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 5.wav new file mode 100644 index 000000000..2f10c0e37 Binary files /dev/null and b/sounds/weapons/zaal/Medium monster footsteps/Medium monster footsteps 5.wav differ diff --git a/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 1.wav b/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 1.wav new file mode 100644 index 000000000..518f58f6f Binary files /dev/null and b/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 1.wav differ diff --git a/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 2.wav b/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 2.wav new file mode 100644 index 000000000..1d8af910c Binary files /dev/null and b/sounds/weapons/zaal/Medium monster laugh/Medium monster laugh 2.wav differ diff --git a/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 1.wav b/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 1.wav new file mode 100644 index 000000000..d905faf66 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 1.wav differ diff --git a/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 2.wav b/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 2.wav new file mode 100644 index 000000000..6bf9521f8 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Breathing/Small monster Breathing 2.wav differ diff --git a/sounds/weapons/zaal/Small monster Growls/Small monster Growls 1.wav b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 1.wav new file mode 100644 index 000000000..d3a8c9c36 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 1.wav differ diff --git a/sounds/weapons/zaal/Small monster Growls/Small monster Growls 2.wav b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 2.wav new file mode 100644 index 000000000..229a81fc6 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 2.wav differ diff --git a/sounds/weapons/zaal/Small monster Growls/Small monster Growls 3.wav b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 3.wav new file mode 100644 index 000000000..6c4373073 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 3.wav differ diff --git a/sounds/weapons/zaal/Small monster Growls/Small monster Growls 4.wav b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 4.wav new file mode 100644 index 000000000..3df5ca3fe Binary files /dev/null and b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 4.wav differ diff --git a/sounds/weapons/zaal/Small monster Growls/Small monster Growls 5.wav b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 5.wav new file mode 100644 index 000000000..6569c5997 Binary files /dev/null and b/sounds/weapons/zaal/Small monster Growls/Small monster Growls 5.wav differ diff --git a/sounds/weapons/zaal/Small monster attack/Small monster attack 1.wav b/sounds/weapons/zaal/Small monster attack/Small monster attack 1.wav new file mode 100644 index 000000000..ef9f55ab5 Binary files /dev/null and b/sounds/weapons/zaal/Small monster attack/Small monster attack 1.wav differ diff --git a/sounds/weapons/zaal/Small monster attack/Small monster attack 2.wav b/sounds/weapons/zaal/Small monster attack/Small monster attack 2.wav new file mode 100644 index 000000000..f5617f080 Binary files /dev/null and b/sounds/weapons/zaal/Small monster attack/Small monster attack 2.wav differ diff --git a/sounds/weapons/zaal/Small monster attack/Small monster attack 3.wav b/sounds/weapons/zaal/Small monster attack/Small monster attack 3.wav new file mode 100644 index 000000000..001f5d389 Binary files /dev/null and b/sounds/weapons/zaal/Small monster attack/Small monster attack 3.wav differ diff --git a/sounds/weapons/zaal/Small monster attack/Small monster attack 4.wav b/sounds/weapons/zaal/Small monster attack/Small monster attack 4.wav new file mode 100644 index 000000000..d945f6a00 Binary files /dev/null and b/sounds/weapons/zaal/Small monster attack/Small monster attack 4.wav differ diff --git a/sounds/weapons/zaal/Small monster attack/Small monster attack 5.wav b/sounds/weapons/zaal/Small monster attack/Small monster attack 5.wav new file mode 100644 index 000000000..0bf628494 Binary files /dev/null and b/sounds/weapons/zaal/Small monster attack/Small monster attack 5.wav differ diff --git a/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 1.wav b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 1.wav new file mode 100644 index 000000000..fa635ebbc Binary files /dev/null and b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 1.wav differ diff --git a/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 2.wav b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 2.wav new file mode 100644 index 000000000..054001a9e Binary files /dev/null and b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 2.wav differ diff --git a/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 3.wav b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 3.wav new file mode 100644 index 000000000..93d089bd3 Binary files /dev/null and b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 3.wav differ diff --git a/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 4.wav b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 4.wav new file mode 100644 index 000000000..2236af627 Binary files /dev/null and b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 4.wav differ diff --git a/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 5.wav b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 5.wav new file mode 100644 index 000000000..eb322f2c5 Binary files /dev/null and b/sounds/weapons/zaal/Small monster footsteps/Small monster footsteps 5.wav differ diff --git a/sounds/weapons/zaal/Small monster laugh/Small monster laugh 1.wav b/sounds/weapons/zaal/Small monster laugh/Small monster laugh 1.wav new file mode 100644 index 000000000..a61f7f5e6 Binary files /dev/null and b/sounds/weapons/zaal/Small monster laugh/Small monster laugh 1.wav differ diff --git a/sounds/weapons/zaal/Small monster laugh/Small monster laugh 2.wav b/sounds/weapons/zaal/Small monster laugh/Small monster laugh 2.wav new file mode 100644 index 000000000..afdb9f5d0 Binary files /dev/null and b/sounds/weapons/zaal/Small monster laugh/Small monster laugh 2.wav differ diff --git a/sounds/weapons/zaal/large monster Breathing/large monster Breathing 1.wav b/sounds/weapons/zaal/large monster Breathing/large monster Breathing 1.wav new file mode 100644 index 000000000..687a2a6c6 Binary files /dev/null and b/sounds/weapons/zaal/large monster Breathing/large monster Breathing 1.wav differ diff --git a/sounds/weapons/zaal/large monster Breathing/large monster Breathing 2.wav b/sounds/weapons/zaal/large monster Breathing/large monster Breathing 2.wav new file mode 100644 index 000000000..a6164c6c0 Binary files /dev/null and b/sounds/weapons/zaal/large monster Breathing/large monster Breathing 2.wav differ diff --git a/sounds/weapons/zaal/large monster attack/large monster attack 1.wav b/sounds/weapons/zaal/large monster attack/large monster attack 1.wav new file mode 100644 index 000000000..0f6e0a8fb Binary files /dev/null and b/sounds/weapons/zaal/large monster attack/large monster attack 1.wav differ diff --git a/sounds/weapons/zaal/large monster attack/large monster attack 2.wav b/sounds/weapons/zaal/large monster attack/large monster attack 2.wav new file mode 100644 index 000000000..04de72826 Binary files /dev/null and b/sounds/weapons/zaal/large monster attack/large monster attack 2.wav differ diff --git a/sounds/weapons/zaal/large monster attack/large monster attack 3.wav b/sounds/weapons/zaal/large monster attack/large monster attack 3.wav new file mode 100644 index 000000000..384b1d3f6 Binary files /dev/null and b/sounds/weapons/zaal/large monster attack/large monster attack 3.wav differ diff --git a/sounds/weapons/zaal/large monster attack/large monster attack 4.wav b/sounds/weapons/zaal/large monster attack/large monster attack 4.wav new file mode 100644 index 000000000..950e1ad47 Binary files /dev/null and b/sounds/weapons/zaal/large monster attack/large monster attack 4.wav differ diff --git a/sounds/weapons/zaal/large monster attack/large monster attack 5.wav b/sounds/weapons/zaal/large monster attack/large monster attack 5.wav new file mode 100644 index 000000000..104bd93f2 Binary files /dev/null and b/sounds/weapons/zaal/large monster attack/large monster attack 5.wav differ diff --git a/sounds/weapons/zaal/large monster footsteps/large monster footsteps 1.wav b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 1.wav new file mode 100644 index 000000000..7b69e8acf Binary files /dev/null and b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 1.wav differ diff --git a/sounds/weapons/zaal/large monster footsteps/large monster footsteps 2.wav b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 2.wav new file mode 100644 index 000000000..d78ba01e5 Binary files /dev/null and b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 2.wav differ diff --git a/sounds/weapons/zaal/large monster footsteps/large monster footsteps 3.wav b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 3.wav new file mode 100644 index 000000000..e51346e6c Binary files /dev/null and b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 3.wav differ diff --git a/sounds/weapons/zaal/large monster footsteps/large monster footsteps 4.wav b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 4.wav new file mode 100644 index 000000000..1d05eee91 Binary files /dev/null and b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 4.wav differ diff --git a/sounds/weapons/zaal/large monster footsteps/large monster footsteps 5.wav b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 5.wav new file mode 100644 index 000000000..6b2cbe342 Binary files /dev/null and b/sounds/weapons/zaal/large monster footsteps/large monster footsteps 5.wav differ diff --git a/sounds/weapons/zaal/large monster laugh/large monster laugh 1.wav b/sounds/weapons/zaal/large monster laugh/large monster laugh 1.wav new file mode 100644 index 000000000..97db78e63 Binary files /dev/null and b/sounds/weapons/zaal/large monster laugh/large monster laugh 1.wav differ diff --git a/sounds/weapons/zaal/large monster laugh/large monster laugh 2.wav b/sounds/weapons/zaal/large monster laugh/large monster laugh 2.wav new file mode 100644 index 000000000..cc080e4c1 Binary files /dev/null and b/sounds/weapons/zaal/large monster laugh/large monster laugh 2.wav differ diff --git a/unitpics/lootboxbronze.png b/unitpics/lootboxbronze.png new file mode 100644 index 000000000..201b107d0 Binary files /dev/null and b/unitpics/lootboxbronze.png differ diff --git a/unitpics/lootboxgold.png b/unitpics/lootboxgold.png new file mode 100644 index 000000000..201b107d0 Binary files /dev/null and b/unitpics/lootboxgold.png differ diff --git a/unitpics/lootboxplatinum.png b/unitpics/lootboxplatinum.png new file mode 100644 index 000000000..201b107d0 Binary files /dev/null and b/unitpics/lootboxplatinum.png differ diff --git a/unitpics/lootboxsilver.png b/unitpics/lootboxsilver.png new file mode 100644 index 000000000..201b107d0 Binary files /dev/null and b/unitpics/lootboxsilver.png differ diff --git a/unitpics/lozcommander.png b/unitpics/lozcommander.png new file mode 100644 index 000000000..2df811a34 Binary files /dev/null and b/unitpics/lozcommander.png differ diff --git a/unitpics/lozengineer.png b/unitpics/lozengineer.png new file mode 100644 index 000000000..bcd02cc63 Binary files /dev/null and b/unitpics/lozengineer.png differ diff --git a/unitpics/unitpics with backgrounds/eairplant.png b/unitpics/unitpics with backgrounds/eairplant.png deleted file mode 100644 index 876f3c309..000000000 Binary files a/unitpics/unitpics with backgrounds/eairplant.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eamphibfac.png b/unitpics/unitpics with backgrounds/eamphibfac.png deleted file mode 100644 index a412e0ebf..000000000 Binary files a/unitpics/unitpics with backgrounds/eamphibfac.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eartyturret.png b/unitpics/unitpics with backgrounds/eartyturret.png deleted file mode 100644 index f37c5f4b2..000000000 Binary files a/unitpics/unitpics with backgrounds/eartyturret.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/ebasefactory.png b/unitpics/unitpics with backgrounds/ebasefactory.png deleted file mode 100644 index 0a28448df..000000000 Binary files a/unitpics/unitpics with backgrounds/ebasefactory.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/ecommander.png b/unitpics/unitpics with backgrounds/ecommander.png deleted file mode 100644 index e2d5228b7..000000000 Binary files a/unitpics/unitpics with backgrounds/ecommander.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/efusion2.png b/unitpics/unitpics with backgrounds/efusion2.png deleted file mode 100644 index 590ac23a6..000000000 Binary files a/unitpics/unitpics with backgrounds/efusion2.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/egeothermal.png b/unitpics/unitpics with backgrounds/egeothermal.png deleted file mode 100644 index a7972995d..000000000 Binary files a/unitpics/unitpics with backgrounds/egeothermal.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eheavyturret2.png b/unitpics/unitpics with backgrounds/eheavyturret2.png deleted file mode 100644 index 343a654f9..000000000 Binary files a/unitpics/unitpics with backgrounds/eheavyturret2.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/ejammer2.png b/unitpics/unitpics with backgrounds/ejammer2.png deleted file mode 100644 index 4971f2b7a..000000000 Binary files a/unitpics/unitpics with backgrounds/ejammer2.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/ekmar.png b/unitpics/unitpics with backgrounds/ekmar.png deleted file mode 100644 index 69779aa88..000000000 Binary files a/unitpics/unitpics with backgrounds/ekmar.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/elightturret2.png b/unitpics/unitpics with backgrounds/elightturret2.png deleted file mode 100644 index 77d6a1345..000000000 Binary files a/unitpics/unitpics with backgrounds/elightturret2.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/emine.png b/unitpics/unitpics with backgrounds/emine.png deleted file mode 100644 index 85ba3a153..000000000 Binary files a/unitpics/unitpics with backgrounds/emine.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eminifac.png b/unitpics/unitpics with backgrounds/eminifac.png deleted file mode 100644 index 68654146f..000000000 Binary files a/unitpics/unitpics with backgrounds/eminifac.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eorb.png b/unitpics/unitpics with backgrounds/eorb.png deleted file mode 100644 index 9abe8cb6e..000000000 Binary files a/unitpics/unitpics with backgrounds/eorb.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eradar2.png b/unitpics/unitpics with backgrounds/eradar2.png deleted file mode 100644 index 905a63dc8..000000000 Binary files a/unitpics/unitpics with backgrounds/eradar2.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/eshieldgen.png b/unitpics/unitpics with backgrounds/eshieldgen.png deleted file mode 100644 index 0d2463c93..000000000 Binary files a/unitpics/unitpics with backgrounds/eshieldgen.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/esilo.png b/unitpics/unitpics with backgrounds/esilo.png deleted file mode 100644 index 35a98efd9..000000000 Binary files a/unitpics/unitpics with backgrounds/esilo.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/estorage.png b/unitpics/unitpics with backgrounds/estorage.png deleted file mode 100644 index ae6e1c604..000000000 Binary files a/unitpics/unitpics with backgrounds/estorage.png and /dev/null differ diff --git a/unitpics/unitpics with backgrounds/euwturret.png b/unitpics/unitpics with backgrounds/euwturret.png deleted file mode 100644 index 7ba6899f1..000000000 Binary files a/unitpics/unitpics with backgrounds/euwturret.png and /dev/null differ