Guest User

Untitled

a guest
Jun 30th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. @name Ott's Box
  2. @persist [Player]:entity
  3. @model models/props_junk/cardboard_box002a.mdl
  4. if(first() | duped()){#[
  5. Solid Snake Box made by Ott (www.steamcommunity.com/id/DaaOtt)
  6. You have my permsision to edit and recycle this code as long as you give me credit. Thanks.
  7. ]#
  8. holoCreate(1)
  9. #[
  10. holoPos(1, owner():attachmentPos("eyes"))
  11. holoAng(1, owner():attachmentAng("eyes"))
  12. holoParentAttachment(1, owner(), "eyes")
  13. ]#
  14. holoAlpha(1,0)
  15.  
  16. holoCreate(2)
  17. holoScaleUnits(2,vec(60,60,60))
  18. holoPos(2, holoEntity(1):pos() + holoEntity(1):up()*-10 + holoEntity(1):forward()*-5 + holoEntity(1):right())
  19. holoAng(2, holoEntity(1):angles())
  20. holoColor(2, vec(255, 255, 255), 0)
  21. holoModel(2, "models/props_wasteland/wood_fence01a")
  22. holoMaterial(2, "models/props_wasteland/wood_fence01a")
  23. holoParent(2,1)
  24. holoCreate(3)
  25. holoScaleUnits(3,vec(-60,-60,-60))
  26. holoPos(3, holoEntity(1):pos() + holoEntity(1):up()*-10 + holoEntity(1):forward()*-5 + holoEntity(1):right())
  27. holoAng(3, holoEntity(1):angles())
  28. holoColor(3, vec(255, 255, 255), 0)
  29. holoModel(3, "models/props_wasteland/wood_fence01a")
  30. holoMaterial(3, "models/props_wasteland/wood_fence01a")
  31. holoParent(3,1)
  32. Player=owner()
  33. }
  34.  
  35. interval(50)
  36. if (Player:isCrouch()) {holoColor(2, vec(255, 255, 255), 255) holoColor(3, vec(255, 255, 255), 50)} else {holoColor(2, vec(255, 255, 255), 0) holoColor(3, vec(255, 255, 255), 0)}
  37. if (Player:vel()==vec(0,0,0)) {
  38. holoUnparent(1)
  39. holoPos(1, Player:pos() + holoEntity(1):up()*40 + holoEntity(1):forward() + holoEntity(1):right())
  40. holoAng(1, ang(vec(0,0,0)))
  41. } else {
  42. holoPos(1, owner():attachmentPos("eyes"))
  43. holoAng(1, owner():attachmentAng("eyes"))
  44. holoParentAttachment(1, owner(), "eyes")
  45. }
Add Comment
Please, Sign In to add comment