Civil Protection Ambient Chatter?

von Preußen

Proton
B A N N E D
Joined
Dec 22, 2017
Messages
236
Nebulae
155
I've been playing on the HL2RP server and I've lately seen the most amazing feature which is the most HL2ish ambient CP chatter I've ever seen. Is it a plugin or something? If so, could somebody give me a download link if possible? If not, could somebody tell me how tf they did this?
 

Lioz

It's coming home :)
Joined
May 12, 2016
Messages
196
Nebulae
598
Just change that like you want

Code:
-- A function to load the item spawns.
function PLUGIN:EmitRandomChatter(player)
    local randomSounds = {
        "npc/overwatch/radiovoice/accomplicesoperating.wav",
        "npc/overwatch/radiovoice/airwatchcopiesnoactivity.wav",
        "npc/overwatch/radiovoice/airwatchreportspossiblemiscount.wav",
        "npc/overwatch/radiovoice/allteamsrespondcode3.wav",
        "npc/overwatch/radiovoice/allunitsreturntocode12.wav",
        "npc/overwatch/radiovoice/antifatigueration3mg.wav",
        "npc/overwatch/radiovoice/beginscanning10-0.wav",
        "npc/overwatch/radiovoice/failuretotreatoutbreak.wav",
        "npc/overwatch/radiovoice/finalverdictadministered.wav",
        "npc/overwatch/radiovoice/investigateandreport.wav",
        "npc/overwatch/radiovoice/leadersreportratios.wav",
        "npc/overwatch/radiovoice/officerclosingonsuspect.wav",
        "npc/overwatch/radiovoice/politistabilizationmarginal.wav",
        "npc/overwatch/radiovoice/prepareforfinalsentencing.wav",
        "npc/overwatch/radiovoice/preparetoreceiveverdict.wav",
        "npc/overwatch/radiovoice/recalibratesocioscan.wav",
        "npc/overwatch/radiovoice/recievingconflictingdata.wav",
        "npc/overwatch/radiovoice/reinforcementteamscode3.wav",
        "npc/overwatch/radiovoice/reminder100credits.wav",
        "npc/overwatch/radiovoice/remindermemoryreplacement.wav",
        "npc/overwatch/radiovoice/rewardnotice.wav",
        "npc/overwatch/radiovoice/upi.wav", --derp
        "npc/overwatch/radiovoice/youarejudgedguilty.wav"
    };
 
Reactions: List

D3NN1S

Proton
Joined
Dec 17, 2016
Messages
220
Nebulae
633
I've actually used this before. The one on the HL2RP server is much more advanced, looks like it was taken directly from the HL2 files or something.
I am not sure if you're getting unbanned as I don't even know what you were banned for, but to answer your question: I am certainly not sure how they did it, although I could imagine they used the EmitSentence function to play sentences directly the way they appear in the actual game. If you want to look at those pre-written sentences, here's a link to that as well. You'd be best off asking a developer, although I doubt that they will give out their code for this community - which is completely understandable.
 

karl-police

Nucleus
Joined
Jul 3, 2016
Messages
1,607
Nebulae
3,298
/togglechatter

The combinechatter plugin from RJ does not have a /togglechatter nor a boolean that checks if it is toggled or not, as far as I know.
There is another one from BLT or whatever his name has, which supports a turn on and off.
 

von Preußen

Proton
B A N N E D
Joined
Dec 22, 2017
Messages
236
Nebulae
155
The combinechatter plugin from RJ does not have a /togglechatter nor a boolean that checks if it is toggled or not, as far as I know.
There is another one from BLT or whatever his name has, which supports a turn on and off.
Sorry I haven't been active on this thread. Anyway yeah the one on the server is much more advanced then the RCJ one. Do you happen to have a link to the BLT one?