Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEM.Model = 'models/combine_helicopter/helicopter_bomb01.mdl'
- ITEM.Attachment = 'chest'
- function ITEM:OnEquip(ply, modifications)
- ply:PS_AddClientsideModel(self.ID)
- end
- function ITEM:OnHolster(ply)
- ply:PS_RemoveClientsideModel(self.ID)
- end
- function ITEM:ModifyClientsideModel(ply, model, pos, ang)
- local Size = Vector(0.34999999403954,0.34999999403954,0.34999999403954)
- local mat = Matrix()
- mat:Scale(Size)
- model:EnableMatrix('RenderMultiply', mat)
- model:SetMaterial('')
- local MAngle = Angle(0,0,90.779998779297)
- local MPos = Vector(-2.6099998950958,-8.6099996566772,4.6100001335144)
- pos = pos + (ang:Forward() * MPos.x) + (ang:Up() * MPos.z) + (ang:Right() * MPos.y)
- ang:RotateAroundAxis(ang:Forward(), MAngle.p)
- ang:RotateAroundAxis(ang:Up(), MAngle.y)
- ang:RotateAroundAxis(ang:Right(), MAngle.r)
- model.ModelDrawingAngle = model.ModelDrawingAngle or Angle(0,0,0)
- model.ModelDrawingAngle.p = (CurTime() * 0 *90)
- model.ModelDrawingAngle.y = (CurTime() * 0.21999999880791 *90)
- model.ModelDrawingAngle.r = (CurTime() * 0 *90)
- ang:RotateAroundAxis(ang:Forward(), (model.ModelDrawingAngle.p))
- ang:RotateAroundAxis(ang:Up(), (model.ModelDrawingAngle.y))
- ang:RotateAroundAxis(ang:Right(), (model.ModelDrawingAngle.r))
- return model, pos, ang
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement