So, I've made a new punching weapon and I've made it replace the fist. I've no idea how to make it a default weapon, however; in KEYCONF I've bound it to key 1 and I've also made a new DoomPlayer actor to replace the normal DoomPlayer.
Here's the DECORATE:
Code: Select all
actor NewPunch : Weapon replaces Fist
{
States
{
Spawn:
PUNG D -1
Loop
Ready:
PUNG A 1 A_WeaponReady
Loop
Deselect:
PUNG A 1 A_Lower
Loop
Select:
PUNG A 1 A_Raise
Loop
Fire:
PUNG B 3
PUNG C 3 A_Punch
PUNG D 2
PUNG C 3
PUNG B 3 A_Refire
Goto Ready
AltFire:
PUN2 A 10
PUN2 B 2
PUN2 C 3 A_CustomPunch (15, 0, 0, "BulletPuff", 0)
PUN2 D 13 Radius_Quake (2, 10, 0, 1, 1)
PUN2 C 4
PUN2 B 3
PUNG A 0 A_Refire
Goto Ready
}
}
actor NewPlayer : DoomPlayer replaces DoomPlayer
{
Game Doom
player.startitem "NewPunch"
}
How do I set this weapon as the default starting weapon? I actually took a look at Action Doom II's DECORATE to see what I could decipher and that's where I got the notion that I should have a DoomPlayer replacement actor. I don't know how to implement him though.