From 1a8ab9d8a9596c04bbcb209abdcdc5472f1a4984 Mon Sep 17 00:00:00 2001 From: BotoX Date: Wed, 13 Nov 2019 12:05:24 +0100 Subject: [PATCH] prepare for 1.11 (and useless shit because 1.11 bug) --- TriggerRewards/scripting/TriggerRewards.sp | 3 +- Turret/scripting/Turret.sp | 3 +- sourcebans/scripting/sourcebans.sp | 14 +- .../scripting/ze_boatescape6_remix_fix2.sp | 734 +++++++++--------- 4 files changed, 380 insertions(+), 374 deletions(-) diff --git a/TriggerRewards/scripting/TriggerRewards.sp b/TriggerRewards/scripting/TriggerRewards.sp index 2f0cefb6..500a8691 100644 --- a/TriggerRewards/scripting/TriggerRewards.sp +++ b/TriggerRewards/scripting/TriggerRewards.sp @@ -2,7 +2,6 @@ #include #include #include -#include #include #pragma semicolon 1 @@ -118,4 +117,4 @@ public bool IsValidClient(int iClient) return false; return true; -} \ No newline at end of file +} diff --git a/Turret/scripting/Turret.sp b/Turret/scripting/Turret.sp index 18ef178f..670fcfde 100644 --- a/Turret/scripting/Turret.sp +++ b/Turret/scripting/Turret.sp @@ -1,4 +1,3 @@ -#include #include #include #include @@ -593,4 +592,4 @@ public void Cvar_Damage(ConVar convar, const char[] oldValue, const char[] newVa public void Cvar_TicksToSkip(ConVar convar, const char[] oldValue, const char[] newValue) { g_iTicksToSkip = convar.IntValue; -} \ No newline at end of file +} diff --git a/sourcebans/scripting/sourcebans.sp b/sourcebans/scripting/sourcebans.sp index 922b08f7..7f5d399d 100644 --- a/sourcebans/scripting/sourcebans.sp +++ b/sourcebans/scripting/sourcebans.sp @@ -1736,10 +1736,12 @@ public AdminsDone(Handle:owner, Handle:hndl, const String:error[], any:data) if (flags[i] < 'a' || flags[i] > 'z') continue; - if (g_FlagLetters[flags[i]-'a'] < Admin_Reservation) + int flag = flags[i]-'a'; + + if (g_FlagLetters[flag] < Admin_Reservation) continue; - SetAdminFlag(curAdm, g_FlagLetters[flags[i]-'a'], true); + SetAdminFlag(curAdm, g_FlagLetters[flag], true); } ++admCount; } @@ -1813,10 +1815,12 @@ public GroupsDone(Handle:owner, Handle:hndl, const String:error[], any:data) if (grpFlags[i] < 'a' || grpFlags[i] > 'z') continue; - if (g_FlagLetters[grpFlags[i]-'a'] < Admin_Reservation) + int flag = grpFlags[i]-'a'; + + if (g_FlagLetters[flag] < Admin_Reservation) continue; - SetAdmGroupAddFlag(curGrp, g_FlagLetters[grpFlags[i]-'a'], true); + SetAdmGroupAddFlag(curGrp, g_FlagLetters[flag], true); } // Set the group immunity. @@ -2554,7 +2558,7 @@ stock AdminFlag:CreateFlagLetters() stock AccountForLateLoading() { decl String:auth[30]; - for (new i = 1; i <= GetMaxClients(); i++) + for (new i = 1; i <= MaxClients; i++) { if (IsClientConnected(i) && !IsFakeClient(i)) { diff --git a/ze_boatescape6_remix_fix2/scripting/ze_boatescape6_remix_fix2.sp b/ze_boatescape6_remix_fix2/scripting/ze_boatescape6_remix_fix2.sp index 322c141d..b26224ca 100644 --- a/ze_boatescape6_remix_fix2/scripting/ze_boatescape6_remix_fix2.sp +++ b/ze_boatescape6_remix_fix2/scripting/ze_boatescape6_remix_fix2.sp @@ -1,6 +1,5 @@ #include #include -#include public Plugin myinfo = { @@ -11,17 +10,17 @@ public Plugin myinfo = url = "https://steamcommunity.com/id/n3ontm" } -new float:g_fOrigin_Button5[3]; -new Handle:g_hSparkTimer = INVALID_HANDLE; +float g_fOrigin_Button5[3]; +Handle g_hSparkTimer; public void VerifyMap() { - new String:currentMap[64]; + char currentMap[64]; GetCurrentMap(currentMap, sizeof(currentMap)); if (!StrEqual(currentMap, "ze_boatescape6_remix_fix2")) { char sFilename[256]; - GetPluginFilename(INVALID_HANDLE, sFilename, sizeof(sFilename)); + GetPluginFilename(null, sFilename, sizeof(sFilename)); ServerCommand("sm plugins unload %s", sFilename); } else @@ -86,13 +85,13 @@ public void OnMapStart() public void OnRoundEnd(Event hEvent, const char[] sEvent, bool bDontBroadcast) { - ClearTimer(g_hSparkTimer); + delete g_hSparkTimer; } public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast) { - ClearTimer(g_hSparkTimer); + delete g_hSparkTimer; SpawnSparkTimer(); SpawnSeagullRelay(); SpawnMathCounter1(); @@ -190,23 +189,33 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast) if (random == 1) { - g_fOrigin_Button5 = {993.05, 3072.5, 208.55}; + g_fOrigin_Button5[0] = 993.05; + g_fOrigin_Button5[1] = 3072.5; + g_fOrigin_Button5[2] = 208.55; } else if (random == 2) { - g_fOrigin_Button5 = {458.25, 3851.08, 227.18}; + g_fOrigin_Button5[0] = 458.25; + g_fOrigin_Button5[1] = 3851.08; + g_fOrigin_Button5[2] = 227.18; } else if (random == 3) { - g_fOrigin_Button5 = {-634.68, 3072.5, 477.13}; + g_fOrigin_Button5[0] = -634.68; + g_fOrigin_Button5[1] = 3072.5; + g_fOrigin_Button5[2] = 477.13; } else if (random == 4) { - g_fOrigin_Button5 = {-185.16, 1920.5, 977.74}; + g_fOrigin_Button5[0] = -185.16; + g_fOrigin_Button5[1] = 1920.5; + g_fOrigin_Button5[2] = 977.74; } else if (random == 5) { - g_fOrigin_Button5 = {770.91, 2496.5, 647.08}; + g_fOrigin_Button5[0] = 770.91; + g_fOrigin_Button5[1] = 2496.5; + g_fOrigin_Button5[2] = 647.08; } SpawnButton5(); @@ -249,15 +258,15 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast) -public Action SpawnScore1() +int SpawnScore1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_score")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_score_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_score_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_score_good"); @@ -268,15 +277,15 @@ public Action SpawnScore1() return Entity; } -public Action SpawnScore2() +int SpawnScore2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_score")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_score_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_score_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_score_bad"); @@ -287,16 +296,16 @@ public Action SpawnScore2() return Entity; } -public Action SpawnBadEndingTrigger() +int SpawnBadEndingTrigger() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_once")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_bad_ending_trigger"); @@ -339,14 +348,14 @@ public Action SpawnBadEndingTrigger() return Entity; } -public Action SpawnBossMove() +int SpawnBossMove() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_movelinear")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_movelinear"); @@ -365,10 +374,10 @@ public Action SpawnBossMove() return Entity; } -public Action SpawnBossParticle() +int SpawnBossParticle() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_particle_system")) == INVALID_ENT_REFERENCE) return -1; @@ -395,14 +404,14 @@ public Action SpawnBossParticle() return Entity; } -public Action SpawnBossProp() +int SpawnBossProp() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_prop"); @@ -423,14 +432,14 @@ public Action SpawnBossProp() } -public Action SpawnBossPhysbox() +int SpawnBossPhysbox() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_physbox")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_physbox_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_physbox_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_physbox"); @@ -452,14 +461,14 @@ public Action SpawnBossPhysbox() } -public Action SpawnBossHP() +int SpawnBossHP() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("math_counter")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_hp"); @@ -483,14 +492,14 @@ public Action SpawnBossHP() return Entity; } -public Action SpawnLaserTimer() +int SpawnLaserTimer() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("logic_timer")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_timer_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_timer_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_laser_timer"); @@ -511,16 +520,16 @@ public Action SpawnLaserTimer() } -public Action SpawnAmbientBoss1() +int SpawnAmbientBoss1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_entrance_sound"); @@ -537,16 +546,16 @@ public Action SpawnAmbientBoss1() return Entity; } -public Action SpawnAmbientBoss2() +int SpawnAmbientBoss2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_loss_sound"); @@ -563,16 +572,16 @@ public Action SpawnAmbientBoss2() return Entity; } -public Action SpawnLaserSound() +int SpawnLaserSound() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_laser_sound"); @@ -589,15 +598,15 @@ public Action SpawnLaserSound() return Entity; } -public Action SpawnBossLaserMove() +int SpawnBossLaserMove() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_movelinear")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_laser_movelinear"); @@ -612,16 +621,16 @@ public Action SpawnBossLaserMove() return Entity; } -public Action SpawnBossLaserProp(int random) +int SpawnBossLaserProp(int random) { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_laser_prop"); @@ -653,16 +662,16 @@ public Action SpawnBossLaserProp(int random) return Entity; } -public Action SpawnTriggerHurt(int random) +int SpawnTriggerHurt(int random) { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_hurt")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_hurt_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_hurt_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_boss_laser_hurt"); @@ -704,14 +713,14 @@ public Action SpawnTriggerHurt(int random) SetEntityModel(Entity, "models/zombieden/xmode/youmu/laser.mdl"); - new Float:minbounds[3] = {-100.25, -100.25, -1.25}; - new Float:maxbounds[3] = {100.25, -10.00, 1.25}; + float minbounds[3] = {-100.25, -100.25, -1.25}; + float maxbounds[3] = {100.25, -10.00, 1.25}; SetEntPropVector(Entity, Prop_Send, "m_vecMins", minbounds); SetEntPropVector(Entity, Prop_Send, "m_vecMaxs", maxbounds); SetEntProp(Entity, Prop_Send, "m_nSolidType", 2); - new enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); + int enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); enteffects |= 32; SetEntProp(Entity, Prop_Send, "m_fEffects", enteffects); @@ -731,7 +740,7 @@ public BadEndingCallback(const char[] output, int caller, int activator, float d AcceptEntityInput(move, "Open"); } -public GoodEndingCallback(const char[] output, int caller, int activator, float delay) +public void GoodEndingCallback(const char[] output, int caller, int activator, float delay) { g_hSparkTimer = CreateTimer(0.1, Sparks, INVALID_HANDLE, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE); @@ -752,15 +761,15 @@ public GoodEndingCallback(const char[] output, int caller, int activator, float public Action Sparks(Handle timer) { - new float:sparksOrigin[3]; + float sparksOrigin[3]; sparksOrigin[0] = GetRandomFloat(-1200.0, 2400.0); sparksOrigin[1] = GetRandomFloat(11000.0, 13000.0); sparksOrigin[2] = GetRandomFloat(270.0, 800.0); - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_particle_system")) == INVALID_ENT_REFERENCE) - return -1; + return Plugin_Stop; // Setup entity DispatchKeyValue(Entity, "targetname", "sparks"); @@ -774,24 +783,19 @@ public Action Sparks(Handle timer) AcceptEntityInput(Entity, "FireUser1"); if (Entity > 1800) - ClearTimer(g_hSparkTimer); + delete g_hSparkTimer; return Plugin_Continue; } -stock ClearTimer(&Handle:timer) +int SpawnSeagullRelay() { - delete timer; -} - -public Action SpawnSeagullRelay() -{ - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("logic_relay")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_relay_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_relay_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_logic_relay"); @@ -828,14 +832,14 @@ public Action SpawnSeagullRelay() } -public Action SpawnMathCounter1() +int SpawnMathCounter1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("math_counter")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_math_counter_1"); @@ -850,14 +854,14 @@ public Action SpawnMathCounter1() return Entity; } -public Action SpawnMathCounter2() +int SpawnMathCounter2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("math_counter")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "math_counter_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_math_counter_2"); @@ -943,16 +947,16 @@ public Action SpawnMathCounter2() return Entity; } -public Action SpawnAmbientAutism1() +int SpawnAmbientAutism1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_autism_sound_1"); @@ -969,16 +973,16 @@ public Action SpawnAmbientAutism1() return Entity; } -public Action SpawnAmbientAutism2() +int SpawnAmbientAutism2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_autism_sound_2"); @@ -995,14 +999,14 @@ public Action SpawnAmbientAutism2() return Entity; } -public Action SpawnSparkTimer() +int SpawnSparkTimer() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("logic_timer")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_timer_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "logic_timer_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_timer"); @@ -1015,18 +1019,18 @@ public Action SpawnSparkTimer() } -public Action SpawnButton1() +int SpawnButton1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); - new float:origin[3] = {-1367.45, -13184.5, 595.76}; + float origin[3] = {-1367.45, -13184.5, 595.76}; // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_1"); @@ -1041,14 +1045,14 @@ public Action SpawnButton1() return Entity; } -public Action SpawnFilter1() +int SpawnFilter1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_team")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_team_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_team_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_filter_1"); @@ -1062,18 +1066,18 @@ public Action SpawnFilter1() } -public Action SpawnParticle1() +int SpawnParticle1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_spark")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_sparks_1"); - new float:origin[3] = {-1367.45, -13184.5, 595.76}; + float origin[3] = {-1367.45, -13184.5, 595.76}; DispatchKeyValueVector(Entity, "origin", origin); DispatchKeyValue(Entity, "spawnflags", "128"); @@ -1083,14 +1087,14 @@ public Action SpawnParticle1() } -public Action SpawnGameText1() +int SpawnGameText1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_text")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_game_text_1"); @@ -1110,18 +1114,18 @@ public Action SpawnGameText1() } -public Action SpawnButton2() +int SpawnButton2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); - new float:origin[3] = {2164.52, -9216.5, 461.22}; + float origin[3] = {2164.52, -9216.5, 461.22}; // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_2"); @@ -1136,14 +1140,14 @@ public Action SpawnButton2() return Entity; } -public Action SpawnFilter2() +int SpawnFilter2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_filter_2"); @@ -1158,18 +1162,18 @@ public Action SpawnFilter2() } -public Action SpawnParticle2() +int SpawnParticle2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_spark")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_sparks_2"); - new float:origin[3] = {2164.52, -9216.5, 461.22}; + float origin[3] = {2164.52, -9216.5, 461.22}; DispatchKeyValueVector(Entity, "origin", origin); DispatchKeyValue(Entity, "spawnflags", "128"); @@ -1179,14 +1183,14 @@ public Action SpawnParticle2() } -public Action SpawnGameText2() +int SpawnGameText2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_text")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_game_text_2"); @@ -1206,18 +1210,18 @@ public Action SpawnGameText2() } -public Action SpawnButton3() +int SpawnButton3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); - new float:origin[3] = {550.45, 1023.5, 96.29}; + float origin[3] = {550.45, 1023.5, 96.29}; // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_3"); @@ -1232,14 +1236,14 @@ public Action SpawnButton3() return Entity; } -public Action SpawnFilter3() +int SpawnFilter3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_filter_3"); @@ -1254,18 +1258,18 @@ public Action SpawnFilter3() } -public Action SpawnParticle3() +int SpawnParticle3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_spark")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_sparks_3"); - new float:origin[3] = {550.45, 1023.5, 96.29}; + float origin[3] = {550.45, 1023.5, 96.29}; DispatchKeyValueVector(Entity, "origin", origin); DispatchKeyValue(Entity, "spawnflags", "128"); @@ -1275,14 +1279,14 @@ public Action SpawnParticle3() } -public Action SpawnGameText3() +int SpawnGameText3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_text")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_game_text_3"); @@ -1302,18 +1306,18 @@ public Action SpawnGameText3() } -public Action SpawnButton4() +int SpawnButton4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); - new float:origin[3] = {505.46, 1152.5, 473.15}; + float origin[3] = {505.46, 1152.5, 473.15}; // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_4"); @@ -1328,14 +1332,14 @@ public Action SpawnButton4() return Entity; } -public Action SpawnFilter4() +int SpawnFilter4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_filter_4"); @@ -1350,18 +1354,18 @@ public Action SpawnFilter4() } -public Action SpawnParticle4() +int SpawnParticle4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_spark")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_sparks_4"); - new float:origin[3] = {505.46, 1152.5, 473.15}; + float origin[3] = {505.46, 1152.5, 473.15}; DispatchKeyValueVector(Entity, "origin", origin); DispatchKeyValue(Entity, "spawnflags", "128"); @@ -1371,14 +1375,14 @@ public Action SpawnParticle4() } -public Action SpawnGameText4() +int SpawnGameText4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_text")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_game_text_4"); @@ -1398,16 +1402,16 @@ public Action SpawnGameText4() } -public Action SpawnButton5() +int SpawnButton5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_5"); @@ -1422,14 +1426,14 @@ public Action SpawnButton5() return Entity; } -public Action SpawnFilter5() +int SpawnFilter5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_filter_5"); @@ -1445,14 +1449,14 @@ public Action SpawnFilter5() } -public Action SpawnParticle5() +int SpawnParticle5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_spark")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_spark_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_sparks_5"); @@ -1465,14 +1469,14 @@ public Action SpawnParticle5() } -public Action SpawnGameText5() +int SpawnGameText5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("game_text")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "game_text_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_button_game_text_5"); @@ -1492,16 +1496,16 @@ public Action SpawnGameText5() } -public Action SpawnTriggerTeleport() +int SpawnTriggerTeleport() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_teleport")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_teleport_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_teleport_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_teleport"); @@ -1516,16 +1520,16 @@ public Action SpawnTriggerTeleport() return Entity; } -public Action SpawnTeleportDestination() +int SpawnTeleportDestination() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_teleport_destination")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_teleport_destination_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_teleport_destination_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_teleport_destination"); @@ -1537,14 +1541,14 @@ public Action SpawnTeleportDestination() return Entity; } -public Action SpawnSeagull() +int SpawnSeagull() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_seagull"); @@ -1563,16 +1567,16 @@ public Action SpawnSeagull() } -public Action SpawnAmbientSeagull() +int SpawnAmbientSeagull() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "seagull_sound"); @@ -1589,14 +1593,14 @@ public Action SpawnAmbientSeagull() return Entity; } -public Action SpawnSeagullClock() +int SpawnSeagullClock() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_seagull_clock"); @@ -1616,14 +1620,14 @@ public Action SpawnSeagullClock() } -public Action SpawnSeagullMove() +int SpawnSeagullMove() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_movelinear")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_movelinear_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_seagull_movelinear"); @@ -1638,14 +1642,14 @@ public Action SpawnSeagullMove() } -public Action SpawnFilterEnding() +int SpawnFilterEnding() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_ending_filter"); @@ -1657,14 +1661,14 @@ public Action SpawnFilterEnding() return Entity; } -public Action SpawnPlatform1() +int SpawnPlatform1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_1"); @@ -1684,14 +1688,14 @@ public Action SpawnPlatform1() } -public Action SpawnPlatform2() +int SpawnPlatform2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_2"); @@ -1711,14 +1715,14 @@ public Action SpawnPlatform2() } -public Action SpawnPlatform3() +int SpawnPlatform3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_3"); @@ -1738,14 +1742,14 @@ public Action SpawnPlatform3() } -public Action SpawnPlatform4() +int SpawnPlatform4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_4"); @@ -1765,14 +1769,14 @@ public Action SpawnPlatform4() } -public Action SpawnPlatform5() +int SpawnPlatform5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_5"); @@ -1792,14 +1796,14 @@ public Action SpawnPlatform5() } -public Action SpawnPlatform6() +int SpawnPlatform6() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_platform_1"); @@ -1819,14 +1823,14 @@ public Action SpawnPlatform6() } -public Action SpawnPillar1() +int SpawnPillar1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_1"); @@ -1847,14 +1851,14 @@ public Action SpawnPillar1() } -public Action SpawnPillarLight1() +int SpawnPillarLight1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_light_1"); @@ -1874,14 +1878,14 @@ public Action SpawnPillarLight1() } -public Action SpawnPillarParticle1() +int SpawnPillarParticle1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_particle_system")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_particle_1"); @@ -1894,14 +1898,14 @@ public Action SpawnPillarParticle1() } -public Action SpawnPillar2() +int SpawnPillar2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_2"); @@ -1921,14 +1925,14 @@ public Action SpawnPillar2() } -public Action SpawnPillarLight2() +int SpawnPillarLight2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_light_2"); @@ -1948,14 +1952,14 @@ public Action SpawnPillarLight2() } -public Action SpawnPillarParticle2() +int SpawnPillarParticle2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_particle_system")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_particle_2"); @@ -1968,14 +1972,14 @@ public Action SpawnPillarParticle2() } -public Action SpawnPillar3() +int SpawnPillar3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_3"); @@ -1995,14 +1999,14 @@ public Action SpawnPillar3() } -public Action SpawnPillarLight3() +int SpawnPillarLight3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_light_3"); @@ -2022,14 +2026,14 @@ public Action SpawnPillarLight3() } -public Action SpawnPillarParticle3() +int SpawnPillarParticle3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_particle_system")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_particle_system_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_pillar_particle_3"); @@ -2042,15 +2046,15 @@ public Action SpawnPillarParticle3() } -public Action SpawnExplosion1() +int SpawnExplosion1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_explosion")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_explosion_1"); @@ -2066,15 +2070,15 @@ public Action SpawnExplosion1() } -public Action SpawnExplosion2() +int SpawnExplosion2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_explosion")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_explosion_2"); @@ -2090,15 +2094,15 @@ public Action SpawnExplosion2() } -public Action SpawnExplosion3() +int SpawnExplosion3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_explosion")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_explosion_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_explosion_3"); @@ -2114,16 +2118,16 @@ public Action SpawnExplosion3() } -public Action SpawnAmbientGenericExplosion1() +int SpawnAmbientGenericExplosion1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "explosion_sound_1"); @@ -2142,16 +2146,16 @@ public Action SpawnAmbientGenericExplosion1() return Entity; } -public Action SpawnAmbientGenericExplosion2() +int SpawnAmbientGenericExplosion2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "explosion_sound_2"); @@ -2170,16 +2174,16 @@ public Action SpawnAmbientGenericExplosion2() return Entity; } -public Action SpawnAmbientGenericExplosion3() +int SpawnAmbientGenericExplosion3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("ambient_generic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "ambient_generic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "explosion_sound_3"); @@ -2198,14 +2202,14 @@ public Action SpawnAmbientGenericExplosion3() return Entity; } -public Action SpawnOrangeFinal() +int SpawnOrangeFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_orange_final"); @@ -2224,14 +2228,14 @@ public Action SpawnOrangeFinal() } -public Action SpawnBananaFinal() +int SpawnBananaFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_banana_final"); @@ -2250,14 +2254,14 @@ public Action SpawnBananaFinal() } -public Action SpawnMelonFinal() +int SpawnMelonFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_melon_final"); @@ -2276,14 +2280,14 @@ public Action SpawnMelonFinal() } -public Action SpawnTeleportFinal() +int SpawnTeleportFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_teleport_prop"); @@ -2302,14 +2306,14 @@ public Action SpawnTeleportFinal() } -public Action SpawnBeam1() +int SpawnBeam1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_1"); @@ -2327,14 +2331,14 @@ public Action SpawnBeam1() } -public Action SpawnBeam2() +int SpawnBeam2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_2"); @@ -2352,14 +2356,14 @@ public Action SpawnBeam2() } -public Action SpawnBeam3() +int SpawnBeam3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_3"); @@ -2377,14 +2381,14 @@ public Action SpawnBeam3() } -public Action SpawnBeam4() +int SpawnBeam4() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_4"); @@ -2403,14 +2407,14 @@ public Action SpawnBeam4() } -public Action SpawnBeam5() +int SpawnBeam5() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_5"); @@ -2429,14 +2433,14 @@ public Action SpawnBeam5() } -public Action SpawnBeam6() +int SpawnBeam6() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_6"); @@ -2455,14 +2459,14 @@ public Action SpawnBeam6() } -public Action SpawnBeam7() +int SpawnBeam7() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_beam_7"); @@ -2481,16 +2485,16 @@ public Action SpawnBeam7() } -public Action SpawnButtonFinal1() +int SpawnButtonFinal1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_final_button_1"); @@ -2508,16 +2512,16 @@ public Action SpawnButtonFinal1() return Entity; } -public Action SpawnButtonFinal2() +int SpawnButtonFinal2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_final_button_2"); @@ -2535,16 +2539,16 @@ public Action SpawnButtonFinal2() return Entity; } -public Action SpawnButtonFinal3() +int SpawnButtonFinal3() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_button")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_button_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_final_button_3"); @@ -2563,14 +2567,14 @@ public Action SpawnButtonFinal3() return Entity; } -public Action SpawnOrange() +int SpawnOrange() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_physics")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "orange"); @@ -2592,14 +2596,14 @@ public Action SpawnOrange() } -public Action SpawnBanana() +int SpawnBanana() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_physics")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "banana"); @@ -2621,14 +2625,14 @@ public Action SpawnBanana() } -public Action SpawnMelon() +int SpawnMelon() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_physics")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_physics_multiplayer_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "melon"); @@ -2650,16 +2654,16 @@ public Action SpawnMelon() } -public Action SpawnRotating() +int SpawnRotating() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_rotating")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_rotating_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_rotating_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_rotating"); @@ -2671,25 +2675,25 @@ public Action SpawnRotating() ActivateEntity(Entity); SetEntityModel(Entity, "models/effects/vol_light64x256.mdl"); - new Float:minbounds[3] = {-100.25, -100.25, -10.0}; - new Float:maxbounds[3] = {100.25, 100.25, 10.0}; + float minbounds[3] = {-100.25, -100.25, -10.0}; + float maxbounds[3] = {100.25, 100.25, 10.0}; SetEntPropVector(Entity, Prop_Send, "m_vecMins", minbounds); SetEntPropVector(Entity, Prop_Send, "m_vecMaxs", maxbounds); SetEntProp(Entity, Prop_Send, "m_nSolidType", 2); - new enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); + int enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); enteffects |= 32; SetEntProp(Entity, Prop_Send, "m_fEffects", enteffects); return Entity; } -public Action SpawnRotatingOrange() +int SpawnRotatingOrange() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_orange_rotating"); @@ -2708,14 +2712,14 @@ public Action SpawnRotatingOrange() } -public Action SpawnRotatingBanana() +int SpawnRotatingBanana() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_banana_rotating"); @@ -2734,14 +2738,14 @@ public Action SpawnRotatingBanana() } -public Action SpawnRotatingMelon() +int SpawnRotatingMelon() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_melon_rotating"); @@ -2760,14 +2764,14 @@ public Action SpawnRotatingMelon() } -public Action SpawnRotatingMelonBeam() +int SpawnRotatingMelonBeam() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_melon_rotating_beam"); @@ -2786,16 +2790,16 @@ public Action SpawnRotatingMelonBeam() } -public Action SpawnTriggerTeleportFinal() +int SpawnTriggerTeleportFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_teleport")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_teleport_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_teleport_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_teleport_final"); @@ -2814,16 +2818,16 @@ public Action SpawnTriggerTeleportFinal() return Entity; } -public Action SpawnTeleportDestinationFinal() +int SpawnTeleportDestinationFinal() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("info_teleport_destination")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_teleport_destination_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "info_teleport_destination_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_teleport_destination_final"); @@ -2835,16 +2839,16 @@ public Action SpawnTeleportDestinationFinal() return Entity; } -public Action SpawnItemTrigger1() +int SpawnItemTrigger1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_once")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_trigger1"); @@ -2862,16 +2866,16 @@ public Action SpawnItemTrigger1() return Entity; } -public Action SpawnItemTrigger2() +int SpawnItemTrigger2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_once")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_once_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_trigger2"); @@ -2890,16 +2894,16 @@ public Action SpawnItemTrigger2() } -public Action SpawnNameReset() +int SpawnNameReset() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_multiple")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_name_reset"); @@ -2914,16 +2918,16 @@ public Action SpawnNameReset() return Entity; } -public Action SpawnNameResetZM1() +int SpawnNameResetZM1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_multiple")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_name_reset_zm"); @@ -2939,16 +2943,16 @@ public Action SpawnNameResetZM1() return Entity; } -public Action SpawnNameResetZM2() +int SpawnNameResetZM2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("trigger_multiple")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "trigger_multiple_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_name_reset_zm"); @@ -2964,14 +2968,14 @@ public Action SpawnNameResetZM2() return Entity; } -public Action SpawnFilterZM() +int SpawnFilterZM() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_team")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_team_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_team_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_filter_zm"); @@ -2983,14 +2987,14 @@ public Action SpawnFilterZM() } -public Action SpawnItemFilter() +int SpawnItemFilter() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("filter_activator_name")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "filter_activator_name_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_filter"); @@ -3002,14 +3006,14 @@ public Action SpawnItemFilter() return Entity; } -public Action SpawnItemPlatform1() +int SpawnItemPlatform1() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "item_platform_1"); @@ -3029,14 +3033,14 @@ public Action SpawnItemPlatform1() } -public Action SpawnItemPlatform2() +int SpawnItemPlatform2() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "item_platform_2"); @@ -3056,14 +3060,14 @@ public Action SpawnItemPlatform2() } -public Action SpawnItemElite() +int SpawnItemElite() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("weapon_deagle")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "weapon_deagle_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "weapon_deagle_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_deagle"); @@ -3079,16 +3083,16 @@ public Action SpawnItemElite() } -public Action SpawnItemRotating() +int SpawnItemRotating() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("func_rotating")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_rotating_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "func_rotating_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_rotating"); @@ -3101,25 +3105,25 @@ public Action SpawnItemRotating() ActivateEntity(Entity); SetEntityModel(Entity, "models/effects/vol_light64x256.mdl"); - new Float:minbounds[3] = {-100.25, -100.25, -10.0}; - new Float:maxbounds[3] = {100.25, 100.25, 10.0}; + float minbounds[3] = {-100.25, -100.25, -10.0}; + float maxbounds[3] = {100.25, 100.25, 10.0}; SetEntPropVector(Entity, Prop_Send, "m_vecMins", minbounds); SetEntPropVector(Entity, Prop_Send, "m_vecMaxs", maxbounds); SetEntProp(Entity, Prop_Send, "m_nSolidType", 2); - new enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); + int enteffects = GetEntProp(Entity, Prop_Send, "m_fEffects"); enteffects |= 32; SetEntProp(Entity, Prop_Send, "m_fEffects", enteffects); return Entity; } -public Action SpawnItemRotatingOrange() +int SpawnItemRotatingOrange() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_orange_rotating"); @@ -3138,14 +3142,14 @@ public Action SpawnItemRotatingOrange() } -public Action SpawnItemRotatingBanana() +int SpawnItemRotatingBanana() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_banana_rotating"); @@ -3164,14 +3168,14 @@ public Action SpawnItemRotatingBanana() } -public Action SpawnItemRotatingMelon() +int SpawnItemRotatingMelon() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_melon_rotating"); @@ -3190,14 +3194,14 @@ public Action SpawnItemRotatingMelon() } -public Action SpawnItemRotatingMelonBeam() +int SpawnItemRotatingMelonBeam() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("prop_dynamic_override")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "prop_dynamic_override_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_melon_rotating_beam"); @@ -3217,14 +3221,14 @@ public Action SpawnItemRotatingMelonBeam() } -public Action SpawnItemBeam() +int SpawnItemBeam() { - new Entity; + int Entity; // Spawn dynamic prop entity if ((Entity = CreateEntityByName("env_beam")) == INVALID_ENT_REFERENCE) return -1; // Generate unique id for the entity - new String:StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); + char StrEntityName[64]; Format(StrEntityName, sizeof(StrEntityName), "env_beam_%i", Entity); // Setup entity DispatchKeyValue(Entity, "targetname", "secret_item_beam");