Problem with adding custom taunts.

Hello.

I have some problems with adding Custom taunts

http://robinschoors.com/2013/09/adding-custom-taunts-in-garrys-mod/

Tryed this guide but did not work. got some lua errors in the sh_config. after i add the path lines in the sh_config under the other taunts.

I’m new to this shit about setting server up. so any help would be awesome.

thanks :slight_smile:

will post pictures if you need.

What is the lua error?

Disconnect: Too many LUA - Errors! Sorry!"

getting dc after 1 sec i joined the game .

Put sv_kickerrornum 0 in your server.cfg.

Copy the yellow error from your console ( ~ )

The errors:

[ERROR] gamemodes/prop_hunt/gamemode/sh_config.lua:38: ‘}’ expected (to close ‘{’ at line 35) near ‘“sound/taunts/fb.wav”’

  1. unknown - gamemodes/prop_hunt/gamemode/sh_config.lua:0

[ERROR] gamemodes/prop_hunt/gamemode/sh_init.lua:27: attempt to index a nil value

  1. unknown - gamemodes/prop_hunt/gamemode/sh_init.lua:27
  2. include - [C]:-1
    3. unknown - gamemodes/prop_hunt/gamemode/cl_init.lua:2

Thanks in advance :slight_smile:

You messed it up. Post the sh_config.lua file. Most likely you missing an , between lines 35-38.

// Props will not be able to become these models
BANNED_PROP_MODELS = {
“models/props/cs_assault/dollar.mdl”,
“models/props/cs_assault/money.mdl”,
“models/props/cs_office/snowman_arm.mdl”
}

// Maximum time (in minutes) for this fretta gamemode (Default: 30)
GAME_TIME = 30

// Number of seconds hunters are blinded/locked at the beginning of the map (Default: 30)
CreateConVar(“HUNTER_BLINDLOCK_TIME”, “30”, FCVAR_REPLICATED)

//Create the convars here
// Health points removed from hunters when they shoot (Default: 5)
CreateConVar( “HUNTER_FIRE_PENALTY”, “5”, FCVAR_REPLICATED)

// How much health to give back to the Hunter after killing a prop (Default: 20)
CreateConVar( “HUNTER_KILL_BONUS”, “20”, FCVAR_REPLICATED)

//Whether or not we include grenade launcher ammo (default: 1)
CreateConVar( “WEAPONS_ALLOW_GRENADE”, “1”, FCVAR_REPLICATED)

// If you loose one of these will be played
// Set blank to disable
LOSS_SOUNDS = {
“vo/announcer_failure.wav”,
“vo/announcer_you_failed.wav”
}

// Sound files hunters can taunt with
// You need at least 2 files listed here
HUNTER_TAUNTS = {
“taunts/you_dont_know_the_power.wav”,
“taunts/you_underestimate_the_power.wav”
“sound/taunts/fb.wav”,
}

// Sound files props can taunt with
// You need at least 2 files listed here
PROP_TAUNTS = {
“taunts/boom_headshot.wav”,
“taunts/doh.wav”,
“taunts/go_away_or_i_shall.wav”,
“taunts/ill_be_back.wav”,
“taunts/negative.wav”,
“taunts/oh_yea_he_will_pay.wav”,
“taunts/ok_i_will_tell_you.wav”,
“taunts/please_come_again.wav”,
“taunts/threat_neutralized.wav”,
“taunts/what_is_wrong_with_you.wav”,
“taunts/woohoo.wav”,
“taunts/props/1.wav”,
“taunts/props/2.wav”,
“taunts/props/3.wav”,
“taunts/props/4.wav”,
“taunts/props/5.wav”,
“taunts/props/6.wav”,
“taunts/props/7.wav”,
“taunts/props/8.wav”,
“taunts/props/9.wav”,
“taunts/props/10.wav”,
“taunts/props/11.wav”,
“taunts/props/12.wav”,
“taunts/props/13.mp3”,
“taunts/props/14.wav”,
“taunts/props/15.wav”,
“taunts/props/16.wav”,
“taunts/props/17.mp3”,
“taunts/props/18.wav”,
“taunts/props/19.wav”,
“taunts/props/20.wav”,
“taunts/props/21.wav”,
“taunts/props/22.wav”,
“taunts/props/23.wav”,
“taunts/props/24.wav”,
“taunts/props/25.wav”,
“taunts/props/26.wav”,
“taunts/props/27.wav”,
“taunts/props/28.wav”,
“taunts/props/29.wav”,
“taunts/props/30.wav”,
“taunts/props/31.mp3”,
“taunts/props/32.mp3”,
“taunts/props/33.mp3”,
“taunts/props/34.mp3”,
“taunts/props/35.mp3”,
–“sound/taunts/fb.wav”,
–“taunts/you_dont_know_the_power.wav”,
–“taunts/you_underestimate_the_power.wav”
}

// Seconds a player has to wait before they can taunt again (Default: 5)
TAUNT_DELAY = 3

// Rounds played on a map (Default: 10)
ROUNDS_PER_MAP = 10

// Time (in seconds) for each round (Default: 300)
ROUND_TIME = 300

// Determains if players should be team swapped every round [0 = No, 1 = Yes] (Default: 1)
SWAP_TEAMS_EVERY_ROUND = 1

// If you win, one of these will be played
// Set blank to disable
VICTORY_SOUNDS = {
“vo/announcer_success.wav”,
“vo/announcer_victory.wav”,
“vo/announcer_we_succeeded.wav”
}

Sorry. dont know how to make a spoiler here :slight_smile:


 tags. You have a missing "," in your code, as I suspected.
Can you spot it?

HINT: HUNTER_TAUNTS

ohh really. fuck im dumb… well still learning this stuff. so thanks anyway for your help :slight_smile:

// Sound files hunters can taunt with
// You need at least 2 files listed here
HUNTER_TAUNTS = {
“taunts/you_dont_know_the_power.wav”,
“taunts/you_underestimate_the_power.wav”,
“sound/taunts/fb.wav”,
}