PlayerRankings: Change to fit the new model versions.
This commit is contained in:
parent
8e682153d9
commit
18bc5727c0
@ -226,28 +226,29 @@ public int MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int se
|
|||||||
public void OnMapStart()
|
public void OnMapStart()
|
||||||
{
|
{
|
||||||
PrecacheSound("unloze/holy.wav");
|
PrecacheSound("unloze/holy.wav");
|
||||||
PrecacheModel("models/unloze/crown_v2.mdl");
|
PrecacheModel("models/unloze/crown_v3.mdl");
|
||||||
PrecacheModel("models/unloze/skull.mdl");
|
PrecacheModel("models/unloze/skull_v2.mdl");
|
||||||
|
|
||||||
AddFileToDownloadsTable("sound/unloze/holy.wav");
|
AddFileToDownloadsTable("sound/unloze/holy.wav");
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.mdl");
|
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.phy");
|
AddFileToDownloadsTable("models/unloze/crown_v3.mdl");
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.vvd");
|
AddFileToDownloadsTable("models/unloze/crown_v3.phy");
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.sw.vtx");
|
AddFileToDownloadsTable("models/unloze/crown_v3.vvd");
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.dx80.vtx");
|
AddFileToDownloadsTable("models/unloze/crown_v3.sw.vtx");
|
||||||
AddFileToDownloadsTable("models/unloze/crown_v2.dx90.vtx");
|
AddFileToDownloadsTable("models/unloze/crown_v3.dx80.vtx");
|
||||||
|
AddFileToDownloadsTable("models/unloze/crown_v3.dx90.vtx");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/crown/crown.vmt");
|
AddFileToDownloadsTable("materials/models/unloze/crown/crown.vmt");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/crown/crown.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/crown/crown.vtf");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/crown/crown_bump.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/crown/crown_bump.vtf");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/crown/crown_detail.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/crown/crown_detail.vtf");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/crown/crown_lightwarp.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/crown/crown_lightwarp.vtf");
|
||||||
|
|
||||||
AddFileToDownloadsTable("models/unloze/skull.mdl");
|
AddFileToDownloadsTable("models/unloze/skull_v2.mdl");
|
||||||
AddFileToDownloadsTable("models/unloze/skull.phy");
|
AddFileToDownloadsTable("models/unloze/skull_v2.phy");
|
||||||
AddFileToDownloadsTable("models/unloze/skull.vvd");
|
AddFileToDownloadsTable("models/unloze/skull_v2.vvd");
|
||||||
AddFileToDownloadsTable("models/unloze/skull.sw.vtx");
|
AddFileToDownloadsTable("models/unloze/skull_v2.sw.vtx");
|
||||||
AddFileToDownloadsTable("models/unloze/skull.dx80.vtx");
|
AddFileToDownloadsTable("models/unloze/skull_v2.dx80.vtx");
|
||||||
AddFileToDownloadsTable("models/unloze/skull.dx90.vtx");
|
AddFileToDownloadsTable("models/unloze/skull_v2.dx90.vtx");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/skull/skull.vmt");
|
AddFileToDownloadsTable("materials/models/unloze/skull/skull.vmt");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/skull/skull.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/skull/skull.vtf");
|
||||||
AddFileToDownloadsTable("materials/models/unloze/skull/skull_bump.vtf");
|
AddFileToDownloadsTable("materials/models/unloze/skull/skull_bump.vtf");
|
||||||
@ -635,10 +636,9 @@ void SpawnCrown(int client)
|
|||||||
if ((entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE)
|
if ((entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetEntityModel(entity, "models/unloze/crown_v2.mdl");
|
SetEntityModel(entity, "models/unloze/crown_v3.mdl");
|
||||||
|
|
||||||
DispatchKeyValue(entity, "solid", "0");
|
DispatchKeyValue(entity, "solid", "0");
|
||||||
DispatchKeyValue(entity, "modelscale", "1.5");
|
|
||||||
DispatchKeyValue(entity, "disableshadows", "1");
|
DispatchKeyValue(entity, "disableshadows", "1");
|
||||||
DispatchKeyValue(entity, "disablereceiveshadows", "1");
|
DispatchKeyValue(entity, "disablereceiveshadows", "1");
|
||||||
DispatchKeyValue(entity, "disablebonefollowers", "1");
|
DispatchKeyValue(entity, "disablebonefollowers", "1");
|
||||||
@ -649,8 +649,6 @@ void SpawnCrown(int client)
|
|||||||
GetClientAbsAngles(client, fAngles);
|
GetClientAbsAngles(client, fAngles);
|
||||||
|
|
||||||
fVector[2] += 80.0;
|
fVector[2] += 80.0;
|
||||||
fAngles[0] += 8.0;
|
|
||||||
fAngles[2] += 5.5;
|
|
||||||
|
|
||||||
TeleportEntity(entity, fVector, fAngles, NULL_VECTOR);
|
TeleportEntity(entity, fVector, fAngles, NULL_VECTOR);
|
||||||
|
|
||||||
@ -685,10 +683,9 @@ void SpawnSkull(int client)
|
|||||||
if ((entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE)
|
if ((entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetEntityModel(entity, "models/unloze/skull.mdl");
|
SetEntityModel(entity, "models/unloze/skull_v2.mdl");
|
||||||
|
|
||||||
DispatchKeyValue(entity, "solid", "0");
|
DispatchKeyValue(entity, "solid", "0");
|
||||||
DispatchKeyValue(entity, "modelscale", "1.5");
|
|
||||||
DispatchKeyValue(entity, "disableshadows", "1");
|
DispatchKeyValue(entity, "disableshadows", "1");
|
||||||
DispatchKeyValue(entity, "disablereceiveshadows", "1");
|
DispatchKeyValue(entity, "disablereceiveshadows", "1");
|
||||||
DispatchKeyValue(entity, "disablebonefollowers", "1");
|
DispatchKeyValue(entity, "disablebonefollowers", "1");
|
||||||
@ -698,12 +695,10 @@ void SpawnSkull(int client)
|
|||||||
GetClientAbsOrigin(client, fVector);
|
GetClientAbsOrigin(client, fVector);
|
||||||
GetClientAbsAngles(client, fAngles);
|
GetClientAbsAngles(client, fAngles);
|
||||||
|
|
||||||
fVector[2] -= 30.0;
|
fVector[2] += 80.0;
|
||||||
|
|
||||||
TeleportEntity(entity, fVector, fAngles, NULL_VECTOR);
|
TeleportEntity(entity, fVector, fAngles, NULL_VECTOR);
|
||||||
|
|
||||||
fVector[2] += 110.0;
|
|
||||||
|
|
||||||
float fDirection[3];
|
float fDirection[3];
|
||||||
fDirection[0] = 0.0;
|
fDirection[0] = 0.0;
|
||||||
fDirection[1] = 0.0;
|
fDirection[1] = 0.0;
|
||||||
@ -751,9 +746,6 @@ public Action OnCrownUpdate(Handle timer, DataPack data)
|
|||||||
float fAngles[3];
|
float fAngles[3];
|
||||||
GetClientAbsAngles(client, fAngles);
|
GetClientAbsAngles(client, fAngles);
|
||||||
|
|
||||||
fAngles[0] += 8.0;
|
|
||||||
fAngles[2] += 5.5;
|
|
||||||
|
|
||||||
TeleportEntity(entity, NULL_VECTOR, fAngles, NULL_VECTOR);
|
TeleportEntity(entity, NULL_VECTOR, fAngles, NULL_VECTOR);
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user