Skip to content

Commit 224b292

Browse files
committed
Revert "Merge pull request #6 from z33ky/sniper-zoom-orientation"
This reverts commit 30ba7ab, reversing changes made to 3070e77.
1 parent c3e8bd0 commit 224b292

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

blackshades/Source/GameTick.cpp

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

852852

853853

854-
if(oldzoom||zoom||person[0].aimamount<=0||person[0].whichgun==nogun||visions||person[0].whichgun==grenade||person[0].whichgun==knife){
854+
if(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,26 +1699,21 @@ void Game::Tick(){
16991699

17001700
mousesensitivity=.05*usermousesensitivity;
17011701

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

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

17081706
}
17091707

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(!oldzoom){
1717-
1718-
camera.rotation2-=14;
1719-
camera.rotation-=9;
1720-
1721-
}
1716+
if(zoom&&!oldzoom)camera.rotation2-=6;
17221717

17231718
}
17241719

0 commit comments

Comments
 (0)