It's a classic A_SpawnItemEx frustration.
This time I want to make a black hole bomb, that explodes after a time and creates a black hole that sucks all monsters and other players in (including yourself). This works but if any player gets killed by it, it doesn't count as a frag by me. It counts that they're dying for no reason. WTF?
Here's the bomb:
https://dl.dropboxusercontent.com/u/312 ... leBomb.zip
Use it in Zandronum (3.0 alpha) and spawn it by typing "Summon FusedSingularityBomb". It creates a black hole and it's not a bad idea to take cover. Try this in a deathmatch (map 32) with bots and watch as they're 'dying for no reason'. If you directly spawn the black hole by typing "Summon BlackHole", it does work, however.
Here is how it works:
After the bomb is placed it explodes in 5 seconds, creating a new actor (which is a black hole) via A_SpawnItemEx. This black hole is constantly sucking nerby enemies in and damaging them.
Did I miss something?
Kills by my black hole doesn't count as frags?
- AtomicLugia
- New User
- Posts: 16
- Joined: Sat Jul 30, 2016 5:42 am
- ZZYZX
- Posts a lot
- Posts: 742
- Joined: Thu Jun 07, 2012 5:56 pm
- Location: Ukraine
- Clan: A3
- Clan Tag: [A3]
Re: Kills by my black hole doesn't count as frags?
If BlackHole is a projectile, it's AAPTR_TARGET should be set to the source of projectile (i.e. the player). Otherwise, AAPTR_MASTER should be set to the player. If neither of these is set, the projectile is counted as created by the world and the player won't get frags. Check your A_SpawnItemEx flags in the code that spawns BlackHole from FusedSingularityBomb.
cba opening the archive, one of the above suggestions should help.
cba opening the archive, one of the above suggestions should help.
quality DoomExplorer hackeringFilystyn wrote:Do you know what windows.h is? It's D, DWORD.
overcomplicated ZDoom grenade
random Doom things
GZDoomBuilder-Bugfix
- AtomicLugia
- New User
- Posts: 16
- Joined: Sat Jul 30, 2016 5:42 am
Re: Kills by my black hole doesn't count as frags?
I tried this:
I tried SXF_TRANSFERPOINTERS and it didn't help. Same crap. Sorry.
Should the A_SpawnItemEx be placed in the Death state? Does the black hole needs certain actor flags?
Code: Select all
Spawn:
SBOM BCDEF 6
SBOM G 3 Bright A_PlayWeaponSound("BHBomb/Activate")
SBOM HIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHI 3 Bright
SBOM GHIGHIGHIGHIGHIGHIGHIGHIGHIGHIGHI 1 Bright
SBOM JK 2 Bright
SBOM K 0 Bright A_SpawnItemEx("BlackHole",32,0,0,0,0,0,0,SXF_TRANSFERPOINTERS)
Stop
Should the A_SpawnItemEx be placed in the Death state? Does the black hole needs certain actor flags?
Re: Kills by my black hole doesn't count as frags?
Try adding +MISSILE flag.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
- AtomicLugia
- New User
- Posts: 16
- Joined: Sat Jul 30, 2016 5:42 am
Re: Kills by my black hole doesn't count as frags?
Okay, I made it work. I just used A_CustomMissile as a workaround.