Guest User

Untitled

a guest
May 14th, 2017
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Altfire: //begin zoom
  2.  
  3. ARZU ABCDE 1;
  4. TNT1 A 0 A_ZoomFactor(3.0);
  5. goto zoomhold;
  6.  
  7. zoomhold:
  8. ARZI A 1 ;
  9. ARZI A 0
  10. {
  11. statelabel zoomstate = "zoomhold";
  12. if(!(getplayerinput(INPUT_BUTTONS)&BT_ALTATTACK))
  13. {
  14. zoomstate = "unzoom";
  15. }
  16. else if ((getplayerinput(INPUT_BUTTONS)&BT_ATTACK) && !(getplayerinput(INPUT_OLDBUTTONS)&BT_ATTACK))
  17. {
  18. zoomstate = "zoomedfire";
  19. }
  20. return resolvestate(zoomstate);
  21. }
  22.  
  23. unzoom:
  24. TNT1 A 0 A_ZoomFactor(1.0);
  25. ARZU EDCBA 1;
  26. goto dsready;
  27.  
  28. zoomedfire:
  29. TNT1 A 0
  30. {
  31. if(K_CheckAmmo())
  32. {
  33. invoker.nextstate="zoomhold";
  34. A_PlayWeaponSound("weapons/riflefire");
  35. A_AlertMonsters();
  36. A_GunFlash("zoomflash");
  37. K_PBullet("rifle_tracer",0,0.0, 5.0);//no innate spread
  38. }
  39. else
  40. {
  41. invoker.nextstate = "zoomhold";
  42. A_Print("EMPTY MAGAZINE");
  43. }
  44. }
  45. ARZI A 1;
  46. ARZI A 1
  47. {
  48. return ResolveState(invoker.nextstate);
  49. }
  50. //goto zoomhold;
  51.  
  52. ZoomFlash:
  53. TNT1 A 0 A_Jump(255, "zfiref1", "zfiref2", "zfiref3");
  54. TNT1 A 0;
  55.  
  56. zfiref1:
  57. ARZF A 1 bright A_Light2;
  58. ARZF D 1 bright A_Light1;
  59. TNT1 A 1 A_Light0;
  60. stop;
  61. zfiref2:
  62. ARZF B 1 bright A_Light2;
  63. ARZF E 1 bright A_Light1;
  64. TNT1 A 1 A_Light0;
  65. stop;
  66. zfiref3:
  67. ARZF C 1 bright A_Light2;
  68. ARZF F 1 bright A_Light1;
  69. TNT1 A 1 A_Light0;
  70. stop;
RAW Paste Data