Page 1 of 3

[MUTATOR] AntiTK — protects players from teamkillers

PostPosted: Tue Jun 27, 06 12:43 pm
by Dae
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!

PostPosted: Tue Jun 27, 06 12:49 pm
by clyzm
Nice job. <3

PostPosted: Tue Jun 27, 06 1:47 pm
by MainMan
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:

PostPosted: Tue Jun 27, 06 2:03 pm
by Dae
~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.

PostPosted: Sun Jul 09, 06 12:14 pm
by IchoTolot
Thnx Dae 8)

PostPosted: Sun Jul 09, 06 12:22 pm
by Dae
Good, but you don't need to put in ServerPackages. Enough of ServerActors.

PostPosted: Sun Jul 09, 06 12:41 pm
by Mr. Tastix
Sounds like a very nice and interesting code. Nice one.

PostPosted: Mon Jul 10, 06 12:16 pm
by Dae
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.

PostPosted: Mon Jul 10, 06 2:14 pm
by IchoTolot
work good ... thnx again

PostPosted: Mon Jul 10, 06 2:56 pm
by jesus
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

PostPosted: Mon Jul 10, 06 3:29 pm
by Dae
I have just posted the link to this mutator there. Thanks for advice :)

PostPosted: Mon Jul 10, 06 3:51 pm
by Krieg
i nearly got banned because of this mutator and i don't really got the reputation of a teamkiller <_<

PostPosted: Mon Jul 10, 06 3:54 pm
by Dae
If you make 2 team kills a match you're a teamkilling incarnate

PostPosted: Mon Jul 10, 06 4:53 pm
by Krieg
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:

PostPosted: Mon Jul 10, 06 5:04 pm
by IchoTolot
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


;)

PostPosted: Mon Jul 10, 06 7:50 pm
by Jon
I do pick out some decent mutators once in a while... unfortunately, most crash the dxms server

PostPosted: Mon Jul 10, 06 8:17 pm
by Spiderbot01
Me+Dae+Lams+Mod=Dae(Dead) :( +Me banned :(

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

PostPosted: Mon Jul 10, 06 11:39 pm
by Mr. Tastix
Spiderbot01 wrote:Me+Dae+Lams+Mod=Dae(Dead) :( +Me banned :(

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


Rofl, shameful.

PostPosted: Tue Jul 11, 06 12:21 am
by jesus
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

PostPosted: Tue Jul 11, 06 4:42 pm
by Cozmo
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!

PostPosted: Tue Jul 11, 06 4:50 pm
by Spiderbot01
I think I might talk to Faction about it on the server. I can handle banning retards myself :D

PostPosted: Tue Jul 11, 06 5:49 pm
by Dae
Wait till 1.05 release.

PostPosted: Tue Jul 11, 06 5:50 pm
by ~ô¿ô~Nobody~
will this blow us to the moon? :shock:

PostPosted: Tue Jul 11, 06 6:03 pm
by Dae
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.

PostPosted: Tue Jul 11, 06 6:03 pm
by Krieg
why not put teamkill of if you don't want any one to teamkill :/

PostPosted: Tue Jul 11, 06 7:06 pm
by ~ô¿ô~Nobody~
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

PostPosted: Tue Jul 11, 06 8:17 pm
by Dae
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).

PostPosted: Tue Jul 11, 06 9:59 pm
by IchoTolot
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

PostPosted: Tue Jul 11, 06 11:47 pm
by jesus
shadow has a point. just turn it off lol

PostPosted: Wed Jul 12, 06 12:59 am
by IchoTolot
Teamkill Off :shock: no and never




:P :wink: