View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-07-2013 , 02:50   Re: [TF2] Friendly Mode (v. 13.0706)
Reply With Quote #172

Uploading new version 13.0706. 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:
  • Optimized weapon/taunt blocking

  • Fixed stupid PrintToServer mistake, not a big issue

  • Made timers more error proof

  • Upgraded to newer morecolors version, no actual changes made to the plugin

  • Added targeting filters! The following can be used as targeting filters with any Sourcemod command. These act similar to @all, @me, @alive, @bots, etc. For example, sm_slay @friendly will slay all Friendly players.

    • @friendly, @friendlies - Targets all Friendly players
    • @!friendly, @!friendlies - Targets all non-Friendly players
    • @friendlyadmins - Targets all players who have enabled Friendly Admin mode.
    • @!friendlyadmins - Targets all players who have NOT enabled Friendly Admin mode.
    • @friendlylocked - Targets all players who have been locked out of toggling Friendly mode.
    • @!friendlylocked - Targets all players who have NOT been locked out of toggling Friendly mode.

  • Changes to sm_friendly_notarget. This cvar determines whether Friendly players have the FL_NOTARGET flag, which makes them invisible to sentries and immune to airblasts.

    • 0 = Friendly players will not ever be given the flag; they will be targeted by sentries and can be airblasted. This is not recommended.

    • 1 = Friendly players will always have the flag, and therefore will always be invisible to sentries and immune to airblasts. However, if a Friendly player tries to change weapons by hitting a resupply, he will NOT be given his new weapons.

    • 2 = Same as 1, except the flag will be temporarily removed upon hitting a resupply cabinet. This has two issues:

      • If a player hits a cabinet, leaves the cabinet for a split second, and then starts touching the cabinet again BEFORE he can resupply, he will temporarily be visible to sentries. This visibility will last less than a second, ending when the resupply actually happens, or he stops touching the cabinet.

      • If a player touches a resupply cabinet, and THEN tries to change his weapons WHILE STILL TOUCHING THE CABINET, he will NOT recieve his new weapons.

    • 3 = The player will have the flag removed as long as he is touching a resupply. This means that Friendly players can always resupply successfully, but also means that a friendly player can act as an immortal sentry distracter as long as he remains on the cabinet. This may not be an issue depending on the map.


Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: smx friendly.smx (49.6 KB, 81 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 75 views - 112.8 KB)
File Type: cfg friendly.cfg (20.5 KB, 81 views)
ddhoward is offline