Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------------------------------------------------------
  2. ----------------------------------------------------------------------------------
  3. -- Base Configuration
  4. ----------------------------------------------------------------------------------
  5. ----------------------------------------------------------------------------------
  6.  
  7. ConfigurationMedicMod.AddonName = "MedicMOD"
  8.  
  9. -- Percentage of chance that the shock of the defibrillator works ( Default : 50 )
  10. ConfigurationMedicMod.DefibrillatorShockChance = 50
  11.  
  12. ConfigurationMedicMod.MorphineEffectTime = 15
  13.  
  14. ConfigurationMedicMod.MoneyUnit = "$"
  15.  
  16. ConfigurationMedicMod.ScanRadioTime = 5
  17.  
  18. ConfigurationMedicMod.HealedOnChangingJob = false
  19.  
  20. ConfigurationMedicMod.SurgicalOperationTime = 20
  21. ConfigurationMedicMod.HealthUnitPrice = 3
  22. ConfigurationMedicMod.FractureRepairPrice = 75
  23.  
  24. ConfigurationMedicMod.ForceRespawn = true
  25. -- if forcerespawn is set to true :
  26. ConfigurationMedicMod.TimeBeforeRespawn = 60
  27. ConfigurationMedicMod.TimeBeforeRespawnIfStable = 10*60
  28.  
  29. ConfigurationMedicMod.DamagePerSecsDuringBleeding = 1
  30. ConfigurationMedicMod.DamagePerSecsDuringPoisoned = 0.25
  31.  
  32. -- if the player get X damage on his leg or his arm, then he'll have a fracture
  33. ConfigurationMedicMod.MinimumDamageToGetFractures = 45
  34.  
  35. ConfigurationMedicMod.CanGetFractures = true
  36. ConfigurationMedicMod.CanGetBleeding = true
  37. ConfigurationMedicMod.CanGetPoisoned = true
  38.  
  39. ConfigurationMedicMod.TimeToQuickAnalyse = 3
  40.  
  41. -- If the player can do CPR to another player
  42. ConfigurationMedicMod.CanCPR = true
  43. -- CPR Key, list of keys can be find here : http://wiki.garrysmod.com/page/Enums/BUTTON_CODE
  44. ConfigurationMedicMod.CPRKey = KEY_R
  45.  
  46. ConfigurationMedicMod.FracturePlayerSpeed = 100
  47.  
  48. ConfigurationMedicMod.Vehicles["models/tiggomods/gta/vc/ambulance.mdl"] = {
  49. buttonPos = Vector(-70.485283, -21.343185, -19.783451),
  50. buttonAngle = Angle(0,0,0),
  51. stretcherPos = Vector(0,-80,40),
  52. stretcherAngle = Angle(0,0,0),
  53. drawStretcher = false,
  54. backPos = Vector(-194.744202, 1.830775, 0)
  55. }
  56.  
  57. timer.Simple(0, function() -- don't touch this
  58.  
  59.  
  60. ConfigurationMedicMod.MedicTeams = {
  61. TEAM_MEDYK,
  62. }
  63.  
  64.  
  65. end) -- don't touch this
  66.  
  67. local lang = ConfigurationMedicMod.Language
  68. local sentences = ConfigurationMedicMod.Sentences
  69. local function AddReagent( name, color ) ConfigurationMedicMod.AddReagent( name, color ) end
  70. local function AddDrug( name, ing1, ing2, ing3, func ) ConfigurationMedicMod.AddDrug( name, ing1, ing2, ing3, func ) end
  71.  
  72. ----------------------------------------------------------------------------------
  73. ----------------------------------------------------------------------------------
  74.  
  75. -- Add reagents (ingredients) for drugs
  76. -- AddReagent( name, color )
  77.  
  78.  
  79. AddReagent(sentences["Aminophenol"][lang] ,Color(255,0,0))
  80. AddReagent(sentences["Water"][lang], Color(64, 164, 223) )
  81. AddReagent(sentences["Ethanoic anhydride"][lang],Color(255,255,0))
  82. AddReagent(sentences["Potassium iodide"][lang], Color(255,255,255))
  83. AddReagent(sentences["Ethanol"][lang],Color(255,255,255,150))
  84. AddReagent(sentences["Sulfuric acid"][lang],Color(0,255,0))
  85. AddReagent("Calcium ("..string.lower(sentences["Left arm"][lang])..")",Color(120,140,126))
  86. AddReagent("Calcium ("..string.lower(sentences["Right arm"][lang])..")",Color(120,140,126))
  87. AddReagent("Calcium ("..string.lower(sentences["Left leg"][lang])..")",Color(120,140,126))
  88. AddReagent("Calcium ("..string.lower(sentences["Right leg"][lang])..")",Color(120,140,126))
  89.  
  90. ----------------------------------------------------------------------------------
  91. ----------------------------------------------------------------------------------
  92.  
  93. -- Add drugs
  94. -- AddDrug( name, reagent1, reagent2, reagent3, function(ply) end )
  95. -- if there is no reagent 2 or 3 then replace them by nil
  96.  
  97. AddDrug(sentences["Tylenol"][lang], sentences["Aminophenol"][lang], sentences["Water"][lang], sentences["Ethanoic anhydride"][lang], function(ply) ply:MedicNotif(sentences["You have been healed"][lang]) ply:SetHealth(ply:GetMaxHealth()) end )
  98. AddDrug(sentences["Antidote"][lang],sentences["Potassium iodide"][lang], nil, nil, function(ply) ply:SetPoisoned( false ) ply:MedicNotif( sentences["You have stopped your poisoning"][lang], 5 ) end)
  99. AddDrug(sentences["Morphine"][lang], sentences["Water"][lang],sentences["Ethanol"][lang],sentences["Sulfuric acid"][lang], function(ply) ply:SetMorphine( true ) ply:MedicNotif( sentences["You injected some morphine"][lang], 5 ) end)
  100. AddDrug(sentences["Drug"][lang].."("..string.lower(sentences["Left arm"][lang])..")", "Calcium ("..string.lower(sentences["Left arm"][lang])..")", nil, nil, function(ply) ply:SetFracture( false, HITGROUP_LEFTARM) end)
  101. AddDrug(sentences["Drug"][lang].."("..string.lower(sentences["Right arm"][lang])..")", "Calcium ("..string.lower(sentences["Right arm"][lang])..")", nil, nil, function(ply) ply:SetFracture( false, HITGROUP_RIGHTARM) end )
  102. AddDrug(sentences["Drug"][lang].."("..string.lower(sentences["Left leg"][lang])..")", "Calcium ("..string.lower(sentences["Left leg"][lang])..")", nil, nil, function(ply) ply:SetFracture( false, HITGROUP_LEFTLEG) end )
  103. AddDrug(sentences["Drug"][lang].."("..string.lower(sentences["Right leg"][lang])..")", "Calcium ("..string.lower(sentences["Right leg"][lang])..")", nil, nil, function(ply) ply:SetFracture( false, HITGROUP_RIGHTLEG) end )
  104.  
  105. ----------------------------------------------------------------------------------
  106. ----------------------------------------------------------------------------------
  107.  
  108. -- List of entities that can be bought with the terminal
  109. ConfigurationMedicMod.Entities[1] = {
  110. name = sentences["Bandage"][lang],
  111. ent = "bandage",
  112. price = 20,
  113. mdl = "models/medicmod/bandage/bandage.mdl",
  114. func = function(ply, ent, price)
  115. if ply:Team() != TEAM_MEDYK then
  116. ply:MedicNotif("Nie jestes medykiem!")
  117. return
  118. end
  119. if ply:HasWeapon( ent ) then
  120. ply:MedicNotif(sentences["You already carry this element on you"][lang])
  121. return
  122. end
  123. ply:addMoney( -price )
  124. ply:Give(ent)
  125. ply:MedicNotif("Kupiles bandaz")
  126. end
  127. }
  128. ConfigurationMedicMod.Entities[2] = {
  129. name = sentences["Morphine"][lang],
  130. ent = "syringe_morphine",
  131. price = 35,
  132. mdl = "models/medicmod/syringe/w_syringe.mdl",
  133. func = function(ply, ent, price)
  134. if ply:Team() != TEAM_MEDYK then
  135. ply:MedicNotif("Nie jestes medykiem!")
  136. return
  137. end
  138. if ply:HasWeapon( ent ) then
  139. ply:MedicNotif(sentences["You already carry this element on you"][lang])
  140. return
  141. end
  142. ply:addMoney( -price )
  143. ply:Give(ent)
  144. ply:MedicNotif("Kupiles morfine")
  145. end
  146. }
  147. ConfigurationMedicMod.Entities[3] = {
  148. name = sentences["Antidote"][lang],
  149. ent = "syringe_antidote",
  150. price = 40,
  151. mdl = "models/medicmod/syringe/w_syringe.mdl",
  152. func = function(ply, ent, price)
  153. if ply:Team() != TEAM_MEDYK then
  154. ply:MedicNotif("Nie jestes medykiem!")
  155. return
  156. end
  157. if ply:HasWeapon( ent ) then
  158. ply:MedicNotif(sentences["You already carry this element on you"][lang])
  159. return
  160. end
  161. ply:addMoney( -price )
  162. ply:Give(ent)
  163. ply:MedicNotif("Kupiles antidotum")
  164. end
  165. }
  166. ConfigurationMedicMod.Entities[4] = {
  167. name = sentences["First Aid Kit"][lang],
  168. ent = "first_aid_kit",
  169. price = 200,
  170. mdl = "models/medicmod/firstaidkit/firstaidkit.mdl",
  171. func = function(ply, ent, price)
  172. if ply:HasWeapon( ent ) then
  173. if ply:Team() != TEAM_MEDYK then
  174. ply:MedicNotif("Nie jestes medykiem!")
  175. return
  176. end
  177. ply:MedicNotif(sentences["You already carry a medical kit on you"][lang])
  178. return
  179. end
  180. ply:addMoney( -price )
  181. ply:Give(ent)
  182. local weap = ply:GetWeapon(ent)
  183. weap:SetBandage( 3 )
  184. weap:SetAntidote( 1 )
  185. weap:SetMorphine( 2 )
  186. ply:MedicNotif("Kupiles medyk")
  187. end
  188. }
  189.  
  190. ----------------------------------------------------------------------------------
  191. ----------------------------------------------------------------------------------
  192.  
  193. ConfigurationMedicMod.DamagePoisoned[DMG_PARALYZE]=true
  194. ConfigurationMedicMod.DamagePoisoned[DMG_POISON]=true
  195. ConfigurationMedicMod.DamagePoisoned[DMG_ACID]=true
  196. ConfigurationMedicMod.DamagePoisoned[DMG_RADIATION]=true
  197.  
  198. ConfigurationMedicMod.DamageBleeding[DMG_BULLET]=true
  199. ConfigurationMedicMod.DamageBleeding[DMG_CRUSH]=false
  200. ConfigurationMedicMod.DamageBleeding[DMG_SLASH]=false
  201. ConfigurationMedicMod.DamageBleeding[DMG_VEHICLE]=true
  202. ConfigurationMedicMod.DamageBleeding[DMG_BLAST]=false
  203. ConfigurationMedicMod.DamageBleeding[DMG_CLUB]=false
  204. ConfigurationMedicMod.DamageBleeding[DMG_AIRBOAT]=false
  205. ConfigurationMedicMod.DamageBleeding[DMG_BLAST_SURFACE]=false
  206. ConfigurationMedicMod.DamageBleeding[DMG_BUCKSHOT]=true
  207. ConfigurationMedicMod.DamageBleeding[DMG_PHYSGUN]=false
  208. ConfigurationMedicMod.DamageBleeding[DMG_FALL]=false
  209. ConfigurationMedicMod.DamageBleeding[DMG_MEDICMODBLEEDING]=true
  210.  
  211. ConfigurationMedicMod.DamageBurn[DMG_BURN]=true
  212. ConfigurationMedicMod.DamageBurn[DMG_SLOWBURN]=true
  213.  
  214. ----------------------------------------------------------------------------------
  215. ----------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement