-
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
7 changed files
with
120 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// 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 SDScoutKnife : SDBase | ||
{ | ||
public override void setup() | ||
{ | ||
announce("Scout knife started"); | ||
announce("Please 15 seconds for damage be enabled"); | ||
} | ||
|
||
public override void start() | ||
{ | ||
announce("Fight!"); | ||
} | ||
|
||
public override void end() | ||
{ | ||
announce("Scout knife is over"); | ||
} | ||
|
||
public override void setup_player(CCSPlayerController player) | ||
{ | ||
player.strip_weapons(); | ||
player.GiveNamedItem("weapon_ssg08"); | ||
player.set_gravity(0.1f); | ||
} | ||
|
||
public override bool weapon_equip(String name) | ||
{ | ||
return name.Contains("knife") || name.Contains("ssg08"); | ||
} | ||
|
||
public override void cleanup_player(CCSPlayerController player) | ||
{ | ||
player.set_gravity(1.0f); | ||
} | ||
} |
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