You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Added HDFirearm property PreFireSound, which is used to define a sound that should play exactly once before the weapon fires.
Fixed HDFirearm DeactivationSound so it's not completely broken. It'll also play when the trigger is held til the gun runs out of ammo, so it's pretty reliable
Cleaned up a HDFirearm Activate and Deactivate a little as I passed by
Made it so all HDFirearm sounds will update their positions, not just active and deactivation sounds
Copy file name to clipboardExpand all lines: Entities/HDFirearm.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -741,6 +741,7 @@ ClassInfoGetters
741
741
// Muzzle Flash Attachable. Owned
742
742
Attachable *m_pFlash;
743
743
744
+
SoundContainer m_PreFireSound; //!< The sound this HDFirearm should play before it starts firing. Distinct from activation sound in that it will play exactly once per trigger pull and not pitch up.
744
745
// The audio of this FireArm being fired.
745
746
SoundContainer m_FireSound;
746
747
SoundContainer m_FireEchoSound; //!< The audio that is played as the echo for the gun. Each shot will restart this sound, so it doesn't ever overlap.
0 commit comments