Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Tutor_Sword_by_Artes
- @persist [O E Base]:entity Just N Table:table
- # ЭТО КОД ДЛЯ СОЗДАНИЯ МЕЧА ОТ ARTES'A
- # ETO KOD DLA SOZDANIYA MECHA OT ARTES'A
- interval(100)
- if(first()){
- E=entity()
- O=owner()
- List = "sprops/textures/sprops_metal3"
- Base = holoCreate(0,E:toWorld(vec(0,0,0)),vec(0.001),E:toWorld(ang(0,0,0)),vec(255),"cube")
- Table:pushArray(array(Base:toWorld(vec(0,0,0)),vec(1,1,1),Base:toWorld(ang(0,0,180)),vec(255),"models/props_junk/meathook001a.mdl"))
- }
- if(Table:count() > N) {
- while(holoCanCreate() & perf()) {
- 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(1,2.5,10)))
- 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)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement