-
Notifications
You must be signed in to change notification settings - Fork 9
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
22 changed files
with
809 additions
and
858 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,20 +1,20 @@ | ||
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AK47 AND CAN SHOOT ONLY HEADSHOT</h1> | ||
|
||
- Add this in your `custom_modes.json` file and edit YOUR MODE ID for valid value | ||
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value | ||
``` | ||
"YOUR MODE ID": { | ||
"mode_name": "Only AK47 & Headshot", | ||
"mode_interval": 300, | ||
"armor": 1, | ||
"only_hs": true, | ||
"allow_knife_damage": false, | ||
"random_weapons": false, | ||
"allow_center_message": true, | ||
"center_message_text": "<font class='fontSize-l' color='orange'>Only AK47 & Headshot</font>", | ||
"primary_weapons": [ | ||
"Name": "Only AK47 & Headshot", | ||
"Interval": 300, | ||
"Armor": 1, | ||
"OnlyHS": true, | ||
"KnifeDamage": false, | ||
"RandomWeapons": false, | ||
"CenterMessageText": "<font class='fontSize-l' color='orange'>Only AK47 & Headshot</font>", | ||
"PrimaryWeapons": [ | ||
"weapon_ak47" | ||
], | ||
"secondary_weapons": [] | ||
"SecondaryWeapons": [], | ||
"Utilities": [] | ||
} | ||
``` | ||
|
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,19 +1,21 @@ | ||
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AWP</h1> | ||
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AWP AND GET FLASH</h1> | ||
|
||
- Add this in your `custom_modes.json` file and edit YOUR MODE ID for valid value | ||
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value | ||
``` | ||
"YOUR MODE ID": { | ||
"mode_name": "Only AWP", | ||
"mode_interval": 300, | ||
"armor": 1, | ||
"only_hs": false, | ||
"allow_knife_damage": false, | ||
"random_weapons": false, | ||
"allow_center_message": true, | ||
"center_message_text": "<font class='fontSize-l' color='red'>Only AWP</font>", | ||
"primary_weapons": [ | ||
"Name": "Only AWP", | ||
"Interval": 300, | ||
"Armor": 1, | ||
"OnlyHS": false, | ||
"KnifeDamage": false, | ||
"RandomWeapons": false, | ||
"CenterMessageText": "<font class='fontSize-l' color='red'>Only AWP</font>", | ||
"PrimaryWeapons": [ | ||
"weapon_awp" | ||
], | ||
"secondary_weapons": [] | ||
"SecondaryWeapons": [], | ||
"Utilities": [ | ||
"weapon_flashbang" | ||
] | ||
} | ||
``` |
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,23 +1,23 @@ | ||
<h1>IN THIS MODE, PLAYERS CAN USE ALL RIFLES EXPECT THE FAMAS AND GALILAR</h1> | ||
|
||
- Add this in your custom_modes.json file and edit YOUR MODE ID for valid value | ||
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value | ||
``` | ||
"YOUR MODE ID": { | ||
"mode_name": "Only Rifles", | ||
"mode_interval": 300, | ||
"armor": 1, | ||
"only_hs": false, | ||
"allow_knife_damage": true, | ||
"random_weapons": false, | ||
"allow_center_message": true, | ||
"center_message_text": "<font class='fontSize-l' color='orange'>Only Rifles</font>", | ||
"primary_weapons": [ | ||
"Name": "Only Rifles", | ||
"Interval": 300, | ||
"Armor": 1, | ||
"OnlyHS": false, | ||
"KnifeDamage": true, | ||
"RandomWeapons": false, | ||
"CenterMessageText": "<font class='fontSize-l' color='orange'>Only Rifles</font>", | ||
"PrimaryWeapons": [ | ||
"weapon_ak47", | ||
"weapon_m4a1", | ||
"weapon_m4a1_silencer", | ||
"weapon_aug", | ||
"weapon_sg556" | ||
], | ||
"secondary_weapons": [] | ||
"SecondaryWeapons": [], | ||
"Utilities": [] | ||
} | ||
``` |
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,22 +1,22 @@ | ||
<h1>IN THIS MODE, PLAYERS CAN USE ALL SHOTGUNS AND PLAYERS CANT SELECT THEIR WEAPONS (PLAYER WILL GET RANDOM SHOTGUN EVERY SPAWN)</h1> | ||
|
||
- Add this in your custom_modes.json file and edit YOUR MODE ID for valid value | ||
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value | ||
``` | ||
"YOUR MODE ID": { | ||
"mode_name": "Only Shotguns", | ||
"mode_interval": 300, | ||
"armor": 2, | ||
"only_hs": false, | ||
"allow_knife_damage": false, | ||
"random_weapons": true, | ||
"allow_center_message": true, | ||
"center_message_text": "<font class='fontSize-l' color='purple'>Only Shotguns</font>", | ||
"primary_weapons": [ | ||
"Name": "Only Shotguns", | ||
"Interval": 300, | ||
"Armor": 2, | ||
"OnlyHS": false, | ||
"KnifeDamage": false, | ||
"RandomWeapons": true, | ||
"CenterMessageText": "<font class='fontSize-l' color='purple'>Only Shotguns</font>", | ||
"PrimaryWeapons": [ | ||
"weapon_mag7", | ||
"weapon_sawedoff", | ||
"weapon_nova", | ||
"weapon_xm1014" | ||
], | ||
"secondary_weapons": [] | ||
"SecondaryWeapons": [], | ||
"Utilities": [] | ||
} | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Vector = CounterStrikeSharp.API.Modules.Utils.Vector; | ||
|
||
namespace Deathmatch | ||
{ | ||
public partial class Deathmatch | ||
{ | ||
public class ModeData | ||
{ | ||
public required string Name { get; set; } | ||
public required int Interval { get; set; } | ||
public required int Armor { get; set; } | ||
public required bool OnlyHS { get; set; } | ||
public required bool KnifeDamage { get; set; } | ||
public required bool RandomWeapons { get; set; } | ||
public required string CenterMessageText { get; set; } | ||
public List<string>? PrimaryWeapons { get; set; } | ||
public List<string>? SecondaryWeapons { get; set; } | ||
public List<string>? Utilities { get; set; } | ||
} | ||
|
||
public class DeathmatchPlayerData | ||
{ | ||
public required string PrimaryWeapon { get; set; } | ||
public required string SecondaryWeapon { get; set; } | ||
public required bool SpawnProtection { get; set; } | ||
public required int KillStreak { get; set; } | ||
public required bool KillSound { get; set; } | ||
public required bool HSKillSound { get; set; } | ||
public required bool KnifeKillSound { get; set; } | ||
public required bool HitSound { get; set; } | ||
public required bool OnlyHS { get; set; } | ||
public required bool HudMessages { get; set; } | ||
public required Vector LastSpawn { get; set; } | ||
public required int OpenedMenu { get; set; } | ||
} | ||
|
||
public class RestrictData | ||
{ | ||
public int CT { get; set; } | ||
public int T { get; set; } | ||
public int Global { get; set; } | ||
} | ||
} | ||
} |
Oops, something went wrong.