Called on clients after receiving synchronization data from server.
3026 {
3028 {
3029 if (
GetGame().IsMultiplayer() )
3030 {
3031 bool is_on =
m_EM.IsSwitchedOn();
3032
3033 if (is_on !=
m_EM.GetPreviousSwitchState())
3034 {
3035 if (is_on)
3037 else
3039 }
3040
3041 int id_low =
m_EM.GetEnergySourceNetworkIDLow();
3042 int id_High =
m_EM.GetEnergySourceNetworkIDHigh();
3043
3045
3046 if (energy_source)
3047 {
3048 ComponentEnergyManager esem = energy_source.GetCompEM();
3049
3050 if ( !esem )
3051 {
3052 string object = energy_source.GetType();
3053 Error(
"Synchronization error! Object " +
object +
" has no instance of the Energy Manager component!");
3054 }
3055
3056 m_EM.PlugThisInto(energy_source);
3057
3058 }
3059 else
3060 {
3062 }
3063
3064 m_EM.DeviceUpdate();
3065 m_EM.StartUpdates();
3066 }
3067 }
3068
3070 {
3073 }
3074 }
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
ComponentEnergyManager m_EM
void OnFreezeStateChangeClient()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.