Skip to content

Commit

Permalink
add max charge sound for arc cannon
Browse files Browse the repository at this point in the history
  • Loading branch information
DBmaoha committed Aug 3, 2023
1 parent 17067e7 commit 12a865a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ function FireArcCannon( entity weapon, WeaponPrimaryAttackParams attackParams )
weapon.EmitWeaponNpcSound( LOUD_WEAPON_AI_SOUND_RADIUS_MP, 0.2 )

weapon.PlayWeaponEffect( $"wpn_muzzleflash_arc_cannon_fp", $"wpn_muzzleflash_arc_cannon", "muzzle_flash" )
// Northstar missing: fix sound!!! default fire sound is too small in ttf2
// Northstar missing: fix sound!!!
weapon.EmitWeaponSound_1p3p( "weapon_electric_smoke_electrocute_titan_1p", "weapon_electric_smoke_electrocute_titan_3p")
weapon.EmitWeaponSound_1p3p( "weapon_batterygun_firestart_1p", "weapon_batterygun_fire_energydrained_3p")
if ( charge >= ARC_CANNON_DAMAGE_CHARGE_RATIO ) // firing with high charge frac, do a extra sound
weapon.EmitWeaponSound_1p3p( "MegaTurret_Laser_Fire_3P", "MegaTurret_Laser_Fire_3P")

local attachmentName = "muzzle_flash"
local attachmentIndex = weapon.LookupAttachment( attachmentName )
Expand Down

0 comments on commit 12a865a

Please sign in to comment.