AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Bombsite Limiter (https://forums.alliedmods.net/showthread.php?t=317689)

Ilusion9 07-24-2019 14:31

[CS:GO] Bombsite Limiter
 
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

ThatOneGuy 07-24-2019 20:05

Re: [CSGO] Bombsite Locker
 
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

Ilusion9 07-25-2019 06:19

Re: [CSGO] Bombsite Locker
 
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"
    



ThatOneGuy 07-25-2019 21:48

Re: [CSGO] Bombsite Locker
 
Quote:

Originally Posted by Ilusion9 (Post 2660551)
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 (Post 2660551)
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.

laibach 07-27-2019 13:41

Re: [CSGO] Bombsite Locker
 
hello
this plugin only works on standard maps do not work on de_dust2_winter maps

Ilusion9 07-27-2019 13:55

Re: [CSGO] Bombsite Locker
 
Quote:

Originally Posted by laibach (Post 2660831)
hello
this plugin only works on standard maps do not work on de_dust2_winter maps

Add a configuration in configs/bombsites.cfg

laibach 07-27-2019 14:27

Re: [CSGO] Bombsite Locker
 
Quote:

Originally Posted by Ilusion9 (Post 2660832)
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

Ilusion9 07-27-2019 16:38

Re: [CSGO] Bombsite Locker
 
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.

Ilusion9 07-30-2019 10:51

Re: [CSGO] Bombsite Locker
 
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.

aykocity 07-30-2019 20:15

Re: [CSGO] Bombsite Limiter
 
Is it possible to change in certain rounds?

example;

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

etc..


All times are GMT -4. The time now is 09:46.

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