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

TF2 Godmode for Admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Seb3pg
Junior Member
Join Date: Feb 2008
Plugin ID:
448
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Turn godmode on and off
    Unapprover:
    Reason for Unapproving:
    Succeeded by http://goo.gl/7vKrZ
    Old 07-05-2008 , 19:16   TF2 Godmode for Admins
    Reply With Quote #1

    First all, I want to Thank ratty for his amazing Medic achievement plug-in.

    Which can be found here:

    http://forums.alliedmods.net/showthread.php?t=70795&highlight=medic&page=3 "

    What i did:

    I modified the godmode part of his plug-in to have the reverse effect. Instead of spawning with godmode on , you have to manually turn it on.

    Usage:

    ADMINS ONLY

    sm_god to turn it on and off
    sm_buddha to turn on buddha mode (take damage but not lose health)
    sm_mortal to turn off buddha mode


    That's it, simple yet effective.

    Version:
    1.3: Updated July 18th, 2008

    Implemented buddha mode and pheadxdll suggestion.

    1.2: Updated July 13th, 2008

    Configured it for admin only
    Requires Slay access

    1.1: Updated July 5th, 2008

    Announces the commands via sm_say

    1.0: Initial Release

    To Do for Next Version:


    1. Set it for other players
    2. add to admin menu

    Installation:

    Install it in your orangebox/tf/addons/sourcemod/plugins folder.

    NOTE:

    Should work for TF2, CSS and DOD:S
    Attached Files
    File Type: sp Get Plugin or Get Source (god.sp - 13514 views - 1.4 KB)
    File Type: smx god.smx (2.0 KB, 5009 views)

    Last edited by Seb3pg; 07-17-2008 at 12:46.
    Seb3pg is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 07-05-2008 , 19:21   Re: TF2 Godmode
    Reply With Quote #2

    Woo. Can you add this to the admin menu so I can set other people to have it and for me to have it for admins only when you make it.
    __________________

    DontWannaName is offline
    Seb3pg
    Junior Member
    Join Date: Feb 2008
    Old 07-05-2008 , 19:30   Re: TF2 Godmode
    Reply With Quote #3

    EDIT: Ratty's plug-in came with a functionality that announces the command. I have implemented it in this version (1.1).


    To Don'tWannaName

    I'll get right on it. Look for an update within the week.

    Last edited by Seb3pg; 07-05-2008 at 19:37.
    Seb3pg is offline
    [AiF] Biggs
    Member
    Join Date: Jan 2008
    Location: Statesboro, GA
    Old 07-05-2008 , 20:56   Re: TF2 Godmode
    Reply With Quote #4

    Awesome. I think I'll add this when it can be configured to admin only.
    __________________
    [AiF] Biggs is offline
    Dominator
    Senior Member
    Join Date: Mar 2008
    Old 07-07-2008 , 20:19   Re: TF2 Godmode
    Reply With Quote #5

    I added it and it runs great, for the future it would be cool if you can make it so explosives act normal besides damage like for example a demoman can do a sticky bomb jump with 8 stickies and he would go flying instead of it doing nothing. Also i added it to the menu to load the plugin/unload it and when you unload it you can't kill a person who has it on, also you can't slay them and burning crashes the server still but thats not because of you mod, great plugin in though, good job.
    Dominator is offline
    pheadxdll
    AlliedModders Donor
    Join Date: Jun 2008
    Old 07-09-2008 , 13:28   Re: TF2 Godmode
    Reply With Quote #6

    The godmode plugin on my server toggles. Meaning you can turn it on or off by typing !godmode. That way you only have to worry about binding one key. Just a suggestion:

    PHP Code:
    public Action:Command_godmode(clientargs)
    {
            new 
    gValue GetEntProp(clientProp_Data"m_takedamage"1);

            if(
    gValue// mortal
            
    {
                    
    SetEntProp(clientProp_Data"m_takedamage"01)
                    
    PrintToChat(client,"\x01\x04God mode on")
            }else{     
    // godmode
                    
    SetEntProp(clientProp_Data"m_takedamage"21)
                    
    PrintToChat(client,"\x01\x04God mode off")
            }
            return 
    Plugin_Handled;


    Last edited by pheadxdll; 07-09-2008 at 13:31.
    pheadxdll is offline
    Seb3pg
    Junior Member
    Join Date: Feb 2008
    Old 07-13-2008 , 19:54   Re: TF2 Godmode
    Reply With Quote #7

    Updated to 1.2
    Seb3pg is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 07-13-2008 , 22:58   Re: TF2 Godmode
    Reply With Quote #8

    Thanks, did you add it to the admin menu? Instead of unsupported for 1.1 you should say not required.
    __________________

    DontWannaName is offline
    Seb3pg
    Junior Member
    Join Date: Feb 2008
    Old 07-17-2008 , 12:43   Re: TF2 Godmode
    Reply With Quote #9

    Updated to version 1.3
    Seb3pg is offline
    Seb3pg
    Junior Member
    Join Date: Feb 2008
    Old 07-17-2008 , 12:44   Re: TF2 Godmode
    Reply With Quote #10

    Quote:
    Originally Posted by DontWannaName View Post
    Thanks, did you add it to the admin menu? Instead of unsupported for 1.1 you should say not required.
    Will do for version 1.4 (will be released in the next few days)
    Seb3pg is offline
    Reply



    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 06:43.


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