View Single Post
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 10-20-2009 , 16:06   Re: break_prop event, EventHookMode_Pre, preventing prop damage by team
Reply With Quote #2

Just hook the OnTakeDamage output on the entity and check the team of the inflictor. If it's the wrong team, set the health of the object back to what it was previously.
bl4nk is offline