self.origin_z = ReadShort();
self.angles_y = ReadByte() * 360.0 / 256;
self.origin_z = self.angles_x = self.angles_z = 0;
+ entcs_receiver[self.sv_entnum] = self;
InterpolateOrigin_Note();
}
float g_balance_electro_secondary_bouncefactor;
float g_balance_electro_secondary_bouncestop;
float g_trueaim_minrange;
+
+entity entcs_receiver[255]; // 255 is the engine limit on maxclients
R_EndPolygon();
}
}
+
+const vector GETPLAYERORIGIN_ERROR = '1123581321 2357111317 3141592653'; // way out of bounds for anything on the map
+vector getplayerorigin(float pl)
+{
+ string s;
+ s = getplayerkey(pl, "TEMPHACK_origin");
+ if(s != "")
+ return stov(s);
+ if(entcs_receiver[pl].classname == "entcs_receiver")
+ return entcs_receiver[pl].origin;
+ return GETPLAYERORIGIN_ERROR;
+}