Garry's Mod

Garry's Mod

Darken217's SciFi Weapons
3,786 Comments
MerekiDor 6 Jul @ 5:34am 
Alrighters, thanks for the response. I might try to make up a formula that roughly estimates what a gun's average spread is like. If I manage to get my results to look at least vaguely accurate when sorted (shotguns having the biggest spread, sniper rifles having the lowest) I'll call it a day.
Hedron  [author] 6 Jul @ 5:01am 
@ MerekiDor :
SciFiACC is the internal recoil stat and the set to "2" is just so the accuracy is low during the equip animation, stabilizing shortly after.

Unfortunately, the exact values for the camera shake and recoil deviation are indeed coded into a weapon's respective firing function. It's probably something I'd do differently, were I to start over, but it is what I did in 2015.

That being said, each weapon has a table with information detailing a weapon's characteristics, it's SWEP.SciFiWorldStats, which I made for Borderlands-like item cards, oddly also for a gamemode I was working on at the time.
In there, you will find the recoil value, which is essentially just being added to SciFiACC with each shot.

The recoil recovery value (so by how much the recoil decays over time) is SWEP.SciFiACCRecoverRate, but you may have found that one already.
MerekiDor 6 Jul @ 2:48am 
Hello! I can't figure out which field inside a weapon's table is responsible for the gun's spread.
I found "SciFiACC" but that's just set to 2 for each weapon.
I hope spread is not hardcoded? I need it for a gamemode I'm developing that automatically reads stats of guns and assigns prices to them. I've had support for this addon for a long time but I never figured out how to read spread accurately out of these weapons, thought I might as well ask.
Mr man257 25 Jun @ 2:35pm 
love the addon but could you add more weapons that suck out your soul
FailNaughtArcher 16 Jun @ 4:22am 
I've been testing out the mod again a couple of times and apart from addon conflicts (which don't affect the mod that much), the couple dozen problems I was experiencing with most weapons in the mod are no longer appearing, it just works again now... If the same problem pops up again I'll try to see what that's about
idksomething 15 Jun @ 8:05pm 
understand though, you made a nice mod and its honestly surprising how long its been updated for
idksomething 15 Jun @ 8:04pm 
@Hedron got that, just thought maybe you could have time for a near finished weapon to be added.
keifergibson25 15 Jun @ 7:47pm 
If you have the time to add this to the Q and A section in the description then please do that, I want to know what are the maps in the screenshots (other than gm_construct).
Hedron  [author] 14 Jun @ 3:47pm 
@ FailNaughtArcher :
I tested it and it works fine for me. Can you please test if your issue is caused by an addon conflict by temporarily disabling all addons except the sci fi weapons and testing again?

Further, does the issue occur with weapons other than the Draco's projectiles?

Finally, the error basically says that the game can't find a variable which should by defined by the sci-fi weapon base by default.
It not being present indicates that something else has overwritten it, likely someone else copy-pasting outdated versions of my base into their own addon.

@ SpartaGuy ; Mememan97A ; Gordon Duckman:
There are no plans for further content updates at this time. My free-time is not as ubiquitous as it used to be and to be honest, I just find other projects more interesting.

