Jump to content
  • 0

MY CODE WONT FUCKING WORK fixed


Moo Moo Armageddon

Question

 

edit: it has been fixed thanks to whoever commented

 

 

Orignal post:

 

WHAT THE HELL IS WRONG IT KEEPS TELLING ME "

Script error, "Knee Deep In The Crap.wad:DECORATE" line 162:

Parent type 'cannonball' not found in

 

Execution could not continue.

Script error, "Knee Deep In The Crap.wad:DECORATE" line 162:

Expected '{' but got ':' instead."

 

 

HERE THAT FUCKING GODFORESAKEN CODE:

 

 

ACTOR aCannon: Weapon Replaces RocketLauncher 29999 {

Weapon.SelectionOrder 40
Weapon.AmmoUse 1
Weapon.AmmoGive 10
Weapon.AmmoType "Rockets"


Inventory.PickupSound "weapon/ak27pickup"
inventory.pickupmessage "HOLY SHIT IS THAT A ACTUAL FUCKING CANNON"


states{


spawn:
CANI A -1
loop

select:
CANO A 1 A_Raise
loop

Deselect:
CANO A 1 A_Lower
loop


Ready:
CANO A 1 A_WeaponReady
loop

Fire:
CANO ABC 4
Goto Shoot3

Shoot3:
Cano c 0 A_PlaySound ("weapon/cannonshoot", CHAN_Weapon, 1)
cano c 0 A_Recoil (30)
cano c 0 A_FireCustomMissile ("CannonBall",0,1,0,-8)
cano c 4
cano c 0 A_Refire ("Shoot3")
goto ready
}
}


                       

 
 
 
  ACTOR CannonBall: Actor 20001 {
 
 +Randomize
 
 Decal "Scorch"
 
 Radius 6
 Height 8
 Speed 20
 Damage 21
 
 
 DeathSound "weapons/plasmax"
 
 
 States{
 
 Spawn:
 CANI B 1
 loop
 
 
 Death:
 CANI B 1
 stop
 
 
 
     }
 
 }
 
 

Edited by Cut The Chit Chat YT
fixed

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

I believe you need a space before every colon sign when defining an actor.

 

This:

ACTOR aCannon:

becomes:

ACTOR aCannon :

 

Share this post


Link to post
  • 1
ACTOR CannonBall: Actor

You don't inherit from actor, you are supposed to remove the ": Actor" part and just skip to specifying the DoomEd number and start proper actor definition, like this:
 

ACTOR CannonBall 20001 {

 

Share this post


Link to post
  • 0

Also, be sure to change the AmmoType the cannon weapon uses to "RocketAmmo" - that's the proper classname used by the rocket ammo type.

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...