Both sides previous revisionPrevious revisionNext revision | Previous revision |
cw4:cmod:docs:4d9edae8-aac2-43c7-863c-2c6667509497 [2022/11/01 12:46] – Detailed documentation partially added Vertu | cw4:cmod:docs:4d9edae8-aac2-43c7-863c-2c6667509497 [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
<=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\ | <=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\ |
[[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\ | [[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\ |
:NOTE: This page is unfinished but contains all the basic information of the Lancer in the Overview.\\ | |
FIXME The code of this unit is tangled up in logic spaghetti and legacy code. It would benefit from peer-review to make it more stable and possibly more efficient. If you wish to check it out and obtain thoughts potentially worthy of action, contact me, Vertu, via the CW4 Discord in MapMakingChatter with an @ mention. | :NOTE: The code of this unit has been made stable as of VPAC v2.12.0.0 - Orange. |
====== [VPAC Vertu Expansion] Lancer (Quantum Lancer) ====== | DEV NOTE: PAGE IS (almost) UPDATED. |
| |
| ---- |
| |
| ====== [VPAC Vertu Expansion] Lancer (Lancer) ====== |
{{ :cw4:cmod:docs:lancer.jpg?nolink&400|}} | {{ :cw4:cmod:docs:lancer.jpg?nolink&400|}} |
The Quantum Lancer is an assault unit which can directly assault enemy units, towers, and some projectiles like Missiles from the [[Rocket Launcher]]. It also has a stun mode which has a lot more range and will stun the target unit as well as nearby units while also depleting their ammo. Additionally, vanilla shields are destroyed by this stun, including from the stun radius!\\ | The Lancer is an assault unit which can directly assault enemy units, towers, and some projectiles like Missiles from the [[cw4:cmod:docs:0180bc05-23e5-4a48-b189-a3d8befe9322|Rocket Launcher]]. It also has a stun mode which has a lot more range and will stun the target unit as well as nearby units while also depleting their ammo by 80%. Additionally, [[cw4:info:shield|Vanilla Shields]] are destroyed by this Stun Pulse, including shields not directly hit by the Stun Pulse, making the Lancer extremely effective in destroying a shield wall (depending on how close each [[cw4:info:shield|Shield]] is to each other).\\ |
The Lancer must be created at the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] which will need to recharge for a minute before being able to construct a new Lancer. | The Lancer must be created at the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] using its build beam which will need to recharge for a minute after constructing a Lancer. |
| |
===== Overview ===== | ===== Overview ===== |
* 15 Health. | * 15 Health. |
* Relatively fast. | * Relatively fast. |
* Floats on Creep and Anti Creep. | * Floats on Creep and Anti Creep. (Will be beached if stuck on dry land). |
* Is damaged by AC. | * DAMAGED BY AC. |
* Is a direct assault unit which attacks nearby enemy units. | * Is a direct assault unit which attacks nearby enemy units. |
* Assault mode deals 0.2 damage per shot. Bonus damage against towers. | * Assault Mode: |
* Assault mode has a very fast rate of fire. Faster than its ability to recharge energy for shooting. | * 0.2 damage per shot. Bonus damage against towers (3x damage bonus). |
* Assault mode can't damage units inside a shield so long they have ammo. Removes <fc #ff0000>0.2</fc> ammo per shot. {:FIXME: This does not seem to be intended}. | * Very fast rate of fire. Faster than its ability to recharge energy for shooting unless it is a veteran. |
* Has a stun mode with double the rang of assault mode. | * Deals only 50% damage to units under a shield (0.1 per shot). |
* Stun mode destroys [[cw4:info:shield|vanilla shields]] in range of the stun. | * Stun Mode: |
* Stun mode depletes ammo of units stunned by it. | * Double the range of assault mode. |
* Stun mode has a very long recharge time. | * Destroys [[cw4:info:shield|vanilla shields]] in range of the stun. |
* Stun caused by stun mode lasts as long as the recharge of stun mode. | * Removes 80% of the ammo of all units stunned by it. |
* If destroyed, it must be slowly reclaimed by Creeper. This is a slow process and does not work with AC. So be careful with these floaters! | * Very long recharge time. - Will be fully recharged in energy for another shot before the weapon is recharged. |
* Has smart targeting AI. | * Stun lasts as long as the weapon recharge. |
| * Only works against units that can be stunned. Assume all units in VPAC can be stunned, it is very likely. |
| * If destroyed, it must be slowly reclaimed by Creeper or as of version 2.9.0.0: revived by the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|Nexus]]. |
| * Has smart targeting AI when told to fire indiscriminately. |
* Can be told to only shoot at specific targets and target types (such as projectiles or ignore projectiles). | * Can be told to only shoot at specific targets and target types (such as projectiles or ignore projectiles). |
| * Has a rapid heal rate of 0.0025 per frame (2.5x vanilla) so it doesn't need to sit around for an overwhelmingly long time after being shot up. |
| * <color #ed1c24>**IMPORTANT!**</color> Lancers are a direct countermeasure against [[cw4:cmod:docs:ecd497fe-f8ad-4bdf-9027-9adbb4ff7190|Fighter Drones]]. (See Fighter Drone section for details). |
| * <color #00FF00>VPAC v2.10.1.0:</color> You can not stack Lancers on top of each other. |
| * <color #00FF00>VPAC v2.12.0.0:</color> Lancers can level up from destroying targets, taking damage, being active, and being revived. Once leveled up, they recharge faster than they can discharge, allowing them to fire at full rate of fire and always have full energy. |
| {{ :cw4:cmod:docs:nexus_building_lancer.jpg?nolink&150|}} |
| ===== Constructing and reviving ===== |
| The Lancer is constructed by the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]]. When the build plan of a Lancer is placed close enough to a [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] and the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] is stationary, the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] will begin to build the Lancer.\\ |
| Once the Lancer is constructed, the build beam of the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] will need a full minute to recharge before being able to build another Lancer.\\ |
| Additionally, when the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] revives a Lancer, its build beam will also have to recharge but with a much shorter charge time. Keep in mind reviving and building share the same recharge. |
| |
==== User Interface (UI) ==== | ===== User Interface (UI) ===== |
* Armed state. [Armed/Disarmed] | {{ :cw4:cmod:docs:lancer_ui.jpg?nolink&100|}} |
* Mode. [Assault/Stun] | * 0 <color #aaaaff>[LABEL]</color> Available energy display and amount needed for stun shots. |
* Assault deals 0.2 damage at a high rate of fire and if the target is under a shield, removes their ammo by <fc #ff0000>0.2.. wait.. in the code it says it should be 1.0..</fc> {:TODO: DEBUG}. Once the target has no ammo, the Lancer will deal direct damage. | * 1 <color #aaaaff>[LABEL]</color> Recharge time display (reload timer). |
* Stun has double the range of Assault and removes ammo from all units stunned in a radius. Also destroys [[cw4:info:shield|Shields]] in that same radius. The stun lasts as long as the recharge time after firing. | * 2 <color #aaaaff>[FLIP]</color> Armed state. [Armed/Disarmed] |
* Target prioritization. [ALL, [[cw4:info:cannon|Cannons]], [[cw4:info:mortar|Mortars]], [[cw4:info:sprayer|Sprayers]], [[cw4:info:sniper|Snipers]], [[cw4:info:missile|Missile Launchers]], [[cw4:info:nullifier|Nullifiers]], [[cw4:info:shield|Shields]], [[cw4:info:micro_rift|M-Rifts]], [[cw4:info:pylon|Pylons]], [[Rocket Launchers]], Be Point Defense, Only Units] | * 3 <color #aaaaff>[FLIP]</color> Mode. [Assault/Stun] |
* 'Be Point Defense' has the Lancer only target projectiles. This includes missiles from [[Rocket Launchers]] which is the most important type of projectile to be shot down. Other projectiles are targeted but are less important. 'ALL' can also target projectiles. | * Assault deals 0.2 damage at a high rate of fire and if the target is under a shield, will only deal 50% damage (0.1) per shot. |
* 'ALL' and 'Only Units' have target prioritization for 5 units. Any other units when these 5 are not in range are targeted based on which is the closest to the Lancer. | * Stun has double the range of Assault and removes 80% of all ammo from all units stunned in a radius. Also destroys [[cw4:info:shield|Shields]] in that same radius. The stun lasts as long as the recharge time after firing. |
* Floating height in Creep/AC. [Creeper height / 2, Creeper Height, Approximately terrain height, 5 above terrain, 10 above terrain, 15 above terrain, 20 above terrain] | * 4 <color #aaaaff>[CHOICE]</color> Target prioritization. [ALL, [[cw4:info:cannon|Cannons]], [[cw4:info:mortar|Mortars]], [[cw4:info:sprayer|Sprayers]], [[cw4:info:sniper|Snipers]], [[cw4:info:missile|Missile Launchers]], [[cw4:info:nullifier|Nullifiers]], [[cw4:info:shield|Shields]], [[cw4:info:micro_rift|M-Rifts]], [[cw4:info:pylon|Pylons]], [[cw4:cmod:docs:0180bc05-23e5-4a48-b189-a3d8befe9322|Rocket Launchers]], Be Point Defense, Only Units] |
* Self reclaim (DESTROY button). This will take some time and can be canceled just like with the [[cw4:cmod:docs:73d9ac81-4811-4f56-9f04-b2fb5d886f04|Stash Base]]. This is much, much faster than having to reclaim the wreck of a Lancer. | * 'Be Point Defense' has the Lancer only target projectiles. This includes missiles from [[cw4:cmod:docs:0180bc05-23e5-4a48-b189-a3d8befe9322|Rocket Launchers]] which is the most important type of projectile to be shot down. Other projectiles are targeted but are less important. 'ALL' can also target projectiles. |
| * 'ALL' and 'Only Units' have target prioritization for 5 units. Any other units when these 5 are not in range are targeted based on which is the closest to the Lancer. See the Target Prioritization section for details. |
| * 5 <color #aaaaff>[CHOICE]</color> Floating height in Creep/AC. [Creeper height / 2, Creeper Height, Approximately terrain height, 5 above terrain, 10 above terrain, 15 above terrain, 20 above terrain] |
| * 6 <color #aaaaff>[BUTTON]</color> Self reclaim (DESTROY button). This will take some time and can be canceled just like with the [[cw4:cmod:docs:73d9ac81-4811-4f56-9f04-b2fb5d886f04|Stash Base]]. This is much, much faster than having to reclaim the wreck of a Lancer. |
| * 7 <color #aaaaff>[LABEL]</color> - Display of the reason for it having "Quantum" in its name. <color #00FF00>Removed by v2.12.0.0.</color> |
| |
| ===== Targeting Prioritization ===== |
| <color #00FF00>v2.12.0.0:</color> Stun mode now applies the automatic target prioritization correctly. Previous versions have this broken. |
| |
===== Targeting prioritization ===== | |
:FIXME: //It appears the targeting prioritization is very unreliable when the Lancer is set to stun.//\\ | |
The Lancer has smart targeting prioritization when told to target "ALL" and "Units Only". The priority is as followed from highest to lowest:\\ | The Lancer has smart targeting prioritization when told to target "ALL" and "Units Only". The priority is as followed from highest to lowest:\\ |
| :WARNING: HEAVILY OUTDATED :TODO: |
[[[cw4:info:micro_rift|Mirco-Rift]], [[[cw4:info:nullifier|Nullifier]], [[cw4:info:sniper|Sniper]], [[[cw4:info:pylon|Pylon]], [[cw4:info:shield|Shield]] | [[[cw4:info:micro_rift|Mirco-Rift]], [[[cw4:info:nullifier|Nullifier]], [[cw4:info:sniper|Sniper]], [[[cw4:info:pylon|Pylon]], [[cw4:info:shield|Shield]] |
| |
When none of these targets are in range, the Lancer will target the closest nonimpervious unit to it. | When none of these targets are in range, the Lancer will target the closest nonimpervious unit to it. |
| |
| When the Lancer is not set to "ALL" or "Only Units", it will strictly target only the specified type of target, allowing manual and strict control over what it shoots at. "Be Point Defense" is merely a whitelist of various projectiles the Lancer will target and ignore everything else. |
| |
===== Reclaiming ===== | ===== Reclaiming ===== |
The Lancer has to be reclaimed by that nanites within the Creeper once a Lancer is disabled and rendered dysfunctional. This takes a considerate amount of time and can only be done when not in a power deficit and the Lancer is in contact with Creeper.\\ | {{ :cw4:cmod:docs:wrecked_lancer.jpg?nolink&300|}} |
However, it will always be better to allow the Lancer to repair itself than to manually reclaim it when it is low on health. Manually reclaiming (DESTROY button) still takes some time and the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] takes time to prepare the construction of a Lancer before building it instantly while also having a minute build beam recharge time after making a Lancer. So when a Lancer is low on health, retreat it. They have more range than an unupgraded [[cw4:info:sniper|Sniper]] (not ERNed and there is no Weapon Range ERN port buff). | The Lancer has to be reclaimed by that Nanites within the Creeper once a Lancer is disabled and rendered dysfunctional by sustaining too much damage. The reclaim process takes a considerate amount of time and can only be done when not in a power deficit and the Lancer is in contact with Creeper.\\ |
| However, it will always be better to allow the Lancer to repair itself than to manually reclaim it when it is low on health. Manually reclaiming (DESTROY button) still takes some time and the [[cw4:cmod:docs:05b746db-9ccf-484c-9a5f-5cd3d49a844f|NEXUS]] takes time to prepare the construction of a Lancer before building it instantly while also having a minute long build beam recharge time after making a Lancer. So when a Lancer is low on health, retreat it. They have more range than an unupgraded [[cw4:info:sniper|Sniper]] (not ERNed and there is no Weapon Range ERN port buff) so it is very possible to keep them out of harms' way. If you are not facing unupgraded [[cw4:info:sniper|Snipers]], then the longevity of each Lancer is your responsibility alone. |
| |
<fs medium>**VPAC Note:**</fs>\\ | <fs medium>**VPAC Note:**</fs>\\ |
Only HARDCORE difficulty will have the Weapon Range ERN Port utilized.\\ | Only HARDCORE difficulty will have the Weapon Range ERN Port utilized.\\ |
Just know this only applies to VPAC maps made by Vertu. | Just know this only applies to VPAC maps made by Vertu. |
| ===== Fighter Drones ===== |
| {{ :cw4:cmod:docs:fighter_drones.png?nolink&400|}} |
| With the VWC project reaching a notable age, the project has been given the call to allow more direct methods of difficulty. Introducing the [[cw4:cmod:docs:ecd497fe-f8ad-4bdf-9027-9adbb4ff7190|Fighter Drone]].\\ |
| Although nothing more than drones with relatively simple programming (and proneness to slamming into cliffs), these are the first units designed to actively destroy VWC constructs. [[cw4:cmod:docs:9a94ae07-3fa0-429a-98db-025c4973c21d|Advanced Emitters]], [[cw4:cmod:docs:4ec1c29f-a9b2-470c-bb95-19438ed95d73|Burst Emitters]], [[cw4:cmod:docs:fa9dd074-2543-439b-8692-934b92ee40dc|CSMDs]], TCMLs, [[cw4:cmod:docs:c4b5b538-22b2-4668-89f8-169611db7b8c|Flow Controllers]], and [[cw4:cmod:docs:1528a943-94a1-4403-9c8f-65b3e819ee32|Launchers]] are all outright impervious to traditional damage, making them immune to [[cw4:cmod:docs:ecd497fe-f8ad-4bdf-9027-9adbb4ff7190|Fighter Drones]]. |
| |
| Lancers and [[cw4:cmod:docs:f82d5850-d76e-4151-9939-245c5dd0970d|Light SAMs]] can take on these drones but the Lancer is by far the most capable combatant with its fast movement, rate of fire, and most importantly: medium armor. |
| |
| These drones will attack without mercy, __they possess the ability to actively end your incursion by destroying everything you have__..... eventually.... However, [[cw4:cmod:docs:27ac8ff9-cc9a-4215-9f3f-d11431b5176d|Invader Emitters]] are heavily armored against damage, allowing them to survive nuclear grade strikes to the face. But given enough time they will also be destroyed. Do not slack on the defense against these adorable pack hunters. |
| |
| |
| ===== Non-VPAC operation ===== |
| * Hover height restricted to 5 above terrain. |
| * Does not move. |
| * When disabled, it will slowly be revived when in Creeper. |
| * Countered by ERNed [[cw4:info:sniper|Snipers]] and [[cw4:info:sniper|Snipers]] boosted by the Weapon Range [[cw4:info:ern_portal|ERN Port]]. |
| * Can be told to be restricted to Stun or Assault mode. Just keep in mind this is a UI State and will reset if you press the "Update Unit Instances" button in the editor. |
| * All previous information applies if not stated otherwise by the above. |
| |
| ===== [Older Versions Difference] (VPAC v2.7.2.1 and earlier, CPACK version 2.5.1.3 and earlier) ===== |
| * The Lancer does not damage units under a shield and instead remove 1 ammo from the targeted unit. When the unit is out of ammo the Lancer will deal direct damage of 0.2 per shot. |
| * Stunned units have half their ammo removed upon being stunned. |
| * <color #00FF00>v2.12.0.0:</color> Stun mode now applies the automatic target prioritization correctly. |
| |
---- | ---- |
====== Documentation navigation ===== | |
[[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\ | [[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\ |
<=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\ | <=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\ |