Advertisement
Dusty_Wings

Box Crouch

Apr 9th, 2016
3,694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
E 1.60 KB | None | 0 0
  1. @name FailCake Hide Box V1
  2. @inputs
  3. @outputs
  4. @persist Timer Alert
  5. @trigger all
  6.  
  7.  
  8.  
  9. runOnTick(1)
  10. O = owner()
  11. Ow = owner()
  12.  
  13. if(first()){
  14. hint("MADE BY FailCake",100)  
  15. }
  16.  
  17. if(Ow:keyUse()){
  18. Alert+= 0.1
  19.  
  20.  
  21. holoCreate(3)
  22. holoModel(3,"cube")
  23. holoPos(3,O:pos()+vec(0,0,100))  
  24. holoScaleUnits(3,vec(3,3,13))
  25. holoAlpha(3,200)
  26. holoColor(3,vec(255,0,0))
  27. holoMaterial(3,"")
  28.  
  29. holoCreate(4)
  30. holoModel(4,"cube")
  31. holoPos(4,O:pos()+vec(0,0,87))  
  32. holoScaleUnits(4,vec(3,3,3))
  33. holoAlpha(4,200)
  34. holoColor(4,vec(255,0,0))
  35. holoMaterial(4,"")
  36.  
  37. if(Alert == 1){  
  38. }
  39.  
  40. }else{
  41. Alert = 0
  42. soundStop(100)
  43. holoDelete(3)
  44. holoDelete(4)
  45. }
  46.  
  47. if(Ow:isCrouch()){
  48. Timer+=0.1
  49. owner():weapon():setAlpha(0)
  50. owner():weapon():setColor(255,255,255,0)
  51.  
  52. holoCreate(1)
  53. holoModel(1,"cube")
  54. holoPos(1,O:pos()+vec(0,0,23.5))  
  55. holoScale(1,vec(-4,-4,-4))
  56. holoColor(1,vec(255,255,255))
  57. holoAlpha(1,240)
  58. holoMaterial(1,"models/props_wasteland/wood_fence01a")
  59. holoParent(1,2)
  60.  
  61. holoCreate(2)
  62. holoModel(2,"cube")
  63. holoPos(2,O:pos()+vec(0,0,23.5))  
  64. holoScale(2,vec(4,4,4))
  65. holoColor(2,vec(255,255,255))
  66. holoMaterial(2,"models/props_wasteland/wood_fence01a")
  67. holoParent(2,1)
  68. holoAlpha(2,255)
  69.  
  70. if(Timer == 1){
  71. holoEntity(1):soundPlay(1000,1000,"weapons/c4/c4_disarm.wav")    
  72. holoEntity(2):soundPlay(2000,2000,"weapons/c4/c4_disarm.wav")    
  73. }
  74.  
  75. if(Timer == 5){
  76. }
  77.  
  78. owner():setColor(255,255,255,0)
  79.  
  80. }else{
  81. soundStop(1000)
  82. soundStop(2000)
  83. soundStop(3000)
  84. soundStop(4000)
  85. holoDelete(1)
  86. owner():setColor(255,255,255,255)
  87. Timer = 0
  88. holoDelete(2)
  89. }
  90.  
  91.  
  92. if(duped()){selfDestructAll()}
  93. if(duped()){selfDestructAll()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement