[FINAL] friendly stalker creature -solved-
Posted: Thu Mar 21, 2019 11:32 pm
this is how to create a friendly stalker creature.
I'm going to use the monster drone from realm667 for this example.
knowing inheritance is key here
[zdwiki]https://zdoom.org/wiki/Using_inheritance[/zdwiki]
it allows you to modify the monsters code without touching the decorate directly
now Lets create a new actor and name it ally
[zdwiki]https://zdoom.org/wiki/Actor_flags[/zdwiki]
let's give it Quicktoretaliate and lookallaround and the ability to fly
now we need to assign a tid to the creature it has to be done in the creatures spawn state
[zdwiki]https://zdoom.org/wiki/Thing_ChangeTID[/zdwiki]
[zdwiki]https://zdoom.org/wiki/A_Jump[/zdwiki]
for this example I'm only going to use the doomimp and zombieman and for that we need to make 2 new actors and give them tids
the replace keyword is important here.
for this example I'm going with the kind that will hunt them without seeing them and is friendly to the player
[zdwiki]https://zdoom.org/wiki/Thing_Hate[/zdwiki]
your decorate so far should look like this
for video purposes I made the drone invulnerable.
that means the drone takes no damage from enemies but can be killed by console or the mdk command
it is a actor flag that u can or not use on your stalker creature
here is the video
https://youtu.be/v3WD0a34MFs
I'm going to use the monster drone from realm667 for this example.
knowing inheritance is key here
[zdwiki]https://zdoom.org/wiki/Using_inheritance[/zdwiki]
it allows you to modify the monsters code without touching the decorate directly
now Lets create a new actor and name it ally
Spoiler: (Open)now let's give it some actor flags
[zdwiki]https://zdoom.org/wiki/Actor_flags[/zdwiki]
let's give it Quicktoretaliate and lookallaround and the ability to fly
Spoiler: (Open).
now we need to assign a tid to the creature it has to be done in the creatures spawn state
[zdwiki]https://zdoom.org/wiki/Thing_ChangeTID[/zdwiki]
Spoiler: (Open)now we need it to look for tids to hunt we can do that by jumping it will look something like this
[zdwiki]https://zdoom.org/wiki/A_Jump[/zdwiki]
Spoiler: (Open)since we created a new state to jump to we haft to make a new state like so
Spoiler: (Open)now we need to give it some jumptargets
for this example I'm only going to use the doomimp and zombieman and for that we need to make 2 new actors and give them tids
Spoiler: (Open)now we need the new actors to replace the old actors you can do that like this.
the replace keyword is important here.
Spoiler: (Open)now since we have new creatures with tids now we can assign jumptargets to the drone like this
Spoiler: (Open)now we need our creature to hate the other 2 actors there are several kinds of hating
for this example I'm going with the kind that will hunt them without seeing them and is friendly to the player
[zdwiki]https://zdoom.org/wiki/Thing_Hate[/zdwiki]
your decorate so far should look like this
Spoiler: (Open)now all you haft to do is save the code above with the 2 other actors in one decorate like this
Spoiler: (Open)the ending result should look like this
for video purposes I made the drone invulnerable.
that means the drone takes no damage from enemies but can be killed by console or the mdk command
it is a actor flag that u can or not use on your stalker creature
here is the video
https://youtu.be/v3WD0a34MFs