Turret stuck in shooting mode from IsShootingFromTerminal

Sevnn shared this bug 6 years ago
Outdated

Cause:

Unknown other than my grid was shooting at hostile grid(s) when the server saved. The server later crashed and the rollback point was mid-fight. I was cycling through turrets using manual control so I might have controlled this specific turret.

Effect:

When the world starts or if a BP of the ship in this state is pasted in, the turret in question immediately starts firing. This manifested in a DS environment as what seemed to be random damage on the ship. In the case of a BP paste into the world, the damage was immediate. In the case of a world load, the grid in question is running with shields so the damage was mitigated only showing damage effects. In the DS environment, the turret was not showing firing effects (possibly related to the turret being a modded turret). With the world in SP mode the firing effects were shown and the source of the damage was found. With the turret in this mode, it was not showing the idle movement effect that might have been a hint to the source, but without the firing effect, this was missed. During early testing this also seemed to manifest by occurring as soon as I docked the grid in question with another grid. The turret in question had fired all its ammo and no more ammo was stored on the ship (other than what was in other turrets and not available to be pulled). As soon as the ship was docked and the connector locked, the turret in question would pull ammo from the second grid and begin firing again.

Steps to reproduce:It might be possible to reproduce this by forcing a world save (or timing it properly) with a turret in manual control and firing. An easier step to reproduce would be to modify the bp.sbc file or sandbox_0_0_0.sbs on the turret in question to set IsShootingFromTerminal to true.

Suggested logic change:

Force IsShootingFromTerminal to be false when a grid is initialized. When a BP is pasted in, it would be pointless to try and model state of a player shooting a turret as soon as the grid loads in, there will be no pilot or other docked character when the grid is initialized so no turrets should think they should be shooting. When a grid is initialized during a world load it might be possible through saved state to have a character model sitting in a seat, but it wouldn't be logical for the state of firing a turret to be maintained or resumed from the save.


Potential concern:

I found that the IsShootingFromTerminal setting was true for a couple small grid gatling guns on other grids. I am curious if this setting is related to the selected toolbar weapon option to fire these types of guns. If so, my suggested logic change would need to be specific to automated turrets and ignore dummy fire turrets.

Replies (1)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file