From 18bc5727c019bdfdbe1f6bda4baf75c8e009eac3 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sat, 20 Jul 2019 14:52:12 +0200 Subject: [PATCH] PlayerRankings: Change to fit the new model versions. --- PlayerRankings/scripting/PlayerRankings.sp | 44 +++++++++------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/PlayerRankings/scripting/PlayerRankings.sp b/PlayerRankings/scripting/PlayerRankings.sp index 03250659..0e58fb7c 100644 --- a/PlayerRankings/scripting/PlayerRankings.sp +++ b/PlayerRankings/scripting/PlayerRankings.sp @@ -226,28 +226,29 @@ public int MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int se public void OnMapStart() { PrecacheSound("unloze/holy.wav"); - PrecacheModel("models/unloze/crown_v2.mdl"); - PrecacheModel("models/unloze/skull.mdl"); + PrecacheModel("models/unloze/crown_v3.mdl"); + PrecacheModel("models/unloze/skull_v2.mdl"); AddFileToDownloadsTable("sound/unloze/holy.wav"); - AddFileToDownloadsTable("models/unloze/crown_v2.mdl"); - AddFileToDownloadsTable("models/unloze/crown_v2.phy"); - AddFileToDownloadsTable("models/unloze/crown_v2.vvd"); - AddFileToDownloadsTable("models/unloze/crown_v2.sw.vtx"); - AddFileToDownloadsTable("models/unloze/crown_v2.dx80.vtx"); - AddFileToDownloadsTable("models/unloze/crown_v2.dx90.vtx"); + + AddFileToDownloadsTable("models/unloze/crown_v3.mdl"); + AddFileToDownloadsTable("models/unloze/crown_v3.phy"); + AddFileToDownloadsTable("models/unloze/crown_v3.vvd"); + AddFileToDownloadsTable("models/unloze/crown_v3.sw.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.vtf"); AddFileToDownloadsTable("materials/models/unloze/crown/crown_bump.vtf"); AddFileToDownloadsTable("materials/models/unloze/crown/crown_detail.vtf"); AddFileToDownloadsTable("materials/models/unloze/crown/crown_lightwarp.vtf"); - AddFileToDownloadsTable("models/unloze/skull.mdl"); - AddFileToDownloadsTable("models/unloze/skull.phy"); - AddFileToDownloadsTable("models/unloze/skull.vvd"); - AddFileToDownloadsTable("models/unloze/skull.sw.vtx"); - AddFileToDownloadsTable("models/unloze/skull.dx80.vtx"); - AddFileToDownloadsTable("models/unloze/skull.dx90.vtx"); + AddFileToDownloadsTable("models/unloze/skull_v2.mdl"); + AddFileToDownloadsTable("models/unloze/skull_v2.phy"); + AddFileToDownloadsTable("models/unloze/skull_v2.vvd"); + AddFileToDownloadsTable("models/unloze/skull_v2.sw.vtx"); + AddFileToDownloadsTable("models/unloze/skull_v2.dx80.vtx"); + AddFileToDownloadsTable("models/unloze/skull_v2.dx90.vtx"); AddFileToDownloadsTable("materials/models/unloze/skull/skull.vmt"); AddFileToDownloadsTable("materials/models/unloze/skull/skull.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) return; - SetEntityModel(entity, "models/unloze/crown_v2.mdl"); + SetEntityModel(entity, "models/unloze/crown_v3.mdl"); DispatchKeyValue(entity, "solid", "0"); - DispatchKeyValue(entity, "modelscale", "1.5"); DispatchKeyValue(entity, "disableshadows", "1"); DispatchKeyValue(entity, "disablereceiveshadows", "1"); DispatchKeyValue(entity, "disablebonefollowers", "1"); @@ -649,8 +649,6 @@ void SpawnCrown(int client) GetClientAbsAngles(client, fAngles); fVector[2] += 80.0; - fAngles[0] += 8.0; - fAngles[2] += 5.5; TeleportEntity(entity, fVector, fAngles, NULL_VECTOR); @@ -685,10 +683,9 @@ void SpawnSkull(int client) if ((entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return; - SetEntityModel(entity, "models/unloze/skull.mdl"); + SetEntityModel(entity, "models/unloze/skull_v2.mdl"); DispatchKeyValue(entity, "solid", "0"); - DispatchKeyValue(entity, "modelscale", "1.5"); DispatchKeyValue(entity, "disableshadows", "1"); DispatchKeyValue(entity, "disablereceiveshadows", "1"); DispatchKeyValue(entity, "disablebonefollowers", "1"); @@ -698,12 +695,10 @@ void SpawnSkull(int client) GetClientAbsOrigin(client, fVector); GetClientAbsAngles(client, fAngles); - fVector[2] -= 30.0; + fVector[2] += 80.0; TeleportEntity(entity, fVector, fAngles, NULL_VECTOR); - fVector[2] += 110.0; - float fDirection[3]; fDirection[0] = 0.0; fDirection[1] = 0.0; @@ -751,9 +746,6 @@ public Action OnCrownUpdate(Handle timer, DataPack data) float fAngles[3]; GetClientAbsAngles(client, fAngles); - fAngles[0] += 8.0; - fAngles[2] += 5.5; - TeleportEntity(entity, NULL_VECTOR, fAngles, NULL_VECTOR); return Plugin_Continue; }