mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
44 lines
1.0 KiB
Lua
44 lines
1.0 KiB
Lua
--[[
|
|
| 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/
|
|
--]]
|
|
|
|
|
|
local PLUGIN = PLUGIN
|
|
|
|
PLUGIN.name = "Rappelling"
|
|
PLUGIN.author = "wowm0d"
|
|
PLUGIN.description = "Adds rappelling gear into the Schema."
|
|
PLUGIN.schema = "HL2 RP"
|
|
PLUGIN.license = [[
|
|
Copyright 2022 wowm0d
|
|
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
|
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
|
|
]]
|
|
|
|
ix.util.Include("sv_plugin.lua")
|
|
ix.util.Include("sh_hooks.lua")
|
|
ix.util.Include("sv_hooks.lua")
|
|
|
|
function PLUGIN:StartRappel(client)
|
|
client.rappelling = true
|
|
client.rappelPos = client:GetPos()
|
|
|
|
if (SERVER) then
|
|
self:CreateRope(client)
|
|
end
|
|
end
|
|
|
|
function PLUGIN:EndRappel(client)
|
|
client.rappelling = nil
|
|
|
|
if (SERVER) then
|
|
self:RemoveRope(client)
|
|
end
|
|
end
|