AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Player Protection (v3.6.2) (https://forums.alliedmods.net/showthread.php?t=129558)

thetwistedpanda 06-14-2010 02:03

[CS:S] Player Protection (v3.6.2)
 
2 Attachment(s)
Description:
  • Protection provides a simple method of providing spawn protection utilizing SDKHooks to prevent all damage done to a player up until their protection expires.
  • Notice: Requires SDKHooks
Features:
  • Protection can decay over time, so that clients who spawn late do not receive the full length of spawn protection.
  • If enabled, a client's protection will be disabled immediately after firing their weapon.
  • Depending on the setting, a player with/without protection may be protected from all fall damage, no fall damage, or all non-fatal fall damage.
  • Depending on the setting, a player may be protected from all damage, no damage, or damage dealt by other players after the round has ended.
  • Ability assign a pre-protection and post-protection render/color combination to all clients. (This has dozens of uses, such as making protected clients invisible, changing their color to match their team, and many more).
  • You can assign a punishment to inflict upon the attacker who attacks protected clients, such as instant slaying or losing x amount of health.
  • Disable protection for a specific team, making it great for Zombie type servers!
ConVars:
  • sm_protection_enable: If enabled, players will spawn with "protection" protecting them for sm_protection_duration seconds.
  • sm_protection_duration: The number of seconds players will receive protection for after mp_freezetime.
  • sm_protection_decay: If enabled, the total duration of protection will decrease until reaching zero, disabling protection for the round.
  • sm_protection_maximum: The total number of seconds sm_protection_decay will operate for before disabling protection.
  • sm_protection_falling: Determines how players are protected from falling damage. (-2 = All Fall Damage, -1 = All Fall Damage (w/ Protection), 0 = No Protection, 1 = Non-Fatal Fall Damage (w/ Protection), 2 = Non-Fatal Fall Damage)
  • sm_protection_ending: Determines how players are protected after the round ends. (-1 = Protection From Everything, 0 = No Protection, 1 = Protection From Players)
  • sm_protection_shooting: If enabled, protection will be disabled early should the player fire their weapon.
  • sm_protection_notify: Determines printing functionality. (-1 = Hint Message, 0 = No Message, 1 = Chat Message)
  • sm_protection_punish: Determines punishment functionality. (-1 = Slay Player, 0 = No Action, 1 = Lose Health)
  • sm_protection_punish_value: The amount of health lost, if sm_protection_punish is equal to 1.
  • sm_protection_freeze_time: If enabled, spawn protection and decay are put off until mp_freezetime expires.
  • ~-~-~
  • sm_protection_pre: If enabled, players will receive the effects and colors defined by their appropriate variables while under protection.
  • sm_protection_pre_t: The effect and color combination players on the Terrorist team will receive during protection.
  • sm_protection_pre_ct: The effect and color combination players on the Counter-Terrorist team will receive during protection.
  • sm_protection_post: If enabled, players will receive the effects and colors defined by their appropriate variables after their protection expires.
  • sm_protection_post_t: The effect and color combination players on the Terrorist team will receive after protection.
  • sm_protection_post_ct: The effect and color combination players on the Counter-Terrorist team will receive after protection.
Coloring / Rendering:
  • Please see the following post for information about the render/color combinations.
  • Notice: several of the effects and render combinations do nothing in CS:S, while others have some of their full effect. You will have to conduct a bit of trial and error to find a unique effect should you wish, as I've listed no additional information concerning them.
Installation:
  • Place sm_player_protection.smx inside your sourcemod plugins directory, located: /cstrike/addons/sourcemod/plugins/

thetwistedpanda 06-14-2010 02:04

Re: [CS:S] Player Protection
 
Coloring & Effect Breakdown:
  • RenderFX RenderMode ColorRed ColorGreen ColorBlue ColorAlpha
RenderFX (Possible 0 - 25):
  • 0 = RENDERFX_NONE
  • 1 = RENDERFX_PULSE_SLOW
  • 2 = RENDERFX_PULSE_FAST
  • 3 = RENDERFX_PULSE_SLOW_WIDE
  • 4 = RENDERFX_PULSE_FAST_WIDE
  • 5 = RENDERFX_FADE_SLOW
  • 6 = RENDERFX_FADE_FAST
  • 7 = RENDERFX_SOLID_SLOW
  • 8 = RENDERFX_SOLID_FAST
  • 9 = RENDERFX_STROBE_SLOW
  • 10 = RENDERFX_STROBE_FAST
  • 11 = RENDERFX_STROBE_FASTER
  • 12 = RENDERFX_FLICKER_SLOW
  • 13 = RENDERFX_FLICKER_FAST
  • 14 = RENDERFX_NO_DISSIPATION
  • 15 = RENDERFX_DISTORT
  • 16 = RENDERFX_HOLOGRAM
  • 17 = RENDERFX_EXPLODE
  • 18 = RENDERFX_GLOWSHELL
  • 19 = RENDERFX_CLAMP_MIN_SCALE
  • 20 = RENDERFX_ENV_RAIN
  • 21 = RENDERFX_ENV_SNOW
  • 22 = RENDERFX_SPOTLIGHT
  • 23 = RENDERFX_RAGDOLL
  • 24 = RENDERFX_PULSE_FAST_WIDER
  • 25 = RENDERFX_MAX
RenderMode (Possible: 0-10):
  • 0 = RENDER_NORMAL
  • 1 = RENDER_TRANSCOLOR
  • 2 = RENDER_TRANSTEXTURE
  • 3 = RENDER_GLOW
  • 4 = RENDER_TRANSALPHA
  • 5 = RENDER_TRANSADD
  • 6 = RENDER_ENVIRONMENTAL
  • 7 = RENDER_TRANSADDFRAMEBLEND
  • 8 = RENDER_TRANSALPHAADD
  • 9 = RENDER_WORLDGLOW
  • 10 = RENDER_NONE
Colors (Possible: 0 - 255)

thetwistedpanda 07-25-2010 01:53

Re: [CS:S] Player Protection
 
Updated to version 3.0! Or I think....

Böhser Onkel Leo 08-20-2010 09:13

Re: [CS:S] Player Protection
 
Hey!
First sry for my bad english!... I have a Question: is it possible to add a cvar which turn spawnprotection of if somebody starts shooting...

Leo

thetwistedpanda 08-20-2010 12:48

Re: [CS:S] Player Protection
 
Böhser I'll see about adding that sometime this weekend or early next week, I have a few other projects to finish up first. Also it should be mentioned that the plugin works fine, it was merely disapproved for supporting a single mod where as an inferior plugin supported additional ones. I will continue to provide support and updates as necessary.

thetwistedpanda 08-22-2010 18:42

Re: [CS:S] Player Protection
 
Updated to version 3.3; @Matthias Vance the plugin is definitely not a duplicate of that one =D. Strongly advised for everyone using this plugin to upgrade as it has been greatly optimized and a new cvar, sm_protection_shooting (disable protection after firing weapons) has been added.

Böhser Onkel Leo 08-24-2010 10:45

Re: [CS:S] Player Spawn Protection
 
Hey!
Thanks for adding the new cvar... we will test it on 3 servers.. thx
Leo

Böhser Onkel Leo 08-24-2010 11:24

Re: [CS:S] Player Spawn Protection
 
.... plugin failed to compile...


pls help...

Leo

thetwistedpanda 08-24-2010 11:38

Re: [CS:S] Player Spawn Protection
 
The plug-in uses SDKHooks... You have to compile it locally or download the pre-compiled .smx that is attached to the first post.

Böhser Onkel Leo 08-25-2010 03:46

Re: [CS:S] Player Spawn Protection
 
So i only have to download the .smx and .sp? No .cfg nothing else?
If i klick on "get plugin" it sayed plugin failed to compile.
Leo


All times are GMT -4. The time now is 03:09.

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