AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   env_sound "room_type" set room sound type. (https://forums.alliedmods.net/showthread.php?t=214396)

.Dare Devil. 04-26-2013 11:50

env_sound "room_type" set room sound type.
 
Hello, I found cvars in console
"room_type"
"waterroom_type"
( I dont know that is they in client side or server side )

then it reminded me env_sound :)
Is there possible to set room sound type for player without env_sound entity and room_type ( because room_type seems to be in client side and i can not test it somehow... )
Thanks!

Backstabnoob 04-26-2013 12:39

Re: env_sound "room_type" set room sound type.
 
Just saying, you could use your other thread to post this. These problems seem the same to me.

ConnorMcLeod 04-26-2013 14:13

Re: env_sound "room_type" set room sound type.
 
About waterroom_type, sounds like it is client side and that it is the way sound is proceeded clientside when you are under water, or something like that.

About room_type, if you would have looked at env_sound code on HLSDK, you would have found that in function void CEnvSound :: Think( void ), message SVC_ROOMTYPE is sent.
Then room_type is cache in player pdata m_flSndRoomtype (const m_flSndRoomtype = 249; // last roomtype set by sound entity).

.Dare Devil. 04-26-2013 14:53

Re: env_sound "room_type" set room sound type.
 
Thanks CorrorMcLeod!


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

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