Raised This Month: $51 Target: $400
 12% 

[TF2] Friendly Simple


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Phil25
AlliedModders Donor
Join Date: Feb 2015
Plugin ID:
4876
Plugin Version:
0.924
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    33 
    Plugin Description:
    Toggles Friendly mode on players in spawn (no damage dealt - no damage taken)
    Old 11-01-2015 , 00:45   [TF2] Friendly Simple
    Reply With Quote #1

    [TF2] Friendly Simple v0.924

    This is my version of Friendly with quite a bit of code borrowed from ddhoward's Friendly Mode, so a lot of credit goes to the author of the original plugin.
    Friendly Simple should NOT run alongside the original Friendly plugin.


    Differences:
    • This plugin has 0 ConVars thus very easy to set up,
    • Friendly players are wholly unable to attack (except with Rocket/Sticky Jumper),
    • Friendly mode can be toggled only in spawn,
    • Friendly players, along with their cosmetics and weapons, are semi-transparent and are colored green,
    • For developers: Has its own include file, see below for more information,
    • Lots of potential bug/exploit fixes due to a different way of managing Friendlies.

    Similarities:
    • Friendly players cannot be damaged nor deal damage,
    • Hostile players are able to clip through Friendly players,
    • Friendly players are unable to interact with the world in any way*,
    • Friendly players cannot use Teleporters or acquire metal from Dispensers,
    • Friendly players are not targeted by enemy Sentries,
    • Friendly players cannot RTD or Goomba stomp/get Goomba stomped,
    • Friendly players cannot capture Control Points, grab the Intelligence, etc.
    • The list goes on

    Commands:
    • sm_friendly - Toggles Friendly mode on the activator (only works once the client is in spawn).
    • sm_f - Same as above.

    Overriding access:
    By default, sm_friendly is accessible to everyone. To restrict access, use Overrides.
    Simply add a restriction to sm_friendly and sm_f will follow.

    For developers:
    Compiling

    Include file

    Changelog

    Todo/Known issues


    Installation:
    1. Simply click Get Plugin and place it in the sourcemod/plugins/ folder.
    2. Now, either restart the server or type "sm plugins load friendlysimple" in the console.
    3. NOTE: You will have to unload "friendly.smx" if you already have it installed.
    4. The .inc file is only for developers and, therefore, is optional.

    Final note: This is my first plugin I'm releasing and bugs are expected. Please report anything you can find and/or help me fix it. I assure you, I would appreciate that greatly!
    Attached Files
    File Type: inc friendlysimple.inc (2.5 KB, 1245 views)
    File Type: sp Get Plugin or Get Source (friendlysimple.sp - 2738 views - 19.8 KB)

    Last edited by Phil25; 03-04-2016 at 22:59.
    Phil25 is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 20:18.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode