Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Triangle Box Studio

How to make a default player character in a TC?

Question

4 answers to this question

Recommended Posts

  • 0

First you need to define your new actor in DECORATE or ZSCRIPT. You just inherit from PlayerPawn class or from a class already inheriting from it(DoomPlayer for example).

 

When you have it, in MAPINFO lump you need to add a section like this:

 

Gameinfo
 {
    PlayerClasses = "yourclassname"
 }

Share this post


Link to post
  • 0

If you're doing this in (G)ZDoom, this is what you do:

 

1. Define a new player thing in DECORATE or ZSCRIPT.

 

image.png.22220ef18216da839ccc6f443809c5e0.png

 

You can inherit from any of the default player types that ZDoom supports if you don't want to make it entirely from scratch, but note that the starting items ARE NEVER INHERITED - you will have to include them in the definition, even if you want to use the standard fist/pistol/50 bullets that Doom has.

 

2. After defining this new player thing, create a MAPINFO lump (if you haven't already) and include this bit of text:

 

image.png.bc457824d1675dc5754cd6d3f4ec40af.png

 

By only providing one player class here (your new one) there won't be a class selection screen or anything, and your new player class will be the default.

 

Hope this helps!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×