Yes, another Decorate Question
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Yes, another Decorate Question
Hello!
I've read the Wiki quite a bit and was trying to use the examples in the tutorial to make the regular zombie man shoot a blue shot. I also imported a sprite for the shot but..
Two questions.
1 - It talks about a four letter code for the attack sprite, how would I find that out?
2 - Does it need more than one frame of animation to work?
I figured out how to change his attack without a problem and import a custom attack but the two above questions have me stumped.
Any Ideas?
I've read the Wiki quite a bit and was trying to use the examples in the tutorial to make the regular zombie man shoot a blue shot. I also imported a sprite for the shot but..
Two questions.
1 - It talks about a four letter code for the attack sprite, how would I find that out?
2 - Does it need more than one frame of animation to work?
I figured out how to change his attack without a problem and import a custom attack but the two above questions have me stumped.
Any Ideas?
Still not working, Ill post the code and see if that helps.
The Image name is DKB1A0
I know the code must be fooked.. right?
Code: Select all
actor BlueShot02
{
height 8
radius 6
damage 5
speed 10
renderstyle Add
alpha 1
seesound "misc/shot"
deathsound "misc/shotx"
PROJECTILE
+RANDOMIZE
states
{
Spawn:
DKB1 A 4 bright
loop
Death:
DKB1 a 6 bright
stop
}
}
actor Zoon 3067
{
spawnid 4
obituary "%o was killed by a zombieman."
health 200
radius 20
height 56
mass 100
speed 1
painchance 50
seesound "grunt/sight"
attacksound "grunt/attack"
painsound "grunt/pain"
deathsound "grunt/death"
activesound "grunt/active"
dropitem "Clip" 256
MONSTER
+FLOORCLIP
states
{
Spawn:
POSS AB 10 A_Look
loop
See:
POSS AABBCCDD 4 A_Chase
loop
Missile:
POSS E 10 A_FaceTarget
POSS E 8 bright A_CustomMissile("BlueShot02", 32, 0, 0)
POSS E 8
goto See
Pain:
POSS G 3
POSS G 3 A_Pain
goto See
Death:
POSS H 5
POSS I 5 A_Scream
POSS J 5 A_NoBlocking
POSS K 5
POSS L -1
stop
XDeath:
POSS M 5
POSS N 5 A_XScream
POSS O 5 A_NoBlocking
POSS PQRST 5
POSS U -1
stop
Raise:
POSS KJIH 5
goto See
}
}
I know the code must be fooked.. right?
- Cutmanmike
- Posts: 11355
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- DBThanatos
- Posts: 3101
- Joined: Fri Apr 14, 2006 3:17 pm
- Location: in "the darkness that lurks in our mind"
I believe the proble is in the death sequence, it have:Ness! wrote:Still not working, Ill post the code and see if that helps.
The Image name is DKB1A0Code: Select all
actor BlueShot02 { height 8 radius 6 damage 5 speed 10 renderstyle Add alpha 1 seesound "misc/shot" deathsound "misc/shotx" PROJECTILE +RANDOMIZE states { Spawn: DKB1 A 4 bright loop Death: DKB1 a 6 bright stop } }
I know the code must be fooked.. right?
DKB1 a 6 bright
I think that "a" must be "A".
that tends to give me problems, maybe im wrong