Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- You can no longer steal weapons given through my jobranks addon if config is set to not allow stealing job equipment
- Ragdoll should now be removed if disconnecting while knocked out
- Added support for ezJobs
- Added German language (http://steamcommunity.com/id/ggg-speedy/ )
- Configs added:
- Restructured jobs configs (resetup these) Should improve performance -> no more table.HasValue
- ]]
- RKidnapConfig = RKidnapConfig or {}
- --Contact me on SF for help to translate
- --Languages available:
- --[[
- Chinese
- English
- French
- German
- Slovak
- Spanish
- ]]
- RKidnapConfig.LanguageToUse = "English"
- //How much can you maximum steal from a player?
- RKidnapConfig.MaxMoneySteal = 1000
- //Should it steal a random amount?
- RKidnapConfig.MoneyStealRandomAmount = true
- //How long before players can be robbed of money again
- RKidnapConfig.MoneyStealCD = 500
- //Range for restraining
- RKidnapConfig.RestrainRange = 75
- //Max drag range
- RKidnapConfig.DragMaxRange = 175
- //How long it takes to restrain someone
- RKidnapConfig.RestrainTime = 3
- //Calculates Movement/Penalty, so 2 would make player move half as fast
- //Moving penalty while restrained
- RKidnapConfig.RestrainedMovePenalty = 3
- //Moving penalty while dragging
- RKidnapConfig.DraggingMovePenalty = 3
- //Displays if player is restrained overhead while aiming at him
- RKidnapConfig.DisplayOverheadRestrained = false
- //Setting this to true will cause the system to bonemanipulate clientside, might cause sync issues but won't require you to install all playermodels on the server
- RKidnapConfig.BoneManipulateClientside = false
- //How long should a player be knocked out?
- RKidnapConfig.KnockoutTime = 20
- //Allows to gravgun knocked out players ragdolls
- RKidnapConfig.AllowGravGunRagdolls = true
- //Key to press on a player to open up option menu
- //https://wiki.garrysmod.com/page/Enums/IN
- RKidnapConfig.KEY = IN_USE
- RKidnapConfig.SurrenderEnabled = true
- //All keys can be found here -> https://wiki.garrysmod.com/page/Enums/KEY
- //Key for surrendering
- RKidnapConfig.SurrenderKey = KEY_T
- //You can't surrender while holding these weapons
- RKidnapConfig.SurrenderWeaponWhitelist = {
- ["weapon_arc_phone"] = true,
- }
- //Restrict to whitelisted jobs
- RKidnapConfig.RestrictToJobs = false
- local function RKidnap_init()
- timer.Simple(3, function()
- //Restrict weapon to these jobs
- RKidnapConfig.Jobs = {
- [TEAM_GANG] = true,
- [TEAM_MOB] = true,
- }
- //Jobs that can't be restrained
- RKidnapConfig.ImmuneJobs = {
- [TEAM_CHIEF] = true,
- [TEAM_POLICE] = true,
- }
- end)
- end
- if ezJobs then
- hook.Add("ezJobsLoaded", "RKidnap_init", RKidnap_init)
- else
- hook.Add("loadCustomDarkRPItems", "RKidnap_init", RKidnap_init)
- end
- //Disables drawing player shadow
- //Only use this if the shadows are causing issues
- //This is a temp fix, will be fixed in the future
- RKidnapConfig.DisablePlayerShadow = false
- //Should players be allowed to steal weapons from restrained players?
- RKidnapConfig.AllowStealingWeapons = true
- //Should it be possible to steal weapons given through job?
- RKidnapConfig.AllowStealingJobWeapons = false
- RKidnapConfig.BlackListedWeapons = {
- ["gmod_tool"] = true,
- ["weapon_keypadchecker"] = true,
- ["vc_wrench"] = true,
- ["vc_jerrycan"] = true,
- ["vc_spikestrip_wep"] = true,
- ["laserpointer"] = true,
- ["remotecontroller"] = true,
- ["idcard"] = true,
- ["pickpocket"] = true,
- ["keys"] = true,
- ["pocket"] = true,
- ["driving_license"] = true,
- ["firearms_license"] = true,
- ["weapon_physcannon"] = true,
- ["gmod_camera"] = true,
- ["weapon_physgun"] = true,
- ["weapon_r_restrained"] = true,
- ["tbfy_surrendered"] = true,
- ["weapon_r_cuffed"] = true,
- ["collections_bag"] = true,
- ["weapon_fists"] = true,
- ["weapon_arc_atmcard"] = true,
- ["itemstore_pickup"] = true,
- ["weapon_checker"] = true,
- ["driving_license_checker"] = true,
- ["fine_list"] = true,
- ["weapon_r_handcuffs"] = true,
- ["door_ram"] = true,
- ["med_kit"] = true,
- ["stunstick"] = true,
- ["arrest_stick"] = true,
- ["unarrest_stick"] = true,
- ["weaponchecker"] = true,
- }
- //Add all female models here or the restrain positioning will be weird
- //It's case sensitive, make sure all letters are lowercase
- RKidnapConfig.FEMALE_MODELS = {
- "models/player/group01/female_01.mdl",
- "models/player/group01/female_02.mdl",
- "models/player/group01/female_03.mdl",
- "models/player/group01/female_04.mdl",
- "models/player/group01/female_05.mdl",
- "models/player/group01/female_06.mdl",
- "models/player/group03/female_01.mdl",
- "models/player/group03/female_02.mdl",
- "models/player/group03/female_03.mdl",
- "models/player/group03/female_04.mdl",
- "models/player/group03/female_05.mdl",
- "models/player/group03/female_06.mdl",
- }
- //Allows adjustment of models that the default blindfold doesn't fit on
- //RKS_AdjustBlindfold[MODELPATH] = {SIZE, LEFT/RIGHT, UP/DOWN, FORWARD/BACKWARD}
- RKidnapConfig.AdjustBlindfold = {}
- RKidnapConfig.AdjustBlindfold["models/player/group01/male_03.mdl"] = {1,0,4,1}
- RKidnapConfig.AdjustBlindfold["models/player/group01/male_06.mdl"] = {1.07,0.05,4.3,1}
- RKidnapConfig.AdjustBlindfold["models/player/group01/male_09.mdl"] = {1.04,0.05,4.3,0.5}
- //Allows adjustment of models that the default gag doesn't fit on
- RKidnapConfig.AdjustGag = {}
- RKidnapConfig.AdjustGag["models/player/group01/male_03.mdl"] = {1,0,0.7,1.3}
- RKidnapConfig.AdjustGag["models/player/group01/male_06.mdl"] = {1.07,0,0.7,1.6}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement