Is it possible to have multiple viewmodels in gmod?
Did anybody do this yet?
How do you do it?
(I'm sure you all played TF2, Something like the cloaking watch popping up with the spy, but imagine this with other viewmodels, such as crowbar and pistol)
You could fake the model by using the ClientsideModel function. The function creates an entity that is completely client side. You then position and parent it to the original view model.
How would one use it?
I can't see the model I created..
Any examples?
good idea
Dual wield crowbars?
I'm so fucking in.
In the Source SDK you can easily create additional view models (it supports 2 by default), I don't see why garry couldn't do it
[QUOTE=TheGreatVax;16918018]How would one use it?
I can't see the model I created..
Any examples?[/QUOTE]
I'm not sure how the view model gets positioned, but you could try this..
[lua]
SWEP.SecondModel = NULL;
SWEP.ViewModelFlip = true;
function SWEP:GetViewModelPosition( origin, angles )
if( !IsValid( self.SecondModel ) ) then
self.SecondModel = ClientsideModel( self.ViewModel, RENDERGROUP_BOTH );
end
self.SecondModel:SetPos( origin );
self.SecondModel:SetAngles( angles );
end
[/lua]
Clips through walls
It would need to be viewmodeldrawn.
There's also problems with:
Walking animations
Sending an animation in general (I can't seem to do it)
Viewmodel FOV
[QUOTE=SteveUK;17021256]I don't see why garry couldn't do it[/QUOTE]
Ask Jinto?
[QUOTE=Night-Eagle;17093918]Ask Jinto?[/QUOTE]
Is that the answer to all of our problems now? :3
[QUOTE=Gbps may have ]Is that the answer to all of garry's problems now? :3[/QUOTE]
Well, I wouldn't say [i]all[/i]...he can only do so much.
[editline]06:22PM[/editline]
It's either that or emulate a SWEP foregoing animations or use a kludge to keep repositioning the player in spectator mode and use a stand-in for the player's model.
Oh, wait, wrong topic. That's for shooting out passenger side of jeep.
[QUOTE=Night-Eagle;17094123]Well, I wouldn't say [i]all[/i]...he can only do so much.[/QUOTE]
How much can he do?
[editline]09:38PM[/editline]
Wait nevermind. The answer would be, "Ask Jinto."
Sorry, you need to Log In to post a reply to this thread.