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

[CS:GO] Bombsite Limiter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Plugin ID:
6658
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Disable specified bombsites if there are fewer CTs than their accepted limit.
    Old 07-24-2019 , 14:31   [CS:GO] Bombsite Limiter
    Reply With Quote #1

    Description: Disable specified bombsites if there are fewer CTs than their accepted limit.

    Commands:
    Code:
    sm_bombsites - will show up a menu where you can set a limit of CTs to all bombsites.
    GitHub: https://github.com/Ilusion9/bombsite-limiter-sm
    __________________

    Last edited by Ilusion9; 02-10-2020 at 05:01.
    Ilusion9 is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 07-24-2019 , 20:05   Re: [CSGO] Bombsite Locker
    Reply With Quote #2

    Looks good.

    Consider using EntIndexToEntRef for storing the entities, then EntRefToEntIndex to switch back. I'm not sure if this applies to bombsite ents, but ents can change from round to round, so using ent refs will address that possibility.

    Consider changing the key-value key "site" to be "enabledsite". It is otherwise unclear (until I read the code) if the server manager is supposed to put the sites they want to keep or disable.

    Side note for possible future expansion
    __________________
    ThatOneGuy is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 07-25-2019 , 06:19   Re: [CSGO] Bombsite Locker
    Reply With Quote #3

    The bombsites are loaded when the map starts, and they remain after round ends.

    I've changed the plugin. Now, in the configuration file, you must name the bombsite that will be disabled and the limit to disable it.

    Example:
    PHP Code:
        "de_dust2_unlimited_go"
        
    {
            
    "B"        "5"
            "C"        "10"
        

    __________________

    Last edited by Ilusion9; 07-25-2019 at 14:42.
    Ilusion9 is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 07-25-2019 , 21:48   Re: [CSGO] Bombsite Locker
    Reply With Quote #4

    Quote:
    Originally Posted by Ilusion9 View Post
    The bombsites are loaded when the map starts, and they remain after round ends.[/PHP]
    I wondered if static map stuff like that keeps the same index. Glad you know.

    Quote:
    Originally Posted by Ilusion9 View Post
    I've changed the plugin. Now, in the configuration file, you must name the bombsite that will be disabled and the limit to disable it.

    Example:
    PHP Code:
        "de_dust2_unlimited_go"
        
    {
            
    "B"        "5"
            "C"        "10"
        

    Pretty slick.
    __________________
    ThatOneGuy is offline
    laibach
    Junior Member
    Join Date: Oct 2013
    Location: Slovak
    Old 07-27-2019 , 13:41   Re: [CSGO] Bombsite Locker
    Reply With Quote #5

    hello
    this plugin only works on standard maps do not work on de_dust2_winter maps
    __________________
    laibach is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 07-27-2019 , 13:55   Re: [CSGO] Bombsite Locker
    Reply With Quote #6

    Quote:
    Originally Posted by laibach View Post
    hello
    this plugin only works on standard maps do not work on de_dust2_winter maps
    Add a configuration in configs/bombsites.cfg
    __________________
    Ilusion9 is offline
    laibach
    Junior Member
    Join Date: Oct 2013
    Location: Slovak
    Old 07-27-2019 , 14:27   Re: [CSGO] Bombsite Locker
    Reply With Quote #7

    Quote:
    Originally Posted by Ilusion9 View Post
    Add a configuration in configs/bombsites.cfg
    me bombsites.cfg
    "BombSites"
    {
    /** Site disabled - CT limit
    * If there are fewer CT's than the specified limit, then the specified site will be disabled.
    * Example (for de_dust2): if there are fewer CT's than 5, bombsite B will be disabled.
    */

    "de_dust2"
    {
    "B" "5"
    }

    "de_dust2_winter"
    {
    "B" "5"
    }

    "de_dust2_night"
    {
    "B" "5"

    }
    }

    Although he writes that the bombsite is block, but the bomb can be put
    __________________

    Last edited by laibach; 07-27-2019 at 14:29.
    laibach is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 07-27-2019 , 16:38   Re: [CSGO] Bombsite Locker
    Reply With Quote #8

    Yeah, cause the author created Site B before Site A. I tested the map, and site A will be locked if I set site B to be locked.

    In de_dust2_winter, site B has 428 entity index and site A 431 which is wrong.

    From valvesoftware wiki page:
    HTML Code:
    The bombsites are assigned as A and B in the order the func_bomb_target entities were created.
    https://developer.valvesoftware.com/...mb_Defusal_Map

    All maps should respect the standards in order to work correctly.
    __________________

    Last edited by Ilusion9; 07-27-2019 at 16:38.
    Ilusion9 is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 07-30-2019 , 10:51   Re: [CSGO] Bombsite Locker
    Reply With Quote #9

    Code improved. Now the plugin will detect which site is A and which site is B.
    If you lock bombsite C, all bombsites after C (site D, site E etc.) will be locked.
    __________________
    Ilusion9 is offline
    aykocity
    Member
    Join Date: Sep 2017
    Old 07-30-2019 , 20:15   Re: [CSGO] Bombsite Limiter
    Reply With Quote #10

    Is it possible to change in certain rounds?

    example;

    1.round - A
    3.round - B
    5.round - A

    etc..
    aykocity 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 12:45.


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