This file contains hidden or 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
| using CounterStrikeSharp.API.Core; | |
| using CounterStrikeSharp.API.Core.Attributes.Registration; | |
| using CounterStrikeSharp.API.Modules.Commands; | |
| using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions; | |
| using CounterStrikeSharp.API.Modules.Cvars; | |
| // Example of how to use ReplicateConVar | |
| // to enable bhop on a per player basis. | |
| public class BhopPlugin : BasePlugin | |
| { |
This file contains hidden or 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
| using CounterStrikeSharp.API; | |
| using CounterStrikeSharp.API.Core; | |
| using CounterStrikeSharp.API.Core.Attributes.Registration; | |
| using CounterStrikeSharp.API.Core.Attributes; | |
| using CounterStrikeSharp.API.Modules.Commands; | |
| using CounterStrikeSharp.API.Modules.Memory; | |
| using System.Drawing; | |
| using System.Reflection; | |
| namespace CS2Plugin; |
This file contains hidden or 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
| // Remove the player clipping, this means you can walk outside the map and go up into the sky unrestricted, | |
| // might be useful for a flying scoutsman type gamemode. As a side effect of this it's likely any stairs | |
| // won't be smooth anymore (your view will jump up a little each step) because it uses the same player clipping. | |
| // Found this by removing each of the flags set one at a time. | |
| public const long SOLID_MASK_PLAYERCLIP = 16; | |
| // How to find | |
| // 1. Find the `dev_create_move_report` convar and check the function it's used in, | |
| // this is a method of CCSPlayer_MovementServices, the first argument is the movement services. |