I want to make a simple player class

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

I want to make a simple player class

#1

Post by Empyre » Tue Oct 16, 2012 12:07 am

What I want to accomplish is making players use a skin that comes in my wad instead of some skin they've selected in their skins folder. I figured that the best way to accomplish that is to make a simple class that differs from the standard DoomPlayer class only with its skin. I haven't found out how to do that in the ZDoom wiki. I also figure it would be trivial for somebody who knows how to make player classes.

How can I do this?
"For the world is hollow, and I have touched the sky."

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: I want to make a simple player class

#2

Post by Llewellyn » Tue Oct 16, 2012 1:11 am

Basically make a Keyconf lump with

Code: Select all

clearplayerclass
addplayerclass coolguy
Then inherit from DoomPlayer class and name it coolguy and replace the PLAY sprites with your own... I think thats what you want.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: I want to make a simple player class

#3

Post by -Jes- » Tue Oct 16, 2012 2:17 am

Llewellyn wrote: Basically make a Keyconf lump with

Code: Select all

clearplayerclass
addplayerclass coolguy
Then inherit from DoomPlayer class and name it coolguy and replace the PLAY sprites with your own... I think thats what you want.
Might wanna +NOSKINS it, just in case.

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

RE: I want to make a simple player class

#4

Post by Empyre » Tue Oct 16, 2012 4:46 am

-Jes- wrote: +NOSKINS
That's the simplest solution right there. Problem solved.
"For the world is hollow, and I have touched the sky."

Post Reply