Difficulty-Based Character Class?
Difficulty-Based Character Class?
Howdy! Was tinkering around with the skill level definition via MAPINFO, and I was wondering if there was a way to define/replace the player class based on the difficulty level one chooses. In this case, I'd like the Nightmare difficulty to entail a separate set of weapons, but I'm having trouble figuring out how to switch the player class via difficulty selection, rather than the traditional "player class select" menu. Any ideas?
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Difficulty-Based Character Class?
One possibility is to have the playerclass check and replace inventory items in its PostBeginPlay() state, something like
Code: Select all
class NotVerySuperMan:DoomPlayer
{
default
{
player.displayname "Super Shotgun Guy";
player.startitem "SuperShotgun";
player.startitem "Fist";
player.startitem "Shell", 20;
}
override void PostBeginPlay()
{
super.PostBeginPlay();
if(skill>=3)
{
A_TakeInventory("SuperShotgun");
A_GiveInventory("Shotgun");
//might need another line to set # of shells
}
}
}