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
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);
}
}
|