=[[cw4:info:start#custom_units| Index]]\\
<=[[cw4:custom| Custom CPACKs & Units]]\\
<=[[cw4:cpack:docs:4b916d16-43fa-486f-a1c0-aac0cbcc8cea| CPACK - VPAC Vertu Expansion]]\\
<=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\
[[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\
:NOTE: The code of this unit has been made stable as of VPAC v2.12.0.0 - Orange.
DEV NOTE: PAGE IS (almost) UPDATED.
----
====== [VPAC Vertu Expansion] Lancer (Lancer) ======
{{ :cw4:cmod:docs:lancer.jpg?nolink&400|}}
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]] using its build beam which will need to recharge for a minute after constructing a Lancer.
===== Overview =====
* Uses 3 power.
* 15 Health.
* Relatively fast.
* Floats on Creep and Anti Creep. (Will be beached if stuck on dry land).
* DAMAGED BY AC.
* Is a direct assault unit which attacks nearby enemy units.
* Assault Mode:
* 0.2 damage per shot. Bonus damage against towers (3x damage bonus).
* Very fast rate of fire. Faster than its ability to recharge energy for shooting unless it is a veteran.
* Deals only 50% damage to units under a shield (0.1 per shot).
* Stun Mode:
* Double the range of assault mode.
* Destroys [[cw4:info:shield|vanilla shields]] in range of the stun.
* Removes 80% of the ammo of all units stunned by it.
* Very long recharge time. - Will be fully recharged in energy for another shot before the weapon is recharged.
* 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).
* 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.
* **IMPORTANT!** Lancers are a direct countermeasure against [[cw4:cmod:docs:ecd497fe-f8ad-4bdf-9027-9adbb4ff7190|Fighter Drones]]. (See Fighter Drone section for details).
* VPAC v2.10.1.0: You can not stack Lancers on top of each other.
* VPAC v2.12.0.0: 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) =====
{{ :cw4:cmod:docs:lancer_ui.jpg?nolink&100|}}
* 0 [LABEL] Available energy display and amount needed for stun shots.
* 1 [LABEL] Recharge time display (reload timer).
* 2 [FLIP] Armed state. [Armed/Disarmed]
* 3 [FLIP] Mode. [Assault/Stun]
* 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.
* 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.
* 4 [CHOICE] 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]
* '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 [CHOICE] 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 [BUTTON] 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 [LABEL] - Display of the reason for it having "Quantum" in its name. Removed by v2.12.0.0.
===== Targeting Prioritization =====
v2.12.0.0: Stun mode now applies the automatic target prioritization correctly. Previous versions have this broken.
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]]
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 =====
{{ :cw4:cmod:docs:wrecked_lancer.jpg?nolink&300|}}
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.
**VPAC Note:**\\
Only HARDCORE difficulty will have the Weapon Range ERN Port utilized.\\
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.
* v2.12.0.0: Stun mode now applies the automatic target prioritization correctly.
----
[[http://knucklecracker.com/forums/index.php?topic=41251.0| VPAC CPACKs download location.]]\\
<=[[cw4:cpack:vpac_wiki_page| VPAC Wiki Page]]\\
<=[[cw4:cpack:docs:4b916d16-43fa-486f-a1c0-aac0cbcc8cea| CPACK - VPAC Vertu Expansion]]\\
<=[[cw4:custom| Custom CPACKs & Units]]\\
<=[[cw4:info:start#custom_units| Index]]\\