Add recursive damage pointer to entity property exposure mapstring.
@@ -80,6 +80,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"position_y",
"position_z",
"projectile_prime",
+ "recursive_damage",
"release_time",
"seal_energy",
"seal_time",
@@ -578,6 +579,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_RECURSIVE_DAMAGE:
+
+ ScriptVariant_ChangeType(*pretvar, VT_PTR);
+ (*pretvar)->ptrVal = (s_damage_recursive *)handle->recursive_damage;
+
+ break;
+
case _ENTITY_RELEASE_TIME:
ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
@@ -1198,6 +1206,12 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_RECURSIVE_DAMAGE:
+
+ handle->recursive_damage = (s_damage_recursive *)varlist[ARG_VALUE]->ptrVal;
+
+ break;
+
case _ENTITY_RELEASE_TIME:
if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
