• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).


コミットメタ情報

リビジョンeb916dc540fe5c85a1daf9b31d2dabd118811883 (tree)
日時2021-07-12 04:45:38
作者Adam Kaminski <kaminskiadam9@gmai...>
コミッターAdam Kaminski

ログメッセージ

Added the server command: "StopAllSoundsOnThing" which stops all sounds an actor is playing on the client's end.

変更サマリ

差分

diff -r 81158c93ed33 -r eb916dc540fe src/cl_main.cpp
--- a/src/cl_main.cpp Mon Jul 05 17:43:49 2021 -0400
+++ b/src/cl_main.cpp Sun Jul 11 15:45:38 2021 -0400
@@ -2233,6 +2233,17 @@
22332233 }
22342234 break;
22352235
2236+ case SVC2_STOPALLSOUNDSONTHING:
2237+ {
2238+ AActor* actor = CLIENT_FindThingByNetID( pByteStream->ReadShort());
2239+
2240+ if ( actor )
2241+ {
2242+ S_StopAllSoundsFromActor( actor );
2243+ }
2244+ }
2245+ break;
2246+
22362247 case SVC2_SHOOTDECAL:
22372248 {
22382249 FName decalName = NETWORK_ReadName( pByteStream );
diff -r 81158c93ed33 -r eb916dc540fe src/network_enums.h
--- a/src/network_enums.h Mon Jul 05 17:43:49 2021 -0400
+++ b/src/network_enums.h Sun Jul 11 15:45:38 2021 -0400
@@ -378,6 +378,7 @@
378378 ENUM_ELEMENT ( SVC2_SYNCMAPROTATION ),
379379 ENUM_ELEMENT ( SVC2_ADDTOMAPROTATION ),
380380 ENUM_ELEMENT ( SVC2_DELFROMMAPROTATION ),
381+ ENUM_ELEMENT ( SVC2_STOPALLSOUNDSONTHING ),
381382 // [BB] Commands necessary for the account system.
382383 ENUM_ELEMENT ( SVC2_SRP_USER_START_AUTHENTICATION ),
383384 ENUM_ELEMENT ( SVC2_SRP_USER_PROCESS_CHALLENGE ),
diff -r 81158c93ed33 -r eb916dc540fe src/sv_commands.cpp
--- a/src/sv_commands.cpp Mon Jul 05 17:43:49 2021 -0400
+++ b/src/sv_commands.cpp Sun Jul 11 15:45:38 2021 -0400
@@ -3913,6 +3913,18 @@
39133913
39143914 //*****************************************************************************
39153915 //
3916+void SERVERCOMMANDS_StopAllSoundsOnThing( AActor *pActor, ULONG ulPlayerExtra, ServerCommandFlags flags )
3917+{
3918+ if ( EnsureActorHasNetID( pActor ) == false )
3919+ return;
3920+
3921+ NetCommand command ( SVC2_STOPALLSOUNDSONTHING );
3922+ command.addShort( pActor->NetID );
3923+ command.sendCommandToClients();
3924+}
3925+
3926+//*****************************************************************************
3927+//
39163928 void SERVERCOMMANDS_FullUpdateCompleted( ULONG ulClient )
39173929 {
39183930 ServerCommands::FullUpdateCompleted().sendCommandToClients( ulClient, SVCF_ONLYTHISCLIENT );
diff -r 81158c93ed33 -r eb916dc540fe src/sv_commands.h
--- a/src/sv_commands.h Mon Jul 05 17:43:49 2021 -0400
+++ b/src/sv_commands.h Sun Jul 11 15:45:38 2021 -0400
@@ -232,6 +232,7 @@
232232 void SERVERCOMMANDS_SetThingSpecies( AActor *mobj, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
233233 void SERVERCOMMANDS_UpdateThingScaleNotAtDefault( AActor* pActor, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
234234 void SERVERCOMMANDS_FlashStealthMonster( AActor* pActor, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
235+void SERVERCOMMANDS_StopAllSoundsOnThing( AActor* pActor, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
235236
236237 // Print commands. These print some sort of message to the screen.
237238 void SERVERCOMMANDS_Print( const char *pszString, ULONG ulPrintLevel, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );