Merge pull request 'Fix crooked camera when you die with active ViewShake' (#28) from FixViewRotation into dev
Reviewed-on: https://insultplayers.ru/git/dkanus/NicePack/pulls/28
This commit is contained in:
commit
c3f0a76088
@ -212,6 +212,20 @@ simulated function ClientPostLogin(){
|
||||
// Change HUD parameters
|
||||
class'ScrnHUD'.default.EnemyHealthBarHeight = 4.0;
|
||||
}
|
||||
|
||||
// fix crooked camera after you die with active `ViewShake`
|
||||
function StopViewShaking() {
|
||||
ShakeRotMax = vect(0, 0, 0);
|
||||
ShakeRotRate = vect(0, 0, 0);
|
||||
ShakeRotTime = vect(0, 0, 0);
|
||||
ShakeOffsetMax = vect(0, 0, 0);
|
||||
ShakeOffsetRate = vect(0, 0, 0);
|
||||
ShakeOffsetTime = vect(0, 0, 0);
|
||||
// add missing variables
|
||||
ShakeOffset = vect(0, 0, 0);
|
||||
ShakeRot = Rot(0, 0, 0);
|
||||
}
|
||||
|
||||
function ShowLobbyMenu(){
|
||||
Super.ShowLobbyMenu();
|
||||
}
|
||||
@ -1225,7 +1239,7 @@ function LoadDualWieldables(){
|
||||
local class<NiceWeaponPickup> WP;
|
||||
local class<NiceSingle> W;
|
||||
local int i;
|
||||
|
||||
|
||||
CPRL = class'ClientPerkRepLink'.Static.FindStats(self);
|
||||
if(CPRL == none || CPRL.ShopInventory.Length == 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user