Commits

Torr_Samaho committed 76c37d6

reduced net traffic needed if SERVERCOMMANDS_SetThingFrame is used to set the pain state

Comments (0)

Files changed (1)

src/sv_commands.cpp

 			SERVERCOMMANDS_SetThingState( pActor, STATE_WOUND );
 			return;
 		}
+		else if ( pState == pActor->FindState( NAME_Pain ))
+		{
+			SERVERCOMMANDS_SetThingState( pActor, STATE_PAIN );
+			return;
+		}
 	}
 
 	// [BB] Try to find the state label and the correspoding offset belonging to the target state.