[MUTATOR] AntiTK — protects players from teamkillers

This forum is related to alpha maps and mods only.

Moderator: Forum Guards

[MUTATOR] AntiTK — protects players from teamkillers

Postby Dae » Tue Jun 27, 06 12:43 pm

SEE THE LATEST VERSION OF THE MOD IN THE LATEST RELEASE MESSAGE OF THIS TOPIC

I know i'm kinda inaccurate by posting not in a "official release topic", but soon when we get a website running we'll structure and tidy away all the information about releases.

This mutator is called MMAntiTK. It's currently the biggest mutator/script I have ever coded using UnrealScript. What does it do? Not really much, but, as you can guess from its name, it fights against team killers on a server. How? There are 2 directions.

1. You shoot your teammate, it hurts him or her, but you also get your damage back (amount of it can vary, depends on server admin). So, for example, if you shoot your team mate's legs off, you will also lose your legs.
+ if your teammate shoot you with darts, he or she will also get vision poisoned

2. You shoot your teammate and you kill him. Mutator gives you a warning and writes information about teamkill to a log. After a certain amount of team kills (still, the amount is changeable by admin) you get banned, but not forever of course. You get unbanned only after a certain amount of matches (by default it's 2).

It was inspired by Counter Strike: Source which I used to play a couple of months ago.

Installation is simple as usually (note, your server and Deus Ex should not be running while installing):
1. Place contents of .zip to DeusEx/System
2. Open DeusEx.ini file
3. Find the block called [DeusEx.DeusExGameEngine] and place the following line somewhere in that block
Code: Select all
ServerActors=MMAntiTK100.AntiTKMutator

4. Open Mutators.ini file (if there is no, create an empty text file and rename it to Mutators.ini.
5. Scroll till the end of the file, find an empty line or make one and add the following code:
Code: Select all
[MMAntiTK100.AntiTKMutator]
TeamDamageReflection=0.700000
bTeamKillPenalty=True
bTeamDamagePenalty=True
MaxTeamKills=3
NoticeColor=2
BanLength=2
MissedGames[0]=0
MissedGames[1]=0
MissedGames[2]=0
MissedGames[3]=0
MissedGames[4]=0
MissedGames[5]=0
MissedGames[6]=0
MissedGames[7]=0
MissedGames[8]=0
MissedGames[9]=0
MissedGames[10]=0
MissedGames[11]=0
MissedGames[12]=0
MissedGames[13]=0
MissedGames[14]=0
MissedGames[15]=0
MissedGames[16]=0
MissedGames[17]=0
MissedGames[18]=0
MissedGames[19]=0
MissedGames[20]=0
MissedGames[21]=0
MissedGames[22]=0
MissedGames[23]=0
MissedGames[24]=0
MissedGames[25]=0
MissedGames[26]=0
MissedGames[27]=0
MissedGames[28]=0
MissedGames[29]=0
MissedGames[30]=0
MissedGames[31]=0
MissedGames[32]=0
MissedGames[33]=0
MissedGames[34]=0
MissedGames[35]=0
MissedGames[36]=0
MissedGames[37]=0
MissedGames[38]=0
MissedGames[39]=0
MissedGames[40]=0
MissedGames[41]=0
MissedGames[42]=0
MissedGames[43]=0
MissedGames[44]=0
MissedGames[45]=0
MissedGames[46]=0
MissedGames[47]=0
PosInBanList[0]=0
PosInBanList[1]=0
PosInBanList[2]=0
PosInBanList[3]=0
PosInBanList[4]=0
PosInBanList[5]=0
PosInBanList[6]=0
PosInBanList[7]=0
PosInBanList[8]=0
PosInBanList[9]=0
PosInBanList[10]=0
PosInBanList[11]=0
PosInBanList[12]=0
PosInBanList[13]=0
PosInBanList[14]=0
PosInBanList[15]=0
PosInBanList[16]=0
PosInBanList[17]=0
PosInBanList[18]=0
PosInBanList[19]=0
PosInBanList[20]=0
PosInBanList[21]=0
PosInBanList[22]=0
PosInBanList[23]=0
PosInBanList[24]=0
PosInBanList[25]=0
PosInBanList[26]=0
PosInBanList[27]=0
PosInBanList[28]=0
PosInBanList[29]=0
PosInBanList[30]=0
PosInBanList[31]=0
PosInBanList[32]=0
PosInBanList[33]=0
PosInBanList[34]=0
PosInBanList[35]=0
PosInBanList[36]=0
PosInBanList[37]=0
PosInBanList[38]=0
PosInBanList[39]=0
PosInBanList[40]=0
PosInBanList[41]=0
PosInBanList[42]=0
PosInBanList[43]=0
PosInBanList[44]=0
PosInBanList[45]=0
PosInBanList[46]=0
PosInBanList[47]=0

6. Save/close all the files. Enjoy.

After installation you may configure it to your needs. Type "preferences" in console (or go to Advanced Options), go to Mutators > MM AntiTK.
Image
OR! You can just open Mutators.ini and change needed variables from there (note that you cannot change the file if your server is on). Let's see what we have:

TeamDamageReflection - factor of team damage, which will be sent back to a player, who have injured his team mate. By default it is set to 0.7, so, basicly, team killer will get 70% of damage he or she gave to team mate. You may set it for fun to 2, which means double damage (200%). For normal games 0.7 (70%) is enough.

bTeamKillPenalty - when set to False, disables the function, which punishes players with ban for team killing (direction 2).

bTeamDamagePenalty - when set to False, disables the function, which sends a player a damage he has given to his team mate (direction 1).

When both bTeamKillPenalty and bTeamDamagePenalty are disabled, the mutator does not do anything. It's useful for clanwars, when you don't need to punish players for doing team damage or team killing and in same time you don't want to uninstall the mutator completely.

MaxTeamKills - here you can set an amount of team kills for a player to get a ban. By default it is set 3. So, for example, if you killed your team mate 2 times (after both kills you will get a warning), you will be banned immediately after 3-d team kill.

Please, be wise with these settings. The should vary with conditions of the game. In 0aug like on Ferdy's and Reef's server MaxTeamKills set to 3 is more than enough, but in another condition, like on Nobody's SG server with all these super weapons as Neutron bomb or SCLAW MaxTeamKills should be at least 5.

NoticeColor - it's a color of a warning for team killing. By default it is 2 (red). You may change it to:
1 - white
2 - red
3 - green
4 - yellow
5 - pink
6 - blue
7 - cyan

BanLength - a length of ban, counting in maps (matches). By default it is 2 - in this case, the player will miss the end of the current map and the next map. After that he will get unbanned.

  • The system will work even after the reboot of the server.
  • Arrays MissedGames[x] and PosInBanList[x] are for technical purposes :)
  • If you want to change any of these settings IN GAME or if you don't have an access to console or mutators.ini, just type a command using the template (you should be logged in):
    Code: Select all
    admin set mmantitk100.antitkmutator variable_name new_value

    So, if you want to make a color of warning (variable named NoticeColor) blue, you should type:
    Code: Select all
    admin set mmantitk100.antitkmutator noticecolor 6
  • Each event (team kill, banning etc) is recorded to log file.
  • Admin can unban all the team killers manually. Log in as administrator and type:
    Code: Select all
    mutate antitk.unban
  • You may check if the mutator is installed + it's version by typing
    Code: Select all
    mutate antitk.version
  • This mutator works only on a server side. Visitors of your server don't have to download it.
  • The mutator was protected by Nobody's mod protection tool. But I may give a source code of it if you want.
  • I'm planning to make a few updates soon. Currently the mutator has a few problems + I'd like to add a new feature (thx to Derek).
  • If you have any troubles with installation or using it, tell us in this topic and me or my mates from [A] will help you ASAP.
  • I'm glad to hear any comments/suggestions :)


Credits:
- authors: Dae, Nobody, Alex
- testing: [B2S]Jesus, Marije, Alex, CreatorDx and a couple of nubs which used to come to my server and cry "cheeter" after shooting me, getting their damage back and dieing.
- ideas: Valve, Derek (aka cataclyzm or chococataclyzm).
- inspired by playing against JohnStark.ru, a known teamkiller "for fun".

SEE THE LATEST VERSION OF THE MOD IN THE MESSAGE BELOW!
Last edited by Dae on Thu May 31, 07 9:53 pm, edited 5 times in total.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby clyzm » Tue Jun 27, 06 12:49 pm

Nice job. <3
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby MainMan » Tue Jun 27, 06 1:47 pm

Wow seems interesting... The one thing that I don't understand is; why do the players not need to download it? How does that work? :?








P.S. Source would be nice :wink:
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Dae » Tue Jun 27, 06 2:03 pm

~MainMan~ wrote:Wow seems interesting... The one thing that I don't understand is; why do the players not need to download it? How does that work? :?
P.S. Source would be nice :wink:

Mutators work only on server side. They change small aspects of the game.

In case with MMCleaner (a mutator which cleans dropped lockpicks and multitools) a visitor of the server needs to download it because the package contains also new classes of lockpick and multitool. Basicly that mutator replaces standard Deus Ex lockpicks/multitools on the map with ones from the package. If a visitor doesn't have the package, these items will be invisible for him (same thing happens when you summon a class from a package, which isn't included in ServerPackages list).

