Code: Select all
//this is an abstract class that allows for seprate weaponsclasses
class CustomWeaponsClass : TestWeaponsClass
//a weapon based on a special weapons class
actor TestStaff : TestWeaponsClass
{
//weapons crap here
}
actor TestHexenPlayer : MagePlayer
{
// name to use in playerclass CVAR, menu etc.
Player.ClassName TestMage
// sound class for this player (see $player* commands in SNDINFO)
Player.SoundClass TestMageSound
//deafult health, I do not know if its possible but have healing things outmatically heal to this number
Player.StartHealth 100
//Max health is number that health can be raised to with stuff like health bonus
Player.MaxHealth 100
// jump z, actual jump height = jump z * 8
Player.JumpZ 9.75
// speed modifiers, first number is for walking, the other (optional) is for running
Player.ForwardMove 0.9 1.1
Player.SideMove 0.5
//armor depends on what game you are playing
//probably more you can add to this but I am not sure what would be needed
//doom and I think heritic
Player.StartArmor 0
Player.MaxArmor 200
//hexen
Player.StartArmorClass 1
Player.ArmorClass MagePlayer //this defines how much armor you get from items like the amulet (you can define a custom armorclass too)
//strife, I do not know how strife's armor works
//optional flags
+NoSkin //doesn't allow for custom skins
+NotRandom //class cannot be selected as random in hexen
+Float //same as the monster flag, actor can fly
+NoKillTelefrag //actor cannot telegrag
+NoTelefrag //actor cannot be killed by telefrags
//Hexen player classes have to give this info:
Player.weaponsclass TestWeaponsClass
Player.ThingFlag 32768 //a thing with this flag bit shows up in when playing this class
Player.Box M_MBOX //this is the mage box
Player.Walk1 M_MWALK1 //this is the mage gfx walks
Player.Walk2 M_MWALK2
Player.Walk3 M_MWALK3
Player.Walk4 M_MWALK4
Player.SkillModes Very Easy, Easy, Medium, Hard, Very Hard
//these are the 5 strings for the dificulty
//this isn't really needed but should be there
Player.PoisonBagMode MagePlayer //this changes how the flaccetta acts for this person
Player.hexenboss MageBoss
// default items
Player.StartItem TestStaff
states
{
//player states go here
}
}Some functions that I would like for this: str GetPlayerClass(int playernumer); a built in function that returns the player class of the player, null MorphPlayer(tid of actor, str classname) changes the player to this class tid of 0 is the activator.
So how about it? This would be uber awesome.
On a side note. Can we have #include functionality for decorate cause decorate can get very long and confusing. It would make my life a lot easer.
edit:just some changes


