Problems With Summoned Marines

Discuss all aspects related to modding Zandronum here.
Post Reply
Talon Builder
New User
Posts: 12
Joined: Mon Nov 04, 2013 9:31 pm

Problems With Summoned Marines

#1

Post by Talon Builder » Mon Nov 04, 2013 10:03 pm

I recently made a custom Necronomicon weapon using some resources from the weapon resource wad. The primary fire is a simple resurrection spell that raises the nearest monster as an ally, but the main attraction, and the part I need help with, is the secondary fire, which summons a ghostly marine to fight for you.

I tested them in offline multiplayer, and they seem to be loyal only to the player that spawned them, so if you summon them in a multiplayer game, they'll attack enemy players and get frags for you.

Now, the problem I'm having is that all the marine ghosts look the same, so if several players start using them, things are going to get very confusing very fast. So my question is, since you can customize your own color in ZDoom, would it be possible to edit the ghost marines so that their armor color matches the color of the player that spawned them?

By the way, the ghost marines inherit their code from the marine actors included in ZDoom.

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

RE: Problems With Summoned Marines

#2

Post by Ænima » Mon Nov 04, 2013 10:29 pm

SXF_TRANSFERTRANSLATION — Transfer Translation: The spawned actor will use the same color translation as the parent.

SXF_TRANSFERPOINTERS — Transfers the calling actor's master, target, and tracer fields to the spawned actor. Note that SXF_SETMASTER has the last word for the master field.


Used as flags for A_SpawnItemEx.


Btw, the marines won't attack other players in deathmatch.
Last edited by Ænima on Mon Nov 04, 2013 10:31 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Problems With Summoned Marines

#3

Post by Ivan » Mon Nov 04, 2013 11:51 pm

Ænima wrote: SXF_TRANSFERTRANSLATION — Transfer Translation: The spawned actor will use the same color translation as the parent.

SXF_TRANSFERPOINTERS — Transfers the calling actor's master, target, and tracer fields to the spawned actor. Note that SXF_SETMASTER has the last word for the master field.


Used as flags for A_SpawnItemEx.


Btw, the marines won't attack other players in deathmatch.
I don't think we have SXF_TRANSFERPOINTERS yet.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

Talon Builder
New User
Posts: 12
Joined: Mon Nov 04, 2013 9:31 pm

RE: Problems With Summoned Marines

#4

Post by Talon Builder » Tue Nov 05, 2013 12:28 am

I'm still new at editing in DECORATE, so forgive me if I'm being stupid, but I'm not sure how to implement that into the code. The marines don't spawn directly from me, they spawn from an invisible projectile that the necronomicon fires. I had to do it that way to randomly spawn marines with different weapons. I couldn't figure out how to randomize the spawning if they spawned directly from me.

Also, I tested it myself in Skulltag and Zandronum. The marines DO attack enemy players, and the player that summoned them gets the credit. In fact, I did some more testing just to be sure, and I found out that literally any monster spawned with "summonfriend" will attack enemy players. I tested it with shotgun zombies, chaingun zombies, imps, demons, barons, revenants, and archviles. Am I really the first person to find out about this?

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Problems With Summoned Marines

#5

Post by -Jes- » Tue Nov 05, 2013 2:43 am

Talon Builder wrote:Am I really the first person to find out about this?
Many entire MODS made over the past several years are based around this functionality.
Ivan wrote:I don't think we have SXF_TRANSFERPOINTERS yet.
We don't.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Problems With Summoned Marines

#6

Post by Torr Samaho » Tue Nov 05, 2013 7:15 am

Ivan wrote: I don't think we have SXF_TRANSFERPOINTERS yet.
The current 2.0 beta builds should support it.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Problems With Summoned Marines

#7

Post by -Jes- » Tue Nov 05, 2013 12:12 pm

Torr Samaho wrote: The current 2.0 beta builds should support it.
Stop teasing the hell out of me already.

Talon Builder
New User
Posts: 12
Joined: Mon Nov 04, 2013 9:31 pm

RE: Problems With Summoned Marines

#8

Post by Talon Builder » Wed Nov 06, 2013 2:23 am

Just to clarify, the ghost marines are spawned from an invisible projectile that the weapon fires, so technically, that invisible projectile is the ghost marines' parent object, not the player, and all of my attempts to have the marines spawn directly from the player have failed. Any help would be greatly appreciated.

I also noticed that in game modes like CTF and Skulltag, the marines ignore your allies and attack only your enemies, but in modes like team DM and team LMS, they attack friend and foe alike. What's up with that?

Post Reply