View Single Post
Author Message
namleww
Junior Member
Join Date: Mar 2022
Old 03-09-2022 , 05:34   [CSGO] Allow to buying Riot shield in competitive maps
Reply With Quote #1

I saw TheWarOwl video on playing competitive maps with Riot shield, but can't find his used plugin. I saw sekac comment about creating a hostage zone so that the game thinks it's a hostage map but I have no idea how to use this code. Please help.

Quote:
Originally Posted by sekac View Post
Now the shield is purchasable in game. game_type and game_mode need to be 0. Also a hostage zone is required which can be spawned in at map start in any map.

Code:
stock void CreateHostageRescue()
{
    int iEntity = -1;
    if((iEntity = FindEntityByClassname(iEntity, "func_hostage_rescue")) == -1) {
        int iHostageRescueEnt = CreateEntityByName("func_hostage_rescue");
        DispatchKeyValue(iHostageRescueEnt, "targetname", "fake_hostage_rescue");
        DispatchKeyValue(iHostageRescueEnt, "origin", "-3141 -5926 -5358");
        DispatchSpawn(iHostageRescueEnt);
    }
}
namleww is offline