ws-cs2 / cs2-surftimer

48 stars 6 forks source link

Allow for 64 players #4

Closed ws-cs2 closed 10 months ago

ws-cs2 commented 10 months ago

Problem:

Currently people are restricting surf servers to mp_humanteam CT so people don't kill each other.

This has the problem of limiting 64 slot servers to 32 players. Above 32 players the CT team says it is full. I believe this is because maps only have 32 spawns for each team (I'm not a mapper I'm not too sure about this).

The fix for this will either be:

  1. Can we allow CS2 to have more than 32 players on CT (is there some command none of the servers know about?)

  2. Can we make CT/T invulnerable so that we can use both teams

The god command does not work on cs2.

I have see some discussion on forums about using a combination of

buddha true
sv_regeneration_force_on true

I'm a bit lost as to how these commands work & how we can implement this in the timer

ws-cs2 commented 10 months ago

Also happy for any sort of solution to this, either a set of commands, something we can do in lua or as a last resort in metamod.

ws-cs2 commented 10 months ago

Testing a temporary fix where we convert all T spawns to CT spawns. This should fix most maps.


function ConvertTSpawnsToCTSpawns()
    for i, entity in pairs(Entities:FindAllByClassname("info_player_terrorist")) do
        SpawnEntityFromTableSynchronous("info_player_counterterrorist", { origin = entity:GetOrigin() } )
        entity:Kill()
    end
end
Synkstar commented 10 months ago

On surf kitsune it isnt fixed. ( Only allows 50 )