A Garry's Mod lua script that makes props auto taunt
Find a file
2016-05-12 10:01:05 +02:00
autotaunt.lua Reworked all script : Should fix some issues 2016-05-12 10:01:05 +02:00
README.md Add Gitter badge 2016-05-11 13:04:55 +00:00

Garry's Mod Auto Taunt Addon project

Join the chat at https://gitter.im/fladna9/Gmod-autotaunt A Garry's Mod lua script that makes props auto taunt

As not any of these plugins where available on the Internet, decided to create it myself. This is my first lua project, please be nice ;)

If you want to contribute/fork, don't hesitate :D

How does it work

On player spawn, if player is a prop, it creates a timer that will sound a random taunt.

On player death, if player is a prop, it removes the timer.

It also prints a line in the server console for each prop auto taunting.

How to use

Make sure your server has the following addons :

Create missing directories and copy autotaunt.lua in

<dedicated server files>/garrysmod/addons/autotaunt/lua/autorun/autotaunt.lua

Restart your server and you're good to go.

How to configure

This lua file has a settings part for you to easily edit the behaviour of the addon, without having to dig into the code.

-- Change here the time you want between 2 taunts
timeBetweenTwoTaunts = 60
-- Change here how many times you want this auto taunt be be executed in a round
howManyTimes = 5
-- The number of taunts available. Can find with ph_tauntlist in console
maxTaunts = 75

Licence

This project is licensed under GNU/GPL v3. You can find a version of the license at http://www.gnu.org/licenses/gpl-3.0.en.html