I'm developing an addon for a weapons mod I've been slowly working on, and one of the new weapons I wanna get out is a time-limited upgrade to the fist as a rare replacement for Berserk.
I've already got the powerup itself, as well as the intended upgraded melee wepon to give to the player using an inhereted PowerWeaponLevel2 class called InternalFisty... problem is it don't work.
Nothing in the console, no warning messages, nuttin'. I just keep getting the base fist weapon I made for the base mod, and I'm not even sure it knows the sister weapon exists at all.
Relevant Codeblocks:
wepon.pk3's relevant code:
Code: Select all
class TenFingerDiscount : BaseFist
{
Default
{[...] +WEAPON.WIMPY_WEAPON; +WEAPON.NOALERT; +WEAPON.MELEEWEAPON; +WEAPON.NOAUTOSWITCHTO;}
uint dMin; uint dMax; property DamageValues: dMin, dMax;
[...]
action void FistOverlay(bool hide)
{if(hide){A_Overlay(2, null); A_Overlay(3, null);} else{A_Overlay(2, "LeftReady"); A_Overlay(3, "RightReady");} }
[...]
}Code: Select all
class FistPack : CustomInventory
{
Default
{
+COUNTITEM; +INVENTORY.ALWAYSPICKUP; +INVENTORY.ISHEALTH;
Inventory.PickupMessage "$SUPER_FISTWOW";
Inventory.PickupSound "misc/p_pkup";
}
States
{
Spawn: FPCK A -1 Bright; Stop;
Pickup:
TNT1 A 0
{
A_GiveInventory("InternalFisty"); HealThing(50, 1);
A_SelectWeapon("TwentyFingerDiscount");
}
Stop;
}
}
class InternalFisty : PowerWeaponLevel2 {Default {Powerup.Duration -90; Inventory.Icon "FPCKA0";}}
extend class TenFingerDiscount {Default {Weapon.SisterWeapon "TwentyFingerDiscount";}}
class TwentyFingerDiscount : TenFingerDiscount
{
Default {+WEAPON.POWERED_UP; Weapon.SisterWeapon "TenFingerDiscount";
Obituary "$SUPER_FISTOUCH"; Tag "$SUPER_FIST";}
bool canFire, canAltfire, canMegaPunch;
//Super Fist Overlay
action void SFO(bool hide)
{if(hide){A_Overlay(2, null); A_Overlay(3, null);}
else{A_Overlay(2, "ReadyOne"); A_Overlay(2, "ReadyTwo");}}
[...]
}