When css was first released you could stack on top of other players as high as you wanted. i remember having fun on zombie horde servers where the whole human team would find a spot and make a wall of players stacking up 4-5 players high side by side.
Then valve decided to limit how high you could stack, currently only 1 player can stand on top of another, if a 3rd player tries to stand on top of both players they will not be able to move and will slide off. this might be ok for regular css and some mods but for others it kind of ruins teamwork like most zombie mods.
you need sdkhooks
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#pragma semicolon 1
public OnPluginStart()
{
for (new client = 1; client <= MaxClients; client++)
{
if (IsClientInGame(client))
{
SDKHook(client, SDKHook_PostThink, OnPostThink);
}
}
}
public OnClientPutInServer(client)
{
SDKHook(client, SDKHook_PostThink, OnPostThink);
}
public OnPostThink(client)
{
new GroundEnt = GetEntPropEnt(client, Prop_Send, "m_hGroundEntity");
if ((GroundEnt > 0) && (GroundEnt <= MaxClients))
{
SetEntPropEnt(client, Prop_Send, "m_hGroundEntity", 0);
}
}
m_hGroundEntity stores the entity the player is standing on, the game will check if its a player, if it is then it will check if that player is standing on a player. by setting m_hGroundEntity to 0 you're telling the game the player is standing on the ground(world entity) so you can stack as high as you want.