Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. //Missiles die after 2/4 secs
  2. case MT_MISTY:
  3. case MT_BOMBY:
  4. {
  5.     INT32 life = 0;
  6.     if (life < 140)
  7.         life++;
  8.     if ((life == 70) && (mobj->type == MT_BOMBY))
  9.     {
  10.         P_SetMobjState(mobj, S_BOMBYBLOW);
  11.         S_StartSound(NULL, sfx_s3k5d);
  12.         life = 0;
  13.     }
  14.     else if ((life == 140) && (mobj->type == MT_MISTY))
  15.         P_RemoveMobj(mobj);
  16. }
  17. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement