I just noticed that it comes with a different acc but I do not see anywheres where any of the new functions are documented.Grubber wrote:@NecroMage: PlayerClass ACS built-in function is already in.
Custom player/hexen classes in decorate
Moderator: GZDoom Developers
Having tried to go through the diff that comes with this I still don't know what the new acs functions are.
One thing I would like is for PlayerPawn (for those who don't know: this is the base class by which all players derive from) to have all the flags need so that all you have to do is add the states (I am not sure which ones it needs but I do know it needs one that lets you actually move). This way you don't need to inherit from a game specific player. All it would need is the basic ones.
One thing I would like is for PlayerPawn (for those who don't know: this is the base class by which all players derive from) to have all the flags need so that all you have to do is add the states (I am not sure which ones it needs but I do know it needs one that lets you actually move). This way you don't need to inherit from a game specific player. All it would need is the basic ones.
another double post
Somethings I found out: using hidden as a flag for adding a player class will not work, instead its: "nomenu". For example:The next thing I found out is that if you type "playerclasses" into the console then it tell you all the classes by number and then display name (even if they are hidden).
Somethings I found out: using hidden as a flag for adding a player class will not work, instead its: "nomenu". For example:
Code: Select all
clearplayerclasses
addplayerclass TestPlayer nomenu
DECORATE properties
player.displayname <displayname>
Specifies the display name of the player class. It is the string used to identify the player class (in menus, playerclass cvar, etc.).
player.soundclass <soundclass>
Specifies the sound class of the player class. See SNDINFO command $playersound.
player.colorrange <from> <to>
The color range in which the player skin is translated.
player.jumpz <jumpz>
The player's jump z. The actual jump height is 8 times bigger than jump z.
player.viewheight <viewheight>
The player's view height.
player.forwardmove <walk> [<run>]
player.sidemove <walk> [<run>]
Player speed modifiers.
player.scoreicon <icon>
The icon shown in multiplayer on the score bar (like in Hexen).
player.startitem <classname> [<amount>]
Adds a inventory item to the list of items given to a player when new game starts. First specified weapon is used as a starting weapon.
DECORATE flags
NOSKIN
Disables skins for the class.
KEYCONF
clearplayerclasses
Clears the list of player classes. Useful if you don't want to use original player classes.
addplayerclass <classname> [nomenu]
Adds a player class to the player class list. The nomenu flag specifies that the class won't be accesible through new game menu (this way you can create multiplayer-only player classes, selectable only in player setup menu).
ACS
int PlayerClass (int player)
Returns the player class number (based on the order of player classes specified in KEYCONF) of the player. You can use PlayerClass (PlayerNumber ()) to get the player class of the current player.
S_SKIN
class <displayname>
Defines a skin for the player class specified by it's displayname (player.displayname property in DECORATE). Use instead of game.
player.displayname <displayname>
Specifies the display name of the player class. It is the string used to identify the player class (in menus, playerclass cvar, etc.).
player.soundclass <soundclass>
Specifies the sound class of the player class. See SNDINFO command $playersound.
player.colorrange <from> <to>
The color range in which the player skin is translated.
player.jumpz <jumpz>
The player's jump z. The actual jump height is 8 times bigger than jump z.
player.viewheight <viewheight>
The player's view height.
player.forwardmove <walk> [<run>]
player.sidemove <walk> [<run>]
Player speed modifiers.
player.scoreicon <icon>
The icon shown in multiplayer on the score bar (like in Hexen).
player.startitem <classname> [<amount>]
Adds a inventory item to the list of items given to a player when new game starts. First specified weapon is used as a starting weapon.
DECORATE flags
NOSKIN
Disables skins for the class.
KEYCONF
clearplayerclasses
Clears the list of player classes. Useful if you don't want to use original player classes.
addplayerclass <classname> [nomenu]
Adds a player class to the player class list. The nomenu flag specifies that the class won't be accesible through new game menu (this way you can create multiplayer-only player classes, selectable only in player setup menu).
ACS
int PlayerClass (int player)
Returns the player class number (based on the order of player classes specified in KEYCONF) of the player. You can use PlayerClass (PlayerNumber ()) to get the player class of the current player.
S_SKIN
class <displayname>
Defines a skin for the player class specified by it's displayname (player.displayname property in DECORATE). Use instead of game.
Well, one bug that I found is that if you have multiple classes but all of them are hidden accept one it will still ask you to select your class instead of just sending you strait to the difficulty menu.
Also, some way to define the difficulty settings for each class and random would much appreciated (unless there is some way that I am not aware of).
Also, some way to define the difficulty settings for each class and random would much appreciated (unless there is some way that I am not aware of).
- Anakin S.
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...
That would be nice. You could simulate getting into a vehicle and driving around or putting on some gladiator armor or turning to the dark side and becoming a Sith lord. How far along are you in making this, Grubber?Nash wrote:Nice! No ACS function to change class mid-game, though?
EDIT: I see many people have requested this function over the length of the thread. Graf, are you planning to add classes to gzdoom?
- Shadelight
- Posts: 5113
- Joined: Fri May 20, 2005 11:16 am
- Location: Labrynna