Check PM for source code.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby IchoTolot » Sun Jul 09, 06 12:14 pm

Thnx Dae 8)
User avatar
IchoTolot
<i>Very</i> Friendly Clown
 
Posts: 258
Joined: Tue Aug 23, 05 5:48 am
Location: Quad 1,0,0 - 3th Planet - 50.6909 North - 11.5947 South

Postby Dae » Sun Jul 09, 06 12:22 pm

Good, but you don't need to put in ServerPackages. Enough of ServerActors.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Mr. Tastix » Sun Jul 09, 06 12:41 pm

Sounds like a very nice and interesting code. Nice one.
Blood is thicker than water and sweeter than candy.
User avatar
Mr. Tastix
Forum Legend
 
Posts: 5247
Joined: Fri Dec 16, 05 6:10 am
Location: New Zealand

Postby Dae » Mon Jul 10, 06 12:16 pm

Update: MMAntiTK101
The bug of punishing for killing animals has been fixed in this version.

Fresh installation of the mod: do as it says in the first message, just change 100 to 101 where needed. So you will need to add this line
Code: Select all
ServerActors=MMAntiTK101.AntiTKMutator

instead of old one with "100".

Updating the mod.
  1. Delete MMAntiTK100.u and MMAntiTK100.int
  2. Open DeusEx.ini
  3. Find
    Code: Select all
    ServerActors=MMAntiTK100.AntiTKMutator
  4. Replace with
    Code: Select all
    ServerActors=MMAntiTK101.AntiTKMutator
  5. Open Mutators.ini (these 3 steps are not necessary to do)
  6. Delete all the lines related to block
    Code: Select all
    [MMAntiTK100.AntiTKMutator]
  7. Save/close all files.


