Modifying laser beams
Posted: Tue Aug 25, 2020 6:28 am
Hey all, new modder here.
I am trying to create a laser that deals moderate damage to its target, but also lower, continuous splash damage to entities near it. So far i have been trying to add this from the turret side, but have only succeded in giving the turret a single burst of damage to one target when it is first targets something. I am beginning to think that i am going about this the wrong way, and that I would need to create a new laser beam type and use that as the ammo-type for the new turret? So I had a quick look through the base game files and couldnt even find where the "laser-beam" entity that turrets fire is created so i have no idea what code i would need to copy.
I am trying to create a laser that deals moderate damage to its target, but also lower, continuous splash damage to entities near it. So far i have been trying to add this from the turret side, but have only succeded in giving the turret a single burst of damage to one target when it is first targets something. I am beginning to think that i am going about this the wrong way, and that I would need to create a new laser beam type and use that as the ammo-type for the new turret? So I had a quick look through the base game files and couldnt even find where the "laser-beam" entity that turrets fire is created so i have no idea what code i would need to copy.