Author Topic: No crouch playertype.  (Read 6988 times)

How can I disable crouch for a playertype?

If I remember correctly there's a fancy var for crouch in the armor .cs. I might take a look at it later.

one of the slots for armor::ontrigger is crouch, i'm pretty sure.  Just make it so that it returns when they try to crouch

Never mind. There wasn't a fancy variable like I remembered. Sure you can prevent people from moving while crouching, but preventing the animation itself. No idea.

My hypothesis:
1. Make another TorqueConstructorDTS thing of the player, but omit the crouching animations.
2. Make a clone of PlayerStandardArmor and give the crouching hitbox the same dimensions, same speeds, same everything.

This should let you crouch but it won't change a thing.

Sure you can prevent people from moving while crouching, but preventing the animation itself. No idea.

I might have to go with this then.

I might have to go with this then.
You don't.

one of the slots for armor::ontrigger is crouch, i'm pretty sure.  Just make it so that it returns when they try to crouch
Yes.

Wrong wrong wrong wrong, wrong wrong wrong. You're wrong, you're wrong.

onTrigger is called on trigger. The engine doesn't give a stuff what you do in this. It just breaks other things that run off the crouch trigger.

Sure you can prevent people from moving while crouching, but preventing the animation itself. No idea.
Well thought COULD work, depending on what he needs it for. Because you can still jump-crouch I believe.

My hypothesis:
1. Make another TorqueConstructorDTS thing of the player, but omit the crouching animations.
2. Make a clone of PlayerStandardArmor and give the crouching hitbox the same dimensions, same speeds, same everything.

This should let you crouch but it won't change a thing.
Well if he were to do that, would the model still have uhh, collision? Like, if he were to do this, and I held down shift and started moving towards a little tunnel or something, would I still go through the tunnel and the datablock/model just go through the brick?

Well thought COULD work, depending on what he needs it for. Because you can still jump-crouch I believe.

I'm modifying rotondo's top down script to not being able to jump or crouch/crouchjump. If I can't get rid of crouching then I can work with not being able to move while crouching.

I'm modifying rotondo's top down script to not being able to jump or crouch/crouchjump. If I can't get rid of crouching then I can work with not being able to move while crouching.
this sounds just as good if not better.

Idea: Remove the keybind while using the playertype.

one of the slots for armor::ontrigger is crouch, i'm pretty sure.  Just make it so that it returns when they try to crouch
Idea: Remove the keybind while using the playertype.

they are basically the same thing, but Iban says the player will still crouch.  The only thing this accomplishes is breaking any other addon that binds to the crouch.

Right. Lets say I made a mod that makes it so that every time you press the crouch button you parkour or something and do a roll on the ground. Breaking ::onTrigger will only remove the scripted parkour function, not crouching itself.

Right. Lets say I made a mod that makes it so that every time you press the crouch button you parkour or something and do a roll on the ground. Breaking ::onTrigger will only remove the scripted parkour function, not crouching itself.
so your saying that you can still crouch, but it just wont work?