Quote for new page.
Bone animations.
Not hand.
Quote for new page.
Bone animations.
Not hand.
I'm afraid you are mistaken my good sir, if there are no bones in the models hands, how can you pose them? Also this:
ValveBiped.Bip01_L_Finger0
ValveBiped.Bip01_L_Finger01
ValveBiped.Bip01_L_Finger02
ValveBiped.Bip01_L_Finger1
ValveBiped.Bip01_L_Finger11
ValveBiped.Bip01_L_Finger12
etc...
I've had a question about gmod animations for some time now. Is it possible to compile a model to have more animations than the source engine alone provides? Can you make your own animations and gestures and use them in game? If this is possible, you'd think there would be some animation addons.
This IS an animation addon, it's just in beta, so there's no fancy schmancy menu yet.
so how do you use it, console comands?
I thank you for the correction, I too must flip people off in lua now.
You write lua scripts.
Anyone got a full bone list?
Source SDK Model Viewer is where I get bones and such.![]()
Here's two more images. I made an idle stance for a high-powered pistol weapon. When the player is shooting they start playing the stance and stop playing when they stop shooting (holding left click or not). One thing you have to remember about this is that you need to use this on the client for it to work best. The server can send the function to clients but if you were to use this in say, Think or Move then it should be mostly or entirely client-controlled.
![]()
So this works on npc's? If so, that would inspire me into trying to make a hunter (L4D) snpc.
It works on anything that calls BuildBonePositions and has bones.
If I get time, I'll make DGUI. This is fucking sexy, by the way.
Another great release, Thnx JetBoom =]
Yes, if you're compiling your own model you can create as many animations as you like to be used ingame, but if you're making a player/NPC I strongly suggest you recreate the normal bone structure and THEN make your own animations.
Fingers/faces are pose-able. Fingers have bones in source. Are there face bones? If so, couldn't - this be used to pose faces as well?
The face does not actually have any bones, it's handled by a different part of the engine.
So, I have made a little animation, nothing big, just a simple grudge head turning thing, and it works in singleplayer, but how would I get it to work in my dedicated server so everyone sees mah head turning around?
Yes, they download cl_boneanimlib.lua and sh_boneanimlib.lua
Yes, it recognizes the SetLuaAnimation() when I use "lua_run" (Same method I used for SP)
So how do I do this?
Nvm, fix'd
so how you fixed it?
Finger posing wouldn't work well on players. They only have a thumb and one set for the rest of the fingers. The higher quality models used for ragdolls and NPC's actually have all the fingers.
Put them into the gamemode folder instead of as an addon format.
It works on my server just fine in addon format.
Also, jetboom, moving the spine would also move the head, because the head is parented to the spine. Could you add a way to do things like that in REVERSE, so that the bone moved will also move anything that it's parented to? Such as if the foot moves, everything else does too.
You're supposed to use rotations. Moving the spine in that animation was just a test to show you what happens when you do that.
Not sure if it's just me, but it seems that Lua animations don't entirely work on DModelImages, they are accepted and run just fine... to an extent. The parenting seems to have some weird stuff going on.
Using that animation on for example, a player works fine and makes then bend over at the hips, so I was just wondering if anyone had any ideas?
Edit: Just noticed, I think it's because it uses a ClientsideModel, not sure why it doesn't work with clientside models though.
Is that a player model or an npc model, Delremos? Because I tried setting the "stancetest" to an NPC but it didn't work right.
It's just a
ClientsideModel( LocalPlayer():GetModel(), RENDER_GROUP_OPAQUE_ENTITY )
This makes my character's torso stretch really high up and down. Over and over and over. And I die and spaz everywhere.
Isn't it great? :D
I tried doing that. If you can't figure it out you might have to have it use an actual player or NPC.
I think a good idea for an "editor" is to pose the ragdoll and translate that pose into a table the script can understand.
Using the it like the PAC would be horrible. (I actually wish I used this method for the PAC as well now that I think about it.)
That would only work for sequences. The math involved in only using rotations would be a nightmare.
So FrameRate is how fast the bones transition to their new position and angle? And how do I reset the bones for postures, stances, and sequences?
StopLuaAnimation ends the animation.
Thanks.
Also, you can assign a group to an animation and then use StopLuaAnimationGroup. Any animation using that group is stopped. Useful for say, different animations for one thing (swinging a weapon) and you don't want overlaps.
I would absolutely less than 3 anyone who made an editor for this.
Also, on my server I have a custom radio, and I made an animation for it and it's cool.
Basically, when I start the radio, people's heads bob left and right, as if listening to the music :D
Cool part: I used the ShouldPlay function or whatever to make it only play if they have the radio on, so you can tell who's listening to the radio and who's not by their heads bobbing![]()
Turning it off and on is better than having it run all the time.
What do you mean?
Why the hell was I rated dumb?
i would absolutely less than 3 anyone who made an editor for this.
I only made that "Why the hell was I rated dumb?" part of my last post so that I could get dumb ratings on it xD
REVERSE PSYCHOLOGY MY FRIENDS. LEARN IT.