There are several steps for this :
- if you want the weapon to be visible on the unit model (example : a new turret, a missile rack, etc), you will need to edit the SCM file with blender to add what you want. It can be difficult if youhave no experience with 3D modeling.
- if the weapon doesn't exist in the base game, you need to create your own particles, emitters, or projectile files.
- if you want your Mantis to overwrite the original one, then place it in /yourmod/hook/units/URL0107, if you want a brand new unit place it in /yourmod/units/codename.
- in the unit script, add your new weapon(s) in the Weapons list, like this
- Code: Select all
Weapons = {
LaserArms = Class(CDFLaserHeavyWeapon) {},
GCBeam = Class(ADFPhasonLaser) {},
},
And don't forget to import the new weapon before :
- Code: Select all
local ADFPhasonLaser = import ('/lua/aeonweapons.lua').ADFPhasonLaser
- in the unit blueprint, just paste the GC weapon then edit what you want. The Label field must match the name of the weapon in the unit script (here : GCBeam). And the RackBones must match the part of the unit model from where the beam will be fired, if you want it to fire from the same bone as the original Mantis shoots its little red lasers, then juste copy the RackBones field from this weapon. And when the weapon is "turreted", you will also need to edit TurretBoneMuzzle, Pitch and Yaw to match your unit.
I think that's it