NULL, // #509
VM_uri_escape, // #510 string(string in) uri_escape = #510;
VM_uri_unescape, // #511 string(string in) uri_unescape = #511;
-NULL, // #512
+VM_etof, // #512 float(entity ent) num_for_edict = #512 (DP_QC_NUM_FOR_EDICT)
NULL, // #513
NULL, // #514
NULL, // #515
NULL, // #509
VM_uri_escape, // #510 string(string in) uri_escape = #510;
VM_uri_unescape, // #511 string(string in) uri_unescape = #511;
-NULL, // #512
+VM_etof, // #512 float(entity ent) num_for_edict = #512 (DP_QC_NUM_FOR_EDICT)
NULL, // #513
NULL, // #514
NULL, // #515
PRVM_G_INT(OFS_RETURN) = ent;
}
+/*
+========================
+VM_etof
+
+float etof(entity ent)
+========================
+*/
+void VM_etof(void)
+{
+ VM_SAFEPARMCOUNT(1, VM_etof);
+ PRVM_G_FLOAT(OFS_RETURN) = PRVM_G_EDICTNUM(OFS_PARM0);
+}
+
/*
=========
VM_strftime
void VM_uri_escape (void);
void VM_uri_unescape (void);
+
+void VM_etof (void);
"DP_GECKO_SUPPORT "
"DP_QC_GETSURFACEPOINTATTRIBUTE "
"DP_QC_URI_ESCAPE "
+"DP_QC_NUM_FOR_EDICT "
;
/*
NULL, // #509
VM_uri_escape, // #510 string(string in) uri_escape = #510;
VM_uri_unescape, // #511 string(string in) uri_unescape = #511;
-NULL, // #512
+VM_etof, // #512 float(entity ent) num_for_edict = #512 (DP_QC_NUM_FOR_EDICT)
NULL, // #513
NULL, // #514
NULL, // #515