cw4:cmod:docs:4d9edae8-aac2-43c7-863c-2c6667509497

This is an old revision of the document!


Index
Custom CPACKs & Units
CPACK - VPAC Vertu Expansion
VPAC Wiki Page
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.

[VPAC Vertu Expansion] Lancer (Quantum Lancer)

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 must be created at the NEXUS which will need to recharge for a minute before being able to construct a new Lancer.

Overview

  • Uses 3 power.
  • 15 Health.
  • Relatively fast.
  • Floats on Creep and Anti Creep.
  • Is damaged by AC.
  • Is a direct assault unit which attacks nearby enemy units.
  • Assault mode deals 0.2 damage per shot. Bonus damage against towers.
  • Assault mode has a very fast rate of fire. Faster than its ability to recharge energy for shooting.
  • Assault mode can't damage units inside a shield so long they have ammo. Removes 0.2 ammo per shot. {:FIXME: This does not seem to be intended}.
  • Has a stun mode with double the rang of assault mode.
  • Stun mode destroys vanilla shields in range of the stun.
  • Stun mode depletes ammo of units stunned by it.
  • Stun mode has a very long recharge time.
  • Stun caused by stun mode lasts as long as the recharge of stun mode.
  • 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!
  • Has smart targeting AI.
  • Can be told to only shoot at specific targets and target types (such as projectiles or ignore projectiles).

User Interface (UI)

  • Armed state. [Armed/Disarmed]
  • Mode. [Assault/Stun]
    • Assault deals 0.2 damage at a high rate of fire and if the target is under a shield, removes their ammo by 0.2.. wait.. in the code it says it should be 1.0.. {:TODO: DEBUG}. Once the target has no ammo, the Lancer will deal direct damage.
    • Stun has double the range of Assault and removes ammo from all units stunned in a radius. Also destroys Shields in that same radius. The stun lasts as long as the recharge time after firing.
  • Target prioritization. [ALL, Cannons, Mortars, Sprayers, Snipers, Missile Launchers, Nullifiers, Shields, M-Rifts, Pylons, Rocket Launchers, Be Point Defense, Only Units]
    • '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.
    • '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.
  • 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]
  • Self reclaim (DESTROY button). This will take some time and can be canceled just like with the Stash Base. This is much, much faster than having to reclaim the wreck of a Lancer.

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:
Mirco-Rift, Nullifier, Sniper, Pylon, Shield

When none of these targets are in range, the Lancer will target the closest nonimpervious unit to it.

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.
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 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 Sniper (not ERNed and there is no Weapon Range ERN port buff).

VPAC Note:
Only HARDCORE difficulty will have the Weapon Range ERN Port utilized.
Just know this only applies to VPAC maps made by Vertu.


Documentation navigation

cw4/cmod/docs/4d9edae8-aac2-43c7-863c-2c6667509497.1667306793.txt.gz · Last modified: 2025/02/14 14:56 (external edit)