-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
433 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.vs/ | ||
**/obj | ||
**/bin | ||
**/bin | ||
|
||
# Ignore everything in BuildOutput directory | ||
BuildOutput/ |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,46 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.279" /> | ||
<PackageReference Include="Daffer" Version="1.0.3" /> | ||
<PackageReference Include="MySqlConnector" Version="2.3.7" /> | ||
<PackageReference Include="Tomlyn" Version="0.17.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="lang\**\*.*" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\StoreApi\StoreApi.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<OutputPath>$(ProjectDir)..\BuildOutput\plugins\cs2-store\</OutputPath> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.279" /> | ||
<PackageReference Include="Daffer" Version="1.0.3" /> | ||
<PackageReference Include="MySqlConnector" Version="2.3.7" /> | ||
<PackageReference Include="Tomlyn" Version="0.17.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="lang\**\*.*" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\StoreApi\StoreApi.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="ExcludeStoreApiFiles" AfterTargets="Build"> | ||
<Delete Files="$(OutputPath)StoreApi.dll" /> | ||
<Delete Files="$(OutputPath)StoreApi.pdb" /> | ||
</Target> | ||
|
||
<Target Name="CopyConfigFiles" AfterTargets="Build"> | ||
<ItemGroup> | ||
<FilesToCopy Include="$(ProjectDir)..\config.toml" /> | ||
<FilesToCopy Include="$(ProjectDir)..\cs2-store.json" /> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(ProjectDir)..\BuildOutput\configs\plugins\cs2-store\" /> | ||
</Target> | ||
|
||
<Target Name="CopyNuGetAssemblies" AfterTargets="Build"> | ||
<Copy SourceFiles="../MySqlConnector.dll" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" /> | ||
<Copy SourceFiles="../Dapper.dll" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" /> | ||
<Copy SourceFiles="../Tomlyn.dll" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[Tag] | ||
Tag = "{red}[Store] " | ||
|
||
[DatabaseConnection] | ||
Host = "" | ||
Port = 3306 | ||
User = "" | ||
Password = "" | ||
Name = "" | ||
DatabaseEquipTableName = "store_equipments" | ||
|
||
[Commands] | ||
Credits = [ "credits", "tl" ] | ||
Store = [ "store", "shop", "market" ] | ||
Inventory = [ "inv", "inventory" ] | ||
GiveCredits = [ "givecredits" ] | ||
Gift = [ "gift" ] | ||
ResetPlayer = [ "resetplayer" ] | ||
ResetDatabase = [ "resetdatabase" ] | ||
|
||
# Should you not wish to utilise the default model, you are free to leave the list blank. | ||
[DefaultModels] | ||
Terrorist = [ "characters/models/ctm_fbi/ctm_fbi_variantb.vmdl" ] | ||
CounterTerrorist = [ "characters/models/tm_leet/tm_leet_variantj.vmdl" ] | ||
|
||
[Credits] | ||
Start = 0 | ||
IntervalActiveInActive = 60 | ||
AmountActive = 10 | ||
AmountInActive = 1 | ||
AmountKill = 1 | ||
IgnoreWarmup = true | ||
|
||
[Menu] | ||
EnableSelling = true | ||
EnableConfirmMenu = true | ||
UseWASDMenu = true # If you mark it as false, it will be used as CentreHtmlMenu. | ||
VipFlag = "@css/root" # Individuals in possession of the requisite authorisation shall be entitled to utilise equipable items free of charge. Making this field empty will result in the cancellation of Vip. | ||
MenuPressSoundYes = "" | ||
MenuPressSoundNo = "" | ||
|
||
[Settings] | ||
MaxHealth = 0 | ||
MaxArmor = 0 | ||
SellRatio = 0.6 # This setting determines the ratio of money you will receive when you sell the item. | ||
ApplyPlayerskinDelay = 0.6 | ||
SellUsePurchaseCredit = false # If true, the selling ratio is calculated based on the price at which you bought the item. If false, it is calculated based on the current store price. | ||
DefaultModelDisableLeg = false | ||
Model0Model1Flag = "@css/root" |
Oops, something went wrong.