diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-15 17:05:53 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-16 00:12:44 +0700 |
| commit | 6bfeb5cbc20e3336d8e2a2147b02b380e2d50378 (patch) | |
| tree | 37149c46c84da45411b1b7f3322397c77980fa2e /src/Person.cpp | |
| parent | 662673fd3ceac4895769241c1b6836061738d46a (diff) | |
| download | blackshades-6bfeb5cbc20e3336d8e2a2147b02b380e2d50378.tar.gz | |
Tweak control system to mirror Overgrowth
Diffstat (limited to 'src/Person.cpp')
| -rw-r--r-- | src/Person.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Person.cpp b/src/Person.cpp index 9e49cbb..d529143 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -394,11 +394,10 @@ void Person::DoAnimations(int who) if(aimamount>0)aimamount-=multiplier*4; if(aimamount<0)aimamount=0; } - if(grenphase==1){ + if (grenphase) { if(grenamount<1)grenamount+=multiplier*4; if(grenamount>1)grenamount=1; - } - if(grenphase==0){ + } else { if(grenamount>0)grenamount-=multiplier*4; if(grenamount<0)grenamount=0; } @@ -972,7 +971,7 @@ int Person::DrawSkeleton(int who) glTranslatef(0, 0, 0.05); if (reloading <= 0) { gunmodels[grenadebasemodel].draw(); - if (grenphase == 0) + if (!grenphase) gunmodels[grenadepinmodel].draw(); glTranslatef(0, 0, 0.005); gunmodels[grenadespoonmodel].draw(); @@ -983,7 +982,7 @@ int Person::DrawSkeleton(int who) glTranslatef(left_wrist.x, left_wrist.y, left_wrist.z); glRotatef(-90, 1, 0, 0); glTranslatef(0, 0, -0.15); - if (reloading <= 0 && grenphase == 1) + if (reloading <= 0 && grenphase) gunmodels[grenadepinmodel].draw(); glPopMatrix(); break; |
