Page 1 of 1
Multiple projectiles follow same tracer?
Posted: Tue Jan 15, 2013 2:46 pm
by Spottswoode
Is this possible? I mean to use it to cause several monsters to fire on the same target by making them follow the same tracer (with +seekermissile or some such) and converge.
RE: Multiple projectiles follow same tracer?
Posted: Tue Jan 15, 2013 2:55 pm
by Cruduxy
Do you mean monsters that'd attack a target at same time or they shoot projectiles that merge together into stronger ones?
RE: Multiple projectiles follow same tracer?
Posted: Wed Jan 16, 2013 12:44 pm
by Spottswoode
No, I mean that all of the monsters would shoot at the same target (player) at the same time. Sort of like a volley.
RE: Multiple projectiles follow same tracer?
Posted: Sun Jan 20, 2013 4:48 pm
by XutaWoo
It'll take ACS, but I'm not sure how you plan to do it otherwise.
Make sure that they already have the player as a target via
Thing_Hate or something.
I suppose you could add
A_JumpIfInTargetInventory checks to every tic of the monster, aside from that particular attack state, but that'll create incredibly messy code and you'd need to find a way to give the player that item.
RE: Multiple projectiles follow same tracer?
Posted: Mon Jan 21, 2013 3:31 pm
by Spottswoode
I was thinking something like this (doesn't work, just example code)
Code: Select all
actor TestImp : DoomImp replaces DoomImp
{
+MISSILEMORE
+MISSILEEVENMORE
DamageFactor Command, .001
PainChance Command, 255
States
{
Missile:
TROO EF 8 A_FaceTarget
TROO G 6 A_CustomMissile ("DoomImpBall2")
Goto See
Pain.Command:
TROO H 2
TROO H 2 A_Pain
TROO EF 8 A_FaceTarget
TROO G 6 A_TroopAttack
Goto See
}
}
actor ImpCaptain : DoomImp
{
Health 250
DamageType Command
States
{
See:
TNT1 A 0 A_TakeInventory ("ScreamToken", 4)
TROO AABBCCDD 3 A_Chase
TNT1 A 0 A_JumpIfInTargetInventory ("ScreamToken", 4, "Scream")
TNT1 A 0 A_GiveInventory ("ScreamToken", random(1,4))
loop
Scream:
TROO H 2
TROO H 2 A_Pain
TNT1 A 0 A_Explode (100, 128)
Goto See
}
}
Basically the Captain would issue a command and the others would attack if in the "command vicinity."
RE: Multiple projectiles follow same tracer?
Posted: Mon Jan 21, 2013 4:40 pm
by Cruduxy
Don't master and child monsters have the ability to force each other into pain with a specific damage type.. although I have no idea if the captain summons the monsters to be their master :P
RE: Multiple projectiles follow same tracer?
Posted: Mon Jan 28, 2013 4:17 pm
by Spottswoode
The problem with that is that would force the monsters spawned by the captain to attack regardless of distance and I want the captain to command any nearby monsters. It doesn't work so well if you can just lead the child monsters away to reduce their group killing power.