View Single Post
LID919
New Member
Join Date: Dec 2016
Old 01-11-2017 , 16:06   Re: [TF2] Smarter Spawns - Spawn Protection
Reply With Quote #33

I've been using this plugin on my server but I noticed some issues with Sentries and afterburn.

I have the plugin configured so that players in spawn deal no damage to players outside of spawn, and players outside deal none to those inside. This works great for most cases, except in the case of Sentry Guns and Afterburn. The server is an instant respawn server.

We noticed that if you kill and Engineer and he respawns, his sentry deals no damage until he leaves spawn. This is a problem for the Engineer if they were taking time to change their loadout or otherwise had reason to remain in spawn for a few moments. Their sentry is vulnurable for that entire time.
Additionally, having the sentry deal no damage while they are in spawn means that it is easy to kill a sentry just by killing the engineer first, then attacking the sentry during the few seconds they are in spawn.

We noticed a similar problem with afterburn. When a player is set on fire by a Pyro, then kills the pyro, they take no afterburn damage for the time the Pyro is in spawn. This denies many Pyros kills they would have otherwise gotten.

Is there any way to modify the plugin such that sentries and afterburn (and likely bleed effects as well) continue to deal damage when the attacker is in spawn?

Sentries seem like an easy enough problem if it is possible to detect that the damage a victim is taking is from a sentry. I tried looking into &damagetype in Action:OnTakeDamage but was unable to make progress.

Afterburn and Bleed could be more difficult if a player will, for example, take damage from the afterburn of a flare shot out of spawn. I have not tested any such things so I would not know if the afterburn would never start due to the flare itself dealing no damage. If that is the case then this situation should be more straightforward.
LID919 is offline