[CS:S?/CS:GO] Noknife / !disarm

Post Reply
User avatar
Andreeas
Hero Member
Hero Member
Posts: 601
Joined: Wed Jan 22, 2020 8:17 pm
Jucator SA:MP ?: Nu
Nick:: Andreeas
Jucator CS ?: Nu

[CS:S?/CS:GO] Noknife / !disarm

Post by Andreeas »

1 - Description
This is a (somewhat) simple plugin, which allows players to type !noknife (or also !disarm) to hide their knife and optionally, all other weapons.
Mostly useful for Surf/Bhop servers, where you don't really need weapons anyways.

The commands supplied by this plugin are opt-in, meaning that per default, players will have their weapons (see section 5).

Tested with CS:GO, should work with CS:S, altough untested there.

Before you ask: no, this plugin does not breach any rules imposed by Valve, as it only spawns the default knife entity (if even).

2 - Commands
sm_noknife/sm_disarm - toggle, hide/show your knife.
sm_knife - various actions (see cvars)

3 - CVar's
sm_noknife_version - version, ignore that
sm_noknife_knife_only (def. 1) - enable to only allow the knife being given to players (sets mp_[t/ct]_default_primary/secondary/grenades cvars)
sm_noknife_strip_other (def. 0) - when using !noknife, remove all other weapons too (become entirely civilian)
sm_noknife_removal_info (def. 1) - behaviour done when a player types !knife: 0 = do nothing ("unknown command"), 1 = show informational message (as in, community servers are no longer allowed to hand out fake econ items), 2 = alias for !noknife

4 - Requirements
SourceMod 1.7+
Clientprefs (per default included in SM)

5 - Installation
The installation is pretty straightforward:
- Extract the translations.zip and upload the extracted directories/files into your SM directory
- Upload noknife.smx to your plugins/ folder
- Use sm plugins load noknife / change map / restart server
- The plugin auto-generates a plugin.noknife.cfg inside your cfg/sourcemod directory, configure the cvars there.
- Read the section below

PLEASE READ THIS!
A lot of skill-based maps (i.e. surf/bhop) strip off all weapons from players, so this plugin will accomplish nothing.
In order for clients to get their default items, download Stripper:Source, install it and put the following at the end of the addons/stripper/global_filters.cfg:
remove:
{
"classname" "game_player_equip"
}

remove:
{
"classname" "trigger_weapon_strip"
}

remove:
{
"classname" "player_weaponstrip"
}


ZIP Archive
Download
Source
Post Reply

Return to “General Purpose”