diff --git a/dist/addons/sourcemod/plugins/empfun.smx b/dist/addons/sourcemod/plugins/empfun.smx index 154d23576b54853bca22cbfd6ceeb41d0a735714..ce7834d5e70ff844906d40285dc8209df603ae76 100644 Binary files a/dist/addons/sourcemod/plugins/empfun.smx and b/dist/addons/sourcemod/plugins/empfun.smx differ diff --git a/dist/addons/sourcemod/scripting/empfun.sp b/dist/addons/sourcemod/scripting/empfun.sp index 104088ef0886557b3997a688d0d529a60a91fb50..f0a2f146c754296d1ad8f2b2c29ba8bb2e530572 100644 --- a/dist/addons/sourcemod/scripting/empfun.sp +++ b/dist/addons/sourcemod/scripting/empfun.sp @@ -9,7 +9,7 @@ #include -#define PluginVersion "1.01" +#define PluginVersion "1.02" float pVersion; // note linearmap field is unstable diff --git a/dist/addons/sourcemod/scripting/empfun/funcs.sp b/dist/addons/sourcemod/scripting/empfun/funcs.sp index 1d8dbf0ff9e8f919f42a53842df74caef73209ee..7236b79bd5abc0182821dace2ae1c0fc2bdc5817 100644 --- a/dist/addons/sourcemod/scripting/empfun/funcs.sp +++ b/dist/addons/sourcemod/scripting/empfun/funcs.sp @@ -854,7 +854,8 @@ public Action Timer_TextTimer(Handle timer,DataPack dataPack1) DataPackPos packPos = GetPackPosition(dataPack1); int time = ReadPackCell(dataPack1); - time --; + if(EU_HasGameStarted()) + time --; char timeString[8]; FormatSeconds(time,timeString,sizeof(timeString)); diff --git a/dist/scenarios/emp_duststorm/mik_artifact.snr b/dist/scenarios/emp_duststorm/mik_artifact.snr index 05fd3d54458fbda299739989efea42fc82207413..1ae4888c4cea37183a62f7e5a112756f6db67546 100644 --- a/dist/scenarios/emp_duststorm/mik_artifact.snr +++ b/dist/scenarios/emp_duststorm/mik_artifact.snr @@ -6,12 +6,13 @@ "BE_Tickets" "402.000000" "Scripts" { - "OnScenarioLoaded" "Run Introduction Introduction2" + "OnScenarioLoaded" "Run Introduction Introduction2 Setup" "Introduction" "After 60 -> ChatText *Gen. Strickland:TXTCLR_DF Listen up, the artifact in the ruins will provide us an enormous technological advantage in the war to come* *Gen. Mendez:TXTCLR_DF Intel has detected an artifact in the south east ruins with enormous strategic value* **" "Introduction2" "After 65 -> ChatText *Gen. Strickland:TXTCLR_DF Our objective is clear, defend the artifact at any cost.* *Gen. Mendez:TXTCLR_DF Our objective is clear, destroy the artifact at any cost.* **" - "OnGameStart" "TargetName artifact -> AddDamageFilter NoTeamDamage -> Run ObjectiveTimer Warning DestroyTrigger AirStrikeExec1 AirStrikeExec2 SmartIdeas AirStrikeExec3" + "Setup" "TargetName artifact -> AddDamageFilter NoTeamDamage -> Run ObjectiveTimer DestroyTrigger" "ObjectiveTimer" "TextTimer 1200 *Defend The Artifact\TIME_LEFT $[m_iHealth]HP* *Destroy The Artifact\TIME_LEFT $[m_iHealth]HP* -> TargetParams -> Input InputNFWin 0 EndActivator" "DestroyTrigger" "OnOutput OnBreak -> TargetParams -> Input InputImpWin 0 EndActivator" + "OnGameStart" "Run Warning AirStrikeExec1 AirStrikeExec2 SmartIdeas AirStrikeExec3" "Warning" "After 400 -> ChatText *Gen. Strickland:TXTCLR_DF Intel has revealed that the enemy are planning airstrikes on key buildings at our location. Don't take any defences for granted!* *Gen. Mendez:TXTCLR_DF Be alert, We have allied bombers in the area which will deliver precision airstrikes on enemy targets* **" "AirStrikeExec1" "After 600 -> TargetClassname emp_building_radar 2-> Run AircraftEffect -> SetHealth 0 -> After 2 -> Run AirStrikeNotice1 -> After 10 -> Input Kill" "AirStrikeNotice1" "ChatText *Gen. Strickland:TXTCLR_DF Oh no! Our radar has just been taken out by a precision airstrike!* *Gen. Mendez:TXTCLR_DF Great news! A precision allied airstrike has just taken out the enemy radar! *" diff --git a/dist/updater.txt b/dist/updater.txt index 1e4c8b836de5ad597aef724d4efc87920a58fe44..a1e1e21e51eea1a6101088d9281d42f94de15f7d 100644 --- a/dist/updater.txt +++ b/dist/updater.txt @@ -4,7 +4,7 @@ { "Version" { - "Latest" "1.01" + "Latest" "1.02" } }