- changed status to resolved
Mortars sometimes do an unwanted swivel when player deploys
Issue #483
resolved
I think while holding down the left or right key while deploying or soon after. Almost certainly multi-player only. A slight nuisance I have noticed but not a big deal.
Comments (1)
-
reporter - Log in to comment
Believe this is fixed in commit 3715aff.
Suspect mortar weapon pawn needs to record StoredVehicleRotation, same as other weapon pawns. The variable appears unused (in UScript) but I have observed it must be used by native code, as if it is omitted then you get an unwanted camera swivel on entering a turret.
In MP it can go wrong due to replication timing issues, as is usually set in ClientKDriverEnter() function, but at that point a net client may not have the VehicleBase actor reference. The fix is the same as other weapon pawns: if don't have base then set a flag and do it when PostNetReceive() gets the VB ref.
It certainly can't hurt, anyway.