Commits

Torr_Samaho committed 93e21c9

reduced net traffic needed if SERVERCOMMANDS_SetThingFrame is used to set the wound state (part of Dusk's wound state / custom damagetype fix patch)

  • Participants
  • Parent commits 07ff1da

Comments (0)

Files changed (3)

 
 		pActor->SetIdle();
 		return;
+
+	// [Dusk]
+	case STATE_WOUND:
+
+		pNewState = pActor->FindState( NAME_Wound );
+		break;
 	default:
 
 #ifdef CLIENT_WARNING_MESSAGES
 #define	STATE_HEAL				9
 #define	STATE_CRASH				10
 #define	STATE_IDLE				11
+#define	STATE_WOUND				12 // [Dusk]
 
 // Identifying player states (again, cheap & easy)
 typedef enum

src/sv_commands.cpp

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