Called on clients after receiving synchronization data from server.
3028 {
3030 {
3031 if (
GetGame().IsMultiplayer() )
3032 {
3033 bool is_on =
m_EM.IsSwitchedOn();
3034
3035 if (is_on !=
m_EM.GetPreviousSwitchState())
3036 {
3037 if (is_on)
3039 else
3041 }
3042
3043 int id_low =
m_EM.GetEnergySourceNetworkIDLow();
3044 int id_High =
m_EM.GetEnergySourceNetworkIDHigh();
3045
3047
3048 if (energy_source)
3049 {
3050 ComponentEnergyManager esem = energy_source.GetCompEM();
3051
3052 if ( !esem )
3053 {
3054 string object = energy_source.GetType();
3055 Error(
"Synchronization error! Object " +
object +
" has no instance of the Energy Manager component!");
3056 }
3057
3058 m_EM.PlugThisInto(energy_source);
3059
3060 }
3061 else
3062 {
3064 }
3065
3066 m_EM.DeviceUpdate();
3067 m_EM.StartUpdates();
3068 }
3069 }
3070
3072 {
3075 }
3076 }
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.