-
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.
check player is not in sd, give knife in guntoss, add juggernaut
- Loading branch information
Showing
8 changed files
with
111 additions
and
10 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,51 @@ | ||
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 SDJuggernaut : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("Juggernaut started"); | ||
announce("Please 15 seconds for friendly fire to be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Friendly fire enabled"); | ||
Lib.enable_friendly_fire(); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("Juggernaut is over"); | ||
Lib.disable_friendly_fire(); | ||
} | ||
|
||
public override void death(CCSPlayerController? player, CCSPlayerController? attacker) | ||
{ | ||
if(player == null || !player.is_valid() || attacker == null || !attacker.is_valid_alive()) | ||
{ | ||
return; | ||
} | ||
|
||
// Give attacker 100 hp | ||
attacker.set_health(attacker.get_health() + 100); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController? player) | ||
{ | ||
player.event_gun_menu(); | ||
} | ||
} |
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