Custom 3D Player Model - crouch sequence?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Custom 3D Player Model - crouch sequence?

Post by PixelWAD »

How to implement crouch sequence with MD3 models?
I have few frames of animation that I want to use for crouching but I do not see an easy way to do it.

https://zdoom.org/wiki/Crouching

https://zdoom.org/wiki/Actor_properties ... ouchSprite

Is not much much help as it does not mention anything about use of 3D models.

I know more or less how to use these models, I have made a custom monster before. However the crouchsprite only accepts for characters (so I can't specify which frame, for example MOD2 F), and it's also not an actor so the model is not linked to it anyway..

I have looked into Quake 2 stuff pk3 and they are using:

Code: Select all

Actor IsCrouching : InvBoolean {}
Actor IsNOTCrouching : InvBoolean {}
but I'm not even sure how to apply it here..
User avatar
Enjay
 
 
Posts: 26633
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Custom 3D Player Model - crouch sequence?

Post by Enjay »

I know that I did it in my Gene-Tech mod (quite possibly borrowing code from the Q2 mod) but I don't remember how I did it. It might just be as simple as using the crouch sprite names in MODELDEF. Feel free to poke around inside the mod to see if it helps anyway.

Return to “Scripting”