0.9.727 Combat cooldowns are not saved correctly

Started by UMK, March 08, 2015, 10:37:57 AM

Previous topic - Next topic

UMK

Actually it's not a bug, but an issue that should be addressed.  JobDriver_AttackStatic's toil state is not saved, or better say, saved incorrectly (its index is always 0 and its ticks are negative according to save file). Which gives players ability to 'cheat' in some cases. In assumption we have a gun (or melee weapon) with very high cooldown, but relatively low warmup like typical shortgun, or 'Grendel' from Rimsenal mod (30 seconds cooldown), we can shoot, pause, save, load, aim and shoot again, skipping cooldown. But also this issue causes game to lose aiming progress. Pawn starts aiming, we save when they are almost ready to shoot and after load they have to aim again.

EDIT: Also it looks like that toil changes of its defaultCompleteMode won't have effect.

Tynan

Tynan Sylvester - @TynanSylvester - Tynan's Blog