Description
This plugin allows you to plant mines on any solid surface by pressing TAB+E or executing +tripmine in your client console.
Installation
1. Install ControlledCvars and Advanced TranslationStrings custom packages
2. Download and unpack latest release of this plugin to your server folder
3. Download and unpack mine models and materials to your server folder
Launch by (you can add this to cfg/autoexec.cfg):
Code: Select all
sp plugin load tripmines
Configuration
Config file will be created in your cfg/source-python folder
Code: Select all
// Default Value: 1
// Enable/Disable TripMines functionality
tm_enable 1
// Default Value: 0
// Allow/Disallow team kills with trip mines (also allows/dissalows destroying
// friendly mines)
tm_allow_teamkill 0
// Default Value: 3
// Initial number of mines given to a player. Special values: 0 - don't give
// any mines, -1 - infinite mines.(ONLY SET IT TO -1 WITH NON-ZERO
// mines_limit OPTION!!!)
tm_mines_stock 3
// Default Value: 0
// Maximum number of planted mines player can keep at a time. Useful for DM
// servers with remove_on_death option turned off OR for servers with
// infinite_mines turned on. Set to 0 to disable.
tm_mines_limit 0
// Default Value: 120
// Absolute damage amount for direct contact AND damage falloff base for long-
// distance shots
tm_damage_base 120
// Default Value: 0.25
// Damage falloff multiplier for long-distance shots (when mine is being shot
// from a distance). If you set it to 2 and damage base to 100, a player
// standing 32 units away from the mine will receive 100 - 32*2 = 36 HP of
// damage.
tm_damage_falloff_multiplier 0.25
// Default Value: 80.0
// Maximum distance (in units) between a player and a surface to plant the mine
tm_plant_distance 80.0
// Default Value: 1
// Enable/Disable removing planted mines on owner's death
tm_remove_on_death 1
// Default Value: 1
// Timeout (in seconds) after the mine has been planted before player can plant
// another mine
tm_plant_timeout 1
// Default Value: 2.0
// How much time (in seconds) does it take for the mine to activate
tm_activation_delay 2.0
// Default Value: 4.0
// Time (in seconds) after the mine has beeped before it beeps again
tm_beep_interval 4.0
// Default Value: "weapons/slam/mine_mode.wav"
// Sound to play when the mine is planted, leave empty to disable
tm_plant_sound "weapons/slam/mine_mode.wav"
// Default Value: "buttons/button14.wav"
// Sound to play when the mine is activated, leave empty to disable
tm_activation_sound "buttons/button14.wav"
// Default Value: "buttons/button17.wav"
// Sound to play when the mine beeps, leave empty to disable
tm_beep_sound "buttons/button17.wav"
// Default Value: 5.0
// Delay (in seconds) before announcing TAB+E combination in the beginning of
// the round (-1 to disable)
tm_announcement_delay 5.0
Known issues
-//-