Page 1 of 1
Allies???
Posted: Thu Mar 15, 2018 11:45 pm
by Resu
Is it somehow! possible to make a monster that attacks! your enemies?
Re: Allies???
Posted: Thu Mar 15, 2018 11:53 pm
by Isaac
I haven't tried it, but I have wondered about it. Not just allies, but summoned monsters too.
In Grimrock II, there are hooks that would enable one to detect monsters that attack the party, and to direct the allied monsters towards those attackers.
There is no dedicated damage Monster function, the way there is for a champion. Tile damagers would do the job —crudely; hitting everything on the tile. Projectile attacks might work, but I think melee attacks would have to be faked somehow.
Re: Allies???
Posted: Fri Mar 16, 2018 12:01 am
by Resu
So you think in Grimrock 1 its.. impossible?
Re: Allies???
Posted: Fri Mar 16, 2018 12:04 am
by Isaac
In Grimrock 1, the onDealDamage monster hook, gives the champion hit; which confirms a melee attack by that monster. It could report itself as attacking the party, and the id might be used for an ally's faked retaliation... but there are no commands to initiate attacks or play on demand animations AFAIK. Not like in Grimrock II, where one can direct the monster brain, and call for animations to be played.
Hooks for projectile hits don't give the attacker. I don't know offhand, if the onDealDamage hook triggers for ranged attacks.
LoG2 would be the best choice of the two, to implement this kind of a change. If possible in LoG1, it would be flaky at best.
Re: Allies???
Posted: Tue Mar 05, 2019 11:05 pm
by Halluinoid
when DOOM came out in 1993 it soon became apparent that certain monsters would react to friendly fire, not all, but certain would "turn on" other monsters who caught them in cross fire
you do see unintentional crossfire in LOG2 e.g a common one is the small herder who will often pump out poison towards the party but catch another monster in between! how cool would it be to then see that monster "turn on" the small herder in retaliation
we saw it in 1993's DOOM , it was coded in then

Re: Allies???
Posted: Wed Mar 06, 2019 11:06 pm
by HypnoToad
Halluinoid wrote: ↑Tue Mar 05, 2019 11:05 pm
when DOOM came out in 1993 it soon became apparent that certain monsters would react to friendly fire, not all, but certain would "turn on" other monsters who caught them in cross fire
you do see unintentional crossfire in LOG2 e.g a common one is the small herder who will often pump out poison towards the party but catch another monster in between! how cool would it be to then see that monster "turn on" the small herder in retaliation
we saw it in 1993's DOOM , it was coded in then
And in Halo for PC you could change the team enemies were on to your team and they would attack other enemies, but it works entirely differently in LOG.
Re: Allies???
Posted: Thu Mar 07, 2019 1:32 pm
by Komag
I'm in fact working on this exact thing this past week in my own game. in all projectile or melee attacks I send the attacker id, and it checks for teams and "rivals" (who has been hit by who) to see where to direct next attacks. It's fun to see monster turn on each other!

I still need to code in fleeing on low health (for some types of monsters), and a few other implementation details.
Re: Allies???
Posted: Thu Mar 07, 2019 10:18 pm
by HypnoToad
Komag wrote: ↑Thu Mar 07, 2019 1:32 pm
I'm in fact working on this exact thing this past week in my own game. in all projectile or melee attacks I send the attacker id, and it checks for teams and "rivals" (who has been hit by who) to see where to direct next attacks. It's fun to see monster turn on each other!

I still need to code in fleeing on low health (for some types of monsters), and a few other implementation details.
Sounds great, can't wait to check it out.
Re: Allies???
Posted: Thu Oct 10, 2019 7:14 pm
by Resu
Komag wrote: ↑Thu Mar 07, 2019 1:32 pm
I'm in fact working on this exact thing this past week in my own game. in all projectile or melee attacks I send the attacker id, and it checks for teams and "rivals" (who has been hit by who) to see where to direct next attacks. It's fun to see monster turn on each other!

I still need to code in fleeing on low health (for some types of monsters), and a few other implementation details.
awesome!
Id love to see the scripts in action
