PRVM_DECLARE_function(CSQC_Parse_TempEntity)
PRVM_DECLARE_function(CSQC_Shutdown)
PRVM_DECLARE_function(CSQC_UpdateView)
+PRVM_DECLARE_function(ClientPreConnect)
PRVM_DECLARE_function(ClientConnect)
PRVM_DECLARE_function(ClientDisconnect)
PRVM_DECLARE_function(ClientKill)
PRVM_DECLARE_serverfieldvector(v_angle)
PRVM_DECLARE_serverfieldvector(velocity)
PRVM_DECLARE_serverfieldvector(view_ofs)
+PRVM_DECLARE_serverfunction(ClientPreConnect)
PRVM_DECLARE_serverfunction(ClientConnect)
PRVM_DECLARE_serverfunction(ClientDisconnect)
PRVM_DECLARE_serverfunction(ClientKill)
// set up the entity for this client (including .colormap, .team, etc)
PRVM_ED_ClearEdict(prog, client->edict);
+
+ // call server hook
+ if (PRVM_serverfunction(ClientPreConnect))
+ {
+ PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(client->edict);
+ prog->ExecuteProgram(prog, PRVM_serverfunction(ClientPreConnect),
+ "QC function ClientPreConnect is missing");
+ }
}
// don't call SendServerinfo for a fresh botclient because its fields have