ze_boatescape6_remix_fix2: slight improvement
This commit is contained in:
parent
0f49efb53c
commit
92709d1cc1
@ -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,19 +24,8 @@ 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
|
||||||
|
|
||||||
public void OnPluginStart()
|
|
||||||
{
|
{
|
||||||
VerifyMap();
|
|
||||||
HookEvent("round_start", OnRoundStart, EventHookMode_Post);
|
|
||||||
HookEvent("round_end", OnRoundEnd, EventHookMode_Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnMapStart()
|
|
||||||
{
|
|
||||||
VerifyMap();
|
|
||||||
|
|
||||||
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx80.vtx");
|
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx80.vtx");
|
||||||
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx90.vtx");
|
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.dx90.vtx");
|
||||||
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.mdl");
|
AddFileToDownloadsTable("models/zombieden/xmode/youmu/laser.mdl");
|
||||||
@ -79,9 +68,22 @@ public void OnMapStart()
|
|||||||
PrecacheModel("models/props/cs_italy/bananna.mdl");
|
PrecacheModel("models/props/cs_italy/bananna.mdl");
|
||||||
PrecacheModel("models/props/cs_italy/orange.mdl");
|
PrecacheModel("models/props/cs_italy/orange.mdl");
|
||||||
PrecacheModel("models/props_junk/watermelon01.mdl");
|
PrecacheModel("models/props_junk/watermelon01.mdl");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnPluginStart()
|
||||||
|
{
|
||||||
|
VerifyMap();
|
||||||
|
HookEvent("round_start", OnRoundStart, EventHookMode_Post);
|
||||||
|
HookEvent("round_end", OnRoundEnd, EventHookMode_Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnMapStart()
|
||||||
|
{
|
||||||
|
VerifyMap();
|
||||||
|
}
|
||||||
|
|
||||||
public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast)
|
public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast)
|
||||||
{
|
{
|
||||||
ClearTimer(g_hSparkTimer);
|
ClearTimer(g_hSparkTimer);
|
||||||
@ -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;
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user