AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] No Fall/Self Damage (https://forums.alliedmods.net/showthread.php?t=173967)

SeoToX 12-13-2011 11:40

[TF2] No Fall/Self Damage
 
2 Attachment(s)
[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

island55 01-02-2012 03:24

Re: [TF2] No Fall/Self Damage
 
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?

nergal 04-11-2012 20:15

Re: [TF2] No Fall/Self Damage
 
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.....

Roundcat 08-24-2012 15:03

Re: [TF2] No Fall/Self Damage
 
This seems to be broken now under sourcemod 1.5 and 1.4

Mariano 09-18-2012 18:39

Re: [TF2] No Fall/Self Damage
 
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

:(

jwright8 10-17-2012 13:08

Re: [TF2] No Fall/Self Damage
 
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.

DarthNinja 10-17-2012 16:13

Re: [TF2] No Fall/Self Damage
 
Work out the damage in sdkhooks, then add that value to the player's health value and let the damage go though.

jwright8 10-17-2012 18:00

Re: [TF2] No Fall/Self Damage
 
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.

Roundcat 10-19-2012 11:52

Re: [TF2] No Fall/Self Damage
 
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()


Mitchell 10-19-2012 12:20

Re: [TF2] No Fall/Self Damage
 
Quote:

Originally Posted by Roundcat (Post 1821671)
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.


All times are GMT -4. The time now is 01:36.

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