Killo Zapit wrote:Actually, what if you just could define new player classes in a lump somehow instead? Not only for default inventory, but all of the players parameters, like speed, max health, armor class type (doom/heretic, hexen, or strife), or whatever.
That would be even better. The most interesting parameters would be:
Speed: speed is controlled by 4 acceleration factors (slow/fast) (forward/sideways). If you could specify all 4 separately it would certainly be better than the current APROP_Speed method that affects all 4 of them simultaneously.
Default Hexen armor values: It is 0 for all non-Hexen players currently so they can't use Hexen armor at all. Since Doom- and Hexen-armor can coexist in the inventory this is all that is needed for armor. Heretic and Strife armor are the same as Doom's.
You have to be careful with the states though. The engine uses a very inflexible means to define the attack states so that part of the code had to be rewritten first. (Suggestion: Use MeleeState instead of MissileState+1 and most of the problems disappear. It would even eliminate the need for game-based distinctions of the used attack frames.)
Of course the default inventory and the standard stuff (like health, size etc.) could be set, too.