Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Hiiammike

Ok question about scripts this going to sound weird

Recommended Posts

Is there a script that will make the player always crouch never stop crouching but also at the same time make it so the player is still able to walk at normal walking speed.

When crouching? 

Share this post


Link to post

I feel like this could be done with just a simple dehacked patch to change the player height/view, maybe?

Share this post


Link to post
1 minute ago, Salt-Man Z said:

Interestingly, I just came across this thread from two years ago: 

 

 

I'll see.

 

Share this post


Link to post
1 minute ago, EarthQuake said:

Since you were asking about a "script", I'm assuming you're designing whatever you're... uh designing... for ZDoom?

 

If that's the case, then it sounds like you want to define a new player class and change the Height property and Player.ViewHeight property of the new player. What exactly are you trying to do?

For gzdoom.

Share this post


Link to post

Do what EarthQuake said, but also change the YScale so the player will also look shorter.  Or, find some crouching sprites and use those as the sprites for your custom class.

Share this post


Link to post
4 minutes ago, Empyre said:

Do what EarthQuake said, but also change the YScale so the player will also look shorter.  Or, find some crouching sprites and use those as the sprites for your custom class.

Ok i will do just that. But i wont add a custom class.

Share this post


Link to post

But the whole idea depends on a custom class.  Making the class should be relatively simple, since you are not changing much.  In fact, I'll make it here and now:

actor CrouchingPlayer : DoomPlayer
{
	Height 28 //56 / 2
	Player.ViewHeight 20 //41 / 2
	YScale 0.5
}

Put that in a DECORATE lump.  Then put the following in a KEYCONF lump:

clearplayerclasses
addplayerclass CrouchingPlayer

That should do the trick.  The catch is that the player will be able to crouch and be even shorter.  I don't know a way to disable that in a mod.  A mapper can disable crouching in MAPINFO.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×