{
.name = "QUAKE",
.num = 15,
+ .max_edicts = 640,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
{
.name = "QUAKEDP",
.num = 15,
+ .max_edicts = 2048,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
{
.name = "DP1",
.num = 96,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord32f,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector32f,
{
.name = "DP2",
.num = 97,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord16i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector16i,
{
.name = "DP3",
.num = 3500,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord16i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector16i,
{
.name = "DP4",
.num = 3501,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord16i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector16i,
{
.name = "DP5",
.num = 3502,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord32f,
.WriteAngle = MSG_WriteAngle16i,
.WriteVector = MSG_WriteVector32f,
{
.name = "DP6",
.num = 3503,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord32f,
.WriteAngle = MSG_WriteAngle16i,
.WriteVector = MSG_WriteVector32f,
{
.name = "DP7",
.num = 3504,
+ .max_edicts = MAX_EDICTS,
.WriteCoord = MSG_WriteCoord32f,
.WriteAngle = MSG_WriteAngle16i,
.WriteVector = MSG_WriteVector32f,
{
.name = "NEHAHRAMOVIE",
.num = 250,
+ .max_edicts = 2048,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
{
.name = "NEHAHRABJP",
.num = 10000,
+ .max_edicts = 4096,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
{
.name = "NEHAHRABJP2",
.num = 10001,
+ .max_edicts = 4096,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
{
.name = "NEHAHRABJP3",
.num = 10002,
+ .max_edicts = 4096,
.WriteCoord = MSG_WriteCoord13i,
.WriteAngle = MSG_WriteAngle8i,
.WriteVector = MSG_WriteVector13i,
prog->builtins = vm_sv_builtins;
prog->numbuiltins = vm_sv_numbuiltins;
prog->max_edicts = 512;
- if (sv.protocol == &protocol_netquake)
- prog->limit_edicts = 640; // before quake mission pack 1 this was 512
- else if (sv.protocol == &protocol_quakedp)
- prog->limit_edicts = 2048; // guessing
- else if (sv.protocol == &protocol_nehahramovie)
- prog->limit_edicts = 2048; // guessing!
- else if (sv.protocol == &protocol_nehahrabjp || sv.protocol == &protocol_nehahrabjp2 || sv.protocol == &protocol_nehahrabjp3)
- prog->limit_edicts = 4096; // guessing!
- else
- prog->limit_edicts = MAX_EDICTS;
+ prog->limit_edicts = sv.protocol->max_edicts;
prog->reserved_edicts = svs.maxclients;
prog->edictprivate_size = sizeof(edict_engineprivate_t);
prog->name = "server";