Skip to content

Commit

Permalink
Fix aegis crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinorush committed Mar 3, 2023
1 parent 44fc0c1 commit e6b6522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ void function SwapRocketAmmo( entity weaponOwner, entity offhand, entity weapon
mods.append( "rapid_detonator_active" )
if ( offhand.HasMod( "quick_load" ) )
mods.append( "quick_load" )
if ( mods.contains( "pyrotechnics" ) )
mods.append( "pyrotechnics_payload_fix" )
mods.fastremovebyvalue( "single_shot" )
weapon.SetMods( mods )

Expand All @@ -91,6 +93,7 @@ void function SwapRocketAmmo( entity weaponOwner, entity offhand, entity weapon
mods.fastremovebyvalue( "fast_reload" )
mods.fastremovebyvalue( "quick_load" )
mods.fastremovebyvalue( "rapid_detonator_active" )
mods.fastremovebyvalue( "pyrotechnics_payload_fix" )
weapon.SetMods( mods )
}
if ( IsValid( offhand ) && !offhand.HasMod( "quick_load" ) )
Expand Down
7 changes: 6 additions & 1 deletion mod/scripts/weapons/mp_titanweapon_brute4_quad_rocket.txt
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,12 @@ WeaponData

pyrotechnics
{
"explosion_inner_radius" "++100" // Goes over outer radius, but outer radius caps it anyway
"explosion_inner_radius" "++85"
}

pyrotechnics_payload_fix
{
"explosion_inner_radius" "--10" // Combine with pyrotechnics to match payload outer radius
}
}

Expand Down

0 comments on commit e6b6522

Please sign in to comment.