Author Topic: Anti-Decon bot v0.1  (Read 10019 times)

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Anti-Decon bot v0.1
« on: February 16, 2008, 10:28:11 pm »
This is quite a simple bot (based on Lakitu7 QVM), which accounts the damages dealt to the team, and takes into consideration several weapon types, proximity of aliens and the type of damaged object. On the basis of that it gives 2 warnings and finally kicks the player for the kick-time specified.

This has been proven to be very effective on Amsterdam Unlimited, and has been tested for quite a while before the release.


(also called as AK, or auto-kick)

Cvars :


g_toggleAK;                                     -- toggles AK, 0 - off   1 - on
g_AKFirstWarningThresholdFF;             -- sets the Friendly Fire warning (first)
g_AKFirstWarningThresholdRC;             -- sets the Reactor damage warning (first)
g_AKSecondWarningThresholdFF;
g_AKSecondWarningThresholdRC;
g_AKKickThresholdFF;                        -- at this moment the player is being kicked
g_AKKickThresholdRC;                        -- //
g_AKFFregen;                                   -- buildables will regenerate the damage received (human-only)
g_AKFFregenRate;                             -- rate at which they will do it
g_AKNoFFkill;                                    -- you cannot kill building by friendly damage only (human-only)



Lakitu7 5.1  ++ AK patch : http://soultcer.net/trem/AK/--Anti-Decon-Bot--0.1.patch
same, already compiled : http://soultcer.net/trem/AK/game.qvm



Description :

Anti-Decon, or Auto-kick as it is usually called is a server-side bot, which calculates the friendly damages dealt by the players, and judging from that either warns them, or kicks them.

Feature set :

2 warnings system, after the second warning the player cannot damage friendlies until his FF damage counter drops to 0.

The FF damage counter decays over time. If the last damaged target was an enemy, the decay is faster. AK counters are not being reset by re-joining.

Administrators that have vote-kick protection are protected from AK, but still receive 1st warning (only).

!listplayers display damage both for RC/OM and overall friendly damage. (only admins with full listplayers flag)

If there is an enemy near, the FF damage recorded is reduced (if base is rushed half of the human team will not be kicked)

Buildables can regenerate friendly damage dealt to them. (optional)

Buildables cannot be killed by friendly damage completely. (non-protected only, optional)




Thanks to:
Lakitu7 for the help provided
Soultcer and Memorex for the bug reports and suggestions
all the players of Amsterdam Unlimited for intensive testing
all  the deconners who volunteered themselves to be kicked by AK.
« Last Edit: February 16, 2008, 11:11:08 pm by ==Troy== »

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Anti-Decon bot v0.1
« Reply #1 on: February 16, 2008, 11:11:22 pm »
this screws over humans attempting to move on servers with reasonable bp (it's much safer to decon the old base with a lasgun or two than with a ckit)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: Anti-Decon bot v0.1
« Reply #2 on: February 16, 2008, 11:23:04 pm »
Well, as it is being said there, you can adjust things to your liking. This is a system used on AU, and the bases are still easily moved (even with 999 bp you sometimes have to destroy buildings). If you have any suggestions and improvements, I will be glad to implement them, since the code is quite flexible. I would also be delighted to get some statistics from low-bp server, so that I could adjust and improve it ;)

thirdstreettito

  • Posts: 753
  • Turrets: +107/-1124
    • thirdstreettito's Homepage
Re: Anti-Decon bot v0.1
« Reply #3 on: February 17, 2008, 12:52:25 am »
this screws over humans attempting to move on servers with reasonable bp (it's much safer to decon the old base with a lasgun or two than with a ckit)

Saw works better n00b.

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Re: Anti-Decon bot v0.1
« Reply #4 on: February 17, 2008, 12:57:25 am »
Except when saws get harassed by Dretchs on walls and/or ceilings.
Good idea, overall.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Anti-Decon bot v0.1
« Reply #5 on: February 17, 2008, 01:05:20 am »
Well, as it is being said there, you can adjust things to your liking. This is a system used on AU, and the bases are still easily moved (even with 999 bp you sometimes have to destroy buildings). If you have any suggestions and improvements, I will be glad to implement them, since the code is quite flexible. I would also be delighted to get some statistics from low-bp server, so that I could adjust and improve it ;)
it's probably a good idea to ignore damage to unpowered structures if the reactor is up.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Anti-Decon bot v0.1
« Reply #6 on: February 17, 2008, 02:10:55 am »
it's probably a good idea to ignore damage to unpowered structures if the reactor is up.
Then deconners would just kill/decon repeater first and then throw a grenade.

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: Anti-Decon bot v0.1
« Reply #7 on: February 17, 2008, 10:36:31 am »
This is not a perfect No-more-decon bot... its just a thing which helps to prevent usual come, fight to 200 credits, nade reac, get banned situation.

As kevlarman said, indeed it is a good idea to ignore the damage of the unpowered structures. will be included in v0.2




It has proven to be very effective on Amsterdam Unlimited with its structure of designated builders, and server regulars, who are known to the server and are very unlikely to decon. A new player can still build and deconstruct his structures, but he cannot move reactor or destroy buildings unless he has been designated by a perm.designated player.

It might look like a restriction of the new players, but this is a compromise between complete denial of build rights for lvl 0 player and a setting FFoff.
« Last Edit: February 17, 2008, 10:44:29 am by ==Troy== »

soultcer

  • Posts: 23
  • Turrets: +0/-0
Re: Anti-Decon bot v0.1
« Reply #8 on: February 17, 2008, 04:32:10 pm »
--
« Last Edit: June 05, 2011, 12:20:40 pm by soultcer »

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Re: Anti-Decon bot v0.1
« Reply #9 on: February 17, 2008, 04:54:57 pm »
Thats quite a story.
World Wide Server Host