Advertisement
Artes-s

Tutor_v1 holo

Dec 21st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. @name Tutor
  2. @persist [O E Base]:entity Just N Table:table
  3. #ETO KOD ARTES'a A NE KAKOGOTO DPYGOVA PIDORA.
  4. interval(100)
  5. if(first()){
  6. E=entity()
  7. O=owner()
  8. List = "sprops/textures/sprops_metal3"
  9. Base = holoCreate(0,E:toWorld(vec(0,0,0)),vec(0.001),E:toWorld(ang(0,0,0)),vec(255),"cube")
  10. Table:pushArray(array(Base:toWorld(vec(0,0,0)),vec(1,1,3),Base:toWorld(ang(0,0,0)),vec(127,95,0),"hq_tube","sprops/textures/sprops_wood1"))
  11. Table:pushArray(array(Base:toWorld(vec(0,0,30)),vec(5,5,2),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  12. Table:pushArray(array(Base:toWorld(vec(0,0,40)),vec(4.5,4.5,1.6),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  13. Table:pushArray(array(Base:toWorld(vec(0,0,50)),vec(4,4,1.4),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  14. Table:pushArray(array(Base:toWorld(vec(0,0,60)),vec(3.5,3.5,1.2),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  15. Table:pushArray(array(Base:toWorld(vec(0,0,70)),vec(3,3,1.4),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  16. Table:pushArray(array(Base:toWorld(vec(0,0,80)),vec(2.5,2.5,1.8),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  17. Table:pushArray(array(Base:toWorld(vec(0,0,90)),vec(2,2,1.6),Base:toWorld(ang(0,0,0)),vec(0,255,0),"hq_cone",List))
  18. }
  19. if(Table:count() > N) {
  20. while(holoCanCreate() & perf()) {
  21. N++
  22. local Holo = Table[N, array]
  23. holoCreate(N, Holo:vector(1), Holo:vector(2), Holo:angle(3), Holo:vector(4), Holo:string(5))
  24. holoMaterial(N, Holo:string(6))
  25. holoParent(N, Base)
  26. }
  27. } else {
  28. if(O:weapon():type() == "weapon_crowbar") { Just = 1 O:weapon():setAlpha(0) } else { Just = 0 }
  29.  
  30. if(changed(Just)&Just) {
  31. holoPos(0,O:attachmentPos("anim_attachment_rh"))
  32. holoAng(0,O:attachmentAng("anim_attachment_rh"))
  33. holoParentAttachment(0,O,"anim_attachment_rh")
  34. }
  35. elseif(!Just) {
  36. if(!first()){
  37. holoUnparent(0)
  38. holoPos(0,E:pos())
  39. holoAng(0,E:angles())
  40. holoParent(0,E)
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement