Commit MetaInfo

Revision93e21c90ab5ae7475f2cd4410ce7a08d193b7794 (tree)
Time2012-05-27 16:31:53
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

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

Change Summary

Incremental Difference

diff -r 07ff1daea439 -r 93e21c90ab5a src/cl_main.cpp
--- a/src/cl_main.cpp Sat May 26 20:42:12 2012 +0200
+++ b/src/cl_main.cpp Sun May 27 09:31:53 2012 +0200
@@ -6020,6 +6020,12 @@
60206020
60216021 pActor->SetIdle();
60226022 return;
6023+
6024+ // [Dusk]
6025+ case STATE_WOUND:
6026+
6027+ pNewState = pActor->FindState( NAME_Wound );
6028+ break;
60236029 default:
60246030
60256031 #ifdef CLIENT_WARNING_MESSAGES
diff -r 07ff1daea439 -r 93e21c90ab5a src/network.h
--- a/src/network.h Sat May 26 20:42:12 2012 +0200
+++ b/src/network.h Sun May 27 09:31:53 2012 +0200
@@ -113,6 +113,7 @@
113113 #define STATE_HEAL 9
114114 #define STATE_CRASH 10
115115 #define STATE_IDLE 11
116+#define STATE_WOUND 12 // [Dusk]
116117
117118 // Identifying player states (again, cheap & easy)
118119 typedef enum
diff -r 07ff1daea439 -r 93e21c90ab5a src/sv_commands.cpp
--- a/src/sv_commands.cpp Sat May 26 20:42:12 2012 +0200
+++ b/src/sv_commands.cpp Sun May 27 09:31:53 2012 +0200
@@ -2624,6 +2624,11 @@
26242624 SERVERCOMMANDS_SetThingState( pActor, STATE_MISSILE );
26252625 return;
26262626 }
2627+ else if ( pState == pActor->FindState( NAME_Wound ))
2628+ {
2629+ SERVERCOMMANDS_SetThingState( pActor, STATE_WOUND );
2630+ return;
2631+ }
26272632 }
26282633
26292634 // [BB] Try to find the state label and the correspoding offset belonging to the target state.
Show on old repository browser