Creating new player classes

From ZDoom Wiki

Jump to: navigation, search

Choosing Player Classes in-game

Choosing a player class through the game's GUI can occur in two instances:

-When starting a new game (a class menu will popup inbetween choosing 'new game' and 'skill level')

-When changing the (Multi-)Player Setup in the Options menu


Defining Player Classes in your PWADs

First thing you have to do is to create new actor in DECORATE inheriting from PlayerPawn or any of its subclasses.

actor MyPlayer : PlayerPawn
{
  ...
}

Then you must access it for the game via KEYCONF.

// This command clears the player classes' list.
clearplayerclasses

// Add your player class to the list
addplayerclass MyPlayer

// Add standard Doom player to the list, but make it accessible only via player setup menu (i.e. hide from 'New Game' choice)
addplayerclass DoomPlayer nomenu
Personal tools