Release Anti Hitmarkers
#1
Hi everyone!

At first sorry for my bad english, i'm swiss.
I would like to release this little plugin i made for my server.
I made it because i hate hitmarkers with the snipers Angel
You can set a list of weapons that will never do hitmarkers, it will always kill the victim.

Add those lines to the sv_config.ini:
Code:
[AntiHitMarkers] Enabled=1 // 0 or 1 Weapon_list=iw5_msr iw5_l96a1 // Weapons list separated by 1 space

Plugin Csharp source code:
Code:
using System; using Addon; namespace AntiHitMarkers { public class AntiHitMarkers : CPlugin { // List of weapons without hitmarkers private string[] weapon_list; // Status of the plugin private string enabled = "0"; public override void OnServerLoad() { // Get the status of the plugin enabled = GetServerCFG("AntiHitMarkers", "Enabled", "no_weapon"); // If the plugin is enabled if (enabled == "1") { // Get the list of antihitmarkers weapons string get_weapon_list = GetServerCFG("AntiHitMarkers", "Weapon_list", "no_weapon"); // Split the list by spaces to get an array weapon_list = get_weapon_list.Split(' '); } // Print plugin loaded ServerPrint("Plugin AntiHitMarkers loaded! (enabled => " + enabled + ")"); } public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, String Weapon, int Damage) { // If the plugin is enabled if (enabled == "1") { // Loop the weapons list foreach (string weapon_name in weapon_list) { // Control if the weapon is in the weapons list if (Weapon.Contains(weapon_name)) { // If damage is lower than the victim's health if (Damage < Victim.Other.Health) { // Set the damage equal to the victim's health Damage = Victim.Other.Health; } // Stop the foreach break; } } } // Return the final damage return Damage; } } }

I'm open for every suggestions or comments.
Have Fun!


Attached Files
.zip   AntiHitMarkers.zip (Size: 2.07 KB / Downloads: 139)
Reply

#2
Really good release indeed. I myself actually like hitmarkers, but for people searching for real hardcore this might be VERY helpful. GJ Awesome
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#3
So instead of preventing any random bullet spam because people see hitmarkers you reward them with insta kill on those weapons? Well, if you like it, you may install that on your server.
Reply

#4
Those weapons will become OP as shit.
Just sayin'
Reply

#5
this does give me an idea for an instagib mod Big Grin
Had a life, Got a modem..
Reply

#6
Hey,

thanks for this plugin by the way.
Its quite useful on a sniperserver but we've encourtered a bug.
At 15000 points at Team Deathmatch, the round wont end, this happens very very rarely (every 40th round?).
Nobody is making damage until you start another map, then everything is working fine again.

Cheers.

EDIT: Sorry, this plugin wasnt the reason of this bug.
[Image: epvp71up3.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink [Release] Anti hardscope script mutant 6 9,457 06-10-2017, 09:31
Last Post: Erox
  [Release] Anti Hardscope Plugin 8q4s8 26 27,594 06-20-2015, 22:44
Last Post: urj88419
  [Release] Anti-Invisible Name master131 24 27,494 05-02-2013, 14:15
Last Post: .sepultura.
Brick [Release] Anti Premium [battlelog] JariZ 17 14,309 09-24-2012, 12:59
Last Post: finitore
  [Release] Anti SpawnKills narkos 2 3,829 07-14-2012, 18:42
Last Post: narkos
  [Release] Anti Flood plugin iAegle 10 12,319 03-22-2012, 13:09
Last Post: dthem_2000

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.