mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 06:03:47 +03:00
Upload
This commit is contained in:
74
gamemodes/ixhl2rp/plugins/ln_hints/cl_hooks.lua
Normal file
74
gamemodes/ixhl2rp/plugins/ln_hints/cl_hooks.lua
Normal file
@@ -0,0 +1,74 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
-- Called after all the plugins have been initialized.
|
||||
function PLUGIN:InitializedPlugins()
|
||||
ix.hints.Add("Type // before your message to talk out-of-character.")
|
||||
ix.hints.Add("Type .// or [[ before your message to talk out-of-character locally.")
|
||||
ix.hints.Add("Toggle ducking by holding ALT and pressing SHIFT while standing still.")
|
||||
ix.hints.Add("Press TAB to view the main menu, or hold TAB to temporarily view it.")
|
||||
ix.hints.Add("Press E while looking at an entity to open its menu.")
|
||||
ix.hints.Add("You can change your character's physical description through the /CharDesc command, the TAB menu, or the F1 menu.")
|
||||
ix.hints.Add("Use the /CharSearch command to search the character that you are looking at.")
|
||||
ix.hints.Add("You can tie characters by using a Zip Tie while looking at them.")
|
||||
ix.hints.Add("You can configure your Clientside settings through the settings menu.")
|
||||
ix.hints.Add("Want to own a Business? Contact the Department of Business.")
|
||||
ix.hints.Add("The server would not be where it currently is without the support of the community. Want to support us more? Consider donating.")
|
||||
ix.hints.Add("Be careful not to drown when going for a swim.")
|
||||
ix.hints.Add("Your character is only human, refrain from jumping off high ledges.")
|
||||
ix.hints.Add("Do not forget to sleep, your character gets tired.")
|
||||
ix.hints.Add("Try to make some friends, misery loves company.")
|
||||
ix.hints.Add("Do not do the crime if you are not prepared to do the time.")
|
||||
ix.hints.Add("The streets of the city are under constant surveillance by the Combine. Be careful.")
|
||||
ix.hints.Add("Do not chase the resistance, the Combine may group you together.")
|
||||
ix.hints.Add("Do not mess with the Combine, they took over Earth in 7 hours.")
|
||||
ix.hints.Add("Got that feeling you just want to punch somebody? Don't.")
|
||||
ix.hints.Add("Obey the Combine, you will be glad that you did.")
|
||||
ix.hints.Add("When the Combine come knocking, get your ass on the floor.")
|
||||
ix.hints.Add("Need to reach Civil Protection? Invest in a request device.")
|
||||
ix.hints.Add("The Civil Protection protects the civilized society, not you.")
|
||||
ix.hints.Add("The staff are here to help you, please respect and co-operate with them.")
|
||||
ix.hints.Add("Try to speak correctly in-character, and do not use emoticons.")
|
||||
ix.hints.Add("Got somewhere to go? Fancy a run? Well don't, it's uncivilized.")
|
||||
ix.hints.Add("When engaged in a S2K firefight, shoot to miss to make it more enjoyable.")
|
||||
ix.hints.Add("Metagaming is when you use OOC information in-character. Don't do it.")
|
||||
ix.hints.Add("Remember, this is a roleplaying server. You are playing as a character, not yourself.")
|
||||
ix.hints.Add("Metabaiting is when you share IC information out-of-character. Don't do it.")
|
||||
ix.hints.Add("If you are bored and there's no action, try some passive roleplay.")
|
||||
ix.hints.Add("Develop your character, give them a story to tell. You will not regret it.")
|
||||
ix.hints.Add("Powergaming is when you force your actions on others. Don't do it.")
|
||||
ix.hints.Add("When rolling, choose an attribute that represents your action best.")
|
||||
ix.hints.Add("Most factions have private OOC chats. Access them by entering the faction's initials in the chat.")
|
||||
ix.hints.Add("Press F3 to allow characters within a specific range to recognise you.")
|
||||
ix.hints.Add("You can set a Fake Name to recognize yourself with through the Character menu.")
|
||||
ix.hints.Add("Need to note something down for later? Use the Personal Notes through the F1 menu.")
|
||||
ix.hints.Add("You can visualize your character's actions through the /Act commands.")
|
||||
ix.hints.Add("Too used to Clockwork animations? You can execute action commands through the /Anim prefix, too.")
|
||||
ix.hints.Add("Action commands have an /Anim alias for Clockwork users.")
|
||||
ix.hints.Add("You can change the volume of the Ambient Music or disable it through the settings menu.")
|
||||
ix.hints.Add("Not enough space? Use containers to store items, or invest in a backpack.")
|
||||
ix.hints.Add("Want a custom item? Ask a member of Staff to make one for you through @.")
|
||||
ix.hints.Add("Dark? Can't see? Invest in a flashlight.")
|
||||
ix.hints.Add("Try looking around dark alleyways, corners, and trash cans - maybe you will find something useful.")
|
||||
ix.hints.Add("You can combine items together to create new items through the Crafting menu.")
|
||||
ix.hints.Add("Most items can be disassembled and salvaged for resources through the Crafting menu.")
|
||||
ix.hints.Add("Bored? Read a book. Give your character some knowledge.")
|
||||
ix.hints.Add("Get yourself a radio to communicate over long distances. Careful; they are illegal.")
|
||||
ix.hints.Add("Is a scanner about to take a picture of you? Smile! Every CP in the district is about to see your face.")
|
||||
ix.hints.Add("Staying underground for too long will cause you to inhale harmful gases.")
|
||||
ix.hints.Add("You can turn these hints off through the settings menu.")
|
||||
ix.hints.Add("You can adjust the hint interval in the settings menu.")
|
||||
ix.hints.Add("Injured? Visit the Civil Medical Union. Their services are free!")
|
||||
ix.hints.Add("You can donate blood to the Civil Medical Union in return for a Social Credit coupon.")
|
||||
ix.hints.Add("You can configure your game's message 'flash' settings through the settings menu.")
|
||||
ix.hints.Add("Stuck in a wall? Got prop-killed? Use the /UnStuck command! Careful, abuse will foresee punishment.")
|
||||
ix.hints.Add("Adjust the intensity of the Immersive First Person through the settings menu.")
|
||||
end
|
||||
28
gamemodes/ixhl2rp/plugins/ln_hints/cl_plugin.lua
Normal file
28
gamemodes/ixhl2rp/plugins/ln_hints/cl_plugin.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
net.Receive("ixInitializeHints", function()
|
||||
if (ix.option.Get("enableHints", true)) then
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
return
|
||||
end
|
||||
|
||||
timer.Create("ixHintsTimer", ix.option.Get("hintInterval", 300), 0, function()
|
||||
if (!LocalPlayer():GetCharacter()) then
|
||||
return
|
||||
end
|
||||
|
||||
if (ix.gui.notices) then
|
||||
ix.gui.notices:AddNotice(ix.hints.stored[math.random(1, #ix.hints.stored)])
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
17
gamemodes/ixhl2rp/plugins/ln_hints/languages/sh_english.lua
Normal file
17
gamemodes/ixhl2rp/plugins/ln_hints/languages/sh_english.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
LANGUAGE = {
|
||||
optEnableHints = "Enable Hints",
|
||||
optdEnableHints = "Whether you should get server hints every few minutes.",
|
||||
optHintInterval = "Hint Interval",
|
||||
optdHintInterval = "The interval at which server hints are displayed."
|
||||
}
|
||||
20
gamemodes/ixhl2rp/plugins/ln_hints/libs/cl_hints.lua
Normal file
20
gamemodes/ixhl2rp/plugins/ln_hints/libs/cl_hints.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
ix.hints = ix.hints or {}
|
||||
ix.hints.stored = ix.hints.stored or {}
|
||||
|
||||
-- A function to register a hint.
|
||||
function ix.hints.Add(hint)
|
||||
if (!table.HasValue(ix.hints.stored, hint)) then
|
||||
ix.hints.stored[#ix.hints.stored + 1] = hint
|
||||
end
|
||||
end
|
||||
34
gamemodes/ixhl2rp/plugins/ln_hints/sh_options.lua
Normal file
34
gamemodes/ixhl2rp/plugins/ln_hints/sh_options.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
ix.option.Add("enableHints", ix.type.bool, true, {
|
||||
category = "appearance",
|
||||
OnChanged = function(oldValue, value)
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
if (value) then
|
||||
timer.UnPause("ixHintsTimer")
|
||||
else
|
||||
timer.Pause("ixHintsTimer")
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
ix.option.Add("hintInterval", ix.type.number, 300, {
|
||||
category = "appearance",
|
||||
min = 1,
|
||||
max = 1800,
|
||||
OnChanged = function(oldValue, value)
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
timer.Adjust("ixHintsTimer", value)
|
||||
end
|
||||
end
|
||||
})
|
||||
20
gamemodes/ixhl2rp/plugins/ln_hints/sh_plugin.lua
Normal file
20
gamemodes/ixhl2rp/plugins/ln_hints/sh_plugin.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
PLUGIN.name = "LN | Hints"
|
||||
PLUGIN.description = "Adds a simple hints system to Helix."
|
||||
PLUGIN.author = "Aspect™"
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
ix.util.Include("sh_options.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
ix.util.Include("sv_plugin.lua")
|
||||
20
gamemodes/ixhl2rp/plugins/ln_hints/sv_hooks.lua
Normal file
20
gamemodes/ixhl2rp/plugins/ln_hints/sv_hooks.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
-- Called after a player has loaded into a character
|
||||
function PLUGIN:PlayerLoadedCharacter(client, character, oldChar)
|
||||
if (!client.hintsInitialized) then
|
||||
net.Start("ixInitializeHints")
|
||||
net.Send(client)
|
||||
|
||||
client.hintsInitialized = true
|
||||
end
|
||||
end
|
||||
12
gamemodes/ixhl2rp/plugins/ln_hints/sv_plugin.lua
Normal file
12
gamemodes/ixhl2rp/plugins/ln_hints/sv_plugin.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
util.AddNetworkString("ixInitializeHints")
|
||||
Reference in New Issue
Block a user