Ice

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Ice

Post by The Ultimate DooMer »

I don't know if it's been posted before, but you can actually go faster on ice than on normal ground. It's also a lot easier to speed up and slow down than on Heretic's ice (which IMO has the right behaviour) - are these intentional or just coded differently?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Ice is not always the same. As the friction for ice is customizable there can be ice with a little friction and ice with almost no friction at all. You probably just set an incorrect value.
Heretic ice should be equivalent to a friction value of 170.
Both versions of ice use exactly the same code.
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

I was using 175 (now 170) and it still seems totally different to Heretic's. Movement seems almost normal and the top speed is higher, compared to the slow acceleration/deceleration and increased bobbing of Heretic. (I've got both of them running right now)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Then use Heretic's ice sector special. It's sector type 79 and freely available in all games!


But you are right. The movefactor (responsible for acceleration) is higher with Boom's algorithm.

So how about an extension to Sector_SetFriction? Add an option to specify both a friction and a movefactor value! I always thought it was a bas idea to generate both values out of a single parameter. With Boom it was the only way possible but with Hexen's map format it shouldn't be a problem at all to make them independent of each other.

In short: There is no bug but more options would definitely be appreciated!
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

Got it working, but only through editing the sector's raw data. What's the hex equivalent so I can stick it in WA's sector properties list?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

79 decimal is 0x49 hex.
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

It's actually 0x4f (as 0x49 is 73), but it's working now. Thanks.
Locked

Return to “Editing (Archive)”