Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    177
  • comments
    531
  • views
    164192

ZDoom

Sign in to follow this  
Scet

227 views

Unfortunately my Doom style state machine is actually pretty useless. I was playing a few ZDoom levels and the way it works is completely different then Doom.Net. Everything is scripted in ZDoom, whereas everything in Doom.Net is hard coded. So I've been spending the last couple days rewriting everything to work with ZDoom maps. In the process though I got the ability to load Hexen maps as well. It might sound weird to be adding ZDoom support now, but it was either rewrite a portion of the code or rewrite the whole "finished" game later, which would have been a huge pain.

If you have no idea what the hell I'm talking about, here's a sample ZDoom script for the zombie:

actor ZombieMan 3004
{
spawnid 4
obituary "%o was killed by a zombieman."
health 20
radius 20
height 56
mass 100
speed 8
painchance 200
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 F 8 A_PosAttack
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
}
}



In theory all I should have to do is add in all the scripts from the various games and copy over the functions(like "A_Chase", etc..) and everything should magically work.

Here's a picture of some "Nightmare Demons" I got from Simplicity:
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!