Garry's Mod

Garry's Mod

Projectile Bullets
53 Comments
SonaristicCatboy 24 Aug @ 5:09pm 
the PostDrawOpaqueRenderables hook doesnt seem to work so we dont see any tracers, will you repair it
Janiowy 24 Jul, 2024 @ 7:20am 
this mod could be better if you will add hl2 tracer particles to projectile
MORN1NG_ST4R 18 Jul, 2024 @ 4:46pm 
can you add a bullet speed multiplier? That changes the speed of all bullets? The bullets are way slower than IRL so that'd be pretty nice
soupy 27 Sep, 2023 @ 5:20pm 
if you get shot in a car you get yeeted across the map
Rex87 29 Apr, 2023 @ 6:35am 
so this doesn't work for NPC?
Bilirubin 19 Feb, 2023 @ 2:08am 
make an option to not replace the hitscan bullet tracer effects
yugofuhkov 12 Jan, 2023 @ 1:29pm 
But only one problem when I fire the guns I do not see the bullet flying.
yugofuhkov 12 Jan, 2023 @ 1:21pm 
well this will make realistic gmod better.
Glass of Lime Soda 18 Dec, 2022 @ 9:40pm 
Seems like the hitscan is kept. We just have an projectile bullet along with it.

Seems to be the case for HL2 weapons.
groove and reconciliation 23 Nov, 2022 @ 4:59pm 
yes
Lucasa21 (4ta) 12 Nov, 2022 @ 8:48am 
it works for mw base weapons?
A Salt Rifle 26 Oct, 2022 @ 4:11pm 
you should check if you also have physical bullets mod enabled
baconsalt35 23 Oct, 2022 @ 6:20pm 
it works but hl2 guns shoot two bullets at a time. suggestions?
Jaguar-zxz 22 Sep, 2022 @ 6:23pm 
Oh okay for the info, thanks
Mei  [author] 22 Sep, 2022 @ 2:54pm 
@Jaguar-zxz Are you playing in a singleplayer game, or multiplayer?

Try creating a new multiplayer game instead of singleplayer. In singleplayer, the CLIENT global variable always returns false and the PostDrawOpaqueRenderables hook is never called. I was having the same issue in my tests.
Jaguar-zxz 22 Sep, 2022 @ 12:55pm 
I cant see the bullet, is there settings?
Mei  [author] 20 Sep, 2022 @ 2:29pm 
@CyberMassacre fixed
CyberMassacre 20 Sep, 2022 @ 11:36am 
@mei You're the bomb!
Mei  [author] 20 Sep, 2022 @ 5:24am 
@CyberMassacre Not currently, but I will update it today and add that feature. I am aware that some melee weapons use the FireBullets function, and pass a bullet structure with short distance and tracer's disabled as an argument. I will have it read from that.
CyberMassacre 19 Sep, 2022 @ 1:59pm 
This is very well done! - Sorry if that has been answered before, but is there currently any way to hide the tracers and projectile itself and just keep the ballistics themselves? Thank you
Mei  [author] 19 Sep, 2022 @ 1:01pm 
You are missing a comma after the "comment" key in the table
try:
{
"class": {
"drop": 0.01,
"speed": 100.0
},
"comment": "this is an example. class is the class name of the weapon entity. speed and drop are measured in meters/second",
"astw2_gow_lancer_locust": {
"drop": 0.01,
"speed": 100.0
}
}
Journey's End 19 Sep, 2022 @ 12:11pm 
{
"class": {
"drop": 0.01,
"speed": 100.0
},
"comment": "this is an example. 'class' is the class name of the weapon entity. 'speed' and 'drop' are measured in meters/second"

"astw2_gow_lancer_locust": {
"drop" : 0.01,
"speed": 100.0
}

}

