Immune to BFG Splash
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- CaptainBighead
- Posts: 278
- Joined: Mon Sep 22, 2008 8:38 pm
- Location: Between a rock and a hard place... Dont ask.
Immune to BFG Splash
Is there a flag or property or something that makes a player class immune to the BFG Ball and its unique splash attack? because damagefactor doesnt work...
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: Immune to BFG Splash
I think BFGSplash is a damage type of its own, with the BFG9000 main blast under "normal". If you want the player immune to that but not other weapon fire (which I'm willing to be is true), you might want to reconfigure the BFG9000 to fire a different projectile with this damage type.
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: Immune to BFG Splash
PDF's right, the BFG spray effect has it's own damage type. I can't remember it ATCM, though.
Re: Immune to BFG Splash
Here's the full and complete list of all predefined damage types, excerpted right from the code (namedef.h if you want to know). Those that are commented out are commented out only because the same name is also defined for something else before (for example, a state name or a translation name) and the engine wouldn't like to have the same name defined twice.
// Damage types
//xx(Fire) already defined above
//xx(Ice)
//xx(Disintegrate)
xx(Drowning)
xx(Slime)
//xx(Crush)
xx(Telefrag)
xx(Falling)
xx(Suicide)
xx(Exit)
xx(Railgun)
xx(Poison)
xx(Electric)
xx(BFGSplash)
xx(DrainLife) // A weapon like the Sigil that drains your life away.
xx(Massacre) // For death by a cheater!
//(Melee) already defined above, so don't define it again
xx(InstantDeath) // Strife "instant death"
xx(PoisonCloud) // makes monsters howl.
So to make a monster immune to BFG splash? DamageFactor BFGSplash 0.
// Damage types
//xx(Fire) already defined above
//xx(Ice)
//xx(Disintegrate)
xx(Drowning)
xx(Slime)
//xx(Crush)
xx(Telefrag)
xx(Falling)
xx(Suicide)
xx(Exit)
xx(Railgun)
xx(Poison)
xx(Electric)
xx(BFGSplash)
xx(DrainLife) // A weapon like the Sigil that drains your life away.
xx(Massacre) // For death by a cheater!
//(Melee) already defined above, so don't define it again
xx(InstantDeath) // Strife "instant death"
xx(PoisonCloud) // makes monsters howl.
So to make a monster immune to BFG splash? DamageFactor BFGSplash 0.
- CaptainBighead
- Posts: 278
- Joined: Mon Sep 22, 2008 8:38 pm
- Location: Between a rock and a hard place... Dont ask.
Re: Immune to BFG Splash
Alright thanks.
I was previously attaching damagetype "BFG9000" to the weapon and giving the player damagefactor "BFG9000", 0
I was previously attaching damagetype "BFG9000" to the weapon and giving the player damagefactor "BFG9000", 0