Multiple projectiles follow same tracer?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Spottswoode
Forum Regular
Posts: 245
Joined: Sat Jun 09, 2012 1:22 am
Location: That place over there.
Contact:

Multiple projectiles follow same tracer?

#1

Post by Spottswoode » Tue Jan 15, 2013 2:46 pm

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.
Dirge
(Killed, for now)
Image

The bird of Hermes is my name, eating my wings to make me tame.

Cruduxy
Zandrone
Posts: 1059
Joined: Fri Jun 08, 2012 4:24 pm

RE: Multiple projectiles follow same tracer?

#2

Post by Cruduxy » Tue Jan 15, 2013 2:55 pm

Do you mean monsters that'd attack a target at same time or they shoot projectiles that merge together into stronger ones?
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]

User avatar
Spottswoode
Forum Regular
Posts: 245
Joined: Sat Jun 09, 2012 1:22 am
Location: That place over there.
Contact:

RE: Multiple projectiles follow same tracer?

#3

Post by Spottswoode » Wed Jan 16, 2013 12:44 pm

No, I mean that all of the monsters would shoot at the same target (player) at the same time. Sort of like a volley.
Dirge
(Killed, for now)
Image

The bird of Hermes is my name, eating my wings to make me tame.

XutaWoo
Forum Regular
Posts: 113
Joined: Mon Jun 04, 2012 7:04 am

RE: Multiple projectiles follow same tracer?

#4

Post by XutaWoo » Sun Jan 20, 2013 4:48 pm

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.
[spoiler]Image[/spoiler]
Image

User avatar
Spottswoode
Forum Regular
Posts: 245
Joined: Sat Jun 09, 2012 1:22 am
Location: That place over there.
Contact:

RE: Multiple projectiles follow same tracer?

#5

Post by Spottswoode » Mon Jan 21, 2013 3:31 pm

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."
Dirge
(Killed, for now)
Image

The bird of Hermes is my name, eating my wings to make me tame.

Cruduxy
Zandrone
Posts: 1059
Joined: Fri Jun 08, 2012 4:24 pm

RE: Multiple projectiles follow same tracer?

#6

Post by Cruduxy » Mon Jan 21, 2013 4:40 pm

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
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]

User avatar
Spottswoode
Forum Regular
Posts: 245
Joined: Sat Jun 09, 2012 1:22 am
Location: That place over there.
Contact:

RE: Multiple projectiles follow same tracer?

#7

Post by Spottswoode » Mon Jan 28, 2013 4:17 pm

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.
Dirge
(Killed, for now)
Image

The bird of Hermes is my name, eating my wings to make me tame.

Post Reply