1. Torr_Samaho
  2. skulltag

Commits

Torr_Samaho  committed 76c37d6

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

  • Participants
  • Parent commits a6135a2
  • Branches default

Comments (0)

Files changed (1)

File src/sv_commands.cpp

View file
 			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.