help making modified botdetect.lua


(NovaPrime) #1

I was wondering if anyone with some lua scripting xp can help me make a modified version of the botdetectv3.lua

This script seems to kick offenders that are using aimbots on full strength (more-or-less)

But I want something more aggressive in damage detection, however also less punishing.

basically, if they are racking up large amounts of damage with an SMG, and continually, strip them of their SMG and allow only pistols (instead of kicking them).

Yes, some innocent people would be impacted and I am ok with that. because my server is overrun my people using aimbots turned on low, and it is an annoyance for the average players.

Instead of accusing people of botting, and kicking them, this script would basically be a compliment, and let them know, “you’re skill level is too high for this server”, (because botters like to think they are good), and then give them just pistols to make things more challenging for them.

I am busy working on other projects so I have no time to learn lua scripting, but if anyone can help I will gladly make a paypal donation for the time.


(Mateos) #2

I know people making high damage, but they don’t have any cheating software nor a big amount of kills; Sometimes damage the enemy is more efficient than killing, if you keep yourself alive in the same time.

Do you have an example of this situation? Would be sad to nerf the good players…


(NovaPrime) #3

[QUOTE=Mateos;420600]I know people making high damage, but they don’t have any cheating software nor a big amount of kills; Sometimes damage the enemy is more efficient than killing, if you keep yourself alive in the same time.

Do you have an example of this situation? Would be sad to nerf the good players…[/QUOTE]

some of these “good players” empty the server. but, not sure why ur asking me for proof of anything, and I guess I probably would do so, except that would certainly get my thread way off topic, I can just see it now.


(Micha) #4

This is possible to do so with lua. Perlo_Oung used it for his element headshot server. But this sounds unfair for me since some ppl are good without cheats and could be punished.

You could use something like this for example (not working script):

weapons = {
nil, --// 1
true, --WP_LUGER, // 2
false, --WP_MP40, // 3
false, --WP_GRENADE_LAUNCHER, // 4
false, --WP_PANZERFAUST, // 5
false, --WP_FLAMETHROWER, // 6
true, --WP_COLT, // 7 // equivalent american weapon to german luger
false, --WP_THOMPSON, // 8 // equivalent american weapon to german mp40
false, --WP_GRENADE_PINEAPPLE, // 9
false, --WP_STEN, // 10 // silenced sten sub-machinegun
false, --WP_MEDIC_SYRINGE, // 11 // JPW NERVE – broken out from CLASS_SPECIAL per Id request
true, --WP_AMMO, // 12 // JPW NERVE likewise
true, --WP_ARTY, // 13
false, --WP_SILENCER, // 14 // used to be sp5
true, --WP_DYNAMITE, // 15
nil, --// 16
nil, --// 17
nil, --// 18
false, --WP_MEDKIT, // 19
true, --WP_BINOCULARS, // 20
nil, --// 21
nil, --// 22
false, --WP_KAR98, // 23 // WolfXP weapons
false, --WP_CARBINE, // 24
false, --WP_GARAND, // 25
false, --WP_LANDMINE, // 26
false, --WP_SATCHEL, // 27
false, --WP_SATCHEL_DET, // 28
nil, --// 29
false, --WP_SMOKE_BOMB, // 30
false, --WP_MOBILE_MG42, // 31
false, --WP_K43, // 32
false, --WP_FG42, // 33
nil, --// 34
false, --WP_MORTAR, // 35
nil, --// 36
false, --WP_AKIMBO_COLT, // 37
false, --WP_AKIMBO_LUGER, // 38
nil, --// 39
nil, --// 40
false, --WP_SILENCED_COLT, // 41
false, --WP_GARAND_SCOPE, // 42
false, --WP_K43_SCOPE, // 43
false, --WP_FG42SCOPE, // 44
false, --WP_MORTAR_SET, // 45
false, --WP_MEDIC_ADRENALINE, // 46
false, --WP_AKIMBO_SILENCEDCOLT,// 47
false --WP_AKIMBO_SILENCEDLUGER,// 48
}

samplerate = 200

function et_RunFrame( levelTime )
maxclients = tonumber( et.trap_Cvar_Get( “sv_maxClients” ) )
if math.mod(levelTime, samplerate) ~= 0 then return end
for j = 0, (maxclients - 1) do
for l=1, (et.MAX_WEAPONS - 1), 1 do
if not weapons[l] then
if tomuchdmg == 1 then
et.gentity_set(j, “ps.ammoclip”, l, 0)
et.gentity_set(j, “ps.ammo”, l, 0)
et.gentity_set(j, “ps.ammo”, 7, 0)
et.gentity_set(j, “ps.ammo”, 2, 0)
et.gentity_set(j, “ps.ammoclip”, 7, 0)
et.gentity_set(j, “ps.ammoclip”, 2, 0)
end
end
end
end
end


(NovaPrime) #5

since this is the most hacked game in the Universe (other than Diablo II), I do not mind stripping people that are 10 times better than the other players, down to pistols. Better to reduce weapons than getting kicked or banned for hax in my opinion, but I know not everyone shares this opinion.