Skip to content

Commit

Permalink
update dot code for u240.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawastaken committed Dec 2, 2023
1 parent 0471e33 commit 9ecf213
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 15 deletions.
15 changes: 15 additions & 0 deletions lua/dottweakdata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- rework poison cloud DOT
Hooks:PostHook(DOTTweakData, "init", "eclipse_init", function (self)
self.dot_entries.poison.proj_gas_grenade_cloud.hurt_animation_chance = 1
self.dot_entries.poison.proj_gas_grenade_cloud.dot_damage = 8
self.dot_entries.poison.proj_gas_grenade_cloud.dot_tick_period = 2
self.dot_entries.poison.proj_gas_grenade_cloud.dot_length = 10
self.dot_entries.poison.proj_launcher_cloud.hurt_animation_chance = 0.3
self.dot_entries.poison.proj_launcher_cloud.dot_damage = 4
self.dot_entries.poison.proj_launcher_cloud.dot_tick_period = 2
self.dot_entries.poison.proj_launcher_cloud.dot_length = 10
self.dot_entries.poison.proj_launcher_arbiter_cloud.hurt_animation_chance = 0.3
self.dot_entries.poison.proj_launcher_arbiter_cloud.dot_damage = 4
self.dot_entries.poison.proj_launcher_arbiter_cloud.dot_tick_period = 2
self.dot_entries.poison.proj_launcher_arbiter_cloud.dot_length = 10
end)
25 changes: 25 additions & 0 deletions lua/firetweakdata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Hooks:PostHook(FireTweakData, "_init_dot_entries_fire", "eclipse__init_dot_entries_fire", function(self, fire_entries)
-- incendiary
fire_entries.proj_fire_com.dot_damage = 30
fire_entries.proj_fire_com.dot_length = 5

-- flamer dot (might just rework later)
fire_entries.weapon_flamethrower_mk2 = {
dot_trigger_chance = 50,
dot_damage = 7.5,
dot_length = 1.1,
dot_tick_period = 0.5,
dot_trigger_max_distance = false
}
fire_entries.ammo_flamethrower_mk2_rare = deep_clone(fire_entries.weapon_flamethrower_mk2)
fire_entries.ammo_flamethrower_mk2_welldone = deep_clone(fire_entries.weapon_flamethrower_mk2)

-- db dot (might rework too)
fire_entries.ammo_dragons_breath = {
dot_trigger_chance = 1,
dot_damage = 3,
dot_length = 4,
dot_trigger_max_distance = 1500,
dot_tick_period = 0.25
}
end)
9 changes: 2 additions & 7 deletions lua/tweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,22 @@ tweak_data.projectiles.underbarrel_electric_groza.damage = 10
tweak_data.projectiles.launcher_electric_ms3gl.damage = 10

-- incendiary buff
-- tweak_data.projectiles.fir_com.damage = 10
tweak_data.projectiles.fir_com.fire_dot_data.dot_damage = 30
tweak_data.projectiles.fir_com.damage = 10
tweak_data.projectiles.fir_com.range = 800

-- frags buff
tweak_data.projectiles.frag.damage = 200
tweak_data.projectiles.frag_com.damage = 200
tweak_data.projectiles.dada_com.damage = 200
tweak_data.projectiles.dynamite.damage = 200

-- poison nerf
-- tweak_data.projectiles.poison_gas_grenade.poison_gas_dot_data.hurt_animation_chance = 1
-- tweak_data.projectiles.poison_gas_grenade.poison_gas_dot_data.dot_damage = 8
-- tweak_data.projectiles.poison_gas_grenade.poison_gas_dot_data.dot_tick_period = 2
-- tweak_data.projectiles.poison_gas_grenade.poison_gas_dot_data.dot_length = 10
tweak_data.projectiles.poison_gas_grenade.poison_gas_range = 400
tweak_data.projectiles.poison_gas_grenade.poison_gas_duration = 10

tweak_data.projectiles.launcher_poison.damage = 9
tweak_data.projectiles.launcher_poison.poison_gas_range = 300
tweak_data.projectiles.launcher_poison.poison_gas_duration = 10
tweak_data.projectiles.launcher_poison.poison_gas_dot_data = { hurt_animation_chance = 0.3, dot_damage = 4, dot_length = 10, dot_tick_period = 2 }
tweak_data.projectiles.launcher_poison_gre_m79 = deep_clone(tweak_data.projectiles.launcher_poison)
tweak_data.projectiles.launcher_poison_gre_m79.damage = 9
tweak_data.projectiles.launcher_poison_gre_m79.poison_gas_range = 300
Expand Down
1 change: 0 additions & 1 deletion lua/weaponfactorytweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Hooks:PostHook(WeaponFactoryTweakData, "init", "eclipse__init", function(self)
self.parts.wpn_fps_upg_a_dragons_breath.stats.total_ammo_mod = -8
self.parts.wpn_fps_upg_a_dragons_breath.custom_stats.ammo_pickup_max_mul = 0.85
self.parts.wpn_fps_upg_a_dragons_breath.custom_stats.ammo_pickup_min_mul = 0.85
self.parts.wpn_fps_upg_a_dragons_breath.custom_stats.fire_dot_data = { dot_trigger_chance = "100", dot_damage = "3", dot_length = "4", dot_trigger_max_distance = "1500", dot_tick_period = "0.25" }
-- Shell Rack for loco and r880
self.parts.wpn_fps_shot_r870_body_rack.stats.reload = 2
self.parts.wpn_fps_shot_r870_body_rack.stats.total_ammo_mod = 0
Expand Down
7 changes: 0 additions & 7 deletions lua/weapontweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1658,13 +1658,6 @@ self.x_judge.damage_falloff = FALLOFF_TEMPLATE.SHOTGUN_FALL_HIGH

-- mk2
self.flamethrower_mk2.stats.damage = 25
self.flamethrower_mk2.fire_dot_data = {
dot_trigger_chance = 50,
dot_damage = 7.5,
dot_length = 1.1,
dot_trigger_max_distance = 3000,
dot_tick_period = 0.5
}
self.flamethrower_mk2.AMMO_PICKUP = {2.65, 3.5}


Expand Down
2 changes: 2 additions & 0 deletions supermod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
<post :hook_id="blackmarket/meleeweaponstweakdata"/>
<post :hook_id="charactertweakdata"/>
<post :hook_id="guitweakdata"/>
<post :hook_id="dottweakdata"/>
<post :hook_id="firetweakdata"/>
<post :hook_id="groupaitweakdata"/>
<post :hook_id="playertweakdata"/>
<post :hook_id="weapontweakdata"/>
Expand Down

0 comments on commit 9ecf213

Please sign in to comment.