Dynamic Monster Speed

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!)
Post Reply
User avatar
HellBlade64
Posts: 48
Joined: Tue May 13, 2014 3:00 pm

Dynamic Monster Speed

Post by HellBlade64 »

Sorry, I wasn't logged in before. So mods, you can ditch that anon post of this.

Anyways, I'm working on my own version of Hard Doom and trying to implement a mechanic similar to Demon Speed from Unloved.
The issue I'm running into with this idea is for the slower monsters the Demon Speed just makes them sort of faster.
Is there a way I can change a monster's walk speed during the Demon Speed state then change it back when the monster goes back to a normal walking state?
Like, if a monster's walk speed was 10 normally, I want to change it to 20 only for the duration of the Demon Speed, then change it back to 10 whenever it's normally walking.
User avatar
Dan_The_Noob
Posts: 880
Joined: Tue May 07, 2019 12:24 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Dynamic Monster Speed

Post by Dan_The_Noob »

i don't see why not. should be able to just setspeed with A_Setspeed
User avatar
HellBlade64
Posts: 48
Joined: Tue May 13, 2014 3:00 pm

Re: Dynamic Monster Speed

Post by HellBlade64 »

Crap. I should have mentioned this is a Zandronum centered mod and A_SetSpeed doesn't seem to be recognize by Zandronum.
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Dynamic Monster Speed

Post by Jarewill »

How about SetActorProperty with APROP_Speed then?

I don't really use Zandronum, so I am unsure if it recognizes this, but it's worth a try.
User avatar
determin1st
Posts: 57
Joined: Wed Oct 06, 2021 11:23 am
Contact:

Re: Dynamic Monster Speed

Post by determin1st »

try this script: viewtopic.php?f=105&t=74013
Post Reply

Return to “Scripting”