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

Need help with a Code...

Recommended Posts

I don't know how to explain my problem without code... also :

ACTOR DirectionCannon 1006
{
Obituary "%o was been hit by those smokes"
Health 500
Radius 16
Height 36
Mass 10000000
Speed 0
PainChance 30
Monster
+MISSILEMORE +MISSILEEVENMORE +FLOORCLIP
SeeSound "dsdcnsit"
DeathSound "dsdcndth"
ActiveSound "dsdcnact"
PainSound "dsdcnpn"
AttackSound "dsdcnatk"
States
{
Spawn:
DCAN AAAABBBB 5 A_Look
Loop
See:
DCAN A 5 A_CustomMissile("DirectionCannonlines",11,0,0)
DCAN A 5 A_Chase
DCAN A 5 A_Chase
DCAN A 5 A_Chase
DCAN B 5 A_CustomMissile("DirectionCannonLines",11,0,0)
DCAN B 5 A_Chase
DCAN B 5 A_Chase
DCAN B 5 A_Chase
Loop
Missile:
DCAN C 5 A_FaceTarget
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,315,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,270,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,225,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,180,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,135,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,90,2,0)
DCAN D 0 A_CustomMissile("DirectionCannonSmoke",8,16,45,2,0)
DCAN D 5 A_CustomMissile("DirectionCannonSmoke",8,16,0,2,0)
DCAN C 5 A_CPosRefire
Goto Missile+1
Pain:
DCAN E 5
DCAN E 15 A_Pain
Goto See
Death:
DCAN F 5
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN F 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,8)
DCAN F 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,8)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN F 0 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
DCAN F 5 A_Scream
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN G 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,8)
DCAN G 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,8)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN G 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN G 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
DCAN H 0 A_NoBlocking
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN H 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,8)
DCAN H 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,8)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN H 5 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,315,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,270,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,225,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,180,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,135,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,90,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,45,2,0)
DCAN H 0 A_CustomMissile("DirectionCannonExplode",8,48,0,2,0)
Stop
}
}

ACTOR DirectionCannonSmoke
{
Radius 17
Height 16
Speed 2
Damage 2
Projectile
Scale 2
+RANDOMIZE
RenderStyle Translucent
Alpha 0.5
SeeSound "dsdcnsht"
DeathSound "dsdcnxpl"
States
{
Spawn:
DCNS ABCDE 10
Stop
Death:
TNT1 A 0 A_CustomMissile("DirectionCannonExplode",8,0,0)
}
}

ACTOR DirectionCannonLines
{
+NOBLOCKMAP
+NOGRAVITY
+ALLOWPARTICLES
+RANDOMIZE
RenderStyle Translucent
Alpha 0.5
VSpeed 1
Mass 5
States
{
Spawn:
DCNL ABCD 5
Stop
}
}

ACTOR DirectionCannonExplode
{
+NOBLOCKMAP
+NOGRAVITY
+ALLOWPARTICLES
+RANDOMIZE
RenderStyle Translucent
Alpha 0.5
VSpeed 1
Mass 5
States
{
Spawn:
DCNS CDE 4
Stop
}
}

My problems are:
DirectionCannons Death: The DirectionCannonExplodes are all at the same place, there where the DirectionCannon is.
DirectionCannonSmoke : The same...
(Why it ignores the 48 by Death an the 16 by Smoke in the A_CustomMissile? It is everytime 0)
VSpeed 1: Nothing happened (Why? It's the same like Bulletpuff...)
Pitch Angle: It ignores the 8... It's just 0 all the time... (Why?!?)
Need help q.q

Hmm... maybe I should write what I want to do
The Smoke should go up like BulletPuff...
The Explodes (in Death) should begin around the Cannon in 8 Directions an go up...
The Explodes (in Shoot) should go up
The Smoke with the Pitch Angle (8) should go diagonal... ( also x/y and z movement at the same time)

Share this post


Link to post

I think nobody knows or understand it :(
Whats with this easier problem?

VGHO A 0 A_VileTarget("Ghost") //Line 885

Script error, "DECORATE" line 885:
You cannot pass parameters to '('

-> http://zdoom.org/wiki/A_VileTarget !

I can't understand...
(Actor Ghost exists)
Please help ;(

(Sorry for Double Posting)
(And I'm Sorry if it sounds unfriendly)

Share this post


Link to post

I personally don't know anything about scripting or DECORATE, but I would recommend you post this on the ZDoom forums. Although there are people here that can help you (many people frequent both forums) I suspect you will find more help regarding DECORATE problems over there.

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
×