Raised This Month: $ Target: $400
 0% 

[L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7363
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    Teleports scavenge gascans back to their spawn position after a while
    Old 11-03-2020 , 15:16   [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #1

    L4D2 ONLY

    Description

    This plugin teleports scavenge gascans back to their spawn position after a while.

    Useful when the gascan goes to unreachable places. Can also be used to make the game harder.

    Features
    • Allow configuring how far from the spawn position the scavenge gascan should be to teleport.
    • Allow configuring how long to wait to teleport

    Cvars

    A configuration file named "l4d2_gascan_respawn.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // How often (in seconds) should the plugin check the scavenge gascan position.
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    l4d2_gascan_respawn_check_interval "1.0"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_gascan_respawn_enable "1"

    // Scavenge gascan glow color after being teleported.
    // Game default color: "255 255 255". Int value = 16777215.
    // Game default color after pick up: "255 127 0". Int value = 33023.
    // -
    // Default: "255 255 255"
    l4d2_gascan_respawn_glow_color "255 255 255"

    // How far from the spawn position the scavenge gascan should be to teleport.
    // -
    // Default: "500.0"
    // Minimum: "0.000000"
    l4d2_gascan_respawn_min_distance "500.0"

    // How much seconds after meeting the requirements the scavenge gascan should be teleported to its spawn position.
    // -
    // Default: "120.0"
    // Minimum: "0.100000"
    l4d2_gascan_respawn_teleport_wait_time "120.0" 
    Admin Commands
    • sm_print_cvars_l4d2_gascan_respawn => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Known issues
    • Spitters are still able to burn the teleported scavenge gascans with spit.

    Notes
    • If a scavenge gascan is being hold by a client the plugin resets the countdown check.
    • The method used to identify if is a scavenge gascan is by checking its skin. If it's greater than 0 (default), the plugin understands that is a scavenge gascan. (L4D2 only)

    To Do
    • Add some support to L4D1.
    • Filter by vision.
    • Filter by outbound.
    • Add blink effect.

    Thank you!

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d2_gascan_respawn.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_gascan_respawn.sp - 223 views - 15.0 KB)
    __________________

    Last edited by Marttt; 01-25-2023 at 19:01.
    Marttt is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 11-03-2020 , 15:49   Re: [L4D2] Scavenge Gascan Respawn [v1.0.0 | 03-November-2020]
    Reply With Quote #2

    Getting this error

    PHP Code:
    L 11/03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2132355071limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2037569534limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2124077053limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2090432508limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2112137211limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2068768762limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx
    L 11
    /03/2020 13:46:26: [SMCall stack trace:
    L 11/03/2020 13:46:26: [SM]   [1Line 201, /home/forums/content/files/2/9/0/3/2/7/184832.attach::OnEntityDestroyed
    L 11
    /03/2020 13:46:26: [SMException reported: Array index out-of-bounds (index -2015864825limit 2048)
    L 11/03/2020 13:46:26: [SMBlamingl4d2_gascan_respawn.smx 

    Last edited by Sillium; 11-11-2020 at 01:58.
    Krufftys Killers is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 11-05-2020 , 08:55   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #3

    By unreachable places, does the check rely on the condition of said scavenge gas can being out of map? Just asking since the annoying grief method used in No Mercy rooftop pre-TLS has been taken care of now.
    cravenge is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 11-05-2020 , 09:15   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #4

    I think there is no way to know when a gascan is in an unreachable spot, cause there are too many situations.

    Basically, the plugin checks the distance between the gascan spawn point and the current position, if it is greater than the l4d2_gascan_respawn_min_distance cvar, it will create a timer to teleport, when the timer is fired, it will check again all conditions before teleport.

    Even after TLS update I saw some gascans falling through the map in c1m4_atrium.

    But since I play more versus, I saw many games stuck because a boomer exploded near a gascan, throwing it to an unreachable spot.

    Some experienced examples:
    • Sacrifice and Passing finales, the gascan flew into the elevator area.
    • Atrium, the gascan flew to an inaccessible floor.

    I set a default value of "500" for the distance but may not be a good value to predict all scenarios, with lower values you can force to always teleport after X time.
    __________________
    Marttt is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 11-05-2020 , 09:26   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #5

    I think I saw a code snippet from another plugin that detects entities being out of map and it's related to the maximum bounds of the skybox. Idk if the same method works for L4D2 since that one was for CS:GO iirc. I forgot which plugin it was though.
    cravenge is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 11-05-2020 , 13:42   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #6

    Can this work with L4D2 Gas Cans plugin? https://forums.alliedmods.net/showthread.php?p=1735467
    Krufftys Killers is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 11-05-2020 , 17:35   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #7

    @cravenge, in case you remember the plugin, send me, so maybe I can try to implement it. I did some research but found nothing.

    @Krufftys Killers, I installed the plugin and did some tests, and seems compatible.
    __________________
    Marttt is offline
    Tank Rush
    Senior Member
    Join Date: May 2019
    Location: Argentina
    Old 11-27-2021 , 21:24   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #8

    Can this work with bottles of cola for a custom event made in stripper?
    __________________
    Sorry i don't speak english very well

    --->My name is Source and I'm on Steam<---
    Discord: Source#9382
    Tank Rush is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 11-28-2021 , 17:18   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #9

    Would there be a possibility for respawning gascans that we're already used with this Plugin? I was trying to add extra spawns on the stripper for lengthening finals such as Atrium because they're relatively easy with more than 4 survivors, but couldn't figure it out. Your plugin seems like it could be able to do that or at least have some of the functions it'd need with only a few more tweaks.

    I want to mention disawar version seems to be okay overall but the lack of support for custom maps doesn't feel like it'd be worth the hassle when the numbers can only be increased and the same spawns be re-used instead. Some maps are also too small anyway for the numbers in mind.

    Last edited by Shao; 11-28-2021 at 17:21.
    Shao is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 11-28-2021 , 20:19   Re: [L4D2] Scavenge Gascan Respawn [v1.0.1 | 03-November-2020]
    Reply With Quote #10

    Try L4D2 Gas Cans https://forums.alliedmods.net/showthread.php?p=1735467
    Krufftys Killers 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 20:14.


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