Centurion Weapon System non-functional.
I added a weapon handler for the CWS in [r10754]. It now forces the shutdown rolls however every unit is currently considered to be "susceptible" to CWS. This should really be added as a configurable option in the lobby and then that should be taken into consideration to modify the range.
I added in the variable ranges in [r10757]. It's a bit of a hack, but it works.
First, I added a susceptible_cws quirk, which is how we determine if a unit is susceptible to CWS or not.
Then, I added code in Compute.getRangeMods that checks to see if the firing weapon is a CWS, and then checks if the target is susceptible or not. If quirks are off, it's assumed the unit is not susceptible. If the unit is not susceptible, the range is reduced.
I also added similar code to the MechDisplay. I had to add a getter to FiringDisplay.target.
Log in to post a comment.