AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Spawn Friendly Fire Punishment (https://forums.alliedmods.net/showthread.php?t=179792)

CUatTHEFINISH 03-05-2012 16:25

[CS:S] Spawn Friendly Fire Punishment
 
1 Attachment(s)
I run a CS:S server with friendly fire on and sometimes we get people who intentionally shoot other players in spawn as an act of revenge or just to troll. I created this plugin to combat it (I couldn't find a plugin that did the same thing, but maybe I'm not looking hard enough).

The time you define for spawnff_time is the amount of time after the freeze round ends that the plugin will check for players to punish. During this time any players who commit friendly fire will be slain. This plugin allows for the option to restore the damage done to the attacker.

Features:
  • Slay a client who team attacks after round freeze ends
  • Announce that the client has been slain for spawn friendly fire
  • Restore health to the victim of the attacker
  • Announce that the victim's health has been restored

Plugin cvars:
spawnff_time <5.00> - How many seconds to allow punishment for spawn ff
spawnff_restore <0, 1> - Restore health to the victim (0 = off, 1 = on)
spawnff_announce_slay <0, 1> - Announce the slay punishment (0 = off, 1 = on)
spawnff_announce_restore <0, 1> - Announce the health restore (0 = off, 1 = on)

Change Log
  • Version 1.0.2
    • Fixed client index 0 bug
  • Version 1.0.1
    • Added explosion sound and sprite effect (ala firebomb of funcommands) when client is slain
    • Fixed slay message spam when shot by a shotgun
  • Version 1.0.0
    • Initial Public Release

Known Issues:
  • Shotgun blasts may cause multiple health restore messages. This is due to the multiple player_hurt events that trigger (trying to figure out the best way to solve this).

Additional Info:
This is my second plugin, and I've been testing it out on my server. It seems to be running alright and not causing any problems. However, that doesn't mean I haven't missed any bugs. Feel free to give it a whirl and give me some feedback.

Slaying may seem like a harsh punishment to some for any FF within x amount of seconds of the round starting. However, it's proven to be quite effective in handling rouge pubbies who mistreat friendly fire after spawning. It's prevented a few incidents on our server already, and has given admins a chance to kick the offender without him ruining a round.

AlfredSpain 06-03-2013 01:12

Re: [CS:S] Spawn Friendly Fire Punishment
 
Csgo works fine :D


All times are GMT -4. The time now is 15:22.

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