The first tutorial has always been "super-gibs" or "super-messages" patch. This isn't. This is a "super-monster" patch! Have fun..
 |
Step 1
Now, copy HCC.EXE and all the .HC files + PROGS.SRC from the H2 Utilities
Pack, to /hexen2/first/src/ -directory.
Monsters are about always in their own files. This time we want to edit Knight Archer,
so open archer.hc with a text editor.
Let's see.. We can find the function archer_arrow_touch in the line 203.
Touch functions are called when the "thing" touches something. Now we
want to find the line which determines how much damage to create.
There are lines defining the variable "damg", 215, 219 and 221. Easiest
way to make the super-monsters is ofcourse to raise the random() limits.
(the first parameter is lower limit, and second is upper limit)
These would be the altered lines 214-222:
if (self.owner.classname == "monster_archer")
damg = random(20,30);
else
{
if (self.classname == "red_arrow")
damg = random(30,40);
else // the gold arrow
damg = random(50,60);
}
|
Then, just compile it running HCC.EXE, change to H2 root directory, run Hexen2 with "h2 -game first", and beware Archers! :)
|