Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Fenriswolf

First try: creating a new weapon

Recommended Posts

Hey!
I wanted to create a totally new weapon. Therefore, I created this script in the DECORATE lump:

//////////// NEW WAND ////////////////////////
ACTOR GoldWand2 : HereticWeapon 3107
{
  Game Heretic
  +BLOODSPLATTER
  Weapon.SelectionOrder 2000
  Weapon.AmmoGive 25
  Weapon.AmmoUse 1
  Weapon.AmmoType "wandammo"
  Weapon.YAdjust 5
  Inventory.PickupMessage "$TxT_WPNBLASTER"
  
  States
  {
  Spawn:
    WBLS A -1
    Stop
  Ready:
    CENT D 1 A_WeaponReady
    Loop
  Deselect:
    CENT D 1 A_Lower
    Loop
  Select:
    CENT D 1 A_Raise
    Loop
  Fire:
    CENT D 1  
    CENT D 1 A_CustomMissile("fireballfx", 32, 0, 0)
    CENT D 1
    CENT D 1 A_ReFire
    Goto Ready
  }
}
ACTOR fireballfx
{
  Radius 10
  Height 6
  Speed 10
  FastSpeed 26
  Damage 3
  DamageType Fire
  Projectile
  -ACTIVATEIMPACT
  -ACTIVATEPCROSS
  RenderStyle Add
  States
  {
  Spawn:
    FX12 AB 6 BRIGHT
    Loop
  Death:
    FX12 CDEFGH 5 BRIGHT
    Stop
  }
}
ACTOR wandammo : Ammo 3108
{
  Game Heretic
  SpawnID 37
  Inventory.PickupMessage "wand ammo"
  Inventory.Amount 10
  Inventory.MaxAmount 200
  Ammo.BackpackAmount 10
  Ammo.BackpackMaxAmount 400
  Inventory.Icon "INAMBST"
  States
  {
  Spawn:
    TROO M 0
    Loop
  }
}
When I start the game, I get in the main menu but when I start a new game, the program crushes...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×