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

Need some scripting help, idk what i'm doing.

Question

So, i'm working a new map, and one of the gimmicks is speed based platforming. Problem is, IDK how to edit player speed. I've read various fourm posts on this topic, and one even gave me the code I would most likely need (can provide code, and the author's name for credit if either is needed) So, I have two scripts, both in ACS (p sure) format. I compiled them, didn't help. So, what I gathered is I need to edit the map data somehow, but I can't figure out how to do this. All my prior mapping has been purely sector based, I have never coded a single script for doombuilder. If you can help at all, thanks. Also, ik I probably need to provide additional info, so lmk what you need.

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1

If you only want to change speed globally, it's very easy to edit in DECORATE by inheriting DoomPlayer and changing the Player.ForwardMove and Player.SideMove properties. Then, adding the class in MAPINFO.

 

If you want to change it on the fly in specific zones on maps, that's more complicated. You can set up sectors with SecActEnter and SecActExit sector action things to increase/decrease player speed or adjust velocity.

 

Relevant wiki entries:

https://zdoom.org/wiki/SetActorProperty#Player_speed

https://zdoom.org/wiki/SetActorVelocity

https://zdoom.org/wiki/Classes:SecActEnter

https://zdoom.org/wiki/Classes:SecActExit

Share this post


Link to post
  • 0
3 hours ago, Nevander said:

If you only want to change speed globally, it's very easy to edit in DECORATE by inheriting DoomPlayer and changing the Player.ForwardMove and Player.SideMove properties. Then, adding the class in MAPINFO.

 

If you want to change it on the fly in specific zones on maps, that's more complicated. You can set up sectors with SecActEnter and SecActExit sector action things to increase/decrease player speed or adjust velocity.

 

Relevant wiki entries:

https://zdoom.org/wiki/SetActorProperty#Player_speed

https://zdoom.org/wiki/SetActorVelocity

https://zdoom.org/wiki/Classes:SecActEnter

https://zdoom.org/wiki/Classes:SecActExit

hey, thanks for responding. so, I hear DECORATE come up alot, but have no clue what it is.

Share this post


Link to post
  • 0
  • 0
15 hours ago, loplop6754 said:

So, i'm working a new map, and one of the gimmicks is speed based platforming. Problem is, IDK how to edit player speed. I've read various fourm posts on this topic, and one even gave me the code I would most likely need (can provide code, and the author's name for credit if either is needed) So, I have two scripts, both in ACS (p sure) format. I compiled them, didn't help. So, what I gathered is I need to edit the map data somehow, but I can't figure out how to do this. All my prior mapping has been purely sector based, I have never coded a single script for doombuilder. If you can help at all, thanks. Also, ik I probably need to provide additional info, so lmk what you need.

Try using conveyors. GZDoom should be BOOM Compatible.

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
×