Implement mp_charge_rate (mpchargerate) exposure.
@@ -68,6 +68,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"move_x",
"move_z",
"mp",
+ "mp_charge_time",
"mp_old",
"mp_time",
"name",
@@ -503,6 +504,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_MP_CHARGE_TIME:
+
+ ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
+ (*pretvar)->lVal = (LONG)handle->mpchargetime;
+
+ break;
+
case _ENTITY_MP_OLD:
ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
@@ -1169,6 +1177,15 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_MP_CHARGE_TIME:
+
+ if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
+ {
+ handle->mpchargetime = temp_int;
+ }
+
+ break;
+
case _ENTITY_MP_TIME:
if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
