Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1.  
  2. --[[
  3. You can no longer steal weapons given through my jobranks addon if config is set to not allow stealing job equipment
  4. Ragdoll should now be removed if disconnecting while knocked out
  5. Added support for ezJobs
  6. Added German language (http://steamcommunity.com/id/ggg-speedy/ )
  7.  
  8. Configs added:
  9. Restructured jobs configs (resetup these) Should improve performance -> no more table.HasValue
  10. ]]
  11.  
  12. RKidnapConfig = RKidnapConfig or {}
  13. --Contact me on SF for help to translate
  14. --Languages available:
  15. --[[
  16. Chinese
  17. English
  18. French
  19. German
  20. Slovak
  21. Spanish
  22. ]]
  23. RKidnapConfig.LanguageToUse = "English"
  24. //How much can you maximum steal from a player?
  25. RKidnapConfig.MaxMoneySteal = 1000
  26. //Should it steal a random amount?
  27. RKidnapConfig.MoneyStealRandomAmount = true
  28. //How long before players can be robbed of money again
  29. RKidnapConfig.MoneyStealCD = 500
  30. //Range for restraining
  31. RKidnapConfig.RestrainRange = 75
  32. //Max drag range
  33. RKidnapConfig.DragMaxRange = 175
  34. //How long it takes to restrain someone
  35. RKidnapConfig.RestrainTime = 3
  36. //Calculates Movement/Penalty, so 2 would make player move half as fast
  37. //Moving penalty while restrained
  38. RKidnapConfig.RestrainedMovePenalty = 3
  39. //Moving penalty while dragging
  40. RKidnapConfig.DraggingMovePenalty = 3
  41. //Displays if player is restrained overhead while aiming at him
  42. RKidnapConfig.DisplayOverheadRestrained = false
  43. //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
  44. RKidnapConfig.BoneManipulateClientside = false
  45. //How long should a player be knocked out?
  46. RKidnapConfig.KnockoutTime = 20
  47. //Allows to gravgun knocked out players ragdolls
  48. RKidnapConfig.AllowGravGunRagdolls = true
  49. //Key to press on a player to open up option menu
  50. //https://wiki.garrysmod.com/page/Enums/IN
  51. RKidnapConfig.KEY = IN_USE
  52.  
  53. RKidnapConfig.SurrenderEnabled = true
  54. //All keys can be found here -> https://wiki.garrysmod.com/page/Enums/KEY
  55. //Key for surrendering
  56. RKidnapConfig.SurrenderKey = KEY_T
  57. //You can't surrender while holding these weapons
  58. RKidnapConfig.SurrenderWeaponWhitelist = {
  59. ["weapon_arc_phone"] = true,
  60. }
  61. //Restrict to whitelisted jobs
  62. RKidnapConfig.RestrictToJobs = false
  63. local function RKidnap_init()
  64. timer.Simple(3, function()
  65. //Restrict weapon to these jobs
  66. RKidnapConfig.Jobs = {
  67. [TEAM_GANG] = true,
  68. [TEAM_MOB] = true,
  69. }
  70. //Jobs that can't be restrained
  71. RKidnapConfig.ImmuneJobs = {
  72. [TEAM_CHIEF] = true,
  73. [TEAM_POLICE] = true,
  74. }
  75. end)
  76. end
  77.  
  78. if ezJobs then
  79. hook.Add("ezJobsLoaded", "RKidnap_init", RKidnap_init)
  80. else
  81. hook.Add("loadCustomDarkRPItems", "RKidnap_init", RKidnap_init)
  82. end
  83.  
  84. //Disables drawing player shadow
  85. //Only use this if the shadows are causing issues
  86. //This is a temp fix, will be fixed in the future
  87. RKidnapConfig.DisablePlayerShadow = false
  88.  
  89. //Should players be allowed to steal weapons from restrained players?
  90. RKidnapConfig.AllowStealingWeapons = true
  91. //Should it be possible to steal weapons given through job?
  92. RKidnapConfig.AllowStealingJobWeapons = false
  93. RKidnapConfig.BlackListedWeapons = {
  94. ["gmod_tool"] = true,
  95. ["weapon_keypadchecker"] = true,
  96. ["vc_wrench"] = true,
  97. ["vc_jerrycan"] = true,
  98. ["vc_spikestrip_wep"] = true,
  99. ["laserpointer"] = true,
  100. ["remotecontroller"] = true,
  101. ["idcard"] = true,
  102. ["pickpocket"] = true,
  103. ["keys"] = true,
  104. ["pocket"] = true,
  105. ["driving_license"] = true,
  106. ["firearms_license"] = true,
  107. ["weapon_physcannon"] = true,
  108. ["gmod_camera"] = true,
  109. ["weapon_physgun"] = true,
  110. ["weapon_r_restrained"] = true,
  111. ["tbfy_surrendered"] = true,
  112. ["weapon_r_cuffed"] = true,
  113. ["collections_bag"] = true,
  114. ["weapon_fists"] = true,
  115. ["weapon_arc_atmcard"] = true,
  116. ["itemstore_pickup"] = true,
  117. ["weapon_checker"] = true,
  118. ["driving_license_checker"] = true,
  119. ["fine_list"] = true,
  120. ["weapon_r_handcuffs"] = true,
  121. ["door_ram"] = true,
  122. ["med_kit"] = true,
  123. ["stunstick"] = true,
  124. ["arrest_stick"] = true,
  125. ["unarrest_stick"] = true,
  126. ["weaponchecker"] = true,
  127. }
  128.  
  129. //Add all female models here or the restrain positioning will be weird
  130. //It's case sensitive, make sure all letters are lowercase
  131. RKidnapConfig.FEMALE_MODELS = {
  132. "models/player/group01/female_01.mdl",
  133. "models/player/group01/female_02.mdl",
  134. "models/player/group01/female_03.mdl",
  135. "models/player/group01/female_04.mdl",
  136. "models/player/group01/female_05.mdl",
  137. "models/player/group01/female_06.mdl",
  138. "models/player/group03/female_01.mdl",
  139. "models/player/group03/female_02.mdl",
  140. "models/player/group03/female_03.mdl",
  141. "models/player/group03/female_04.mdl",
  142. "models/player/group03/female_05.mdl",
  143. "models/player/group03/female_06.mdl",
  144. }
  145.  
  146. //Allows adjustment of models that the default blindfold doesn't fit on
  147. //RKS_AdjustBlindfold[MODELPATH] = {SIZE, LEFT/RIGHT, UP/DOWN, FORWARD/BACKWARD}
  148. RKidnapConfig.AdjustBlindfold = {}
  149. RKidnapConfig.AdjustBlindfold["models/player/group01/male_03.mdl"] = {1,0,4,1}
  150. RKidnapConfig.AdjustBlindfold["models/player/group01/male_06.mdl"] = {1.07,0.05,4.3,1}
  151. RKidnapConfig.AdjustBlindfold["models/player/group01/male_09.mdl"] = {1.04,0.05,4.3,0.5}
  152.  
  153. //Allows adjustment of models that the default gag doesn't fit on
  154. RKidnapConfig.AdjustGag = {}
  155. RKidnapConfig.AdjustGag["models/player/group01/male_03.mdl"] = {1,0,0.7,1.3}
  156. 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