Jump to content
  • 0

How to make a default player character in a TC?


Triangle Box Studio

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!

Edited by SMG_Man

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...