Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Sosylka_by_Artes
- @persist [O E Base]:entity Just N Table:table
- interval(100)
- if(first()){
- noDuplications()
- setName("Сосулька от Artes'a")
- E=entity()
- O=owner()
- Base = holoCreate(0,E:toWorld(vec(0,0,0)),vec(0.001),E:toWorld(ang(0,0,0)),vec(255),"cube") holoParent(0,E)
- for(I=1,randint(3,7)){
- Table:pushArray(array(Base:toWorld(vec(0,0,0+10*I)),vec(0.1+I/5,0.1+I/5,2.1),Base:toWorld(ang(0,0,180)),vec(0,randint(161,200),randint(200,255)),"cone","debug/debugdrawflat"))
- }
- }
- if(Table:count() > N) {
- while(holoCanCreate() & perf(1)) {
- N++
- local Holo = Table[N, array]
- holoCreate(N, Holo:vector(1), Holo:vector(2), Holo:angle(3), Holo:vector(4), Holo:string(5))
- holoMaterial(N, Holo:string(6))
- holoParent(N, Base)
- }
- } else {
- if(O:weapon():type() == "weapon_crowbar") { Just = 1 O:weapon():setAlpha(0) } else { Just = 0 }
- if(changed(Just)&Just) {
- holoPos(0,O:attachmentPos("anim_attachment_rh"))
- holoAng(0,O:attachmentAng("anim_attachment_rh"))
- holoPos(0,holoEntity(0):toWorld(vec(0,0,-15)))
- holoAng(0,holoEntity(0):toWorld(ang(0,-10,0)))
- holoParentAttachment(0,O,"anim_attachment_rh")
- }
- elseif(!Just) {
- if(!first()){
- holoUnparent(0)
- holoPos(0,E:pos())
- holoAng(0,E:angles())
- holoParent(0,E)
- }
- }
- }
Add Comment
Please, Sign In to add comment