Page 3 of 7

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 2:43 am
by Error
It's a relatively easy process. The hard part was the frame interpolation. If I used velocity and avelocity instead it would be smoother, which I may try soon.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 2:50 am
by Error
But thinking about it, velocity and avelocity wouldn't work with movetype_follow... and any weird bugs will make it unstable as f*ck.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 3:31 am
by Spike
its easier to just use setattachment/equivelent, then it can use the same timing etc as the player, and can even follow bones if you ever go with skeletal/md3 models.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 6:04 am
by Error
Can mdl files be used as attachments to md3's? That way the hats don't have to be animated and the online play doesn't get bogged down with all the constant moving of the hat?

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 3:56 pm
by frag.machine
Since attachments require a tag (wich is not supported by .mdl files), I believe not. Unless the engine assumes by default the model origin (I recall reading this somewhere in DP docs) but even so you would need at least the player model to be in md3 format to define the head tag.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 6:01 pm
by Error
That's what I was thinking. I've got no problem converting the player model to md3, since it's done. I just don't want to have to do it a rediculous number of times.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 6:31 pm
by Spike
tag 0 (aka: "") is always the entity origin rather than an actual tag.
this makes it useful to attach to mdls, basically equivelent to movetype_follow but clientside instead.

you'll still need to change the .frame, because without tags you'll need to animate your attached ents to match the original's frames. With players, you should consider doing this in PlayerPostThink or somesuch.

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 11:17 pm
by Error
The other way around. Mdl hat models on a md3 player model. Would that work?

Re: Untitled RPG Project

Posted: Sun Dec 04, 2016 11:30 pm
by Spike
sure, why wouldn't it?
just make sure the attached model can be placed directly upon the tag's position (or rather that the attached entity's origin biases it correctly such that the model is nudged into the right place). as the tag moves around on the 'parent' entity, the child entity's rendered position will be changed according to it and the child's origin relative to that tag.

Re: Untitled RPG Project

Posted: Mon Dec 05, 2016 4:36 am
by Error
So my next question is, can someone link to me how to convert my player model to md3 and bone-ify it OR can someone do this smallish task for me?

Re: Untitled RPG Project

Posted: Mon Dec 05, 2016 11:12 am
by frag.machine
I'd suggest to take the opportunity and add a tag_weapon to the player's hand.

Re: Untitled RPG Project

Posted: Mon Dec 05, 2016 3:32 pm
by Error
It's on my list of stuff I have to do! :biggrin:

Re: Untitled RPG Project

Posted: Tue Dec 06, 2016 4:47 am
by Error
3 more new hats, created by frag.machine! Love them.

Image

Re: Untitled RPG Project

Posted: Tue Dec 06, 2016 5:51 am
by ceriux
idk if this will help any. but i made this a while back.

http://forums.insideqc.com/viewtopic.php?f=2&t=5296

Re: Untitled RPG Project

Posted: Tue Dec 06, 2016 1:01 pm
by frag.machine
LOL, looking the second hat... only now I realized what I have done...

Image

Totally unintended, seriously.