Summoning A ZScript class that spawns makes it +FRIENDLY !

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
SPZ1
Posts: 254
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois
Contact:

Summoning A ZScript class that spawns makes it +FRIENDLY !

Post by SPZ1 »

A oddity I found is that using the console command "Summon" with a ZScript class that spawns an enemy causes it to be +FRIENDLY. To test just load the attached file and summon "D2T' or "Doom2Test" (with DOOM2.wad) and a boss cube will spawn a +FRIENDLY. included a map that shows that Thing_Projectile() doesn't have this behavior! Also, The Cacodemon is big and doesn't spawn every time though!
Attachments
MAP01.zip
(992 Bytes) Downloaded 17 times
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Summoning A ZScript class that spawns makes it +FRIENDLY

Post by Blue Shadow »

Since you didn't pass the SXF_ORIGINATOR flag in the A_SpawnItemEx call, the player is considered the spawning actor (the "originator"), not the projectile itself. Monsters spawned by players are friendly.
Post Reply

Return to “Closed Bugs [GZDoom]”