

Go back to the Doom classes page, and go to the DoomImp page. A_PosAttack is the codepointer to make the actor do a ZombieMan attack (shooting a weak bullet with pretty bad accuracy, and playing the noise of shooting). A_FaceTarget should be self-explanatory, making the actor look directly at its target (usually the player). These are called codepointers, which tell the actor to do some action at the beginning of this frame. Let's edit the timings down so it's a bit quicker:Īfter the number, there is a text string starting with "A_". 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. 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 WEAPONS 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.
