[Release] SpinOCD, an exercise in trying to understand

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Giga Otomia
Posts: 1
Joined: Tue Mar 10, 2026 5:23 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows

[Release] SpinOCD, an exercise in trying to understand

Post by Giga Otomia »

As I was debugging something I don't plan on releasing to the public, I noticed that the Angle value isn't clamped to -180,180 or 0,360. In fact, it goes above 360 and below -360. That gave me an idea for a quick gameplay mod.

In the past, one of my brother's friends confided in me how her obsessive compulsive disorder affects her. As she's going about her day, she keeps track of all the times she turns left or right, and how far. Then, when she's ready for bed, she spins the other way around until she gets back to an effective zero degrees spun that day, like unwinding a coiled wire or rope. This is the idea that this mod is based around. If your angle value is above 180 more than the angle you started the level at, or below -180 less than that value, when you activate a level-ending line special, you die. There is no in-game indication of your angle - it is entirely up to the player to keep track of their turns, and return to a point near enough to zero relative degrees to be considered safe. (I say "relative" degrees because you can start at any angle from 0 to 359, from what I remember of mapping, but I log that and use it as a variable.) Alternatively, you can code yourself a .pk3 that writes your angle to the HUD somewhere, but that is an exercise left for the player.

Thanks go out to Agent_Ash and TheHorsesterCat for their help in the Discord support channels. Without them, I'd be stuck on crashes with no idea how to fix them.

And, if it wasn't clear, this is for the ZDoom series of engines. It's written in ZScript.
You do not have the required permissions to view the files attached to this post.
User avatar
tuintje
Posts: 76
Joined: Sat Sep 14, 2013 8:50 am

Re: [Release] SpinOCD, an exercise in trying to understand

Post by tuintje »

very interesting to come up with such a thing

Return to “Gameplay Mods”