As far as I understand, everything not changed directly should be inherited. So I thought that this code would give me a proper parent for all other weapons:
Code: Select all
Actor HLWeapon : HereticWeapon
{
States
{
Kicking:
"----" A 1 Offset(0,42)
"----" A 1 Offset(0,52)
"----" A 1 Offset(0,62)
"----" A 1 Offset(0,72)
"----" A 1 Offset(0,82)
KickingLoop:
TNT1 A 0 A_PlaySound("WHOP")
CKCK ABCD 2
TNT1 A 0 A_CustomPunch(25,true,0,"BrutalKickPuff", 104)
CKCK E 4
CKCK DCB 2
CKCK AA 1 A_WeaponReady(WRF_NOSECONDARY)
TNT1 AAA 1 A_WeaponReady(WRF_NOSECONDARY)
TNT1 A 0 A_JumpIfInventory("Action1",1,"KickingLoop")
Goto Select
}
}
Code: Select all
ACTOR BrutalGoldWand : HLWeapon replaces GoldWand
Script error, ":decorate.weap_goldwand" line 6:
@property@weapon.selectionorder is an unknown actor property
And the error in the console, if I try to launch GZDoom from the command line, says:
Script error, ":decorate.weap_goldwand" line 3:
Parent type 'HLWeapon' not found in BrutalGoldWand
I thought that an actor inherited from HereticWeapon should have all properties of HereticWeapon, since I didn't change anything, only added kicking. But it seems it does not count as a "parent weapon". Or is something else the problem? What can I do about it?