Marlamir Posted January 10, 2017 Hello everyone i´m trying to replace all weapons in doom and everything go great until now. i make new class so every weapons is replaced but monsters still drop old weapon so i try to vrite this: Actor AK47 : AK47 replaces chaingun 8002 but when i try to play zandronum show me this error: Script error, "projekt-1.3.wad:DECORATE" line 5: Unexpected 'You got the chaingun!' in definition of 'AK47' i´m out and i need your help, what should i do please? here is full decorate lump in case you needed: Spoiler Actor AK47 : AK47 replaces chaingun 8002 { Obituary "%o was begded down by %k's AK47." AttackSound "Weapons/AK47FIR" Inventory.PickupMessage "You got the chaingun!" Weapon.SlotNumber 4 Weapon.Kickback 100 Weapon.AmmoType "Clip" Weapon.AmmoUse 1 Weapon.AmmoGive 20 Decal "BulletChip" States { Ready: AK47 A 1 A_WeaponReady Loop Deselect: AK47 A 1 A_Lower Loop Select: AK47 A 1 A_Raise Loop Fire: AK4F A 1 bright A_FireBullets (4.2,2.5,-1,4,"BulletPuff") AK47 A 2 Radius_Quake (1,2,0,1,0) AK4F B 1 bright A_FireBullets (4.2,2.5,-1,4,"BulletPuff") AK47 B 2 Radius_Quake (1,2,0,1,0) AK47 B 0 A_ReFire Goto Ready Flash: TNT1 A 2 bright Stop Spawn: AK4I A -1 Stop } } thank you for help 0 Share this post Link to post
grommile Posted January 10, 2017 Try deleting the ": AK47" part of the Actor line, since declaring that a class inherits from itself seems unlikely to be the right thing to do. 0 Share this post Link to post
Filystyn Posted January 10, 2017 Copy the code problem. Better start writing by your self. 0 Share this post Link to post
Marlamir Posted January 10, 2017 Nope didn´t work, but in despair i try to write this: "actor AK47 : chaingun replaces chaingun 8002" and "tradaa" works great o:O . not even occurred me that the actor have name ak47 that will work writing chaingun except ak47. sorry for spam thread :) 0 Share this post Link to post
scifista42 Posted January 11, 2017 DECORATE_format_specification">DECORATE_format_specification said:This page describes the format to create a new actor in the DECORATE lump:actor classname [ : parentclassname] [replaces replaceclassname] [doomednum] { properties flags ... } classname The name this new actor is referenced by in the game. parentclassname The name of a parent class this new actor inherits its attributes from (optional). Obviously, it doesn't make sense to inherit attributes from itself, so "AK47 : AK47" is wrong. 0 Share this post Link to post
Marlamir Posted January 11, 2017 okay, thank you for helping me now everything works like charm. now i know i can´t write actor ak47: ak47 replaces chaingun but actor ak47: weapon replaces chaingun. thank you so musch 0 Share this post Link to post