CustWepClassBase is an actor to inherit from if you want to create a class that cannot use normal weapons that inherit from [BaseMM8BDMWep](<https://mm8bdm.notion.site/BaseMM8BDMWep-8cc600ca63704fd59c44528ca4060cac>) and cannot use buster upgrades.

Any weapon that a class inheriting from this actor uses must inherit from [BaseMM8BDMCustWep](<https://mm8bdm.notion.site/BaseMM8BDMCustWep-d23769c5353f40169bf4355492943907>) instead.

This actor extends across multiple files and includes multiple systems, so it is not feasible to post its code in one block on this page.

Custom Properties

The following are inventory flags which can be given to the class as a start item to disable certain behaviors.

HUD Properties

These flags disable certain HUD elements for a class.

Air and Wall Jump Properties

These flags are specific to the air jump and wall jump systems

Example


The code below creates an example Cutman class using some of the special properties. This code assumes that a weapon named RollingCutterBoss which inherits from [BaseMM8BDMCustWep](<https://mm8bdm.notion.site/BaseMM8BDMCustWep-d23769c5353f40169bf4355492943907>) already exists.

actor Cutman : CustWepClassBase
{
	player.scoreicon "000ST00"
	player.displayname "Cutman"
	player.soundclass "cutman"

	player.forwardmove 1.0, 1.0
	player.sidemove 0.98, 0.98

	player.jumpz 12.5
	gravity 0.8
	player.startitem "WallJumpLimit", 9
	player.startitem "WallJumpZ", 12
	player.startitem "WallJumpZDecimal", 5000

	Health 85
	Player.MaxHealth 85

	player.startitem "BaseFlagPack", 1
	player.startitem "RollingCutterBoss"
	States
	{
		Spawn:
			CUTM A 0
			CUTM B 1
			CUTM A 1
			Goto Spawn+2

		See:
			CUTM BCDE 5
			Goto Spawn

		Missile:
			CUTM F 5
			CUTM G 4
			goto Spawn+2

		ClassPain:
			CUTM H 0
			goto MegamanPain
		ClassDeath:
			CUTM H 0
			goto MegamanDeath
	}
}

See Also


Creating Classes

ClassBase