Raised This Month: $ Target: $400
 0% 

How I can make sound on the mapa?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-14-2014 , 09:29   Re: How I can make sound on the mapa?
Reply With Quote #1

[B][I]oh sht. for example: I've used ent spawn..[/I][/B]
Code:
engfunc(EngFunc_SetModel, g_point_entuty, "models/somemodel.mdl")
[B][I]then I've used engfunc for EmitAmbientSound..[/I][/B]
Code:
engfunc(EngFunc_EmitAmbientSound, g_point_entuty, origin, "ambience/some.wav", 0.5, ATTN_IDLE, 0, random_num(140, 160))
[B][I]But trouble.. when I've removed ent from the world..[/I][/B]
Code:
engfunc(EngFunc_RemoveEntity, g_point_entuty)
[B][I]Sound doesn't removed. It's normal. But i need remove that!
And do it without "stopsound" client command![/I][/B]

Last edited by YamiKaitou; 01-14-2014 at 17:43.
ZASTRELIS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode