mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
46
gamemodes/base/gamemode/cl_spawnmenu.lua
Normal file
46
gamemodes/base/gamemode/cl_spawnmenu.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
Spawn Menu
|
||||
-----------------------------------------------------------]]
|
||||
function GM:OnSpawnMenuOpen()
|
||||
end
|
||||
|
||||
function GM:OnSpawnMenuClose()
|
||||
end
|
||||
|
||||
concommand.Add( "+menu", function()
|
||||
hook.Run( "OnSpawnMenuOpen" )
|
||||
end, nil, "Opens the spawnmenu", FCVAR_DONTRECORD )
|
||||
|
||||
concommand.Add( "-menu", function()
|
||||
if ( input.IsKeyTrapping() ) then return end
|
||||
hook.Run( "OnSpawnMenuClose" )
|
||||
end, nil, "Closes the spawnmenu", FCVAR_DONTRECORD )
|
||||
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
Context Menu
|
||||
-----------------------------------------------------------]]
|
||||
function GM:OnContextMenuOpen()
|
||||
end
|
||||
|
||||
function GM:OnContextMenuClose()
|
||||
end
|
||||
|
||||
concommand.Add( "+menu_context", function()
|
||||
hook.Run( "OnContextMenuOpen" )
|
||||
end, nil, "Opens the context menu", FCVAR_DONTRECORD )
|
||||
|
||||
concommand.Add( "-menu_context", function()
|
||||
if ( input.IsKeyTrapping() ) then return end
|
||||
hook.Run( "OnContextMenuClose" )
|
||||
end, nil, "Closes the context menu", FCVAR_DONTRECORD )
|
||||
Reference in New Issue
Block a user