Jump to content
  • 0

Damagetype not working?


The Bug

Question

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

  • 1

You're supposed to put DamageType in your projectile or bulletpuff actor definitions.

Edited by sluggard

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...