View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 04-12-2012 , 11:09   Re: FF off and an idot shot the teammates heads.
Reply With Quote #4

Funny you ask for that now It's been requested in irc few days ago and easy to avoid. OnTakeDamage is still called for teamattacks while friendlyfire is off, so setting m_vecPunchAngle to 0 if the attacker and victim teams are equal did the job. I don't have the .sp anymore, but it's easy to redo.

Edit: that's it.

Edit: whoa i'm slow
Attached Files
File Type: sp Get Plugin or Get Source (viewpunch.sp - 486 views - 1.2 KB)
File Type: smx viewpunch.smx (2.5 KB, 118 views)
__________________

Last edited by Peace-Maker; 04-12-2012 at 11:11.
Peace-Maker is offline