Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prewview : https://gfycat.com/RegularCompleteCockroach Download : https://git.io/vdKnO
- Loading branch information
Showing
7 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...s/pd2_dlc_friend/weapons/wpn_third_ray_fired_rocket/wpn_third_ray_fired_incen_rocket.unit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<unit type="item" slot="14"> | ||
<network sync="spawn" /> | ||
<object file="units/pd2_dlc_friend/weapons/wpn_third_ray_fired_rocket/wpn_third_ray_fired_rocket" /> | ||
<dependencies> | ||
<depends_on physic_effect="physic_effects/anti_gravitate" /> | ||
<depends_on effect="effects/payday2/particles/explosions/grenade_explosion" /> | ||
<depends_on effect="effects/payday2/particles/weapons/rpg_smoke_trail" /> | ||
<depends_on effect="effects/particles/fire/small_light_fire" /> | ||
<depends_on effect="effects/payday2/particles/impacts/stone_explosion_impact_pd2" /> | ||
<depends_on effect="effects/payday2/particles/impacts/metal_explosion_impact_pd2" /> | ||
<depends_on effect="effects/payday2/particles/impacts/dirt_explosion_impact_pd2" /> | ||
<depends_on effect="effects/payday2/particles/impacts/concrete_explosion_impact_pd2" /> | ||
<depends_on bnk="soundbanks/weapon_rpg" /> | ||
<depends_on bnk="soundbanks/regular_weapon_sfx" /> | ||
</dependencies> | ||
<extensions> | ||
<extension name="base" class="FragGrenade" > | ||
<var name="_tweak_projectile_entry" value="rocket_ray_frag_incen" /> | ||
</extension> | ||
<extension name="unit_data" class="ScriptUnitData" /> | ||
<extension name="damage" class="UnitDamage" > | ||
</extension> | ||
</extensions> | ||
<sounds> | ||
<default_soundsource source="rp_wpn_third_rpg7_fired_rocket" /> | ||
<soundsource name="snd" source="rp_wpn_third_rpg7_fired_rocket" /> | ||
<spawn_event source="snd" name="wp_rpg_rocket_flyby" stop_when_killed="true"/> | ||
</sounds> | ||
</unit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
assets/mod_overrides/(WIP)M202 Thermobaric Warhead/hooks/projectilestweakdata.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
--?? | ||
Hooks:PostHook(BlackMarketTweakData, "_init_projectiles", "M202Incen_BlackMarketTweakData_init_projectiles", function(self, tweak_data) | ||
self.projectiles.rocket_ray_frag_incen = deep_clone(self.projectiles.rocket_ray_frag) | ||
self.projectiles.rocket_ray_frag_incen.unit = "units/pd2_dlc_friend/weapons/wpn_third_ray_fired_rocket/wpn_third_ray_fired_incen_rocket" | ||
if not table.contains(self._projectiles_index, 'rocket_ray_frag_incen') then | ||
table.insert(self._projectiles_index, 'rocket_ray_frag_incen') | ||
end | ||
local free_dlcs = tweak_data:free_dlc_list() | ||
for _, data in pairs(self.projectiles) do | ||
if free_dlcs[data.dlc] then | ||
data.dlc = nil | ||
end | ||
end | ||
self:_add_desc_from_name_macro(self.projectiles) | ||
end) |
30 changes: 27 additions & 3 deletions
30
assets/mod_overrides/(WIP)M202 Thermobaric Warhead/hooks/tweakdata_ray.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
Hooks:PostHook( TweakData, "init", "M202IncenInit", function(self) | ||
|
||
end) | ||
tweak_data.projectiles.rocket_ray_frag_incen = deep_clone(tweak_data.projectiles.rocket_ray_frag) | ||
tweak_data.projectiles.rocket_ray_frag_incen.damage = 250 | ||
tweak_data.projectiles.rocket_ray_frag_incen.projectile_trail = true | ||
tweak_data.projectiles.rocket_ray_frag_incen.adjust_z = 0 | ||
tweak_data.projectiles.rocket_ray_frag_incen.push_at_body_index = 0 | ||
tweak_data.projectiles.rocket_ray_frag_incen.incendiary_fire_arbiter = { | ||
sound_event = "gl_explode", | ||
range = 75, | ||
curve_pow = 3, | ||
damage = 1, | ||
fire_alert_radius = 1500, | ||
alert_radius = 1500, | ||
sound_event_burning = "burn_loop_gen", | ||
player_damage = 2, | ||
sound_event_impact_duration = 6, | ||
burn_tick_period = 0.5, | ||
burn_duration = 3, | ||
effect_name = "effects/payday2/particles/explosions/molotov_grenade", | ||
fire_dot_data = { | ||
dot_trigger_chance = 35, | ||
dot_damage = 15, | ||
dot_length = 6, | ||
dot_trigger_max_distance = 3000, | ||
dot_tick_period = 0.5 | ||
} | ||
} | ||
tweak_data.weapon_disable_crit_for_damage.rocket_ray_frag_incen = {explosion = false, fire = false} |
7 changes: 3 additions & 4 deletions
7
assets/mod_overrides/(WIP)M202 Thermobaric Warhead/hooks/weaponfactorytweakdata.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5 | ||
1 |