-
Notifications
You must be signed in to change notification settings - Fork 15
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
13 changed files
with
353 additions
and
71 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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Core.Attributes; | ||
using CounterStrikeSharp.API.Core.Attributes.Registration; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
using CounterStrikeSharp.API.Modules.Cvars; | ||
using CounterStrikeSharp.API.Modules.Entities; | ||
using CounterStrikeSharp.API.Modules.Events; | ||
using CounterStrikeSharp.API.Modules.Memory; | ||
using CounterStrikeSharp.API.Modules.Menu; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
using CounterStrikeSharp.API.Modules.Entities.Constants; | ||
using CSTimer = CounterStrikeSharp.API.Modules.Timers; | ||
|
||
|
||
public class SDDodgeball : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("Dodgeball started"); | ||
announce("Please 15 seconds for damage be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Fight!"); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("Dodgeball is over"); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController player) | ||
{ | ||
player.strip_weapons(true); | ||
player.GiveNamedItem("weapon_flashbang"); | ||
weapon_restrict = "flashbang"; | ||
} | ||
|
||
public override void grenade_thrown(CCSPlayerController? player) | ||
{ | ||
Lib.give_weapon_delay(player,1.4f,"weapon_flashbang"); | ||
} | ||
|
||
public override void player_hurt(CCSPlayerController? player,int damage, int health, int hitgroup) | ||
{ | ||
if(player != null && player.is_valid_alive()) | ||
{ | ||
player.PlayerPawn.Value.CommitSuicide(true, true); | ||
} | ||
} | ||
|
||
public override void ent_created(CEntityInstance entity) | ||
{ | ||
Lib.remove_ent_delay(entity,1.4f,"flashbang_projectile"); | ||
} | ||
|
||
} |
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,46 @@ | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Core.Attributes; | ||
using CounterStrikeSharp.API.Core.Attributes.Registration; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
using CounterStrikeSharp.API.Modules.Cvars; | ||
using CounterStrikeSharp.API.Modules.Entities; | ||
using CounterStrikeSharp.API.Modules.Events; | ||
using CounterStrikeSharp.API.Modules.Memory; | ||
using CounterStrikeSharp.API.Modules.Menu; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
using CounterStrikeSharp.API.Modules.Entities.Constants; | ||
using CSTimer = CounterStrikeSharp.API.Modules.Timers; | ||
|
||
|
||
public class SDGrenade : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("Grenade started"); | ||
announce("Please 15 seconds for damage be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Fight!"); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("Grenade is over"); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController player) | ||
{ | ||
player.strip_weapons(true); | ||
player.set_health(175); | ||
player.GiveNamedItem("weapon_hegrenade"); | ||
weapon_restrict = "hegrenade"; | ||
} | ||
|
||
public override void grenade_thrown(CCSPlayerController? player) | ||
{ | ||
Lib.give_weapon_delay(player,1.4f,"weapon_hegrenade"); | ||
} | ||
} |
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,55 @@ | ||
// base lr class | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Core.Attributes; | ||
using CounterStrikeSharp.API.Core.Attributes.Registration; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
using CounterStrikeSharp.API.Modules.Cvars; | ||
using CounterStrikeSharp.API.Modules.Entities; | ||
using CounterStrikeSharp.API.Modules.Events; | ||
using CounterStrikeSharp.API.Modules.Memory; | ||
using CounterStrikeSharp.API.Modules.Menu; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
using CounterStrikeSharp.API.Modules.Entities.Constants; | ||
using CSTimer = CounterStrikeSharp.API.Modules.Timers; | ||
|
||
|
||
public class SDHeadshotOnly : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("Headshot only started"); | ||
announce("Please 15 seconds for damage be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Fight!"); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("Headshot only is over"); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController player) | ||
{ | ||
player.strip_weapons(true); | ||
player.GiveNamedItem("weapon_deagle"); | ||
weapon_restrict = "deagle"; | ||
} | ||
|
||
public override void player_hurt(CCSPlayerController? player,int health,int damage, int hitgroup) | ||
{ | ||
if(player == null || !player.is_valid_alive()) | ||
{ | ||
return; | ||
} | ||
|
||
// dont allow damage when its not to head | ||
if(hitgroup != Lib.HITGROUP_HEAD) | ||
{ | ||
Lib.restore_hp(player,damage,health); | ||
} | ||
} | ||
} |
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,39 @@ | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Core.Attributes; | ||
using CounterStrikeSharp.API.Core.Attributes.Registration; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
using CounterStrikeSharp.API.Modules.Cvars; | ||
using CounterStrikeSharp.API.Modules.Entities; | ||
using CounterStrikeSharp.API.Modules.Events; | ||
using CounterStrikeSharp.API.Modules.Memory; | ||
using CounterStrikeSharp.API.Modules.Menu; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
using CounterStrikeSharp.API.Modules.Entities.Constants; | ||
using CSTimer = CounterStrikeSharp.API.Modules.Timers; | ||
|
||
|
||
public class SDKnifeWarday : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("knife warday started"); | ||
announce("Please 15 seconds for damage be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Fight!"); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("knife warday is over"); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController player) | ||
{ | ||
player.strip_weapons(); | ||
weapon_restrict = "knife"; | ||
} | ||
} |
Oops, something went wrong.