View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 03:48   Re: [TF2] Friendly Mode
Reply With Quote #13

Uploading new version 13.0413 (0105). It is attached to this post, and will soon replace the version in the first post in this thread. Changes include:
  • Majorly revised code, reduced duplicate code, made certain things make more sense to me. Thank you 11530!
  • Added (Client != 0) check.
  • Changed sm_friendly_slap to sm_friendly_punish_hostile
  • sm_friendly_punish_hostile has new function, and a new default value of -1.
  • Added cvar sm_friendly_punish_friendly. Same function as sm_friendly_punish_hostile, but punishes players entering friendly mode. This will help prevent players from attacking others, then becoming immune to retaliation.
  • Punishments for changing modes do not apply if the mode change was made upon respawning.
  • If a mode change results in suicide due to sm_friendly_punish_hostile or sm_friendly_punish_friendly being negative, the mode change will carry over to the next life, regardless of the value of sm_friendly_remember.
  • Temporarily removed debug command
Attached Files
File Type: smx friendly.smx (6.7 KB, 236 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 543 views - 11.5 KB)

Last edited by ddhoward; 04-13-2013 at 04:09.
ddhoward is offline