Reelism 2

Custom Content Docs

Mods are awesome. Mods of mods are even better. It's simple math!

Here's how to make new slots, maps and other weirdness for Reelism 2, should the mad urge take you. If you want to create new bosses or slots, be sure to check the Reelism website for example code!

SLOTINFO

This is a NEW lump designed for allowing new reels to be defined by modders. You can add stuff to the game without doing a Samsara/Brutal Doom/Reelism 1/etc. and forking off the mod, by loading a PK3 with its own slotinfo lump, provided it follows the format used by our official one. Single-line comments are supported.

The Basic Format:

slotcategory:SlotName(:flags),

slotcategory: Can currently be one of the following...

SlotName: The actor spawned by the game mode script when this slot is activated. All slot effects in Reelism 2 are handled by actors that are spawned into the map, perform their actions, and clean up after themselves when they're deleted at the end of a round. We use the naming convention "Slot#_UniqueName" to keep things vaguely organized. Check out zscript/slots/slot#.zsc to see how our slot actors currently work.

Flags: The following flags are available so far...

You can use multiple flags by throwing a "|" symbol between them, just like in many of the official DECORATE/ZScript functions.

Yay, now this rickety custom lump is better documented than ZScript! :V

Custom Maps:

A bunch of odds-and-ends for creating custom maps:

Right now, the level select menus in Town are not automatically populated. We don't know how to make ZScript menus pull from MAPINFO, so if you have an idea how to do this, please tell us! In the meantime, you'll have to manually add them using MENUDEF:

AddOptionMenu "Splot_LevelSelect" // (or "Splot_SecretLevelSelect")
{
	Command "My Cool Map", "changemap coolmap", 0, 1
}

To give your map a custom thumbnail, description, and difficulty value, you'll need to add it to the new map_preview lump. See the existing map_preview lump for examples. It's super simple! Keep in mind that mapname needs to match the episode name *exactly* to show up.

mapname "Sample Map"
{
	preview "mp_SAMPL"
	difficulty "2";
	description "This is an example.\nWow, you can even do linebreaks!";
}

Here are a few handy ACS scripts you can override with your own behavior:

Numbered script 999 is activated by a specific Jackpot, so make sure to make it do something funny or interesting. Keep in mind that the way the jackpot triggers it will make the world the activator, so that all players can see whatever message is triggered. If that's not ideal, use SetActivator in your ACS or something.

Map Helper

Do you want to do something neat in your custom map, but it would require modifying the scripting in Reelism 2? Use the Map Helper! The Map Helper is a custom actor that can change variables in the Reelism 2 game mode script on a map-by-map basis, allowing you to do nifty special effects that would have otherwise required a separate mod.

To use the Map Helper, place it on your map in Doom Builder, then set one of the following custom variables:

The Map Helper variables won't be applied for a few tics, so you can mess around with them using map scripts at the start of the map. If you want to change the effects when the player restarts the map, toggle the splot2_mapRestart cvar with an UNLOADING script, then check for it with an OPEN script and modify the Map Helper before the map gets underway!

If you need additional features for the Map Helper, please tell us!

Template Actors

Reelism 2 uses a lot of hardcoded generic actors in various scripts. Use these to make sure that your custom add-ons are fully compatible!

Actor Name Description Source File
Splot_Player Use this instead of PlayerPawn when you only want to reference a non-morphed player. actors/player/splot_player.zsc
Splot_PlayerMorph This is a base for player morphs, which will handle morph-related housekeeping between rounds. actors/player/splot_morph.zsc
Splot_Monster All custom monsters must use Splot_Monster to properly handle death effects, scores, and other Reelism-specific features. actors/monsters/splot_core.zsc
Splot_Boss Same with bosses. Bosses must use Splot_Boss for the boss round to work correctly. actors/bosses/splot_core.zsc
Splot_Weapon Base for all weapons. Includes new common actions to accommodate Reelism shenangians (such as A_SplotChase and A_SplotCustomPunch). actors/weapons/splot_core.zsc
Ammo Ammo in Reelism 2 uses a special set of script mix-ins to control spawning behavior. actors/weapons/splot_ammo.zsc
Splot_Inventory Base for all inventory. actors/inventory/splot_core.zsc
Splot_Powerup Base for powerup items with special handling by Reelism 2. This one is a little complicated, but it's a fun way to emphasize a powerup! actors/inventory/splot_powerup.zsc
Splot_ScoreItem Use this to increase player score. Splot_ScoreItem will be scaled based on the player's difficulty modifiers. If you *don't* want score to be scaled (for instance, transfering score directly from one actor to another), use ScoreItem instead. actors/inventory/splot_core.zsc
SlotToken Use as an inventory token to keep track of slot-specific effects. zscript/slots/core.zsc
SlotToken_Size Use this token to keep track of reels that change player size. Reelism 2 needs to track these effects for dealing with morphs. zscript/slots/core.zsc
Splot_WeaponToken Use this token to keep track of weapon-specific effects. actors/weapons/splot_core.zsc
SlotItem Use as an inventory item for handling more complicated slot effects for individual actors. zscript/slots/core.zsc

Custom Bosses:

Use the action Splot_SetMusicBoss to change the music during the boss round (for multi-phase bosses, etc.). By default, this command will also stop the music. Use this in place of the normal music changing script to ensure compatibility with Boss Rush. See MF Wizard for an example.

Debugging:

Use the cvar splot2_debug to enable debug mode, which allows you to use cheats without losing your score. We're telling you the secret here because you're clearly interested enough in modding to be digging through the documentation, so please don't use debug mode to spoil the game for yourself!

Running the game with -nomonsters (or sv_nomonsters set to 1) will disable the gamemode scripting, allowing you to happily run around an empty map and check things without getting shot/stabbed/bitten.

Test reels by summoning them like any other actor (ie. "summon Slot3_Dogged"). Use the "remove" cheat the same way to disable them.

Finally...

Be sure to share all your cool mods and maps with us via the ZDoom Forums and/or Twitter! We loved seeing how people shaped Reelism 1 into their own image, and can't wait to see what people do with our new stuff.

One last thing... don't forget to have fun! There's no point in modding if you're not enjoying yourself, after all.