
hmm, custom states
Moderator: GZDoom Developers
-
- Posts: 598
- Joined: Fri Jun 24, 2005 3:19 am
- Location: Makin tracks with jetboots
hmm, custom states
id say you should be able to make custom states, like for custom deaths and stuff 

-
- Posts: 4618
- Joined: Fri Apr 16, 2004 1:41 pm
-
- Posts: 197
- Joined: Thu Jun 02, 2005 5:09 pm
-
- Posts: 11294
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
-
- Posts: 789
- Joined: Mon May 03, 2004 7:08 am
- Location: At college!
I know I'd like custon states.
Like, I have a monster:It would be a lot more readable like this:
That way, a monster with tons of attacks (I once had a monster with ten attacks; it was a real pain to put in the jumps) could be broken down into manegeble chunks.
Also, custom death states could be useful. Like, a projectile could have on it. When the decorate code reader thingy sees this on a projectile that kills something, it looks for a state called AcidDeath on the dying actor. If It doesn't see it, it just goes to the normal death sequence.
If these "Custom states" things work, it would be cool. If not, please tell me and then forget I asked.
Like, I have a monster:
Code: Select all
Missile:
MAG1 E 7 A_FaceTarget
MAG1 E 1 A_Jump (64,4)
MAG1 E 1 A_Jump (85,4)
MAG1 E 1 A_Jump (128,4)
MAG1 F 1 A_CustomMissile ("RayOfFrost", 28, 0, 0)
Goto See
MAG1 F 1 A_CustomMissile ("AcidSplash", 28, 0, 0)
Goto See
MAG1 F 8 A_CustomMissile ("BurningHands", 28, 0, 0)
Goto See
MAG1 F 8 A_CustomMissile ("MagicM", 28, 0, -45)
Goto See
Code: Select all
Missile:
MAG1 E 7 A_FaceTarget
MAG1 E 1 A_JumpState (64,Acidsplash)
MAG1 E 1 A_JumpState (85,Burninghands)
MAG1 E 1 A_JumpState (128,MagicMissile)
MAG1 F 1 A_CustomMissile ("RayOfFrost", 28, 0, 0)
Goto See
Acidsplash:
MAG1 F 1 A_CustomMissile ("AcidSplash", 28, 0, 0)
Goto See
Burninghands:
MAG1 F 8 A_CustomMissile ("BurningHands", 28, 0, 0)
Goto See
MagicMissile:
MAG1 F 8 A_CustomMissile ("MagicM", 28, 0, -45)
Goto See
Also, custom death states could be useful. Like, a projectile could have
Code: Select all
DEATHTYPE "AcidDeath"
If these "Custom states" things work, it would be cool. If not, please tell me and then forget I asked.
-
-
- Posts: 17357
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
-
- Posts: 598
- Joined: Fri Jun 24, 2005 3:19 am
- Location: Makin tracks with jetboots
-
- Posts: 513
- Joined: Wed Jul 16, 2003 3:36 am