Counter-Strike-HUD / game-files

All files for game server
3 stars 3 forks source link

Add config for `func_bomb_target` order #6

Open wopox1337 opened 3 years ago

wopox1337 commented 3 years ago

https://github.com/kallefrombosnia/cs-hud-observer/blob/031c37835000e29b05984cc82274d339fe77da17/game/addons/amxmodx/scripting/Events.sma#L88-L94

should be smth like:

{
    "mapsWithDescBombOrder": [
        "de_dust2",
        "de_chateau",
        "de_train"
    ]
}

or just create an array in plugin with a list of maps with reverse bomb place order

wopox1337 commented 3 years ago

for the future: https://gamebanana.com/projects/35644

wopox1337 commented 3 years ago

It would be good to check for bomb places and the map type in general, so you don't have to do unnecessary checks. https://github.com/kallefrombosnia/cs-hud-observer/blob/031c37835000e29b05984cc82274d339fe77da17/game/addons/amxmodx/scripting/Events.sma#L613-L615

it will help you (fakemeta) https://github.com/s1lentq/ReGameDLL_CS/blob/a9111f8dda6ba33b6adcf61a60d618bf8c31a928/regamedll/dlls/multiplay_gamerules.cpp#L1625-L1640