GPChannel Posted January 28, 2018 Posted January 28, 2018 Hmm is this possible to add different sound effects for different force levels?I mean like force push has 3 levels in SP,and add 3 diferent sound effect?
GamingPrince83 Posted January 28, 2018 Posted January 28, 2018 It's possible with coding. if ( pull ) { cost = forcePowerNeeded[FP_PULL]; if ( !WP_ForcePowerUsable( self, FP_PULL, cost ) ) { return; } //make sure this plays and that you cannot press fire for about 200ms after this anim = BOTH_FORCEPULL; //soundIndex = G_SoundIndex( "sound/weapons/force/pull.wav" ); //G_SoundOnEnt(ent, CHAN_WEAPON, va("sound/weapons/sword/swing%d.wav", Q_irand(1, 4))); soundIndex = G_SoundIndex("sound/weapons/force/pull.wav"); hold = 200; } else { cost = forcePowerNeeded[FP_PUSH]; if ( !WP_ForcePowerUsable( self, FP_PUSH, cost ) ) { return; } //make sure this plays and that you cannot press fire for about 1 second after this anim = BOTH_FORCEPUSH; soundIndex = G_SoundIndex( "sound/weapons/force/push.wav" ); hold = 650; } This is the code for the Pull and Push sounds located in the file wp_saber.cpp in the SP code.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now