<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Louis Cerclé-Cheminel</title>
    <description>The latest articles on DEV Community by Louis Cerclé-Cheminel (@neutronbzh).</description>
    <link>https://dev.to/neutronbzh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3153892%2Fe14f731a-a8e4-4c3e-8e23-9a1382d30216.jpeg</url>
      <title>DEV Community: Louis Cerclé-Cheminel</title>
      <link>https://dev.to/neutronbzh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neutronbzh"/>
    <language>en</language>
    <item>
      <title>Building a Suite of C# Server Plugins for Counter-Strike 2</title>
      <dc:creator>Louis Cerclé-Cheminel</dc:creator>
      <pubDate>Mon, 24 Aug 2026 14:29:57 +0000</pubDate>
      <link>https://dev.to/neutronbzh/building-a-suite-of-c-server-plugins-for-counter-strike-2-1g8</link>
      <guid>https://dev.to/neutronbzh/building-a-suite-of-c-server-plugins-for-counter-strike-2-1g8</guid>
      <description>&lt;p&gt;I run a small CS2 Retake community server, and over the past few months I ended up writing (and extending) enough &lt;a href="https://github.com/roflmuffin/CounterStrikeSharp" rel="noopener noreferrer"&gt;CounterStrikeSharp&lt;/a&gt; plugins to call it a suite. Sharing the writeup in case it's useful to anyone else doing Source 2 / CS2 server-side modding in C#.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;CounterStrikeSharp is a .NET 8 scripting layer on top of a Metamod:Source plugin — you write plugins in C#, hook game events, and manipulate entities through a managed API. It's the dominant framework for CS2 server plugins right now (SourceMod's SourcePawn predates CS2 and hasn't caught up to it there).&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the suite
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CS2-RETAKE&lt;/strong&gt; is the core piece: a full retake gamemode with a persisted weapon-selection menu (per player × team × round-type, backed by SQLite or Postgres), AWP restrictions, team scramble/queue logic, and a built-in InstaDefuse implementation ported from &lt;a href="https://github.com/B3none/cs2-instadefuse" rel="noopener noreferrer"&gt;B3none/cs2-instadefuse&lt;/a&gt;. It's a fork of &lt;a href="https://github.com/LordFetznschaedl/CS2Retake" rel="noopener noreferrer"&gt;LordFetznschaedl/CS2Retake&lt;/a&gt; — full credit in the README, GPL-3.0 throughout.&lt;/p&gt;

&lt;p&gt;Around that core, a few companion plugins that each solve one problem and stay out of each other's way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CS2-SpawnEditor&lt;/strong&gt; — an in-game visual editor for retake spawn points (CBeam pillar markers, nearest-spawn highlighting) so you don't hand-edit spawn JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CS2-BreakerAndOpenDoor&lt;/strong&gt; — opens doors and breaks windows/vents/breakables at round start so every round starts from the same map state. Multi-pass with fallback because Source 2 entity timing during round start is not always cooperative.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CS2-Antibait&lt;/strong&gt; — through-wall glow highlighting for admins, with an auto last-CT-alive mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CS2-STATPLAY&lt;/strong&gt; — MySQL-backed stats (kills, rounds, objectives, grenades) aggregated at lifetime/session/map granularity, plus chat commands and milestone webhooks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CS2-AntiSlow&lt;/strong&gt;, &lt;strong&gt;CS2-AdminTools&lt;/strong&gt; — smaller QoL/admin tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing worth calling out: getting two plugins that both create entities on &lt;code&gt;EventRoundStart&lt;/code&gt; to not crash into each other. Antibait creates glow entities on round start; BreakerAndOpenDoor scans/destroys entities in the same window. Creating a &lt;code&gt;CDynamicProp&lt;/code&gt; while another plugin's entity scan is still in flight produces a &lt;code&gt;WriteEnterPVS: GetEntServerClass failed&lt;/code&gt; server crash. Antibait gates entity creation on &lt;code&gt;EventRoundFreezeEnd&lt;/code&gt; instead, which fires after the scan window closes — a small thing, but the kind of cross-plugin timing bug you only find by running plugins together on a live server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;Suite overview with a compatibility diagram: &lt;a href="https://github.com/NeuTroNBZh/CS2-Retake-Suite" rel="noopener noreferrer"&gt;https://github.com/NeuTroNBZh/CS2-Retake-Suite&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Everything is MIT or GPL-3.0, tagged releases with install instructions in each README. Happy to answer questions about CounterStrikeSharp internals or the retake-specific stuff.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>gamedev</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
