The Bug Posted January 27, 2021 i'm trying to make so you could only mine materials with a pickaxe (materials actor is inherited from) here's an example of a weapon i'm trying to make not work with materials: ACTOR sword : mcweapon replaces fist 7585 { Weapon.SlotNumber 1 Weapon.SelectionOrder 3700 Weapon.Kickback 0 Obituary "$OB_MPFIST" +WEAPON.MELEEWEAPON meleerange 100 damagetype "unmine" +noautofire States { Ready: swrd A 1 A_WeaponReady Loop Deselect: swrd A 1 A_Lower Loop Select: swrd A 1 A_Raise Loop Fire: swrd B 5 a_custompunch(19,0,0,"bulletpuff",0,0,0,0,"damage","sword") swrd C 5 swrd D 5 Goto Ready spawn: swrp a -1 stop } } Here's the pickaxe: ACTOR pickaxe : weapon 3462 { Weapon.SlotNumber 1 Weapon.SelectionOrder 3700 Weapon.Kickback 0 Obituary "$OB_MPFIST" +WEAPON.MELEEWEAPON meleerange 100 +noautofire States { Ready: pick A 1 A_WeaponReady Loop Deselect: pick A 1 A_Lower Loop Select: pick A 1 A_Raise Loop Fire: pick B 3 a_custompunch(5,0,0,"bulletpuff",0,0,0,"greenarmor","damage","sword") pick Cba 3 Goto Ready spawn: pist a -1 stop } } here's the materials: actor materials { Health 100 Radius 20 speed 255 Height 20 mass 10000000000 Monster +noblood damagefactor "unmine",0.1 +FLOORCLIP +friendly } and here's the mcweapon class: actor mcweapon : weapon { damagetype "unmine" } i don't know what's wrong, but it's not working help 0 Quote Share this post Link to post
1 snapshot Posted January 28, 2021 (edited) You're supposed to put DamageType in your projectile or bulletpuff actor definitions. Edited January 28, 2021 by sluggard 1 Quote Share this post Link to post
Question
The Bug
i'm trying to make so you could only mine materials with a pickaxe (materials actor is inherited from)
here's an example of a weapon i'm trying to make not work with materials:
ACTOR sword : mcweapon replaces fist 7585
{
Weapon.SlotNumber 1
Weapon.SelectionOrder 3700
Weapon.Kickback 0
Obituary "$OB_MPFIST"
+WEAPON.MELEEWEAPON
meleerange 100
damagetype "unmine"
+noautofire
States
{
Ready:
swrd A 1 A_WeaponReady
Loop
Deselect:
swrd A 1 A_Lower
Loop
Select:
swrd A 1 A_Raise
Loop
Fire:
swrd B 5 a_custompunch(19,0,0,"bulletpuff",0,0,0,0,"damage","sword")
swrd C 5
swrd D 5
Goto Ready
spawn:
swrp a -1
stop
}
}
Here's the pickaxe:
ACTOR pickaxe : weapon 3462
{
Weapon.SlotNumber 1
Weapon.SelectionOrder 3700
Weapon.Kickback 0
Obituary "$OB_MPFIST"
+WEAPON.MELEEWEAPON
meleerange 100
+noautofire
States
{
Ready:
pick A 1 A_WeaponReady
Loop
Deselect:
pick A 1 A_Lower
Loop
Select:
pick A 1 A_Raise
Loop
Fire:
pick B 3 a_custompunch(5,0,0,"bulletpuff",0,0,0,"greenarmor","damage","sword")
pick Cba 3
Goto Ready
spawn:
pist a -1
stop
}
}
here's the materials:
actor materials
{
Health 100
Radius 20
speed 255
Height 20
mass 10000000000
Monster
+noblood
damagefactor "unmine",0.1
+FLOORCLIP
+friendly
}
and here's the mcweapon class:
actor mcweapon : weapon
{
damagetype "unmine"
}
i don't know what's wrong, but it's not working
help
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.