Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Holo-Whip by DogeKing
- @persist T
- @model models/hunter/plates/plate8x8.mdl
- #runOnTick(1)
- # i got dis doop from dogeking, most credits go to him
- interval(20)
- Kinks = 90
- KLength = 15
- Thick = 100
- Bend = 30
- entity():setPos(owner():pos())
- if(first()) {
- entity():propNotSolid(1)
- #print(entity():boxSize():toString())
- for(I=1,30) {
- holoCreate(I)
- holoModel(I,"hqcylinder2")
- holoScale(I,vec(Thick,Thick,KLength))
- holoColor(I,hsv2rgb((I/Kinks)*360,1,1))
- #A:pushEntity(holoEntity(I))
- if(holoEntity(I)){
- T++
- } else { break }
- }
- }
- if(T<Kinks) {
- #timer("c",1000)
- #if(clk("c"))
- #{
- T++
- holoCreate(T)
- holoModel(T,"hqcylinder2")
- holoScale(T,vec(Thick,Thick,KLength))
- holoColor(T,hsv2rgb((T/Kinks)*360,1,1))
- if(!holoEntity(T)) {
- T--
- }
- }
- for(I=1,Kinks) {
- if(I==1) {
- holoPos(I,entity():pos()+entity():up()*6)
- Ang = (holoEntity(I+1):pos()-entity():pos()):toAngle()+ang(90,0,0)
- holoAng(I,Ang)
- } elseif(I==Kinks) {
- holoPos(I,holoEntity(I-1):pos()+holoEntity(I-1):up()*KLength*12)
- Ang = (holoEntity(I-1):pos()-holoEntity(I):pos()):toAngle()+ang(90,0,0)
- holoAng(I,Ang)
- } else {
- holoPos(I,holoEntity(I-1):pos()+holoEntity(I-1):up()*KLength*12)
- Ang = (holoEntity(I+1):pos()-holoEntity(I-1):pos()):toAngle()+ang(90,0,0)
- holoAng(I,Ang)
- }
- #P = holoEntity(I):angles():pitch()/360*255
- #Y = holoEntity(I):angles():yaw()/360*255
- #R = holoEntity(I):angles():roll()/360*255
- #holoColor(I,vec(P,Y,R))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement