Compare commits

...

2 Commits

Author SHA1 Message Date
7063f3fd82 Added readme with installation guidelines 2026-07-07 16:55:02 +02:00
49ef8a55c0 Updated plugin project config 2026-07-07 16:54:36 +02:00
2 changed files with 37 additions and 1 deletions

36
README.md Normal file
View File

@@ -0,0 +1,36 @@
# Porning CS2 plugin
The official plugin of Porning's CS2 server
# Installation
### Installing Metamod
Download the latest version [here](https://www.metamodsource.net/downloads.php/?branch=master).
Extract the files and copy the `/addons/` directory into `/game/csgo/`. \
Modify `/game/csgo/gameinfo.gi` as such by adding `Game csgo/addons/metamod`:
```cs
FileSystem
{
SearchPaths
{
Game_LowViolence csgo_lv // Perfect World content override
Game csgo/addons/metamod
Game csgo
Game csgo_imported
Game csgo_core
Game core
```
### Installing CounterStrikeSharp
Download the latest version with runtime [here](https://github.com/roflmuffin/CounterStrikeSharp/releases). \
Extract the files and copy them into `/addons/`.
### Installing Porning
Clone the latest version of the repository. \
Modify `plugin.csproj` by changing the directory used to copy the output files of the plugin.
```cs
<Target Name="CopyAllOutputAfterBuild" AfterTargets="AfterBuild">
<ItemGroup>
<MyOutputFiles Include="$(TargetDir)**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(MyOutputFiles)" DestinationFolder="$SERVER_LOCATION$/game/csgo/addons/counterstrikesharp/plugins/plugin/%(RecursiveDir)" />
</Target>
```

View File

@@ -24,7 +24,7 @@
<ItemGroup>
<MyOutputFiles Include="$(TargetDir)**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(MyOutputFiles)" DestinationFolder="/games/cs2-server//game/csgo/addons/counterstrikesharp/plugins/plugin/%(RecursiveDir)" />
<Copy SourceFiles="@(MyOutputFiles)" DestinationFolder="/games/cs2-server/game/csgo/addons/counterstrikesharp/plugins/plugin/%(RecursiveDir)" />
</Target>
</Project>