Skip to content

Commit

Permalink
Workaround to fix knives still apperaing in TTT shop
Browse files Browse the repository at this point in the history
when it's restricted. Possibly fixes issue #2.
  • Loading branch information
xDShot committed Jan 5, 2017
1 parent 3f10919 commit c524d1f
Show file tree
Hide file tree
Showing 193 changed files with 193 additions and 769 deletions.
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_autotronic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_black_laminate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_bluesteel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_boreal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_bright_water.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_case.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_crimsonwebs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_damascus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_ddpat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_fade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_freehand.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_gamma_doppler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_lore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_marblefade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_night.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_rustcoat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_slaughter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_tiger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bayonet_ultraviolet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_bluesteel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_boreal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_bright_water.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_case.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_crimsonwebs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_damascus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_ddpat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_fade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_freehand.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_gamma_doppler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_marblefade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
5 changes: 1 addition & 4 deletions lua/weapons/csgo_bowie_night.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ if ( SERVER ) then
SWEP.AutoSwitchFrom = false

if TTT then
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "knife_desc"
}
SWEP.EquipMenuData = cvars.Bool("csgo_knives_canbuy", true) and { type = "item_weapon", desc = "knife_desc" } of nil
end
end

Expand Down
Loading

0 comments on commit c524d1f

Please sign in to comment.