View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-23-2013 , 03:28   Re: [TF2] Friendly Mode (v. 13.0422)
Reply With Quote #98

Uploading new version 13.0423. It is attached to this post, has been pushed to the server that Updater downloads from, and will soon replace the version in the first post in this thread. Changes are:
  • Removed tf_weapon_fireaxe from the list of weapons blocked by sm_friendly_blockweps. This should be the last weapon removed until a better solution is implemented.

  • Made improvements to Friendly/sapper interaction.
    • Friendly spies cannot sap any building
    • Friendly Engies/Pyros cannot remove sappers from non-friendly buildings
    • Non-friendly spies cannot sap Friendly buildings, if that buildings's invuln cvar != 0
    • If a friendly building is being sapped, the sapper can be removed by both Friendlies and non-Friendlies

  • Made changes to sm_friendly_invuln_* cvars
    • If 0, friendly buildings will be vulnerable to all damage
    • If 1, buildings will be invulnerable to all player-inflicted damage
    • If 2, buildings will have full godmode

  • Re-organized code blocks

  • Fixed cosmetics and demoshields not adhering to alpha settings if the item was equipped after spawning

  • Added cvar sm_friendly_alpha_w with default value of 128. Functions identically to the other alpha cvars, affecting wearable cosmetics and demoshields.

  • sm_friendly_admin can now be activated regardless of any invuln cvar. An admin who uses this command can still NOT bypass the invulnerability of a player/building with "godmode."

  • Added cvars sm_friendly_killsentry_f, sm_friendly_killdispenser_f, and sm_friendly_killtele_f, each with default value of 1. An Engineer who enters friendly mode will have his buildings destroyed based on these settings.

  • Added cvar sm_friendly_stopcap with default value of 1. When enabled, Friendly players will be unable to capture points or push payloads. (NOTE: A player who enables Friendly mode while ALREADY capping a point will CONTINUE to cap the point. If you are concerned about players abusing this, consider setting sm_friendly_action_f to "-1" or "-2".)

  • Added cvar sm_friendly_stopintel with a default value of 1. When enabled, Friendly players will be unable to pick up the intelligence. If a player enters Friendly mode while holding the intel, he will be forced to drop it.

Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!

PLEASE NOTE: This version causes mild and occasional error log spam, having something to do with the Control Point blocking code. Working on a solution.

EDIT: WARNING: This version of the plugin is bugged, and REQUIRES the Goomba Stomp plugin to be installed. It is recommended that you instead install the current version.
Attached Files
File Type: smx friendly.smx (18.6 KB, 145 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 155 views - 39.2 KB)

Last edited by ddhoward; 04-29-2013 at 02:24.
ddhoward is offline