Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Find automaticaly the round duration and the number of taunts #2

Open
fladna9 opened this issue May 10, 2016 · 2 comments
Open

Find automaticaly the round duration and the number of taunts #2

fladna9 opened this issue May 10, 2016 · 2 comments

Comments

@fladna9
Copy link
Owner

fladna9 commented May 10, 2016

Find automaticaly the round duration and the number of taunts

@Geam
Copy link
Collaborator

Geam commented May 11, 2016

For the number of taunt, I guess you could get the global taunt table then get the size of the table.
I think there is some stuff you can borrow from here to get the taunt table : https://github.com/DreamNetwork/gmod-tauntmenu/blob/master/lua/autorun/server/prophunt_tauntmenu.lua

@fladna9
Copy link
Owner Author

fladna9 commented May 11, 2016

Good find Geam. (We might use this on our own servers)
A static table might not be a good idea. There's a commonly used plugin Taunt Loader, which allows the server admin to add workshop taunts http://steamcommunity.com/sharedfiles/filedetails/?id=272852615 . So the taunt sounds list may be different between servers...
Need to retrieve the result of ph_tauntlist <team_props|team_hunters> as it prints the taunt list for the given team.
Cf. http://steamcommunity.com/sharedfiles/filedetails/?id=272852615

  • If there is the above plugin (Taunt Loader) :
    tauntsTable[TEAM_PROPS] = GAMEMODE.Prop_Taunts should hold the whole list of taunts,
  • If server only has enhanced prop hunt, and not the taunt loader :
    tauntsTable[TEAM_HUNTERS] = HUNTER_TAUNTS should hold the whole list of taunts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants