Garry's Mod

Garry's Mod

2,164 ratings
Alydus's Fortification Builder Tablet
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
51.020 MB
Aug 1, 2018 @ 11:37am
Feb 13, 2023 @ 4:21am
26 Change Notes ( view )

Subscribe to download
Alydus's Fortification Builder Tablet

In 2 collections by Alydus
Alydus's Sandbox Server
79 items
Alydus's Garry's Mod Addons
5 items
Description
Alydus's Fortification Builder Tablet

Want to make your fortifications destructible? Download the destructible fortifications extension!

Alydus's Fortification Builder Tablet adds a convenient, simple to use serverside tablet weapon that allows users to deploy barricades, fences and other fortification type objects. Perfect for roleplay, sandbox and building gamemodes. It works on singleplayer and multiplayer.

This addon came from an engineering holotablet I created for a StarwarsRP server I was developing for, I wanted to add a mode to it to create barricades, but I never got round to it. However, I've decided against that now, so I've made a public fortification builder, with built-in appropriate used models, so the addon is entirely standalone. It works for all gamemodes, including (but not limited to), all sandbox derived gamemodes (DarkRP, Clockwork, Nutscript) and other non-sandbox derived gamemodes.

Is it laggy?

The tablet is designed to be the most convenient for multiplayer, because of this, the hologram/preview of the fortification you are about to build is visible to all players near you. This can cause minor server lag, but this will, like many things, become exponentially larger when multiple people are building fortifications. Simply restrict the number of people allowed to build fortifications, or create a fortification delay or maximum limit via utilising the restriction in the section below.

The fortification models are automatically cached on the client and server, so there shouldn't be any lag spikes when switching between fortifications via your tablet.

Can I restrict the tablet use?

Yes, if you have basic Garry's Mod Lua knowledge you can hook into the system serverside and create conditions for if a barricade is placeable by a player, here is an example.

hook.Add("Alydus.FortificationBuilderTablet.CanBuildFortification", "AnyIdentity", function(ply) if not ply:IsSuperAdmin() then return false end end)

You could, for example, place this code into a lua file at /lua/autorun/server/fortificationrestrictions.lua (create the folders in that filepath if they don't exist, in the order specified).

What map is that in the screenshots and workshop thumbnail?

The media features the map gm_goldencity, created by Skerion.

How do I increase the fortification limit?

The default fortification limit is 15, increase this by using the console command 'sbox_maxfortifications (amount)', e.g. 'sbox_maxfortifications 65' to set the maximum placed fortifications to 65.

How do I rotate fortifications?

Simply rotate your player/look around, this is to make the placing more realistic in multiplayer (since you’re always facing the fortification when placing), some people find this easier to rotate also. Rotation controls would require more binded keys for the swep, which creates more compatibility issues.

How can I add fortifications?

If you would like to add more fortifications to the builder tablet, you can hook into the system serverside, just like you were if you wanted to restrict the tablet. You can specifiy the fortification display name, model, spawn offset and angle offset; which are applied when the fortification is selected, and when created.

Example (don't use this, it is already added):
hook.Call("Alydus.FortificationBuilderTablet.AddFortification", {name = "Police Barricade Triple", model = "models/props_street/police_barricade2.mdl", spawnOffset = Vector(0, 0, 0), angleOffset = Angle(0, 0, 0)})

Replacable code:
hook.Call("Alydus.FortificationBuilderTablet.AddFortification", {name = "BARRICADENAME", model = "BARRICADEMODEL", spawnOffset = Vector(0, 0, 0), angleOffset = Angle(0, 0, 0)})

What does this addon require?

This addon includes everything required for the addon to work correctly, simply add it to your servers workshop collection, or subscribe to it and enable the addon when hosting a singleplayer server. The addon will make users connecting to your server automatically download this addon, so the models won't be errors for them.

What fortifications does it include, and who made them?

This addon includes ready-to-use fortification-able models from a number of different creators (and the tablet model itself), below are the credits for the models, and which models are included from the packs. I apologize for including your models inside of this addon, however, I'll keep a good eye on your addons, and if they are updated, these will be aswell. If you already have these installed individually, this addon will use them. Adding these addons as a dependency is not generally a good idea due to the increased number of things that can go wrong with loading the models (at the users fault).

- Fortification Props Model Pack - Modified DoD Fortification Props, addon by sAL.
- Left 4 Dead 2 Fortifcations & Misc Survival Gear, placed onto the Garry's Mod workshop by Pntmn, however all credits of the models go to Valve.
- Mobile Computing Pack, specifically using the tablet model within it, created by Nirrti.
- Insurgency Hesco Barriers, huge credit to for uploading these and porting them from insurgency, and also obviously the developers of insurgency.- [url]Barne's props, specifically the barriers/police barricades within the prop pack. Originally from garrysmods.org, supposedly created by a guy called 'Barnes' / 'jbarnes' - let me know if you can find his profile so I can credit him correctly. (these are only prop reskins, from what I can gather).

Misc Credits

- Pac for helping with testing the rewrite

Tags: Barricades Star Wars Fortifications Defense Base Barricade Police Barricade Shield Base Wars
Popular Discussions View All (9)
83
Apr 18 @ 12:58pm
PINNED: Suggestions & Bugs
Alydus
2
Apr 1, 2024 @ 11:12pm
Help
FlipperCargo368
2
Apr 26, 2022 @ 6:10pm
everything is an error
True organic flesh
373 Comments
SamuelOrtizS Apr 18 @ 12:55pm 
The restrictions don't work due to missing argument for hook.Call, second argument must be a gamemodeTable, u are using the player table and thus the player is never used in the hook.
Either add nil as a second argument or use hook.Run
Rybciumpypcium Mar 15 @ 3:19am 
how to fix texture of sandbags
Czapla30 Jan 20 @ 12:16pm 
[Alydus's Fortification Builder Tablet] lua/weapons/alydus_fortificationbuildertablet.lua:153: attempt to call method 'CanBuildAlydusFortification' (a nil value)
1. fn - lua/weapons/alydus_fortificationbuildertablet.lua:153
2. unknown - lua/ulib/shared/hook.lua:109
Celestial Mike Hawk Nov 24, 2024 @ 8:14pm 
Can this work on entities or only props?
RIBCAGE Oct 27, 2024 @ 9:53am 
tablet is mixed with a grenade so please take few minutes to look at it dawg and for some reason the searchlight is just a fat beam
rajjiasus420 Oct 26, 2024 @ 9:55pm 
FIX THE TABLET IS BROKEN
0rak Sep 27, 2024 @ 8:21pm 
same its being held like a grenade
DELTA-1 Sep 6, 2024 @ 3:56am 
the tablet is broken, it is like a grenade and a tablet
CombineElite19 Jul 23, 2024 @ 12:48am 
The tablet is broken, it works but the model is facing not the player, but left.
_BurgeR_ Jun 29, 2024 @ 8:32pm 
spycakes used this in one of his videos i think it was zombie base destroyed by tornado