I done scripting with other engines before, how should this be formatted? I want to add all my weapons to this.
Mei  [author] 19 Sep, 2022 @ 7:27am 
Ensure that it is formatted correctly
and doesn't have any unnecessary commas. JSON isn't very forgiving. An extra comma at the end of the table will cause it to fail and return nil.
Journey's End 18 Sep, 2022 @ 11:36pm 
okay, what do I use to edit it?
Mei  [author] 17 Sep, 2022 @ 3:45pm 
@Journey's End
I did some testing to recreate this issue.
The error you are experiencing is caused by improper JSON formatting. Make sure you modify the JSON file correctly.
The variable 'tbl' is nil only because util.JSONToTable failed and returned nil
Journey's End 17 Sep, 2022 @ 3:10pm 
[Projectile Bullets] lua/autorun/projectile_bullets.lua:33: attempt to index local 'tbl' (a nil value)
1. ReadCFG - lua/autorun/projectile_bullets.lua:33
2. v - lua/autorun/projectile_bullets.lua:62
3. unknown - lua/includes/modules/hook.lua:96
4. FireBullets - [C]:-1
5. ShootBullets - lua/weapons/astw2_base/attacks.lua:189
6. unknown - lua/weapons/astw2_base/attacks.lua:66
Journey's End 17 Sep, 2022 @ 3:09pm 
okay nvm the config has the option but how you do it without causing errors?
Journey's End 17 Sep, 2022 @ 3:04pm 
eh is it possible to add compatabillity it just made my bullets hitscan again when before the update they were not.
Serika 16 Sep, 2022 @ 3:44am 
awesome
Mei  [author] 15 Sep, 2022 @ 6:35pm 
@Zekkriel fixed
Caçador 15 Sep, 2022 @ 7:49am 
O tnks o think this is a bullet drop mor
Serika 14 Sep, 2022 @ 12:04pm 
this mod makes bullets not push props for some reason
Caçador 11 Sep, 2022 @ 12:57pm 
compatible with ArcCw?
HarryM2005 11 Sep, 2022 @ 10:55am 
Is it compatible with TFA and Scripted NPCs?
killerfishfromsandiego 11 Sep, 2022 @ 1:32am 
thank you @Zekkriel.
Mei  [author] 10 Sep, 2022 @ 11:08am 
@Yeet Lord >:3 You can now configure bullet speed/drop for individual weapons in "garrysmod/data/projectile_bullets/config.json"
Serika 10 Sep, 2022 @ 4:50am 
The drop is 1 and the speed is 700.
killerfishfromsandiego 9 Sep, 2022 @ 10:48pm 
I kinda messed up with the settings, so can anyone please tell me what are the default settings again? Sorry.
blackow1cz 9 Sep, 2022 @ 7:57pm 
damn, this would go well with airsoft guns
michael9r9r >:3 9 Sep, 2022 @ 2:10pm 
Would be awesome to have some way to adjust the velocities based on ammo type
Spywagen 9 Sep, 2022 @ 10:45am 
darn, can't see the bullets, no matter how slow
Mei  [author] 9 Sep, 2022 @ 6:13am 
@Gem There isn't a tracer in the gif, it's actually the projectile. If you slow down the bullet speed enough, you will be able to see it.
I'm plan on adding tracers tonight though.

@aebaadcode Yes, NPC's also shoot projectile bullets
Silly Driver 9 Sep, 2022 @ 2:39am 
do npcs also shoot projectile bullets?
Gem 8 Sep, 2022 @ 11:05pm 
Is there a way to add tracers like in the gif?
Mei  [author] 7 Sep, 2022 @ 7:32pm 
@gigabloxersaurus @Ocean fixed
Ocean_Man57 7 Sep, 2022 @ 4:35am 
default setting speed is so fast, they go past walls and people when you're very near them. I can just adjust my settings but default is very off putting
SonaristicCatboy 6 Sep, 2022 @ 6:28pm 
the bullets can go past some enemies like vj npcs, i tested this on super combine and the projectile bullets dont hit the head hitbox
Mei  [author] 6 Sep, 2022 @ 4:35pm 
Math for calculating meters/second to units/tick is now fixed
You may have to change your ConVars for a more realistic effect
I recommend setting speed to 700, and drop to 1(AK-47 muzzle velocity)
Mei  [author] 6 Sep, 2022 @ 11:06am 
@jp4 @Holynoobs
fixed
BaJlepa 6oJlbIIIou' eJlDaK 6 Sep, 2022 @ 8:20am 
there is. check for bullet distance