Skip to content

Sven Co-op 5.26 Gamedata - #1162

Merged
psychonic merged 2 commits into
alliedmodders:masterfrom
szGabu:feature/svencoop526_gamedata
Sep 16, 2026
Merged

psychonic merged 2 commits into
alliedmodders:masterfrom
szGabu:feature/svencoop526_gamedata

Conversation

@szGabu

@szGabu szGabu commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Hopefully it will be worth the wait.

This PR adds all the necessary gamedata for Sven Co-op 5.26. This means Fakemeta can now be used to manipulate entity data for whatever purpose is needed.

Combined with #1157, this gives AMXX the much-needed and substantial compatibility for Sven Co-op.

Like #1157, this gamedata is also gated by the bins' CRC, so the server won't crash if Sven Co-op is updated.

Small example in action, rename all zombies:

public ServerCommand_RenameTest()
{
    new iEnt;
    new iPointer = engfunc(EngFunc_AllocString, "Pepito the AMXX Monster");
    while((iEnt = engfunc(EngFunc_FindEntityByString, iEnt, "classname", "monster_zombie")) > 0)
    {
        if( pev_valid(iEnt) == 2 )
        {
            set_ent_data(iEnt, "CBaseMonster", "m_FormattedName", iPointer);
        }
    }
}
image

Special Thanks to:
@R4to0


!! Note with a bit of off topic: While the necessary gamedata and offsets are provided, gamerules compatibility with Sven Co-op is still a to do. In the current implementation, attempting to get the gamerules object just returns garbage, and as I commented in Discord, I suspect this is also a case of Sven Co-op's Linux optimization flags that are not present in other Valve games but I could be wrong. Fixing this would also future proof other future Half-Life mods that may have the same problem.

@psychonic
psychonic merged commit 19e9e47 into alliedmodders:master Sep 16, 2026
3 checks passed
@szGabu
szGabu deleted the feature/svencoop526_gamedata branch September 17, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants