Multi-way combat
Multi-way combat
Hey, I have been messing with this deal all day, and I am not able to find out how I can do this.
I basically want a coop/survival style game where there are custom monsters set on 4 teams.
I have tried thing_hate through acs, but the thing is that they cant hate multiple targets at the same time, which is a problem.
the reason why thing_hate dont work is because the hate targets overwrite each other and do not work alongside each other on the same hater, so if they are finished with their last specified target, they ignore the rest of the enemies.
I would be happy for any supplied help :)
I basically want a coop/survival style game where there are custom monsters set on 4 teams.
I have tried thing_hate through acs, but the thing is that they cant hate multiple targets at the same time, which is a problem.
the reason why thing_hate dont work is because the hate targets overwrite each other and do not work alongside each other on the same hater, so if they are finished with their last specified target, they ignore the rest of the enemies.
I would be happy for any supplied help :)
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Multi-way combat
Thing_Hate can be used from DECORATE, just telling that to you, if you didn't know that.
Of course a monster can't have multiple targets. Target is a thing that monster actively attacks, and monsters that swap targets all the time sounds like nonsense. A target queue? No shit sherlock, why use "precious" memory when you can just select a new target after the monster is done with its current one. Also what if the new target is suddenly far, far away? That does not make any sense to me.
Sorry for my blabber. Custom monsters set on 4 teams? I'd recommend looking at ZDoomWars source code, it is all about monsters in different teams attacking each other, and it does it pretty damn well.
Of course a monster can't have multiple targets. Target is a thing that monster actively attacks, and monsters that swap targets all the time sounds like nonsense. A target queue? No shit sherlock, why use "precious" memory when you can just select a new target after the monster is done with its current one. Also what if the new target is suddenly far, far away? That does not make any sense to me.
Sorry for my blabber. Custom monsters set on 4 teams? I'd recommend looking at ZDoomWars source code, it is all about monsters in different teams attacking each other, and it does it pretty damn well.
This signature is empty and useless, I would write another useless idiotism here but people will call me a noob for that, so sorry, no more signatures for you. Go somewhere else.
RE: Multi-way combat
1. I did not know thing_hate worked from DECORATE, thank you :)
2. The idea is to have them automaticly attack when an enemy is in sight, the idea is not to have them chase each other across the map :\
3. ZDW is no help, as the monsters attack each other because they belong to the player who made them, he shoot a projectile creating the monster, which makes the monster automaticly belong to him. A thread on zdoom forums said so.
Thank you for your ideas though :)
2. The idea is to have them automaticly attack when an enemy is in sight, the idea is not to have them chase each other across the map :\
3. ZDW is no help, as the monsters attack each other because they belong to the player who made them, he shoot a projectile creating the monster, which makes the monster automaticly belong to him. A thread on zdoom forums said so.
Thank you for your ideas though :)
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Multi-way combat
Not true for team game modes. See without having some kind of property to set which team a monster belongs to, as soon as a monster hit another monster (or player) with fire there would be infighting amongst everything on the field.Lollipop wrote: 3. ZDW is no help, as the monsters attack each other because they belong to the player who made them, he shoot a projectile creating the monster, which makes the monster automaticly belong to him. A thread on zdoom forums said so.
http://zdoom.org/wiki/actor%20properties#DesignatedTeam
This is what ZDoom Wars uses to prevent said infighting and should be exactly what you're looking for here.
Last edited by Mr. Repo on Tue Jun 18, 2013 1:37 am, edited 1 time in total.
RE: Multi-way combat
I tried that, don't work for coop/survival gamemode :(
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Multi-way combat
have the monster constant flip between friendly and not friendly using the A_changeflag action, thats how i got it working in my Aliens special edition TC.
like this:
like this:
Code: Select all
Spawn:
PLA3 A 0
SENT A 0 A_changeflag("friendly",0)
PLA3 A 10 A_Look
SENT A 0 A_changeflag("friendly",1)
PLA3 A 10 A_Look
loop
See:
SENT A 0 A_changeflag("friendly",0)
PLA3 AAAAAA 1 A_Chase
SENT A 0 A_changeflag("friendly",1)
PLA3 BBBBBB 1 A_Chase
SENT A 0 A_changeflag("friendly",0)
PLA3 CCCCCC 1 A_Chase
SENT A 0 A_changeflag("friendly",1)
PLA3 DDDDDD 1 A_Chase
loop
Last edited by Virtue on Thu Jun 27, 2013 4:53 pm, edited 1 time in total.
RE: Multi-way combat
ok, I will try that out tomorrow, I dont have time today, I will edit this post when finished testing.
EDIT (after long time): I got this working proberly thanks to virtue, I had to download your file and look in it, because my monsters just ended up being stuck at looking at each others (as ijon predicted).
I looked into the files and I got it working, it seems to work just as I hoped for, at least for now.
EDIT (after long time): I got this working proberly thanks to virtue, I had to download your file and look in it, because my monsters just ended up being stuck at looking at each others (as ijon predicted).
I looked into the files and I got it working, it seems to work just as I hoped for, at least for now.
Last edited by Lollipop on Thu Jul 11, 2013 1:46 pm, edited 1 time in total.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Multi-way combat
Eh.
Ignore all of the above because it's shitty.
Make use of A_GiveInventory, A_TakeInventory, A_JumpIfInTargetInventory and A_ClearTarget functions. Give an inventory item to each team, item corresponding to team. Have monsters of the team check their targets for the item of their team via A_JumpIfInTargetInventory. If the target has the item, use A_ClearTarget so the monster will target another monster instead.
Granted, this is imperfect. Zandronum does not really allow you to control AI that much so don't expect this to work flawlessely.
Ignore all of the above because it's shitty.
Make use of A_GiveInventory, A_TakeInventory, A_JumpIfInTargetInventory and A_ClearTarget functions. Give an inventory item to each team, item corresponding to team. Have monsters of the team check their targets for the item of their team via A_JumpIfInTargetInventory. If the target has the item, use A_ClearTarget so the monster will target another monster instead.
Granted, this is imperfect. Zandronum does not really allow you to control AI that much so don't expect this to work flawlessely.
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Multi-way combat
Won't work. A_Look(Ex) will just grab the same target over and over and over again.HexaDoken wrote: Eh.
Ignore all of the above because it's shitty.
Make use of A_GiveInventory, A_TakeInventory, A_JumpIfInTargetInventory and A_ClearTarget functions. Give an inventory item to each team, item corresponding to team. Have monsters of the team check their targets for the item of their team via A_JumpIfInTargetInventory. If the target has the item, use A_ClearTarget so the monster will target another monster instead.
Granted, this is imperfect. Zandronum does not really allow you to control AI that much so don't expect this to work flawlessely.
RE: Multi-way combat
It actually works for me.
Well, mostly.
Okay it works like only half the time which is far below ideal.
Still better than nothing.
Well, mostly.
Okay it works like only half the time which is far below ideal.
Still better than nothing.