I don't know if there is a better way, but in entity-think you can play the sound and set the next think at the end of the time the sound needs to play!?
Or in emit_sound there is a stop-flag (1<<5) maybe there is a flag for loop the sound!?
PHP Code:
#define SND_STOP (1<<5)
PHP Code:
emit_sound(g_recharge_id[r], CHAN_WEAPON, "HealthArmor-Stations/ArmorRecharge.wav", 1.0, ATTN_NORM, SND_STOP, PITCH_NORM);
I needed this flag because this sound i used loop indefinitely...
greetz regalis
__________________