Raised This Month: $350 Target: $400
 87%   Almost there!

[L4D2] Nuke - v1.5 | The City Will Get Nuked After Countdown Time Passes


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alasfourom
Senior Member
Join Date: Feb 2022
Plugin ID:
8133
Plugin Version:
1.4
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    City Will Be Nuked After Countdown Time Passes
    Old 07-24-2022 , 21:16   [L4D2] Nuke - v1.5 | The City Will Get Nuked After Countdown Time Passes
    Reply With Quote #1

    About:
    • A missile was launched by the government to stop the virus spread
    • The countdown will start after the survivors leave the saferoom
    • The only way to stop the countdown is by reaching the check point


    Description:
    • Nuke countdown will start as soon as a survivor leaves the saferoom, when time reaches ZERO, survivors will be nuked, with explosions and white fading effect, and then players will be incapped and slayed later on. Countdown only stop when a survivor reaches the check point.


    Thanks:
    • Grey83: Rewrote the whole script, and fixed errors
    • honorcode23 (l4d2_custom_commands): Since explosion script was taken from it
    • Peace-Maker: Understanding the concept of fading
    • Silvers: For F18 Airstrikes Plugin (modified by SupermenCJ) Multiple script fixes, and fixed a bug


    Video:

    Commands:
    • sm_nuke > Print Nuke Countdown To Players


    Cvars:
    • A file named "L4D2_Nuke.cfg" will be created in "\cfg\sourcemod" folder.

    PHP Code:
    // This file was auto-generated by SourceMod (v1.11.0.6884)
    // ConVars for plugin "L4D2_Nuke.smx"


    // Enable L4D2 Nuke Plugin
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_enable "1"

    // Set The Time In Seconds At Which Players Will Be Nuked
    // -
    // Default: "600.0"
    // Minimum: "1.000000"
    // Maximum: "5400.000000"
    l4d2_nuke_timer "600.0"

    // At What Time In Seconds You Want The Hint Text Announcement To Be Displayed
    // -
    // Default: "90.0"
    // Minimum: "0.000000"
    // Maximum: "5400.000000"
    l4d2_nuke_announcer "90.0"

    // Allow Nuke Plugin At Finals Only
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_finals "1"

    // Pausing Nuke Countdown When A Survivor Reaches The Check Point
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_pause "1"

    // Allow Explosion Effect When Players Are Nuked [ Disable If The Explosion Crashes Your Game ]
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_explosion "1"

    // Allow White Fading Effect When Players Are Nuked
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_fade "1"

    // Display Nuke Warning Text When Players Leave Saferoom
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_nuke_warning "1" 

    Requirements:
    • None


    Versions:
    • For the main plugin L4D2_Nuke.smx > This one is tested and is working fine, but not using the F18 Airstrike
    • For L4D2_Nuke_v2.0.smx > This version was untested enough, it combined f18 Airstrike plugin by Silvers


    Installation:
    • Put the "L4D2_Nuke.smx" file in your "\addons\sourcemod\plugins" folder.
    • If you are planning to use "L4D2_Nuke_v2.0.smx" you need to remove the old plugin (L4D2_Nuke.smx located in "\addons\sourcemod\plugins" folder) and the old cfg file (L4D2_Nuke.cfg located in "\addons\sourcemod\plugins" folder), then put the new "L4D2_Nuke_v2.0.smx" in "\addons\sourcemod\plugins" folder.


    Updates:
    Code:
    • 06/9/2022 > Version 2.0: Added a test version, combied with Silvers F18 Airstrike plugin
    • 02/8/2022 > Version 1.5: Added a new cvar to allow plugin only at final maps
    • 31/7/2022 > Version 1.4: Added a new cvar requested by MedicDTI
    • 31/7/2022 > Version 1.3: Multiple countless fixes by Silvers
    • 30/7/2022 > Version 1.2.4: Thanks To Silvers, fixed a bug
    • 30/7/2022 > Version 1.2.3: Added a new cvar to enable/disable plugin, fixed a bug
    • 28/7/2022 > Version 1.2.2: Tried to fix a bug, Thanks Grey83
    • 26/7/2022 > Version 1.2.1: Changed the method to incap players to "SDKHooks_TakeDamage"
    • 26-7-2022 > Version 1.2: Added fading effect, incap players Before slaying to be more realastic and added 2 more cvars
    • 26-7-2022 > Version 1.1: Fixed announcement timer
    • 24-7-2022 > Version 1.0: Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (L4D2_Nuke.sp - 291 views - 11.2 KB)
    File Type: sp Get Plugin or Get Source (L4D2_Nuke_v2.0.sp - 27 views - 31.8 KB)

    Last edited by alasfourom; 09-07-2022 at 18:14. Reason: Updated
    alasfourom is offline
    Omixsat
    Junior Member
    Join Date: Jul 2022
    Old 07-24-2022 , 21:31   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #2

    A must have for Resident Evil custom campaigns(for added realism, obviously). I can finally get nuked while being chased by Mr. X (tank).
    Omixsat is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 07-24-2022 , 21:35   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #3

    I don't know if it happens only to me but after everyone dies when restarting the map it no longer works and no errors in the log
    user2000 is offline
    alasfourom
    Senior Member
    Join Date: Feb 2022
    Old 07-24-2022 , 22:30   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #4

    Quote:
    Originally Posted by user2000 View Post
    I don't know if it happens only to me but after everyone dies when restarting the map it no longer works and no errors in the log
    Can you confirm now, its working fine for me
    alasfourom is offline
    alasfourom
    Senior Member
    Join Date: Feb 2022
    Old 07-24-2022 , 22:31   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #5

    Quote:
    Originally Posted by Omixsat View Post
    A must have for Resident Evil custom campaigns(for added realism, obviously). I can finally get nuked while being chased by Mr. X (tank).
    Well, I gotta say, the idea was coming from RE3
    alasfourom is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 07-24-2022 , 22:54   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #6

    A long time ago, I found a similar function elsewhere. It's just that the author can't use it without updating. He supports L4D/L4D2.
    The specific functions are as follows: when the player leaves the safe house, the countdown starts. If the player reaches the safe house within the specified time, he will be protected, and the player who does not reach the safe house after the time expires will start to bleed until he falls. Bleeding will also start when you exit the safe house after the countdown is over.
    __________________
    My English needs translation
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 07-24-2022 , 23:07   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #7

    Can you show a video?
    KRUTIK is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 07-25-2022 , 06:09   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #8

    Quote:
    Originally Posted by KRUTIK View Post
    Can you show a video?
    https://ip-gamers.net/downloads/2022...51839c79ab.mp4
    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 07-25-2022 , 10:03   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #9

    Quote:
    Originally Posted by L4D2Noob View Post
    Thanks for the video, look like a funny plugin
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    alasfourom
    Senior Member
    Join Date: Feb 2022
    Old 07-25-2022 , 11:55   Re: [L4D2] Nuke - City Will Be Nuked After Countdown Time Passes
    Reply With Quote #10

    Quote:
    Originally Posted by L4D2Noob View Post
    Thank you for the demo
    alasfourom is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:23.


    Powered by vBulletin®
    Copyright ©2000 - 2022, vBulletin Solutions, Inc.
    Theme made by Freecode