Raised This Month: $32 Target: $400
 8% 

[ANY] Virus Infection [Updated 16-Mar-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
6984
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin simulate a virus infection
    Old 03-15-2020 , 13:57   [ANY] Virus Infection [Updated 16-Mar-2020]
    Reply With Quote #1

    Description:

    This plugin simulate a virus infection.

    Idea by https://forums.alliedmods.net/showthread.php?t=321894


    Commands:

    sm_givevirus <name> - for give the virus to someone (Required admin flag ban "d" for use).
    sm_removevirus <name> - for remove the virus to someone (Required admin flag ban "d" for use).


    Cvars:
    Configure the file sm_virus.cfg generated on cfg/sourcemod on the first load.
    Code:
    // Seconds that you need to stay in a quarantine zone for be healed.
    // -
    // Default: "60.0"
    sm_virus_quarantine_time "60.0"
    
    // Chance of share virus.
    // -
    // Default: "10"
    sm_virus_share_chance "10"
    
    // Chance of share virus when you cough.
    // -
    // Default: "60"
    sm_virus_share_chancecough "60"
    
    // Seconds for have the blind effect.
    // -
    // Default: "5.0"
    sm_virus_time_blind "5.0"
    
    // Each X seconds for have the virus effects.
    // -
    // Default: "30.0"
    sm_virus_time_effects "30.0"
    
    // Each X seconds for share the virus.
    // -
    // Default: "5.0"
    sm_virus_time_share "5.0"
    
    // Seconds for start to know that you have virus.
    // -
    // Default: "60.0"
    sm_virus_time_start "60.0"
    
    // virus plugin version.
    // -
    // Default: "0.2 pre alpha"
    sm_virus_version "0.2 pre alpha"
    
    // Damage that produce virus when you have the effects.
    // -
    // Default: "5"
    sm_virus_virus_damage "5"
    
    // Distance min for share virus to someone.
    // -
    // Default: "100.0"
    sm_virus_virus_distance "100.0"

    Requeriment (optional):

    Devzones plugin for create a zone with the prefix "safezone" that will be use as quarantine zone.
    On TF2 it will detect the respawn room as quarantine zone.


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 03-16-2020 at 05:12.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    rengo
    Member
    Join Date: Jun 2015
    Old 03-15-2020 , 14:28   Re: [ANY] CoronaVirus Infection (Covid19)
    Reply With Quote #2

    works on tf2?
    __________________
    rengo is offline
    Send a message via AIM to rengo
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-15-2020 , 14:55   Re: [ANY] CoronaVirus Infection (Covid19)
    Reply With Quote #3

    Quote:
    Originally Posted by rengo View Post
    works on tf2?
    I only tested this on csgo but it should work on tf2.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-15-2020 , 14:55   Re: [ANY] CoronaVirus Infection (Covid19)
    Reply With Quote #4

    Version 1.1

    -Now you dont share infection on safe zones.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-15-2020 , 15:40   Re: [ANY] CoronaVirus Infection (Covid19) [Updated 15-Mar-2020]
    Reply With Quote #5

    Version 1.2

    -Fixed log errors.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    DruGzOG
    Veteran Member
    Join Date: Nov 2007
    Location: Unknown
    Old 03-15-2020 , 16:27   Re: [ANY] CoronaVirus Infection (Covid19) [Updated 15-Mar-2020]
    Reply With Quote #6

    Quote:
    Originally Posted by Franc1sco View Post
    @DruGzOG

    Why nobody said that before in that thread? https://forums.alliedmods.net/showthread.php?t=321894

    Also unless a forum moderator say something, my intention is continue developing this.
    Surprised this thread wasn't carried out to SourceMod, but it is insensitive: https://forums.alliedmods.net/showthread.php?t=55692
    __________________

    Last edited by DruGzOG; 03-15-2020 at 16:27.
    DruGzOG is offline
    Send a message via AIM to DruGzOG
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-15-2020 , 16:29  
    Reply With Quote #7

    Okay i will change the name of the plugin then.

    Quote:
    Originally Posted by Lannister View Post

    Keep up the good work brudda, i love it
    <3

    Changed name, cvars and all.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by asherkin; 03-16-2020 at 14:19.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 03-16-2020 , 03:58   Re: [ANY] Virus Infection [Updated 15-Mar-2020]
    Reply With Quote #8

    Great work so far. Tested on TF2. No errors.

    Notes:
    1. Once I was infected I didn't seem to have any effect on any other player.
    2. The plugin didn't recognize the respawn room as a safe quarantine zone.

    Here are a couple of TF2 plugins that know when a player is in or out of a respawn room. Maybe the coding will help:
    a. Smarter Spawns by Darth Ninja: https://forums.alliedmods.net/showthread.php?t=185409
    b. Respawn Room Music by Leonardo: https://forums.alliedmods.net/showthread.php?t=229366
    PC Gamer is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-16-2020 , 05:10   Re: [ANY] Virus Infection [Updated 15-Mar-2020]
    Reply With Quote #9

    Quote:
    Originally Posted by PC Gamer View Post
    Great work so far. Tested on TF2. No errors.

    Notes:
    1. Once I was infected I didn't seem to have any effect on any other player.
    2. The plugin didn't recognize the respawn room as a safe quarantine zone.

    Here are a couple of TF2 plugins that know when a player is in or out of a respawn room. Maybe the coding will help:
    a. Smarter Spawns by Darth Ninja: https://forums.alliedmods.net/showthread.php?t=185409
    b. Respawn Room Music by Leonardo: https://forums.alliedmods.net/showthread.php?t=229366
    Version 1.3

    -In TF2 recognize the respawn room as a safe quarantine zone.


    About the point 1. i dont see something wrong, it works well on csgo and it should be the same on TF2. You tried to change the distance and chance values? anyway, if still dont work for you, you are welcome to add me on steam for help me to to test it in a TF2 server.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    foxhound27
    AlliedModders Donor
    Join Date: Sep 2019
    Location: Argentina
    Old 03-16-2020 , 07:34   Re: [ANY] Virus Infection [Updated 16-Mar-2020]
    Reply With Quote #10

    Hahaha nice work bro i added to my boxes for L4D2 its fun, also replaced the sound to

    PHP Code:
    EmitSoundToAll("player/survivor/voice/choke_5.wav"client); 
    anyway ppl on my server love it lol very fun thx

    Last edited by foxhound27; 03-16-2020 at 07:35.
    foxhound27 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 11:40.


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