ze_boatescape6_remix_fix2: slight improvement

This commit is contained in:
neon 2018-12-05 12:48:32 +01:00
parent 0f49efb53c
commit 92709d1cc1

View File

@ -1,6 +1,6 @@
#include <sourcemod> #include <sourcemod>
#include <sdktools> #include <sdktools>
#include <morecolors.inc> #include <multicolors>
public Plugin myinfo = public Plugin myinfo =
{ {
@ -14,7 +14,7 @@ public Plugin myinfo =
new float:g_fOrigin_Button5[3]; new float:g_fOrigin_Button5[3];
new Handle:g_hSparkTimer = INVALID_HANDLE; new Handle:g_hSparkTimer = INVALID_HANDLE;
public Action VerifyMap() public void VerifyMap()
{ {
new String:currentMap[64]; new String:currentMap[64];
GetCurrentMap(currentMap, sizeof(currentMap)); GetCurrentMap(currentMap, sizeof(currentMap));
@ -24,6 +24,52 @@ public Action VerifyMap()
GetPluginFilename(INVALID_HANDLE, sFilename, sizeof(sFilename)); GetPluginFilename(INVALID_HANDLE, sFilename, sizeof(sFilename));
ServerCommand("sm plugins unload %s", sFilename); ServerCommand("sm plugins unload %s", sFilename);
} }
else
{
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx80.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx90.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.mdl");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.phy");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.sw.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.vvd");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser1.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser1.vtf");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser2.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser2.vtf");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/white.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/white.vtf");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.dx80.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.dx90.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.mdl");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.phy");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.sw.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.vvd");
AddFileToDownloadsTable("materials/3d/bossguard/diss_00.vmt");
AddFileToDownloadsTable("materials/3d/bossguard/diss_00.vtf");
AddFileToDownloadsTable("materials/3d/bossguard/diss_01.vmt");
AddFileToDownloadsTable("materials/3d/bossguard/diss_01.vtf");
AddFileToDownloadsTable("sound/unl1/boatescape/starwars.wav");
AddFileToDownloadsTable("sound/unl1/boatescape/evil_laugh.wav");
AddFileToDownloadsTable("sound/unl1/boatescape/Brain Power V2.mp3");
AddFileToDownloadsTable("sound/unl1/boatescape/Isengard.mp3");
PrecacheModel("models/seagull.mdl");
PrecacheModel("models/props_lab/blastdoor001c.mdl");
PrecacheModel("models/props_trainstation/trainstation_clock001.mdl");
PrecacheModel("models/zombieden/xmode/youmu/laser.mdl");
PrecacheModel("models/3d/bossguard/bossguard.mdl");
PrecacheModel("models/props/de_inferno/brickpillara.mdl");
PrecacheModel("models/props_combine/combine_teleportplatform.mdl");
PrecacheModel("models/effects/vol_light64x256.mdl");
PrecacheModel("models/props/cs_italy/bananna.mdl");
PrecacheModel("models/props/cs_italy/orange.mdl");
PrecacheModel("models/props_junk/watermelon01.mdl");
}
} }
public void OnPluginStart() public void OnPluginStart()
@ -36,50 +82,6 @@ public void OnPluginStart()
public void OnMapStart() public void OnMapStart()
{ {
VerifyMap(); VerifyMap();
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx80.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx90.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.mdl");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.phy");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.sw.vtx");
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.vvd");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser1.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser1.vtf");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser2.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/laser2.vtf");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/white.vmt");
AddFileToDownloadsTable("materials/zombieden/xmode/youmu/laser/white.vtf");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.dx80.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.dx90.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.mdl");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.phy");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.sw.vtx");
AddFileToDownloadsTable("models/3d/bossguard/bossguard.vvd");
AddFileToDownloadsTable("materials/3d/bossguard/diss_00.vmt");
AddFileToDownloadsTable("materials/3d/bossguard/diss_00.vtf");
AddFileToDownloadsTable("materials/3d/bossguard/diss_01.vmt");
AddFileToDownloadsTable("materials/3d/bossguard/diss_01.vtf");
AddFileToDownloadsTable("sound/unl1/boatescape/starwars.wav");
AddFileToDownloadsTable("sound/unl1/boatescape/evil_laugh.wav");
AddFileToDownloadsTable("sound/unl1/boatescape/Brain Power V2.mp3");
AddFileToDownloadsTable("sound/unl1/boatescape/Isengard.mp3");
PrecacheModel("models/seagull.mdl");
PrecacheModel("models/props_lab/blastdoor001c.mdl");
PrecacheModel("models/props_trainstation/trainstation_clock001.mdl");
PrecacheModel("models/zombieden/xmode/youmu/laser.mdl");
PrecacheModel("models/3d/bossguard/bossguard.mdl");
PrecacheModel("models/props/de_inferno/brickpillara.mdl");
PrecacheModel("models/props_combine/combine_teleportplatform.mdl");
PrecacheModel("models/effects/vol_light64x256.mdl");
PrecacheModel("models/props/cs_italy/bananna.mdl");
PrecacheModel("models/props/cs_italy/orange.mdl");
PrecacheModel("models/props_junk/watermelon01.mdl");
} }
public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast) public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast)
@ -474,7 +476,7 @@ public Action SpawnBossHP()
DispatchKeyValue(Entity, "OnHitMin", "secret_teleport_final,Enable,,2,1"); DispatchKeyValue(Entity, "OnHitMin", "secret_teleport_final,Enable,,2,1");
DispatchKeyValue(Entity, "OnHitMin", "secret_boss_laser_movelinear,KillHierarchy,,0,1"); DispatchKeyValue(Entity, "OnHitMin", "secret_boss_laser_movelinear,KillHierarchy,,0,1");
DispatchKeyValue(Entity, "OnHitMin", "point_servercommand,Command,say You killed the Henchman!,0,-1"); DispatchKeyValue(Entity, "OnHitMin", "point_servercommand,Command,say You killed the Henchman!,0,-1");
DispatchKeyValue(Entity, "OnHitMin", "point_servercommand,Command,say Maybe try to not to anger the God of the Fruits next time...,1,-1"); DispatchKeyValue(Entity, "OnHitMin", "point_servercommand,Command,say Maybe try not to anger the God of the Fruits next time...,1,-1");
DispatchSpawn(Entity); DispatchSpawn(Entity);
ActivateEntity(Entity); ActivateEntity(Entity);
@ -672,7 +674,7 @@ public Action SpawnTriggerHurt(int random)
DispatchKeyValue(Entity, "damagemodel", "0"); DispatchKeyValue(Entity, "damagemodel", "0");
DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_laser_timer,Kill,,0,-1"); DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_laser_timer,Kill,,0,-1");
DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_hp,Kill,,0,-1"); DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_hp,Kill,,0,-1");
DispatchKeyValue(Entity, "OnStartTouch", "point_servercommand,Command,say Maybe try to not to anger the God of the Fruits next time...,1,1"); DispatchKeyValue(Entity, "OnStartTouch", "point_servercommand,Command,say Maybe try not to anger the God of the Fruits next time...,1,1");
DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_loss_sound,PlaySound,,1,1"); DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_loss_sound,PlaySound,,1,1");
DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_prop,AddOutput,OnUser1 !self:AddOutput:rendercolor 255 000 0:1.00:-1,0,1"); DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_prop,AddOutput,OnUser1 !self:AddOutput:rendercolor 255 000 0:1.00:-1,0,1");
DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_prop,AddOutput,OnUser1 !self:AddOutput:rendercolor 255 165 0:2.00:-1,0,1"); DispatchKeyValue(Entity, "OnStartTouch", "secret_boss_prop,AddOutput,OnUser1 !self:AddOutput:rendercolor 255 165 0:2.00:-1,0,1");
@ -3242,5 +3244,4 @@ public Action SpawnItemBeam()
DispatchSpawn(Entity); DispatchSpawn(Entity);
return Entity; return Entity;
} }