Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sigsegv-mvm/f8d7e8c98d0c8fc7ad9677db3dd27b9e to your computer and use it in GitHub Desktop.
Save sigsegv-mvm/f8d7e8c98d0c8fc7ad9677db3dd27b9e to your computer and use it in GitHub Desktop.
A quick (untested) analysis of mvm_calico_b1a's tank-protecting filter_damage_type entities
filter_bullet1 20200000 DMG_BUCKSHOT|DMG_USEDISTANCEMOD
filter_bullet2 20300000 DMG_BUCKSHOT|DMG_USEDISTANCEMOD|DMG_CRITICAL
filter_bullet3 00200002 DMG_BULLET|DMG_USEDISTANCEMOD
filter_bullet4 00300002 DMG_BULLET|DMG_USEDISTANCEMOD|DMG_CRITICAL
filter_bullet5 02100002 DMG_BULLET|DMG_USE_HITLOCATIONS|DMG_CRITICAL
---------------------------------------------------------------------------------
filter_blast1 00240040 DMG_BLAST|DMG_HALF_FALLOFF|DMG_USEDISTANCEMOD
filter_blast2 00340040 DMG_BLAST|DMG_HALF_FALLOFF|DMG_USEDISTANCEMOD|DMG_CRITICAL
filter_blast3 00040040 DMG_BLAST|DMG_HALF_FALLOFF
filter_blast4 00140040 DMG_BLAST|DMG_HALL_FALLOFF|DMG_CRITICAL
---------------------------------------------------------------------------------
filter_fire1 01000800 DMG_IGNITE|DMG_PREVENT_PHYSICS_FORCE
filter_fire2 01100800 DMG_IGNITE|DMG_PREVENT_PHYSICS_FORCE|DMG_CRITICAL
filter_bullet(1|2) weapon coverage:
TF_WEAPON_SHOTGUN_PRIMARY
TF_WEAPON_SHOTGUN_SOLDIER
TF_WEAPON_SHOTGUN_HWG
TF_WEAPON_SHOTGUN_PYRO
TF_WEAPON_SCATTERGUN
TF_WEAPON_SENTRY_REVENGE
TF_WEAPON_SODA_POPPER
TF_WEAPON_PEP_BRAWLER_BLASTER
TF_WEAPON_SHOTGUN_BUILDING_RESCUE
filter_bullet(3|4) weapon coverage:
TF_WEAPON_MINIGUN
TF_WEAPON_SMG
TF_WEAPON_PISTOL
TF_WEAPON_PISTOL_SCOUT
TF_WEAPON_REVOLVER
TF_WEAPON_HANDGUN_SCOUT_SECONDARY
TF_WEAPON_MECHANICAL_ARM
TF_WEAPON_CHARGED_SMG
filter_bullet5 weapon coverage:
TF_WEAPON_SNIPERRIFLE
TF_WEAPON_COMPOUND_BOW
TF_WEAPON_CROSSBOW
TF_WEAPON_SNIPERRIFLE_DECAP
TF_WEAPON_SNIPERRIFLE_CLASSIC
filter_blast(1|2) weapon coverage:
TF_WEAPON_ROCKETLAUNCHER
TF_WEAPON_GRENADELAUNCHER
TF_WEAPON_ROCKETLAUNCHER_DIRECTHIT
TF_WEAPON_PARTICLE_CANNON
filter_blast(3|4) weapon coverage:
TF_WEAPON_GRENADE_NORMAL
TF_WEAPON_GRENADE_MIRV
TF_WEAPON_GRENADE_MIRV_DEMOMAN
TF_WEAPON_GRENADE_DEMOMAN
TF_WEAPON_CANNON
filter_fire(1|2) weapon coverage:
TF_WEAPON_FLAMETHROWER
POSSIBLE MISTAKES:
filter_bullet:
- lacks 02000002 for non-crit TF_WEAPON_SNIPERRIFLE*, TF_WEAPON_COMPOUND_BOW, TF_WEAPON_CROSSBOW
- lacks 00000002 for TF_WEAPON_SENTRY_BULLET
- lacks 00200002+00300002 for TF_WEAPON_SMG, TF_WEAPON_CHARGED_SMG
- lacks 20200002+20300002 for TF_WEAPON_HANDGUN_SCOUT_PRIMARY
filter_blast:
- lacks 00000040 for TF_WEAPON_SENTRY_ROCKET
- lacks 00060040+00160040 for TF_WEAPON_GRENADE_PIPEBOMB
filter_fire:
- lacks 01000002+01100002 for TF_WEAPON_FLAREGUN, TF_WEAPON_FLAREGUN_REVENGE
- lacks 00220008+00320008 for TF_WEPON_FLAME_BALL
(None of this has actually been tested; it's just based on g_aWeaponDamageTypes and not in-game testing.
There are pretty much guaranteed to be false positives AND false negatives here.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment