Hey i downloaded this pack thinking they were sweps but i was wrong.
I am wondering if somebody could make these into sweps.
[url]http://www.garrysmod.org/downloads/?a=view&id=11570[/url]
P.S. I didn't make these, hammyTWO did so if somebody makes these into swpes give him credit for the models. :3
________________________________________________________________________________________________________
[img]http://lh4.ggpht.com/_m2qKabRzNLg/SooH01jaUoI/AAAAAAAAAIU/h8ay22KIWrQ/s640/FlameShield.jpg[/img]
Sorry but I'm afraid it would be very hard to make a scripted weapons out of these since they apparently don't have a view model. Most probably don't even have bones so we couldn't make the characters wield them at all.
Ok, thanks.
[QUOTE=Crazy Quebec;18286270]Sorry but I'm afraid it would be very hard to make a scripted weapons out of these since they apparently don't have a view model. Most probably don't even have bones so we couldn't make the characters wield them at all.[/QUOTE]
Not true, precisely.
[code]
function SWEP:DrawWorldModel( )
local hand, offset, rotate
if not ValidEntity( self.Owner ) or not self.CurrentItem then
self:DrawModel( )
return
end
if not self.Hand then
self.Hand = self.Owner:LookupAttachment( "anim_attachment_rh" )
end
hand = self.Owner:GetAttachment( self.Hand )
offset = hand.Ang:Right( ) * self.Position.Right + hand.Ang:Forward( ) * self.Position.Forward + hand.Ang:Up( ) * self.Position.Up
hand.Ang:RotateAroundAxis( hand.Ang:Right( ), self.Angles.Right )
hand.Ang:RotateAroundAxis( hand.Ang:Forward( ), self.Angles.Forward )
hand.Ang:RotateAroundAxis( hand.Ang:Up( ), self.Angles.Up )
self:SetRenderOrigin( hand.Pos + offset )
self:SetRenderAngles( hand.Ang )
self.CurrentItem:Draw( self, self.Owner )
self:DrawModel( )
end
[/code]
Where self.Angles and self.Offset are the proper positioning data.
Can do stuff like this:
The image that was here was replaced with something else by filesmelt.
That's the CSS coffee mug.
[QUOTE=Kogitsune;18299985]Not true, precisely.
[awesome code]
Where self.Angles and self.Offset are the proper positioning data.
Can do stuff like this:
[awesome picture]
That's the CSS coffee mug.[/QUOTE]
Well I knew it was possible but I'm just bad at doing it. :wink: I tried with parenting and and offset inputs but it fails when in multiplayer. I'll ninja this now. :v:
[QUOTE=Kogitsune;18299985]Not true, precisely.
[code]
function SWEP:DrawWorldModel( )
local hand, offset, rotate
if not ValidEntity( self.Owner ) or not self.CurrentItem then
self:DrawModel( )
return
end
if not self.Hand then
self.Hand = self.Owner:LookupAttachment( "anim_attachment_rh" )
end
hand = self.Owner:GetAttachment( self.Hand )
offset = hand.Ang:Right( ) * self.Position.Right + hand.Ang:Forward( ) * self.Position.Forward + hand.Ang:Up( ) * self.Position.Up
hand.Ang:RotateAroundAxis( hand.Ang:Right( ), self.Angles.Right )
hand.Ang:RotateAroundAxis( hand.Ang:Forward( ), self.Angles.Forward )
hand.Ang:RotateAroundAxis( hand.Ang:Up( ), self.Angles.Up )
self:SetRenderOrigin( hand.Pos + offset )
self:SetRenderAngles( hand.Ang )
self.CurrentItem:Draw( self, self.Owner )
self:DrawModel( )
end
[/code]
Where self.Angles and self.Offset are the proper positioning data.
Can do stuff like this:
[img]http://filesmelt.com/downloader/gm_construct000054.jpg[/img]
That's the CSS coffee mug.[/QUOTE]
hi,
Does this code fix the "crotch-cannon" error with world model sweps :)
Thanks :D
[editline]01:35PM[/editline]
And where does this code go ? :)
into the base file or swep, shared.lua file
[QUOTE=jedinight54;18419635]hi,
Does this code fix the "crotch-cannon" error with world model sweps :)
Thanks :D
[editline]01:35PM[/editline]
And where does this code go ? :)
into the base file or swep, shared.lua file[/QUOTE]
If you don't know what to do with it, you really shouldn't bother using it. It's not functional without work.
Sorry, you need to Log In to post a reply to this thread.