Garry's Mod

Garry's Mod

PewPew V2
Weapon Designer Tutorial
id like to make my own weapons, for example i love the style of the nuke laser but im hoping to make something like it but with far lesser power. like a tank laser or plasma artillery, or a beam of super heated plasma that does aoe damage on impact. or perhaps a weapon that would do little actual damage to players and props, but would throw props around like a turbine gun and remove constraints. like what id use for a tank that uses a giant subwoofer as its weapon. a shockwave gun.

i have enabled the weapon designer but when i go into the menu for it, it just shows me a list numbers that can be changed. like the info for a pew pew weapon but with no words to describe what each number affects. if the numbers not being there isnt some sort of bug, a tutorial would be great. thanks.
< >
Showing 1-13 of 13 comments
oh and by the way, i figured out how to get past the duplicator removing constraints on pew pew contraptions and crashing. its the same as gbombs. its not really a way around it but through it rather.

dupe whatever it is you want duped, and save it. then spawn it. this works 80% of the time for me, but simply duping and spawning crashes the game 100% of the time. the same with gbombs, but whether you save the bomb or not, theres still a 90% chance it will crash after spawning.
Divided  [developer] Feb 3, 2014 @ 10:58am 
Can you give me a screenshot of the weapon designer for you?
well its completely blended in with the backround with full brightness. the title bar is there but its like the stats and everything else under it are nonexistent. though the farther the brightness is turned down the more visible it becomes. if you were to change the color of the text or the background of the weapon designer, id say make one of them opposite of the other, if the text cannot be changed, the darker the background is the more visible the text is, and vice versa.

it would be realy epic if you could make the text colored acording to what it is, my suggestion;

damages-red
range, duration, slice distance, spread, radius, and decay rate-yellow
bullet velocity, fire rate, and reload speed-green
number of slices and ammo-blue
and everything to do with how the gun sounds and looks-purple

also, im having a hard time figuring out how to get the laser fire effect. it would be extremely handy to have a drop down menu for the damage types, models, effects and sounds. its really hard to try and figure out what the address of the effect and sound is. to have a drop down menu containing the sounds/effects/models that came with pew pew, that would be crazy awesome.
ive searched pewpew in the search bar and nothing comes up, but when i use the browse addons dropdown menu in the spawnlists thing, i find pew pew stuff and within it, a whole slew of things like a railgun and 800mm artillery shell, along with several other things, most of which arent accessible any other way. it would be nice to have a slider menu like the one for selecting a model for sounds and effects would be just...the addon would be perfect.

one other little peice of constructive criticism, when i set a model that did not come with the addon as the bullet, for example a missile from the gbombs addon, it flies sideways. so my last suggestion would be to choose what direction the prop/model is pointing when it is fired. the same way you select what direction the gun shoots from the prop. which is almost always up for most things but the railgun that came with pew pew if set as the gun model must be set to fire right to look correct

i understand if/that all of this stuff im suggesting would be hard to do, like i said they arent NEEDED but it wold make the addon far better. in short, dropdown menus/browse buttons for the things that change the way the gun/bullet looks/sounds. the only other thing would be the color of the weapon designer. if these things were availible in the addon, i would not need any help whatsoever in designing fully customised weapons from scratch using this addon.
Divided  [developer] Mar 24, 2014 @ 10:53am 
A list of PewPew-supported effects can be found here: https://github.com/MattJeanes/PewPew/tree/master/lua/effects

I believe you can set in the pewpew tool which way the projectile fires out of the cannon.

Also, a screenshot is better than a paragraph description of the weapon designer.
Legendary E Apr 20, 2014 @ 11:34am 
Not sure if I should ask about this here, but in divran's orginal pewpew, weapons could be coded in .txt files and imported in.

I'm guessing the switch to .gma type made it harder/impossible(?) to add them into the addon itself, but is it possible to have the addon recognize a folder elsewhere that a person could "hardcode" their own weapons? the weapon designer menu, while nifty, is lacking in the more fun options.

