If you're playing Freedoom, there aren't any skull armor bonuses in the first level, so you can spawn a SuperZombieMan by typing "summon SuperZombieMan" into the console, or change it so that SuperZombieMan replaces a different Doom class. Press ~ to open the console, type "give all", and press ~ again to give yourself some good weaponry to fight our enemy. When zdoom starts up, start a new game, and you'll immediately find our new SuperZombieMan standing where the skull armor bonus was.
![brutal doom v21 script error brutal doom v21 script error](https://user-images.githubusercontent.com/31608726/63602053-fc375200-c609-11e9-8355-faef7934a447.png)
The numbers are measured in tics, which are 1/35 of a second for zdoom. The numbers tell the game how long to stay on this frame. The POSS E frame has the ZombieMan aiming his gun, and the POSS F frame has the gun flashing brightly. The E and F after it on the lines refers to the specific frame to use. POSS refers to the ZombieMan's sprite-set. The POSS part defines what sprite-set to use. Still have the Classes:ZombieMan page open? Copy and paste the Missile state into our new Pain state: Now we want our SuperZombieMan to go through his shooting animations when he is firing the fireball. we're going to make it so when he's shot, he immediately shoots a fireball like an imp at its target. There are other symbols that can be used too, and you can look at the Actor_properties#Obituaries page for them. The %o is replaced with the player's name. Obituary "%o was slaughtered by a strangely powerful zombie." So if we want 2x ZombieMan speed, we need to put the line "speed 16" in ours:įor the heck of it, let's change the obituary message to something new: So go to the Zdoom Wiki's Main Page, click Lists of actor classes, click Doom classes, and go to ZombieMan.
![brutal doom v21 script error brutal doom v21 script error](https://media.moddb.com/images/downloads/1/205/204625/pipebombs_pic.png)
But first, we need to know the speed of a regular ZombieMan. We want to set the health to 1,000 now, so: Now we can get to doing things interesting. We could have him replace all ZombieMan actors in the game by adding "replaces ZombieMan", but let's mix things up a little:Īctor SuperZombieMan : ZombieMan replaces ArmorBonus We want our SuperZombieMan to be in the game. Use inheritance to make our actor use all of the properties from ZombieMan as a base:
BRUTAL DOOM V21 SCRIPT ERROR CODE
But that takes too much code and is redundant. We want our SuperZombieMan to start with all the properties of a regular ZombieMan, so we could just copy the ZombieMan's original code and paste it into DECORATE.txt. There already is an actor in the game named "ZombieMan". Now let's set up our actor by putting this code into the file: Make a new file named "DECORATE.txt" (the name is important), and open it. For this tutorial, we're going to go introduce you to DECORATE and make a zombieman that has 1,000 health and runs at 2x normal speed.