Page 1 of 1

How to Reduce Maxspeed for critter?

Posted: January 30th, 2013, 6:20 pm
by DrChef
Hello, I'm trying to create a monster that shuffles around very slowly.
I know r_char_base_maxspeed can give critters a speed boost, but not reduce their speed to the amount I want. Since this value can't be negative, how would I reduce a critter's speed?

Re: How to Reduce Maxspeed for critter?

Posted: January 30th, 2013, 8:31 pm
by Hirato

Code: Select all

maxspeed = (40 + bonusmovespeed + deltamovespeed + getattr(STAT_AGILITY) / 4.f) * mul;
So basically, decrease agility...
Or overload them with useless items (try the F_NATURAL flag to prevent them from being picked up).
Or apply a permanent status effect that decreases their speed, easiest to do that via armour.

Re: How to Reduce Maxspeed for critter?

Posted: January 30th, 2013, 9:18 pm
by DrChef
Great! I just created a "weight" item to slow it down. Thanks.