{
int i, j;
int edictnum = PRVM_NUM_FOR_EDICT(edict);
- const char *targetname = NULL;
+ const char *targetname = NULL;
if (prog == SVVM_prog)
targetname = PRVM_GetString(prog, PRVM_serveredictstring(edict, targetname));
+ // motorsep 08/05/2015; support for Doom 3 entity spawnargs (whem mapping in DarkRadiant)
+ if(!targetname)
+ targetname = PRVM_GetString( prog, PRVM_serveredictstring( edict, name ) );
+ // motorsep ends
+
if(targetname)
if(!*targetname) // ""
targetname = NULL;
if(targetname)
{
const char *target = PRVM_GetString(prog, PRVM_serveredictstring(ed, target));
+
+ // motorsep 08/05/2015; support for Doom 3 entity spawnargs (whem mapping in DarkRadiant)
+ if(!target)
+ target = PRVM_GetString( prog, PRVM_serveredictstring( ed, target0 ) );
+ // motorsep ends
+
if(target)
if(!strcmp(target, targetname))
return true;
PRVM_DECLARE_field(takedamage)
PRVM_DECLARE_field(target)
PRVM_DECLARE_field(targetname)
+// motorsep 08/05/2015; support for Doom 3 entity spawnargs (whem mapping in DarkRadiant)
+PRVM_DECLARE_field(target0)
+PRVM_DECLARE_field(name)
+// motorsep ends
PRVM_DECLARE_field(team)
PRVM_DECLARE_field(teleport_time)
PRVM_DECLARE_field(think)