Advertisement
fig02

rova shoot

Feb 18th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1.  
  2.     if (this->animTimer178 == 0) //can only attempt to shoot if timer is 0
  3.     {
  4.         if (otherRova->currentFunc14C != &ShootingFunc_8093B1AC) //if the other rova is not shooting
  5.         {
  6.             if (arg0->unk15E != 0) //not sure what this is yet, but it has to be 1 in order for a shot to happen
  7.             {
  8.                 arg0->unk15E = 0;
  9.                 SetShootFunc_8093A4DC(arg0, sp2C); //function that sets currentFunc to shoot
  10.                 this->xzSpeed = 0.0f; //set speed to 0
  11.                 return;
  12.             }
  13.         }
  14.         func_8093A0A8(arg0, sp2C); //cant shoot, do other stuff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement