Skip to content

Commit

Permalink
reduce the density of shotgunner enemies
Browse files Browse the repository at this point in the history
also add the blue jacket fbi agent units into the recon / reenforce spawnpool
  • Loading branch information
nikitawastaken committed Jul 5, 2024
1 parent 9f53388 commit 8d373fe
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 32 deletions.
94 changes: 62 additions & 32 deletions lua/groupaitweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,28 @@ Hooks:PostHook(GroupAITweakData, "_init_unit_categories", "eclipse__init_unit_ca
access = access_type_all,
}

-- Field Agent HRU
self.unit_categories.field_agent = {
unit_types = {
america = {
Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"),
},
russia = {
Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"),
},
zombie = {
Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"),
},
murkywater = {
Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"),
},
federales = {
Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"),
},
},
access = access_type_all,
}

-- Balaclava HRU
self.unit_categories.balaclava = {
unit_types = {
Expand Down Expand Up @@ -1062,8 +1084,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.fbi_rifle,
},
{
freq = 0.75,
amount_max = 3,
freq = 0.6,
amount_max = 2,
rank = 1,
unit = "fbi_r870",
tactics = self._tactics.fbi_shotgun,
Expand Down Expand Up @@ -1091,8 +1113,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.fbi_rifle,
},
{
freq = 0.75,
amount_max = 3,
freq = 0.6,
amount_max = 2,
rank = 1,
unit = "heavy_fbi_r870",
tactics = self._tactics.fbi_shotgun,
Expand Down Expand Up @@ -1176,8 +1198,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
},
spawn = {
{
freq = 0.66,
amount_max = 3,
freq = 0.5,
amount_max = 2,
rank = 2,
unit = "benelli_elite",
tactics = self._tactics.elite_shotgun,
Expand Down Expand Up @@ -1286,8 +1308,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.elite_flank,
},
{
freq = 0.66,
amount_max = 3,
freq = 0.5,
amount_max = 2,
rank = 2,
unit = "benelli_elite",
tactics = self._tactics.elite_flank,
Expand Down Expand Up @@ -1394,8 +1416,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
},
spawn = {
{
freq = 0.66,
amount_max = 3,
freq = 0.5,
amount_max = 2,
rank = 1,
unit = "ksg_zeal",
tactics = self._tactics.elite_shotgun,
Expand Down Expand Up @@ -1423,8 +1445,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
},
spawn = {
{
freq = 0.66,
amount_max = 3,
freq = 0.5,
amount_max = 2,
rank = 1,
unit = "ksg_zeal",
tactics = self._tactics.elite_flank,
Expand Down Expand Up @@ -1488,8 +1510,8 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
},
spawn = {
{
freq = 0.66,
amount_max = 2,
freq = 0.5,
amount_max = 1,
rank = 1,
unit = "ksg_heavy_zeal",
tactics = self._tactics.elite_shotgun,
Expand Down Expand Up @@ -1539,7 +1561,7 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.elite_assault,
},
{
freq = 0.66,
freq = 0.44,
amount_max = 1,
rank = 2,
unit = "ksg_heavy_zeal",
Expand Down Expand Up @@ -1577,7 +1599,7 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.elite_shield,
},
{
freq = 0.66,
freq = 0.44,
amount_max = 1,
rank = 1,
unit = "ksg_zeal",
Expand Down Expand Up @@ -1622,7 +1644,7 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
tactics = self._tactics.elite_shield_charge,
},
{
freq = 0.66,
freq = 0.44,
amount_max = 1,
rank = 1,
unit = "ksg_heavy_zeal",
Expand Down Expand Up @@ -1672,50 +1694,58 @@ Hooks:PostHook(GroupAITweakData, "_init_enemy_spawn_groups", "eclipse__init_enem
}
self.enemy_spawn_groups.reenforce_common = {
amount = {
4,
3,
4,
},
spawn = {
{
amount_min = 2,
freq = 2,
amount_max = 2,
amount_min = 1,
freq = 0.55,
amount_max = 3,
rank = 1,
unit = "balaclava",
tactics = self._tactics.reenforce_aggressive,
unit = "whiteshirt",
tactics = self._tactics.reenforce_passive,
},
{
amount_min = 2,
freq = 2,
amount_max = 2,
amount_min = 1,
freq = 0.77,
amount_max = 3,
rank = 1,
unit = "whiteshirt",
unit = "field_agent",
tactics = self._tactics.reenforce_passive,
},
},
}
self.enemy_spawn_groups.recon_hrt = {
amount = {
4,
3,
4,
},
spawn = {
{
amount_min = 2,
freq = 1,
amount_min = 0,
freq = 0.66,
amount_max = 2,
rank = 1,
unit = "balaclava",
tactics = self._tactics.recon_rescue,
},
{
amount_min = 2,
freq = 1,
amount_min = 0,
freq = 0.66,
amount_max = 2,
rank = 1,
unit = "whiteshirt",
tactics = self._tactics.recon_rescue,
},
{
amount_min = 0,
freq = 0.66,
amount_max = 2,
rank = 1,
unit = "field_agent",
tactics = self._tactics.recon_rescue,
},
},
}
self.enemy_spawn_groups.recon_aggressive = {
Expand Down
1 change: 1 addition & 0 deletions req/unit_weapons.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
[("units/payday2/characters/ene_cop_3/ene_cop_3"):key()] = "r870",
[("units/payday2/characters/ene_cop_4/ene_cop_4"):key()] = "mp5",
[("units/payday2/characters/ene_fbi_1/ene_fbi_1"):key()] = "mp5",
[("units/payday2/characters/ene_fbi_3/ene_fbi_3"):key()] = "r870",
[("units/payday2/characters/ene_medic_m4/ene_medic_m4"):key()] = "mp5",
[("units/payday2/characters/ene_spook_1/ene_spook_1"):key()] = "beretta92",
Expand Down

0 comments on commit 8d373fe

Please sign in to comment.