Regardless, you have my thanks and respect for bringing this over onto workshop
Divided  [developer] Apr 20, 2014 @ 12:03pm 
Yes, just make lua/PewPewBullets/Foldername/weapon.txt. See here[github.com] for more details.
dr. Matt i LOVE the addon but right now it is useless well not exactly useless because my wire is bugged because i like to put them on a gimple and link them and it to a pod controller and i cant fix the problem (that is not your problem soo) but a list of all the sounds would be great
FurryKeidran Jan 11, 2015 @ 10:40pm 
https://plus.google.com/u/0/photos/+Markcoats98/albums/6103340415770568401/6103340420305786226?pid=6103340420305786226&oid=109358607025520169297&authkey=CN6GkbvGsojOywE

this is whats happening to me. what should i put in the highlighted area to change the prjectile type? at least to get to my entities folder? thanks
Divided  [developer] Jan 12, 2015 @ 6:06pm 
You're supposed to input a model in that field. models/whatever/whatever.mdl.
Sam S. Shadowfall Jan 12, 2015 @ 6:57pm 
so you can have a box as the model?
GalaxYy Oct 6, 2015 @ 1:08pm 
Can i save my self created weapons with the Weapon Designer ? Because i don't want to remake my self created weapons every time i want to use them in Singlplayer.
fizzie Jan 16, 2018 @ 2:50pm 
Originally posted by Dr. Matt:
Yes, just make lua/PewPewBullets/Foldername/weapon.txt. See here[github.com] for more details.

The link is gone, can you update it? thx. Because I used the lua folder in steamapps/common/GarrysMod/garrysmod, and I don't know if that is the correct one.
Last edited by fizzie; Jan 16, 2018 @ 2:53pm
thecommonfool Nov 6, 2022 @ 5:32am 
To anyone still trying to save custom weapons, go to steamapps>common>GarrysMod>garrysmod>lua and make a folder called "pewpewbullets", in it, put another folder called something like "custom_weapons" (name doesnt matter here) and in there you put the .txt file with the weapon info.

You'd have to decompile the addon to get the proper .txt format, so I'll just put it here:

(example of a sturmtiger shell I made)

-- Basic Cannon

local BULLET = {}

-- Important Information
BULLET.Version = 2

-- General Information
BULLET.Name = "380mm Mortar"
BULLET.Author = "thecommonfool"
BULLET.Description = "Sturmtiger shell."
BULLET.AdminOnly = false
BULLET.SuperAdminOnly = false

-- Appearance
BULLET.Model = "models/props_phx/misc/flakshell_big.mdl"
BULLET.Material = nil
BULLET.Color = nil
BULLET.Trail = nil

-- Effects / Sounds
BULLET.FireSound = {"arty/explodehigh.wav"}
BULLET.ExplosionSound = {"paperjack/big_explosion.wav"}
BULLET.FireEffect = "pewpew_c4_explosion"
BULLET.ExplosionEffect = "scud_splosion"

-- Movement
BULLET.Speed = 30
--BULLET.Gravity = 0.1
BULLET.RecoilForce = 30000
BULLET.Spread = 3
BULLET.AffectedBySBGravity = true

-- Damage
BULLET.DamageType = "BlastDamage"
BULLET.Damage = 8000
BULLET.Radius = 1250
BULLET.RangeDamageMul = 2.4
BULLET.NumberOfSlices = nil
BULLET.SliceDistance = nil
BULLET.PlayerDamage = 1000
BULLET.PlayerDamageRadius = 1500

-- Reloading/Ammo
BULLET.Reloadtime = 30
BULLET.Ammo = 0
BULLET.AmmoReloadtime = 0

BULLET.EnergyPerShot = 20000

pewpew:AddWeapon( BULLET )



just change the values to whatever you want and put it in the folder (or you could make a subfolder for categories)
< >
Showing 1-13 of 13 comments
Per page: 1530 50