Intro:: Asked to be made by blood dragons. After some refining of their wishes... the next idea appears.
Description:: Creating command /voice to sound audio files into local chat (blood dragons wished battle shoots)
which can be easily added in its functionability by editing config playercntl_voice.cfg
So, there could be added any amount of new voice commands with... next rules, example: nickname_to_call=bdf //nickname to call command id_restriction=dsy_blood_dragons //which ID can use? cooldown_limit_in_seconds=10 //cooldown between usages audio_file=name //audio file to call
any command that was added in such way to config will be called in a next way /voice <nickname_to_call>
for example: /voice bdf
Effect:: basically multiple configurable /police commands but with safeguards and easily changable/addable by game masters
Posts: 6,079
Threads: 465
Joined: Nov 2014
Staff roles: Art Developer
Can you give a video example of this? What would it look like? Do people light up like npcs? Does the hook call a subtitle command for it to be said in local chat like
(10-03-2020, 08:38 PM)Kauket Wrote: Can you give a video example of this? What would it look like? Do people light up like npcs? Does the hook call a subtitle command for it to be said in local chat like
** Player.Man says [whatever the lines are]
it is in coding stage for now.
it will be in some next way:
the first player writes: /voice bdf
players in ~10k around the one who used it, hear the preset audio file from the first player
player writes /voice bdm, players around hear another audio file.
every command will be restricted to some specific ID
(10-03-2020, 08:45 PM)Kauket Wrote: It's probably wise to set up a function where it writes out subtitles for those who have hearing issues, also to see if anyone is abusing/spamming it.
good suggestion. I'll add it for sure.
Spam is more or less would be prevented by cooldown btw.
(10-03-2020, 08:45 PM)Kauket Wrote: Would also be cool if the audio was emitted from the ship like npc radios, rather than hearing it straight up at max vol.
it is going to be more difficult and probably not added. I will look for it with one eye around though. Any possible other pugin where it could be used before?