Thanks to IchoTolot for hosting the mutator and Mr. Snake for being the first person who reported the bug.
Attachments
MMAntiTK101.zip
(3.81 KiB) Downloaded 1277 times
Last edited by Dae on Wed Jul 12, 06 3:20 pm, edited 1 time in total.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby IchoTolot » Mon Jul 10, 06 2:14 pm

work good ... thnx again
User avatar
IchoTolot
<i>Very</i> Friendly Clown
 
Posts: 258
Joined: Tue Aug 23, 05 5:48 am
Location: Quad 1,0,0 - 3th Planet - 50.6909 North - 11.5947 South

Postby jesus » Mon Jul 10, 06 2:56 pm

u should post it on the GM bords.. link in the dx section of this forum

it kicks ass man nd i think it should be on all servers

it will reduce the amount of tk ers
jesus
Elite
 
Posts: 801
Joined: Wed Mar 22, 06 6:25 pm

Postby Dae » Mon Jul 10, 06 3:29 pm

I have just posted the link to this mutator there. Thanks for advice :)
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Krieg » Mon Jul 10, 06 3:51 pm

i nearly got banned because of this mutator and i don't really got the reputation of a teamkiller <_<
-Elitist-
Image
Krieg
Forum Super Hero
 
Posts: 3357
Joined: Wed Apr 06, 05 1:02 pm
Location: in front of my comp =]

Postby Dae » Mon Jul 10, 06 3:54 pm

If you make 2 team kills a match you're a teamkilling incarnate
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Krieg » Mon Jul 10, 06 4:53 pm

lol nah , only got 2 teamkills in one match once , also due to the damage settings being 1.0 , me and a mate were sniping someone else but we were playing on the same hight , so i accidently headshot him twice :lol:
-Elitist-
Image
Krieg
Forum Super Hero
 
Posts: 3357
Joined: Wed Apr 06, 05 1:02 pm
Location: in front of my comp =]

Postby IchoTolot » Mon Jul 10, 06 5:04 pm

jesus wrote:u should post it on the GM bords.. link in the dx section of this forum

it kicks ass man nd i think it should be on all servers

it will reduce the amount of tk ers




you can also download the Mutator from www.gravity-world.com


;)
User avatar
IchoTolot
<i>Very</i> Friendly Clown
 
Posts: 258
Joined: Tue Aug 23, 05 5:48 am
Location: Quad 1,0,0 - 3th Planet - 50.6909 North - 11.5947 South

Postby Jon » Mon Jul 10, 06 7:50 pm

I do pick out some decent mutators once in a while... unfortunately, most crash the dxms server
User avatar
Jon
Alpha
 
Posts: 1081
Joined: Mon Dec 12, 05 10:20 pm
Location: Derbyshire, England

Postby Spiderbot01 » Mon Jul 10, 06 8:17 pm

Me+Dae+Lams+Mod=Dae(Dead) :( +Me banned :(

Lol banned from my own server. Soz Dae I enjoy LAMs..
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!

Postby Mr. Tastix » Mon Jul 10, 06 11:39 pm

Spiderbot01 wrote:Me+Dae+Lams+Mod=Dae(Dead) :( +Me banned :(

Lol banned from my own server. Soz Dae I enjoy LAMs..


Rofl, shameful.
Blood is thicker than water and sweeter than candy.
User avatar
Mr. Tastix
Forum Legend
 
Posts: 5247
Joined: Fri Dec 16, 05 6:10 am
Location: New Zealand

Postby jesus » Tue Jul 11, 06 12:21 am

i rember me + dae testing it looz he put in da message " fuck off shoting me u team killing shit bag" lol twas a funny moment :D
jesus
Elite
 
Posts: 801
Joined: Wed Mar 22, 06 6:25 pm

Postby Cozmo » Tue Jul 11, 06 4:42 pm

Because of this mutator, for the first time in my 3 years of dx i have been banned from a server.
On DXMS on iceworld someone shot my lam on a wall and someone else jumped in front of an NSF as i fired and i was kicked!
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Spiderbot01 » Tue Jul 11, 06 4:50 pm

I think I might talk to Faction about it on the server. I can handle banning retards myself :D
<center>------</center><center>
Image</center>
<center>Image</center><
User avatar
Spiderbot01
Alpha
 
Posts: 5363
Joined: Wed Nov 30, 05 8:24 pm
Location: LONDON!!!!

Postby Dae » Tue Jul 11, 06 5:49 pm

Wait till 1.05 release.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby ~ô¿ô~Nobody~ » Tue Jul 11, 06 5:50 pm

will this blow us to the moon? :shock:
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Dae » Tue Jul 11, 06 6:03 pm

It's gonna be certainly good if it blows you to the moon, but actually i expect it to reduce 50% damage given by explosives. The variable will be controllable by admin of course.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Krieg » Tue Jul 11, 06 6:03 pm

why not put teamkill of if you don't want any one to teamkill :/
-Elitist-
Image
Krieg
Forum Super Hero
 
Posts: 3357
Joined: Wed Apr 06, 05 1:02 pm
Location: in front of my comp =]

Postby ~ô¿ô~Nobody~ » Tue Jul 11, 06 7:06 pm

that's a silly go around, not a solution :roll:

besides.. i needed to turn friendly fire off on my server now.. that TeamKiller idiot forced me to :x
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Dae » Tue Jul 11, 06 8:17 pm

I can also make so you cannot shoot mate's grenade, but this requires a replacement of a grenade classes, which means the mutator will not compatible with CRD or MiniMTL (i think).
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby IchoTolot » Tue Jul 11, 06 9:59 pm

I can also make so you cannot shoot mate's grenade, but this requires a replacement of a grenade classes, which means the mutator will not compatible with CRD or MiniMTL (i think).


the 50 % Damage is ok
User avatar
IchoTolot
<i>Very</i> Friendly Clown
 
Posts: 258
Joined: Tue Aug 23, 05 5:48 am
Location: Quad 1,0,0 - 3th Planet - 50.6909 North - 11.5947 South

Postby jesus » Tue Jul 11, 06 11:47 pm

shadow has a point. just turn it off lol
jesus
Elite
 
Posts: 801
Joined: Wed Mar 22, 06 6:25 pm

Postby IchoTolot » Wed Jul 12, 06 12:59 am

Teamkill Off :shock: no and never




:P :wink:
User avatar
IchoTolot
<i>Very</i> Friendly Clown
 
Posts: 258
Joined: Tue Aug 23, 05 5:48 am
Location: Quad 1,0,0 - 3th Planet - 50.6909 North - 11.5947 South

Next

Return to alpha laboratories

Who is online

Users browsing this forum: No registered users and 12 guests
cron