[CSS] Hostages Escape | Gamemode & Template

If you liked this item, please rate it up on Steam Workshop page.

Author: _N1ghTerr_

Last revision: 20 Jun at 20:29 UTC

File size: 6.01 MB

On Steam Workshop

Description:

CSS content is required for this mode(maps and materials)!

==============================================

Here you have to survive as ordinary people against the terrorists. Take the place of the hostages and try to take the lead against your friends. There is a choice of weapons for the terrorist, from Ak-47 to just 1 pistol (Try to kill them all).
Hostages are able to block doors, so this can be used to detain opponents. Don’t waste your stamina, it will be harder to escape if you are injured!

After some time, if there are dead, then special forces arrive. They can help rescue the hostages and finish the round. The damage also increases at this time and it will become easier to kill everyone.

Hostages may begin to experience the effects of fear. For example, when you are next to a terrorist, a sense of insecurity, or the absence of other comrades. Fear affects speed and endurance, don’t let it happen.

==============================================

Console commands and chat commands:

  • hostages_gettime — Get time to spawn CT
  • hostages_settime #args — Set time to spawn CT
  • hostages_plycategorys — Get players tables(for dev)
  • hostages_gamestop — Stop game
  • hostages_spawn — You can respawn(but dont have items and status)
  • hostages_cutsomposmap_spawnh — Set spawn pos for all hostages(For custom maps)
  • hostages_cutsomposmap_escape1 — Set spawn for escape point. Need set for escape1 and escape2(For custom maps)
  • hostages_dev_spawncreate #args — Tool, need for custom spawn unsupported maps and create easy table
  • give victims — Give hand hostage(sv_cheats 1)
  • give tfa_css_ak47 — Give ak-47(sv_cheats 1)
  • !skin #args — Set skin for hostages from 1 to 4
  • !help — Print this menu
  • !suicide — Kill yourself on match(If you need end current round)

==============================================

MAPS SUPPORT:
Not all maps support this mode. Only classic ones, such as de_dust, cs_assault, and others from Counter-Strike Source. If you want to play a test match, try gm_construct. It can also have a spawn configuration!

If you want to play on your own map and know how add spawns:
(Maybe its dont work, i dont test. Just play map on css content)

  • Create lua file in …/garrysmod/addons/folder/lua/autorun/scriptname.lua
  • Copy and paste this code in lua file:
concommand.Add("hostages_dev_spawncreate_sandbox", function(ply, cmd, args) table.insert(tablee, (ply:GetPos() + Vector(0, 0, 5))) print(ply:GetPos()) if #args > 0 then for _, v in pairs(tablee) do print("Vector("..tostring(math.ceil(v.x))..", "..tostring(math.ceil(v.y))..", "..tostring(math.ceil(v.z)).."),") end end end) hook.Add("SetSpawnHostagesGM", "HookName", function() if string.find(string.lower(game.GetMap()), "cs_assault") then spawnposes = { Vector(5995, 4758, -595), Vector(6165, 4752, -595), Vector(6400, 4499, -595), … — Add unlimited vectors pos from console command "hostages_dev_spawncreate 1"(args print table vectors) } for _, v in pairs(player.GetAll()) do if v:Team() == 1 then v:SetPos(spawnposes[math.random(#spawnposes)]) — Table spawners for hostages end if v:Team() == 2 then v:SetPos(Vector(0, 0, 0)) — Set pos terrorist end end — Escape/CT spawn vector pos(Only 2 positions) escape1 = Vector(4979, 6399, -807) escape2 = Vector(6749, 7154, -812) end end

And then, just continue table spawners. Use command "getpos" for check you coords.