Skip to content

Commit 177696f

Browse files
committed
Fix Ghostbusters vacuuming with Team Battles
1 parent f0097d2 commit 177696f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/vscripts/tf2ware_ultimate/bossgames/ghostbusters.nut

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,21 @@ function OnTakeDamage(params)
341341

342342
if (victim_class == TF_CLASS_SPY && attacker_class == TF_CLASS_HEAVYWEAPONS)
343343
return false
344+
344345
if (victim_class == TF_CLASS_SPY && attacker_class == TF_CLASS_MEDIC)
346+
{
345347
params.inflictor = kill_icon
348+
// needed for team battles
349+
params.force_friendly_fire = true
350+
}
346351
else if (victim_class == TF_CLASS_MEDIC && attacker_class == TF_CLASS_HEAVYWEAPONS)
352+
{
347353
params.damage = 125.0
354+
}
348355
else if (victim_class == TF_CLASS_HEAVYWEAPONS)
356+
{
349357
return false
358+
}
350359
}
351360
}
352361

0 commit comments

Comments
 (0)