View Full Version : Vindicator damage not "BULLET"?

07-29-2010, 12:43 PM
I'm trying to filter by damage type in my level,

and the vindicator keeps dealing damage, and I cant figure out how to filter it.

I filter to ALLOW bullet damage, and vindicator is blocked.
Edit: Pistols are blocked in spite of excluding all but bullet damage too :(
Does anyone know the alien swarm damage types? :(

Flamethrower does correctly use "burn" damage.
Melee correctly uses "club" damage
Grenade item correctly use "blast damage" (vindicator incendiary grenades do not, assault rifle grenades do)Can anyone help?

07-29-2010, 01:20 PM
Looks like Vindicator is both DMG_BULLET and DMG_BUCKSHOT.
So try filtering Buckshot damage.

07-29-2010, 01:51 PM
How did you find such precise info?
Ive been looking through code, searching for so long!

I filtered buckshot, but it didnt work, for both vindicator and pistols.
Nor did bullet.

I wonder if theres a way to have 2 filters at a time. I'll try to see

Edit: I used filter_multi to accept 2 filters "bullet" and "buckshot" with an OR condition,
still didnt work :(

07-30-2010, 02:22 AM
How did you find such precise info?
Ive been looking through code, searching for so long!

Go to alien swarm/swarm/scripts and find the file for the weapon you want to know the damage type of. You'll find a line for "primary_ammo". Here's an example of what it might look like...

"primary_ammo" "ASW_RG"

Remember whatever the set of letters is. Now, go to alien swarm/sdk_src/game/shared/swarm. Open asw_gamerules.cpp. Scroll down to function "GetAmmoDef" around line 430. Here you'll find the damage type that corresponds with your set of letters.

For my example, it says "DMG_SONIC".

EDIT: Secondary ammo refers to the weapon's alt-fire ammunition. Figured I'd point that out even though it's obvious.

07-31-2010, 08:44 PM
thanks, ill check it out!