User:Eft-BoonDock

From WolfWiki
Revision as of 23:58, 16 August 2007 by Eft-BoonDock (talk | contribs) (Version update)
Jump to navigation Jump to search

BoonDock's TJ mod

  • Version 0.3 (17.08.2007)
  • Thanks to Bennz for his helping hand


Description

This mod is intended for trickjumping servers. It consists of three parts: A save/load module, a kill restriction module, and an ammunition module.

Save/load module

This modules enables players to save their position and restore it within the same map/round. It is based on Kyoto's TJmod but enables saving only when the player is not moving or is dead. This prevents abusing exploits (like saving when jumping, falling down, sliding on ice, etc.).

Additionally, players can move themselves to another player's position or move another player to their position. To prevent an abuse of these features, an admin mod is necessary and these commands have to be assigned to admin levels.

Kill restriction module

This module counts the number of kills a player made (including teamkills) and kicks them if a maximum number of kills is reached.

Ammunition module

With this part of the mod, the initial amount of ammunition can be set. Setting the initial amount to 0 disables a weapon.


User/Admin Commands

/save          saves the player's current position
/load          restores the player's saved position
!goto <player> moves the player to another player's position (Admin mod necessary)
!call <player> moves another player to the player's position (Admin mod necessary)
!goback        moves the player back to the previous position before he was called (Admin mod necessary)

These commands can be used on players of the same team only.


Installation

ETPro

This installation is necessary to run the mod on the server.

  • Copy the files BoonTJ.lua and BoonTJ.cfg into the etpro directory of the server.
  • Add the following line to your server config:
set lua_modules "BoonTJ.lua"

If you allready have set the lua_modules cvar, you can add mods by seperating them with a blank, i.e.

set lua_modules "combinedfixes.lua BoonTJ.lua"


Admin mods (optional)

If one of these admin mods is running on the server, the commands !goto, !call, and !goback can be used. Otherwise, only /save and /load are available.

Etadmin_mod
  • Add the following lines to the [alias] section of your etadmin.cfg file:
# BoonTJ
goto   = goto   "<CLIENT_ID>" "<PART2ID>"
call   = call   "<CLIENT_ID>" "<PART2ID>"
goback = goback "<CLIENT_ID>"
  • Add the following lines to the [permissions] section of your etadmin.cfg:
# BoonTJ
1 = goto
1 = call
0 = goback

!goback should be assigned to level 0, feel free to assign other admin levels to the !goto and !call commands.

KMOD
  • Add the following lines to the end of your commands.cfg file:
# BoonTJ
1 - goto   = goto   <CLIENT_ID> <PNAME2ID>
1 - call   = call   <CLIENT_ID> <PNAME2ID>
0 - goback = goback <CLIENT_ID>

!goback should be assigned to level 0, feel free to assign other admin levels to the !goto and !call commands.


Configuration

For configuring the BoonTJ mod, open the BoonTJ.cfg file with a text editor.

Enable/disable features

Features can be enabled or disabled by setting the responsive cvar value to 1 or 0.

  • Enable/disable the save/load feature
set btj_enable_save_load        1/0
  • Enable/disable the goto/call/goback feature. This feature works only if an

andmin mod is installed.

set btj_enable_goto_call_goback 1/0
  • Enable/disable the kill restriction module
set btj_enable_killrestriction  1/0
  • Enable/disable the ammunition module
set btj_enable_ammo_mod         1/0

Save/load module

The only parameter to configure is the interval to check if a player has been moved. 50 ms is the lowest possible value and gives a good movement check accuracy but higher values reduce server load.

set btj_check_ms 50

Kill restriction module

For the kill restriction module, 2 parameters can be set: The number of kills a player can make until he gets kicked as well as the time he gets temporarily banned.

set btj_kill_limit 3
set btj_bantime    120

Ammunition module

In this section the amount of ammunition a player spawn with can be set. ammoclip cvars set the amount of ammunition in the weapon, while ammo cvars set the number of extra ammunition.

-1 for the default number of ammunition
 0 for disabling the weapon (make sure you disable both ammoclip and ammo
>0 for the number of ammunition when spawning
// common weapons
set btj_ammoclip_luger               -1
set btj_ammoclip_akimbo_luger        -1
set btj_ammo_luger                   -1
set btj_ammoclip_colt                -1
set btj_ammoclip_akimbo_colt         -1
set btj_ammo_colt                    -1
set btj_ammo_mp40                    -1
set btj_ammoclip_mp40                -1
set btj_ammo_thompson                -1
set btj_ammoclip_thompson            -1
set btj_ammoclip_axis_grenades       -1
set btj_ammoclip_allies_grenades     -1

// soldier weapons
set btj_ammoclip_panzerfaust         -1
set btj_ammoclip_flamethrower        -1
set btj_ammo_mortar                  -1
set btj_ammoclip_mg42                -1
set btj_ammo_mg42                    -1

// medic weapons
set btj_syringe_adre                 -1

// engineer weapons
set btj_ammoclip_axis_engi_rifle     -1
set btj_ammo_axis_engi_rifle         -1
set btj_ammo_axis_rifle_nade         -1
set btj_ammoclip_allies_engi_rifle   -1
set btj_ammo_allies_engi_rifle       -1
set btj_ammo_allies_rifle_nade       -1

// fieldops weapons

// covertops weapons
set btj_ammoclip_sten                -1
set btj_ammo_sten                    -1
set btj_ammoclip_fg42                -1
set btj_ammo_fg42                    -1
set btj_ammoclip_axis_covert_rifle   -1
set btj_ammo_axis_covert_rifle       -1
set btj_ammoclip_allies_covert_rifle -1
set btj_ammo_allies_covert_rifle     -1


Version history

Version 0.1

  • Initial release.

Version 0.2

  • Made movement check interval adjustable to reduce server load.
  • Added a check to prevent saving when a player is dead.

Version 0.3

  • Moved configuration into a seperate config file.
  • Features can be turned on/off now.
  • Added a kill restriction module.
  • Added an ammunition amount modifying module.


Download


Contact

Homepage: eft//europeanfunteam
E-Mail: boondock@eft-clan.com
IRC: #eft-clan