Custom player/hexen classes in decorate

Moderator: GZDoom Developers

User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ
Contact:

Post by Necromage »

Grubber wrote:@NecroMage: PlayerClass ACS built-in function is already in.
I just noticed that it comes with a different acc but I do not see anywheres where any of the new functions are documented.
User avatar
Nash
 
 
Posts: 17496
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

To simualate different melee weapon sprites, couldn't you just make several different player classes with several different player sprites, and use a combination of ACS CheckWeapon() and Grubber's new PlayerClass functions?
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ
Contact:

Post by Necromage »

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.
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ
Contact:

Post by Necromage »

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:

Code: Select all

clearplayerclasses

addplayerclass TestPlayer nomenu
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).
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Post by Kinsie »

So, uhh, what are Grubber's playerclass ACS commands?
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

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.
User avatar
Nash
 
 
Posts: 17496
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Nice! No ACS function to change class mid-game, though?
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

Not yet. I'll do that soon (final exams today, in progress Oo).
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ
Contact:

Post by Necromage »

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).
User avatar
BouncyTEM
Posts: 3822
Joined: Sun Aug 24, 2003 5:42 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Post by BouncyTEM »

bump

any progress, Grubber? :)
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

Only fixed few bugs.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

Nash wrote:Nice! No ACS function to change class mid-game, though?
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?

EDIT: I see many people have requested this function over the length of the thread. Graf, are you planning to add classes to gzdoom?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

When it is more finished. In its current state, no.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

If people don't mind a few hacks, Global ACS + Custom Classes = class levels. (I know, this is coming from the guy who writes weapons because they can be written...)
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Post by Shadelight »

bump, (again), any progress on the change class in-game stuff?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”