Page 1 of 1

[0.11.x] Laser Turrets firing system

Posted: Thu Mar 12, 2015 9:37 am
by Dysoch
I am currently making a mod that adds collisions to all projectiles, to make combat more realistic. It all works fine, until i come to the laser turrets.

Laser Turrets have a bug (Rseding pointed out that it is a bug)
When laser turrets fire, they only fire a certain amount of shots to kill the target, no more. So when a turret does more damage then the HP of the target, it only fires once (the rest doesnt even fire at all)
but when you add collisions to the laser projectile, the shot never hits (because the target is moving) and the turrets wait until the projectile hits something to fire again.
By this time the target has moved to the turrets (or behind it if there are no walls) and the turrets again only fire once to try to kill it.

While i can understand that it is power saving this way, it seems odd. Maybe make it so that they fire all the time till the target dies, and the rest of the outgoing projectiles just keep going till they hit something?

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 12, 2015 9:54 am
by kovarex
Dysoch wrote:I am currently making a mod that adds collisions to all projectiles, to make combat more realistic. It all works fine, until i come to the laser turrets.

Laser Turrets have a bug (Rseding pointed out that it is a bug)
When laser turrets fire, they only fire a certain amount of shots to kill the target, no more. So when a turret does more damage then the HP of the target, it only fires once (the rest doesnt even fire at all)
but when you add collisions to the laser projectile, the shot never hits (because the target is moving) and the turrets wait until the projectile hits something to fire again.
By this time the target has moved to the turrets (or behind it if there are no walls) and the turrets again only fire once to try to kill it.

While i can understand that it is power saving this way, it seems odd. Maybe make it so that they fire all the time till the target dies, and the rest of the outgoing projectiles just keep going till they hit something?
The problem more complicated than this. This way, the turrets will all fire at the same target, resulting in huge overkill while other targets will be unharmed, and also it will waste lot of ammo etc.

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 12, 2015 10:07 am
by Dysoch
any way there can be a boolean in the prototype that switches this off? This way only mods that want to can use this

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 12, 2015 10:41 am
by kovarex
Yes, you can add it to suggestions, but we are not going to add new features in the 0.11, we really want to have stable version.

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 12, 2015 10:49 am
by Dysoch
kovarex wrote:Yes, you can add it to suggestions, but we are not going to add new features in the 0.11, we really want to have stable version.
already asked Rseding to do it for me :D
i could do it, but my C knowledge is limited to say the least

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 19, 2015 10:07 am
by jockeril
Dysoch wrote:I am currently making a mod that adds collisions to all projectiles, to make combat more realistic. It all works fine, until i come to the laser turrets.
you have a good idea about the collisions to projectiles but why include laser ? it's not really a projectile in RL but more like a beam...

Re: [0.11.x] Laser Turrets firing system

Posted: Thu Mar 19, 2015 11:20 am
by Dysoch
jockeril wrote:
Dysoch wrote:I am currently making a mod that adds collisions to all projectiles, to make combat more realistic. It all works fine, until i come to the laser turrets.
you have a good idea about the collisions to projectiles but why include laser ? it's not really a projectile in RL but more like a beam...
Lasers still hit the first thing they come in contact with. That is whyi wanna include thrm