Skip to content

Commit 8be2287

Browse files
committed
Revert "Revert "Merge pull request #6 from z33ky/sniper-zoom-orientation""
This reverts commit 224b292.
1 parent 122943a commit 8be2287

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

blackshades/Source/GameTick.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ void Game::Tick(){
851851

852852

853853

854-
if(zoom||person[0].aimamount<=0||person[0].whichgun==nogun||visions||person[0].whichgun==grenade||person[0].whichgun==knife){
854+
if(oldzoom||zoom||person[0].aimamount<=0||person[0].whichgun==nogun||visions||person[0].whichgun==grenade||person[0].whichgun==knife){
855855

856856
camera.visrotation=camera.rotation;
857857

@@ -1699,21 +1699,26 @@ void Game::Tick(){
16991699

17001700
mousesensitivity=.05*usermousesensitivity;
17011701

1702-
if(person[i].targetanimation!=crouchanim||person[i].currentanimation!=crouchanim||person[i].aiming<1){
1702+
if(person[i].targetanimation!=crouchanim||person[i].currentanimation!=crouchanim||person[i].aiming<1||visions==1){
17031703

17041704
zoom=0;
1705+
camera.rotation2+=14;
1706+
camera.rotation+=9;
17051707

17061708
}
17071709

1708-
if(visions==1)zoom=0;
1709-
17101710
}
17111711

17121712
if(person[i].currentanimation==crouchanim&&person[i].targetanimation==crouchanim&&person[i].aiming>=1&&person[i].whichgun==sniperrifle){
17131713

17141714
zoom=1;
17151715

1716-
if(zoom&&!oldzoom)camera.rotation2-=6;
1716+
if(!oldzoom){
1717+
1718+
camera.rotation2-=14;
1719+
camera.rotation-=9;
1720+
1721+
}
17171722

17181723
}
17191724

0 commit comments

Comments
 (0)