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

I need help with replacing weapons

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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 :)

Share this post


Link to post
DECORATE_format_specification">

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.

Share this post


Link to post

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

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
×