Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- Purge = {} //Don't touch these.
- Purge.Strings = {} //Please don't.
- Purge.HUD = {} //I mean it.
- Purge.Screen = {} //For real though.
- Purge.ScreenTable = {} //Dead serious.
- /*----------------------------------------------
- [Purge Config File]
- Change what you need to. Don't forget to reboot
- the server after you change something as this is
- a shared file between client and server. We wouldn't
- want this file to get desynced, wouldn't we...
- ----------------------------------------------*/
- Purge.Enabled = true //Is the addon enabled by default? Options: true/fasle
- Purge.LastsFor = 5*60 //The time a purge lasts for in seconds. Default is 5 minutes.
- 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.
- 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.
- Purge.Resync = 60 //Delay in seconds between automatic client resyncs. Leave at 0 to disable (not recommended).
- Purge.DisablePropSpawning = true //Disables prop spawning when purge is active.
- 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.
- "arrest_stick",//arrest baton
- "weapon_physcannon",//gravgun
- "weapon_physgun",//physgun
- "gmod_tool",
- "pocket",
- "stunstick",
- "unarrest_stick",
- "weaponchecker"
- }
- // -=[HUD]=-
- // Everything related to the client display system.
- Purge.HUD.Notification = true //Should the players receive a traditional sandbox notification? Options are: true, false.
- Purge.HUD.Enabled = false //Enables the HUD.
- Purge.HUD.Position = "UpRight" //Options are: UpRight, UpCenter, DownRight, UpLeft, DownLeft, DownCenter. This is the position of the HUD timer.
- 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
- Purge.HUD.FontSize = 14 //Text size in pts.
- Purge.HUD.FontWeight = 500 //This value increases the boldness of characters.
- Purge.HUD.HorizontalMargin = 10 // Space between the border of the screen and the box horizontally.
- Purge.HUD.VerticalMargin = 10 // Space between the border of the screen and the box vertically.
- Purge.HUD.BoxWidth = 250 // Width of the box (size in x)
- Purge.HUD.BoxHeight = 30 // Height of the box (size in y)
- Purge.HUD.BoxOutline = 2 // Size of the box outline in pixels.
- 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)
- Purge.HUD.BoxOutlineColor = Color(0, 0, 0, 240)
- Purge.HUD.BoxOutlineSmooth = 0 // Number of pixels to round the corners of the outline box.
- 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)
- 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)
- Purge.HUD.TextOutlineSize = 1 // Size of the text outline in pixels
- 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)
- 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)
- Purge.HUD.ImminentBlink = true // Should the text blink when the purge is imminent?
- Purge.HUD.ProgressTexture = 'gui/gradient' // The texture sliding upward when the counter progresses
- Purge.HUD.HourZero = true // Should the first hour digit be a zero if the time is under 10 hours?
- // -=[SCREEN]=-
- // This is used to customize the screen's appearance.
- Purge.Screen.BackgroundColor = Color(0,0,0,255) //Color of the background
- Purge.Screen.TitleColor = Color(150,30,30,255) //Color of the title of the screen
- 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
- Purge.Screen.TitleFontSize = 45 //Size of the title in pts
- Purge.Screen.TitleFontWeight = 600 //This is a value that increases the boldness of characters.
- Purge.Screen.CountDownColorActive = Color(150,30,30,255) //Countdown color when the purge is active.
- Purge.Screen.CountDownColor = Color(200,200,200,255) //Countdown color when the purge is inactive.
- 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
- Purge.Screen.CountDownFontSize = 180 //Size of the countdown in pts
- Purge.Screen.CountDownFontWeight = 180 //This is a value that increases the boldness of characters.
- Purge.Screen.MaxDistance = 5000 // The maximum distance at which a screen is rendered.
- // -=[SOUND]=-
- // Sound effects 'n stuff.
- 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.
- 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.
- 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.
- 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.
- Purge.HUD.AnnouncementDuration = 54 // Announcement sound duration in seconds.
- // -=[STRINGS]=-
- // You can use those to customize your addon and translate it if needed.
- Purge.Strings.Imminent = "THE PURGE IS IMMINENT!" //Displayed when the purge is about to start.
- Purge.Strings.Ending = " The Purge is ending..." //Displayed when the purge is about to end.
- 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.
- Purge.Strings.BeginsIn = "Purging in: %s" //Displayed while the purge is not active. %s is the time left. Removing that could mean problems.
- Purge.HUD.TimerFormat = "%H:%M:%S" //%M is the minutes, %S is the seconds %H is hours.
- //Purge.HUD.TimerFormat = "%H:%M:%S" //Here's an example of a timer displaying hours.
- Purge.Strings.ScreenTitle = "THE PURGE" //Displayed on the 3D2D screen as a title.
- Purge.Strings.ScreenImminent = "Enjoy the Purge!" //Displayed on the 3D2D screen when the purge is about to start.
- Purge.Strings.ScreenEnding = "The Purge is now ending." //Displayed on the 3D2D screen when the purge is ending.
- Purge.Strings.ScreenEnding2 = "Go back to your homes peacefully." //Displayed on the 3D2D screen when the purge is ending (second line).
- // -=[MISC]=-
- // Other fun stuff.
- Purge.Debug = false //This enables the debugmode for developpers. It's still pretty useless at the moment.
- /*If you want new stuff to be added here or have any problem while using this file,
- please contact me on Steam (http://steamcommunity.com/id/themaniak/)
- 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