Page 1 of 1

[CS:GO] Spawn with Melee Weapons

Posted: Sun Jan 26, 2020 4:03 pm
by Andreeas
Description:

Force players to spawn different melee weapons that exists in CS:GO like fists, axe, hammer and spanner.


Cvars:
Configure the cvars in the file generated on the first load in cfg/sourcemod/csgo_melee_weapons.cfg

Code: Select all

// ConVars for plugin "csgo_meleeweapons.smx"


// Give axe on spawn? 1 = yes, 0 = no.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_axe "0"

// Block right click? 1 = yes, 0 = no.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_blockattack2 "1"

// Give fists? 1 = yes, 0 = no.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_fists "1"

// Give hammer on spawn? 1 = yes, 0 = no.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_hammer "0"

// Give knife? 1 = yes, 0 = no.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_knife "1"

// Give spanner on spawn? 1 = yes, 0 = no.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_csgomeleeweapons_spanner "0"

// Apply only to a team. 2 = terrorist, 3 = counter-terrorist, 4 = both.
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "4.000000"
sm_csgomeleeweapons_team "4"

// Time in seconds after spawn to give melee weapons.
// -
// Default: "1.6"
// Minimum: "0.000000"
sm_csgomeleeweapons_timer "1.6"

Download
Source