I know that even the visibility toggle for hidden weapons isn't a perfect solution (i.e. it's host-dependent in multiplayer), but it's as close as it'll get for the foreseeable future.
FailNaughtArcher 14 Jun @ 3:31pm 
I'm getting a ton of errors like this:
[Darken217's SciFi Weapons] lua/entities/drac_pfire/shared.lua:10: bad argument #1 to 'bor' (number expected, got nil)
1. bor - [C]:-1
2. unknown - lua/entities/drac_pfire/shared.lua:10
SpartaGuy 5 Jun @ 11:11am 
Can you make Sci-fi weapons part 2?
idksomething 5 Jun @ 9:53am 
i know your probably stopped working on this mod, but will the ASA-6 ever be officially added into the mod rather than sitting as one of the unused weapons. (basicially what the guy said below but for weapons good enough to be added.)
Gordon Duckman|TY| 4 Jun @ 3:00pm 
Is there any intention to add the weapons in the betas tab as full functional items? They've always interested me and I want to know if they will be finished.
Hedron  [author] 23 May @ 3:18pm 
@ Idiot123 :
Make sure everything is disabled, restart the game if need be and make sure you didn't have anything in your local addons folder either.

But like I said, if you aren't subscribed to my addon and it somehow appears for you anyway - broken or otherwise - it's out of my hands.
Idiot123 23 May @ 3:07pm 
i disabled on my addons and ITS STILL CREATING ERRORS
Hedron  [author] 19 May @ 3:02am 
@ Idiot123 :
Because some other addon or collection included it (and then likely broke it). I have nor interest in nor am I able to force people to download my stuff.
Idiot123 18 May @ 6:34pm 
why is this addon creating errors when i dont even have it installed?
Jonnyhawkeye 13 May @ 5:56pm 
and i mean more models that what are in the spawn menu
Jonnyhawkeye 13 May @ 5:52pm 
wish there were models for posing ragdolls
SCP-1048 13 May @ 6:57am 
If using this addon with Gredwitches Base, it may break all explosion effects so be careful!
Hedron  [author] 18 Apr @ 6:21am 
@ ubertrollz :
Just tested it on two different PCs, using the normal branch, pre-release and x64 with both the workshop version and my dev version of my addon, i have not encountered the issue you have described, neither was there a recent influx of people reporting anything similar.

What your error says is that you spawned a Zeala using the toolgun and then the Zeala failed to find a function called GetCharge(). That function is part of the scifi base and there is no way it can be absent unless the base has been modified or overwritten by another addon.

Now, you said that you already disabled other addons, I suggest you ensure that gmod properly registered that. I can test further myself, but I doubt that doing will reveal anything new at this time.
ubertrollz 18 Apr @ 5:58am 
I think your mod is broken because even when I disable all other mods, it is still causing errors

ex 1:
" 1. SubInit - lua/weapons/sfw_zeala.lua:195
2. unknown - lua/base/scifi_base.lua:446
3. Spawn - [C]:-1
4. Spawn_Weapon - gamemodes/sandbox/gamemode/commands.lua:987
5. LeftClick - gamemodes/sandbox/entities/weapons/gmod_tool/stools/creator.lua:31
6. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:235 (x5)"
ex 2:
[Darken217's SciFi Weapons] lua/weapons/sfw_zeala.lua:203: attempt to call method 'GetCharge' (a nil value)
1. unknown - lua/weapons/sfw_zeala.lua:203 (x2)


[Darken217's SciFi Weapons] lua/weapons/sfw_zeala.lua:203: attempt to call method 'GetCharge' (a nil value)
1. unknown - lua/weapons/sfw_zeala.lua:203
Supido 15 Apr @ 7:57am 
I used this weapon addon since I was kid, I'm so happy this addon keep evolving until now
†GOTSR♰ 15 Apr @ 4:50am 
got the same bug but it only does that when I use the custom loadouts mod and I spawn the loadout (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2675972006&searchtext=custom+loadoout) but when I deleted the mod it was back to normal
Hedron  [author] 13 Apr @ 7:19am 
@ l1bb :
That's a bug caused by weapon models not being properly reset before the weapon is removed upon player death. Unfortunately, there is no easy workaround at this time.
You can try subscribing to this addon here, which may provide a fix: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3385119632

I'm sorry for the inconvenience.
l1bb 13 Apr @ 7:08am 
when i spawn (or respawn by dying) my weapon models are gone, and when i equip a gun from this addon, everything is fine (untill i die), how do i fix ts
OG Zeus 12 Apr @ 4:33pm 
nevermind my good sir it was someone elses's buggy code
Hedron  [author] 12 Apr @ 4:07pm 
@ OG Zeus :
Can you please elaborate what you mean by "base spawns"?
Generally speaking, the sfw_basetest should be hidden anyway. There shouldn't be any default functionality causing that to happen.

Try and check the console for errors and warnings.
Please try to temporarily disable other addons and see if the issue persist.
OG Zeus 12 Apr @ 3:52pm 
hello Hadron

The sfw_basetest is replacing base spawns on singleplayer, would you know something about it?
The Gunslinger 6 Apr @ 9:57pm 
Finally... I have found this legend..
cherry 18 Mar @ 4:33pm 
completely fine!! addon is still fire as hell
Hedron  [author] 18 Mar @ 3:27am 
@ shark :
No plans for major content updates any time soon, sorry.
cherry 17 Mar @ 6:43pm 
do you ever plan on making more weapons? this is STILL the best gmod weapon pack imo
Cluna 23 Feb @ 11:19am 
i mean the design, the gravity gun with energy orb looking thing, reminds me of another game that wasnt half life series
Hedron  [author] 23 Feb @ 10:55am 
@ Cluna :
It's not really based on anything, but the idea of sticky explosives (energy-based or otherwise) isn't exactly new.
I figured it'd be a spicier version of the strider-buster from HL2:EP2, you know, throw it against the target, then shoot it to detonate, but I think most people just use the alt-fire to remote detonate it anyway.
Cluna 23 Feb @ 9:57am 
does anyone know what was the stinger launcher based on, because i swear i remember it from somewhere else
ZorritoSes 17 Feb @ 3:19pm 
Ok, thanks for respond me Hedron!
Hedron  [author] 17 Feb @ 4:36am 
@ ZorritoSes :
There indeed is a hack I use to adjust projectile flight speed, which is otherwise limited by a hard cap to physical velocity. I could imagine that Gredwitch uses a similar method, hence the potential for conflict.

I'll see if I can mitigate this, but since there are other issues to work around as well and since this is no longer my main project, I can't give a timeline on potential updates.

I'm sorry for the inconvenience.
ZorritoSes 16 Feb @ 8:54pm 
Hi!, Is there something in the code that affects velocity of the projectiles? or gravity? When i use Gredwitch´s addons with this addon the projectiles of gredwitch´s guns become slower. This happens in multiplayer
Hedron  [author] 25 Jan @ 1:30am 
@ Alfa Boots :
Dissolve effects (i.e. from the Vapor or the Seraphim) should happen on every kill, unless the target is too heavy or doesn't turn into a ragdoll upon kill.
Non-lethal elemental effects / status effects however, have a chance to apply and this chance cannot be adjusted without code changes, sorry.
Alfa Boots 24 Jan @ 6:27pm 
is there a way to make sure that the special effects- freezing, disintegrating, ect- happen 100% of the time?
Lordship of Uncreation 9 Jan @ 6:57am 
Got it thanks
Hedron  [author] 9 Jan @ 6:56am 
@ The Unknown Writer :
You would unfortunately have to spawn the gun as a whole.
You can use sfw_debug_preventautoequip console command to disable picking up weapons unless you hold E. Make sure to disable it when you no longer need it.
Lordship of Uncreation 8 Jan @ 11:44pm 
Are they bonemerge~able or do I have to spawn the gun as a whole?
Hedron  [author] 6 Jan @ 12:24pm 
@ The Unkown Writer :
Unfortunately, due to how the weapon models are assembled, you can't really spawn them for convenient posing.
You can spawn the weapon in its dropped state, but that obviously bears the risk of picking it up by accident. You may also find the weapon's parts in the addon's models category.
But the complete models, with one exception, aren't spawnable.
Lordship of Uncreation 6 Jan @ 12:00pm 
Can I spawn these as props/effects?
God's Drunkest Driver 2 Jan @ 10:22pm 
ah I see, it must just be my bigger monitor making the icons seem smaller then!
Hedron  [author] 2 Jan @ 8:10pm 
@ God's drunkest driver :
No weapons have been outright removed. Hidden weapons have, as implied, always been hidden. The only thing that's changed drastically in a while are the spawn icons.
God's Drunkest Driver 2 Jan @ 10:40am 
wasn't there a lot more weapons at some point? Its been so long since I have used this mod so it might just be me but I feel like the weapon options got a lot smaller
B1 Battledroid 31 Dec, 2024 @ 11:19pm 
I think it was because of realism gun sway, sorry for the disturbance its fixed now