in plugin precache add
PHP Code:
public plugin_precache()
{
precache_sound("misc/parachute.wav")
in public client_PreThink(id)
after this
PHP Code:
if (para_ent[id] > 0)
{
entity_set_int(id, EV_INT_sequence, 3)
entity_set_int(id, EV_INT_gaitsequence, 1)
entity_set_float(id, EV_FL_frame, 1.0)
entity_set_float(id, EV_FL_framerate, 1.0)
set_user_gravity(id, 0.1)
velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
entity_set_vector(id, EV_VEC_velocity, velocity)
if (entity_get_int(para_ent[id],EV_INT_sequence) == 0)
{
add this
PHP Code:
emit_sound(id, CHAN_WEAPON, "misc/parachute.wav", 0.5, ATTN_NORM, 0, PITCH_NORM)
and after this bit
PHP Code:
else if ((oldbutton & IN_USE) && para_ent[id] > 0 )
{
add this
PHP Code:
emit_sound(id, CHAN_WEAPON, "misc/parachute", 0.5, ATTN_NORM, 1<<5, PITCH_NORM)
this is an example, but it should work