Advertisement
Dusty_Wings

Festive Bullet Holes

Apr 9th, 2016
2,844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
E 0.71 KB | None | 0 0
  1. @name Festive Bullets
  2. @persist I T:entity PT:entity IA Targets:array I2 HC Cycle
  3.  
  4.  
  5. runOnTick(1)
  6. runOnKeys(T,1)
  7.  
  8. if(first())
  9. {
  10. T = owner()
  11. }
  12.  
  13. Clip = T:weapon():clip1()
  14. Clip2 = T:weapon():clip2()
  15.  
  16. if(changed(Clip) & Clip != -1 & !changed(T:weapon()) | changed(Clip2) & Clip2 != -1 & !changed(T:weapon()))
  17. {
  18. I++
  19. holoCreate(I,T:aimPos()-T:forward()*3)
  20. holoScale(I,vec(random(2,3),random(2,3),random(2,3)))
  21. holoModel(I,"models/weapons/c_models/c_crusaders_crossbow/c_crusaders_crossbow_xmas_proj.mdl")
  22. holoAng(I,T:eyeAngles())
  23. holoColor(I,vec(random(100,255),random(100,255),random(100,255)))
  24. holoParent(I,T:aimEntity())  
  25. holoParent(I,T:aimBone())
  26. }
  27.  
  28.  
  29.  
  30. if(owner():keyPressed("C"))
  31. {
  32. holoDeleteAll()
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement