Raised This Month: $51 Target: $400
 12% 

Animating Models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Avitar
Junior Member
Join Date: Feb 2005
Old 02-24-2009 , 22:43   Animating Models
Reply With Quote #1

Hey anyone know how to animate models in a plugin?

I am able to load them to replace a players model but they are unanimated (they just float stiff as a board).

I found another post that said to use SDK Calls but that was replaced by a newer function. Not sure if it is a bug in the function or if I am just calling it wrong:

Code:
if( PrecacheModel("models/combine_soldier_prisonguard.mdl",true) != 0 ){
	SetEntityModel(target,"models/combine_soldier_prisonguard.mdl");
}
I also noted people refering to a clientmodel.games.txt but I was not sure what that was, where I would upload it to, or what it was for.

Last edited by Avitar; 02-25-2009 at 00:47. Reason: added snipplet
Avitar is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 02-25-2009 , 10:27   Re: Animating Models
Reply With Quote #2

You need to use models that are based on the same skeleton/animations as the player. For example, if you are using CSS, you can't use the standard HL2 player models because CSS expects a slightly different set of bones and animations. You would need to decompile the model, and rig it to a CSS skeleton in modeling software such as XSI, and recompile with the CSS bones and animations.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Avitar
Junior Member
Join Date: Feb 2005
Old 02-27-2009 , 01:21   Re: Animating Models
Reply With Quote #3

Ahh thanks for the heads up. These were ported from garys mod, so I guess I can live with the issue until i get time to recompile them.
Avitar is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode