Insurgency

Insurgency

Definitive Arabic Voices | Standalone
blxckdreadful  [developer] 21 Apr @ 7:49pm
Here's How It Works:
The Response Rules system in Source engine dictates what or how NPCs will react to something, scored over a number of Criterion. Once they pass the set criterion of a rule, they will pick the Response (or a Response Group) that's being pointed in the Response Rule.

In this mod, I've set up a much more intricate system than vanilla. Vanilla bots are still quite simple, but that's not to reduce them to nothing cause it's still pretty much a lot. I added more Response Rules that points to the Radial Soundscript instead of creating a new set of Soundscripts. This means that the Radio Version will naturally override the triggered voiceline depending on the distance.

With the new Weight and Odds system set up, this will be more dynamic than previous iterations.

Weight is set to 1 by default, the rng picker will pick the Response with a higher weight.
Odds is set to 100 by default, this dictates the percentage of a voiceline being played.The lower the odds, the higher the chance that the Response will play nothing even if it met the criteria.

For Example:
In the rule "Bot_Insurgent_HeardNorth" it is defined by a number of criterion which are
ConceptHeardSomething OnInsurgentTeam HasNearbyTeammates IsBot IsNorth

This rule points to a Response Group that uses the following:
MoveNorth (Weight 2 Odds 25)
WatchNorth(Weight 2 Odds 25)
StickTogether (Weight 1 Odds 40)
SpreadOut(Weight 1 Odds 40)

MoveNorth and WatchNorth will most likely get picked out of the 4 but they are more likely to play nothing instead of a voiceline. While the latter 2 will more likely to play voiceline but is less likely to get picked.

The solo variant of this rule is tagged with HasNoNearbyTeammates instead of HasNearbyTeammates. And the Response Group it points to all has an Odds of 100, which is guaranteed to play a voiceline. This is to simulate them calling or informing their teammates. There's a lot of added Response Rules without adding new response criteria to hopefully make it as less intrusive and more compatible although some of this pathing may be subject to change to make it completely compatible with everything while keeping the same features.
Last edited by blxckdreadful; 23 Apr @ 11:56am