Immune to BFG Splash

Archive of the old editing forum
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.
Locked
User avatar
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

Post by CaptainBighead »

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...
User avatar
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

Post by Project Shadowcat »

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.
User avatar
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

Post by XutaWoo »

PDF's right, the BFG spray effect has it's own damage type. I can't remember it ATCM, though.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Immune to BFG Splash

Post by Gez »

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.
User avatar
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

Post by CaptainBighead »

Alright thanks.

I was previously attaching damagetype "BFG9000" to the weapon and giving the player damagefactor "BFG9000", 0
Locked

Return to “Editing (Archive)”