Advertisement
Guest User

Untitled

a guest
May 30th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. Purge = {} //Don't touch these.
  4.  
  5. Purge.Strings = {} //Please don't.
  6.  
  7. Purge.HUD = {} //I mean it.
  8.  
  9. Purge.Screen = {} //For real though.
  10.  
  11. Purge.ScreenTable = {} //Dead serious.
  12.  
  13. /*----------------------------------------------
  14. [Purge Config File]
  15.  
  16. Change what you need to. Don't forget to reboot
  17. the server after you change something as this is
  18. a shared file between client and server. We wouldn't
  19. want this file to get desynced, wouldn't we...
  20. ----------------------------------------------*/
  21.  
  22. Purge.Enabled = true //Is the addon enabled by default? Options: true/fasle
  23.  
  24. Purge.LastsFor = 5*60 //The time a purge lasts for in seconds. Default is 5 minutes.
  25.  
  26. Purge.Delay = 90*180 //Delay between purges in seconds. Default is 30 minutes. If you go over an hour, change Purge.HUD.TimerFormat to "%H:%M:%S" in order to display hours.
  27.  
  28. Purge.SyncTime = 10 //Delay in seconds between the phases. I suggest keeping this over 0, or else it may make things look a bit weird.
  29.  
  30. Purge.Resync = 60 //Delay in seconds between automatic client resyncs. Leave at 0 to disable (not recommended).
  31.  
  32. Purge.DisablePropSpawning = true //Disables prop spawning when purge is active.
  33.  
  34. Purge.StrippedWeapons = { //Enter the classname of weapons to be stripped when the purge is active. Adding a // in front of them will disable the weapon from getting stripped.
  35. "arrest_stick",//arrest baton
  36. "weapon_physcannon",//gravgun
  37. "weapon_physgun",//physgun
  38. "gmod_tool",
  39. "pocket",
  40. "stunstick",
  41. "unarrest_stick",
  42. "weaponchecker"
  43. }
  44.  
  45. // -=[HUD]=-
  46. // Everything related to the client display system.
  47.  
  48. Purge.HUD.Notification = true //Should the players receive a traditional sandbox notification? Options are: true, false.
  49.  
  50. Purge.HUD.Enabled = false //Enables the HUD.
  51.  
  52. Purge.HUD.Position = "UpRight" //Options are: UpRight, UpCenter, DownRight, UpLeft, DownLeft, DownCenter. This is the position of the HUD timer.
  53.  
  54. Purge.HUD.Font = "TargetID" //This is any font installed on a client. You can also choose a font here: http://wiki.garrysmod.com/page/Default_Fonts
  55.  
  56. Purge.HUD.FontSize = 14 //Text size in pts.
  57.  
  58. Purge.HUD.FontWeight = 500 //This value increases the boldness of characters.
  59.  
  60. Purge.HUD.HorizontalMargin = 10 // Space between the border of the screen and the box horizontally.
  61.  
  62. Purge.HUD.VerticalMargin = 10 // Space between the border of the screen and the box vertically.
  63.  
  64. Purge.HUD.BoxWidth = 250 // Width of the box (size in x)
  65.  
  66. Purge.HUD.BoxHeight = 30 // Height of the box (size in y)
  67.  
  68. Purge.HUD.BoxOutline = 2 // Size of the box outline in pixels.
  69.  
  70. Purge.HUD.BoxColor = Color(220, 220, 220, 220) // Color of the box in (Red, Green, Blue, Alpha). 255 is the maximum value. Alpha is the transparancy. Use this to pick a color: http://www.colorpicker.com/ (pay attention to the last 3 boxes only)
  71.  
  72. Purge.HUD.BoxOutlineColor = Color(0, 0, 0, 240)
  73.  
  74. Purge.HUD.BoxOutlineSmooth = 0 // Number of pixels to round the corners of the outline box.
  75.  
  76. Purge.HUD.TextColor = Color(100, 255, 100, 255) // Color of the text in (Red, Green, Blue, Alpha). 255 is the maximum value. Alpha is the transparancy. Use this to pick a color: http://www.colorpicker.com/ (pay attention to the last 3 boxes only)
  77.  
  78. Purge.HUD.TextOutlineColor = Color(0, 0, 0, 255) // Color of the text outile in (Red, Green, Blue, Alpha). 255 is the maximum value. Alpha is the transparancy. Use this to pick a color: http://www.colorpicker.com/ (pay attention to the last 3 boxes only)
  79.  
  80. Purge.HUD.TextOutlineSize = 1 // Size of the text outline in pixels
  81.  
  82. Purge.HUD.ImminentColor = Color(155, 0, 0, 255) // Color of the text when purge is imminent in (Red, Green, Blue, Alpha). 255 is the maximum value. Alpha is the transparancy. Use this to pick a color: http://www.colorpicker.com/ (pay attention to the last 3 boxes only)
  83.  
  84. Purge.HUD.DuringColor = Color(255, 255, 0, 255) // Color of the text when purge active in (Red, Green, Blue, Alpha). 255 is the maximum value. Alpha is the transparancy. Use this to pick a color: http://www.colorpicker.com/ (pay attention to the last 3 boxes only)
  85.  
  86. Purge.HUD.ImminentBlink = true // Should the text blink when the purge is imminent?
  87.  
  88. Purge.HUD.ProgressTexture = 'gui/gradient' // The texture sliding upward when the counter progresses
  89.  
  90. Purge.HUD.HourZero = true // Should the first hour digit be a zero if the time is under 10 hours?
  91.  
  92. // -=[SCREEN]=-
  93. // This is used to customize the screen's appearance.
  94.  
  95. Purge.Screen.BackgroundColor = Color(0,0,0,255) //Color of the background
  96.  
  97. Purge.Screen.TitleColor = Color(150,30,30,255) //Color of the title of the screen
  98.  
  99. Purge.Screen.TitleFont = "Impact" //This is any font installed on the client. You can also choose a font here: http://wiki.garrysmod.com/page/Default_Fonts
  100.  
  101. Purge.Screen.TitleFontSize = 45 //Size of the title in pts
  102.  
  103. Purge.Screen.TitleFontWeight = 600 //This is a value that increases the boldness of characters.
  104.  
  105. Purge.Screen.CountDownColorActive = Color(150,30,30,255) //Countdown color when the purge is active.
  106.  
  107. Purge.Screen.CountDownColor = Color(200,200,200,255) //Countdown color when the purge is inactive.
  108.  
  109. Purge.Screen.CountDownFont = "Arial" //This is any font installed on the client. You can also choose a font here: http://wiki.garrysmod.com/page/Default_Fonts
  110.  
  111. Purge.Screen.CountDownFontSize = 180 //Size of the countdown in pts
  112.  
  113. Purge.Screen.CountDownFontWeight = 180 //This is a value that increases the boldness of characters.
  114.  
  115. Purge.Screen.MaxDistance = 5000 // The maximum distance at which a screen is rendered.
  116.  
  117. // -=[SOUND]=-
  118. // Sound effects 'n stuff.
  119.  
  120. Purge.HUD.ImminentSound = "purgesiren.mp3" // Path of the sound to be played when the purge is imminent. Add a sound to addons/purge/sound and insert the filename here to change the sound. Leave empty to disable.
  121.  
  122. Purge.HUD.BeginsSound = "ambient/atmosphere/cave_hit1.wav" // Path of the sound to be played when the purge begins. Add a sound to addons/purge/sound and insert the filename here to change the sound. Leave empty to disable.
  123.  
  124. Purge.HUD.EndsSound = "purgesirenending.mp3" // Path of the sound to be played when the purge ends. Add a sound to addons/purge/sound and insert the filename here to change the sound. Leave empty to disable.
  125.  
  126. Purge.HUD.AnnouncementSound = "purgeannouncement.mp3" // Path of the sound to be played before entering the "imminent phase". Add a sound to addons/purge/sound and insert the filename here to change the sound. Leave empty to disable.
  127.  
  128. Purge.HUD.AnnouncementDuration = 54 // Announcement sound duration in seconds.
  129.  
  130. // -=[STRINGS]=-
  131. // You can use those to customize your addon and translate it if needed.
  132.  
  133. Purge.Strings.Imminent = "THE PURGE IS IMMINENT!" //Displayed when the purge is about to start.
  134.  
  135. Purge.Strings.Ending = " The Purge is ending..." //Displayed when the purge is about to end.
  136.  
  137. Purge.Strings.EndsIn = "THE PURGE IS ACTIVE! BE CAREFULL! %s" //Displayed while the purge is active. %s is the time left. Removing that could mean problems.
  138.  
  139. Purge.Strings.BeginsIn = "Purging in: %s" //Displayed while the purge is not active. %s is the time left. Removing that could mean problems.
  140.  
  141. Purge.HUD.TimerFormat = "%H:%M:%S" //%M is the minutes, %S is the seconds %H is hours.
  142.  
  143. //Purge.HUD.TimerFormat = "%H:%M:%S" //Here's an example of a timer displaying hours.
  144.  
  145. Purge.Strings.ScreenTitle = "THE PURGE" //Displayed on the 3D2D screen as a title.
  146.  
  147. Purge.Strings.ScreenImminent = "Enjoy the Purge!" //Displayed on the 3D2D screen when the purge is about to start.
  148.  
  149. Purge.Strings.ScreenEnding = "The Purge is now ending." //Displayed on the 3D2D screen when the purge is ending.
  150.  
  151. Purge.Strings.ScreenEnding2 = "Go back to your homes peacefully." //Displayed on the 3D2D screen when the purge is ending (second line).
  152.  
  153. // -=[MISC]=-
  154. // Other fun stuff.
  155.  
  156. Purge.Debug = false //This enables the debugmode for developpers. It's still pretty useless at the moment.
  157.  
  158. /*If you want new stuff to be added here or have any problem while using this file,
  159. please contact me on Steam (http://steamcommunity.com/id/themaniak/)
  160. or send me an e-mail (tahmaniak@gmail.com). I'll me more than happy to help you out ;) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement