Decorate. An Issue.

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Decorate. An Issue.

Re: Decorate. An Issue.

by Beetow Brode » Sat Nov 10, 2018 10:52 pm

oh my god, the sleep deprivation is getting to me...

Re: Decorate. An Issue.

by Arctangent » Sat Nov 10, 2018 10:44 pm

Your Reckket actor definition isn't closed. It has two open curly braces - which it should have - but only one has a closed one afterwards. Hence, the parser finds the end of the file when it doesn't expect it - because it expects the Reckket definition to be closed before that.

Decorate. An Issue.

by Beetow Brode » Sat Nov 10, 2018 10:39 pm

Okay so I renamed an already put in actor for a weapon I'm trying to make, and I don't understand why it keeps saying unexpected end of file.

Code: Select all

Actor LocketRauncher : Weapon
{
  Obituary "%o was obliterated by %k's HellStorm Cannon!"
  Weapon.SelectionOrder 2500
  Weapon.AmmoUse 1
  Weapon.AmmoGive 3
  Weapon.AmmoType "Rockets"
  +Weapon.NoAutoFire
  +Weapon.NoAutoAim
  Inventory.PickupMessage "You got the HellStorm Cannon"
  States
  {
  Ready:
    HSTM B 1 A_WeaponReady
    Loop
  Deselect:
    HSTM B 1 A_Lower
    Loop
  Select:
    HSTM B 1 A_Raise
    Loop
  Fire:
    HSTM C 4 Bright A_GunFlash
    HSTM D 0 Bright A_PlayWeaponSound("HellStorm/Fire")
    HSTM D 5 Bright A_FireCustomMissile("Reckket")
    HSTM EF 6 Bright
    HSTM B 6
    HSTM B 45 A_PlaySoundEx("HellStorm/Reload", "SoundSlot6", 0)
    Goto Ready
  Flash:
    TNT1 A 1
    Stop
  Spawn:
    HSTM A -1
    Stop
  }
}

ACTOR Reckket
{
  Radius 11
  Height 8
  Speed 20
  Damage 20
  Projectile
  +RANDOMIZE
  +DEHEXPLOSION
  +ROCKETTRAIL
  SeeSound "weapons/rocklf"
  DeathSound "weapons/rocklx"
  Obituary "$OB_MPROCKET" // "%o rode %k's rocket."
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
}

Top