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

[TF2] No Fall/Self Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SeoToX
Member
Join Date: Jul 2011
Plugin ID:
2704
Plugin Version:
2.0
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    Enable / disable fall/self damage on players
    Old 12-13-2011 , 11:40   [TF2] No Fall/Self Damage
    Reply With Quote #1

    [TF2] No Fall/Self Damage
    Version 2.0

    Description:
    Enable / disable fall/self damage for yourself or other players
    Dependency:
    - SDKHooks
    ConVars:
    - sm_nofalldamage (default: 0) - When 1, disable the fall damage globally
    - sm_noselfdamage (default: 0) - When 1, disable the self damage globally
    Commands:
    • console: sm_nofall <client> <1/0> OR sm_nofall (give yourself)
    • in chat: /nofall <client> <1/0> OR /nofall (give yourself)
    • in chat: !nofall <client> <1/0> OR !nofall (give yourself)
    • console: sm_noself <client> <1/0> OR sm_noself (give yourself)
    • in chat: /noself <client> <1/0> OR /noself (give yourself)
    • in chat: !noself <client> <1/0> OR !noself (give yourself)

    Examples:
    sm_nofall - Toggles fall damage on the admin running the command
    sm_nofall @all 1 - Turns off fall damage for all players
    sm_nofall @all 0 - Turns on fall damage for all players

    sm_noself - Toggles self damage on the admin running the command
    sm_noself @all 1 - Turns off self damage for all players
    sm_noself @all 0 - Turns on self damage for all players
    Cvars:
    sm_nofall_version - Plugin Version

    Note: The default admin level for the commands is "slay", but the admin level for targeting other players is "ban".
    This is for if you want all admins to have sm_nofall access, but only higher level admins to be able to target other players.

    Install Instructions:
    1. Place nofall.smx into your addons/sourcemod/plugins/ folder.

    Changelog:
    • 1.0 (2011. Dec. 13.)
      - First release
    • 2.0 (2011. Dec. 15.)
      - Fixed: No longer disable the fall damage by default
      - Added sm_nofalldamage convar to disable fully the fall damage
      - Added feature to disable self damage too: sm_noself (or /noself) and sm_noselfdamage convar

    Note:
    - The SMX compiled under 1.4.1-dev
    - You need to download the .sp file, if you want to compile it
    Attached Files
    File Type: sp Get Plugin or Get Source (nofall.sp - 2016 views - 7.0 KB)
    File Type: smx nofall.smx (5.5 KB, 3346 views)

    Last edited by RedSword; 01-08-2013 at 19:57. Reason: Version 2.0; fb given
    SeoToX is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 01-02-2012 , 03:24   Re: [TF2] No Fall/Self Damage
    Reply With Quote #2

    when i set both the cvars to 1, do the players still have to type "!nofall" and "!noself" to disable them or does it apply to all players automatically?

    Last edited by island55; 02-16-2012 at 20:33. Reason: e
    island55 is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 04-11-2012 , 20:15   Re: [TF2] No Fall/Self Damage
    Reply With Quote #3

    dude, this plugins lets some of the areas that have "pits" become safe......

    u know the big pit in the map nucleus and u fall and it automatically kills u? this plugin nullifies it.....
    nergal is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 08-24-2012 , 15:03   Re: [TF2] No Fall/Self Damage
    Reply With Quote #4

    This seems to be broken now under sourcemod 1.5 and 1.4
    __________________
    I know not my ar*e from its elbow.

    Last edited by Roundcat; 08-24-2012 at 16:52.
    Roundcat is offline
    Mariano
    Member
    Join Date: May 2009
    Location: Poland / Silesia
    Old 09-18-2012 , 18:39   Re: [TF2] No Fall/Self Damage
    Reply With Quote #5

    Works fine with latest SDKhooks snapshot: http://users.alliedmods.net/~psychon.../sdkhooks/2.2/

    But i can't use rocket and sticky jump with sm_noselfdamage 1

    __________________
    TryhardBrigade.com

    European Team Fortress 2 Training Center

    "We Are Hip-Hop"
    KRS-One
    Mariano is offline
    jwright8
    Member
    Join Date: Sep 2012
    Old 10-17-2012 , 13:08   Re: [TF2] No Fall/Self Damage
    Reply With Quote #6

    How would you need to change the no self damage portion of the plugin to allow for rocket/sticky jumping?

    Thank you for posting this.
    jwright8 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-17-2012 , 16:13   Re: [TF2] No Fall/Self Damage
    Reply With Quote #7

    Work out the damage in sdkhooks, then add that value to the player's health value and let the damage go though.
    __________________
    DarthNinja is offline
    jwright8
    Member
    Join Date: Sep 2012
    Old 10-17-2012 , 18:00   Re: [TF2] No Fall/Self Damage
    Reply With Quote #8

    The only problem that I ran into with that is that if the person's health was already low, they would die before I could set health equal to health + damage taken. Thank you for posting the thought though.

    EDIT: I just went back and reread what you said. What event would I hook to do that before the damage? I was trying to use OnTakeDamage.

    Last edited by jwright8; 10-17-2012 at 18:01.
    jwright8 is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 10-19-2012 , 11:52   Re: [TF2] No Fall/Self Damage
    Reply With Quote #9

    Im getting this error with this plugin... could it be somethng to do with folder called 'clint' instead of 'client'?

    Code:
    L 10/19/2012 - 04:21:01: [SM] Displaying call stack trace for plugin "nofall.smx":
    L 10/19/2012 - 04:21:01: [SM]   [0]  Line 123, /home/clint/service1/tf2/orangebox/tf/addons/sourcemod/scripting/include/commandfilters.inc::ReplyToTargetError()
    L 10/19/2012 - 04:21:01: [SM]   [1]  Line 241, nofall.sp::nofall()
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 10-19-2012 , 12:20   Re: [TF2] No Fall/Self Damage
    Reply With Quote #10

    Quote:
    Originally Posted by Roundcat View Post
    Im getting this error with this plugin... could it be somethng to do with folder called 'clint' instead of 'client'?

    Code:
    L 10/19/2012 - 04:21:01: [SM] Displaying call stack trace for plugin "nofall.smx":
    L 10/19/2012 - 04:21:01: [SM]   [0]  Line 123, /home/clint/service1/tf2/orangebox/tf/addons/sourcemod/scripting/include/commandfilters.inc::ReplyToTargetError()
    L 10/19/2012 - 04:21:01: [SM]   [1]  Line 241, nofall.sp::nofall()
    The maker's name (clint) has nothing to do with that error lol.
    Mitchell 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 15:05.


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