Garry's Mod

Garry's Mod

Projectile Bullets
53 条留言
SonaristicCatboy 8 月 24 日 下午 5:09 
the PostDrawOpaqueRenderables hook doesnt seem to work so we dont see any tracers, will you repair it
Janiowy 2024 年 7 月 24 日 上午 7:20 
this mod could be better if you will add hl2 tracer particles to projectile
MORN1NG_ST4R 2024 年 7 月 18 日 下午 4:46 
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 2023 年 9 月 27 日 下午 5:20 
if you get shot in a car you get yeeted across the map
Rex87 2023 年 4 月 29 日 上午 6:35 
so this doesn't work for NPC?
Bilirubin 2023 年 2 月 19 日 上午 2:08 
make an option to not replace the hitscan bullet tracer effects
yugofuhkov 2023 年 1 月 12 日 下午 1:29 
But only one problem when I fire the guns I do not see the bullet flying.
yugofuhkov 2023 年 1 月 12 日 下午 1:21 
well this will make realistic gmod better.
Glass of Lime Soda 2022 年 12 月 18 日 下午 9:40 
Seems like the hitscan is kept. We just have an projectile bullet along with it.

Seems to be the case for HL2 weapons.
count archmybackula 2022 年 11 月 23 日 下午 4:59 
yes
Lucasa21 (4ta) 2022 年 11 月 12 日 上午 8:48 
it works for mw base weapons?
A Salt Rifle 2022 年 10 月 26 日 下午 4:11 
you should check if you also have physical bullets mod enabled
baconsalt35 2022 年 10 月 23 日 下午 6:20 
it works but hl2 guns shoot two bullets at a time. suggestions?
Jaguar-zxz 2022 年 9 月 22 日 下午 6:23 
Oh okay for the info, thanks
Mei  [作者] 2022 年 9 月 22 日 下午 2:54 
@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 2022 年 9 月 22 日 下午 12:55 
I cant see the bullet, is there settings?
Mei  [作者] 2022 年 9 月 20 日 下午 2:29 
@CyberMassacre fixed
CyberMassacre 2022 年 9 月 20 日 上午 11:36 
@mei You're the bomb!
Mei  [作者] 2022 年 9 月 20 日 上午 5:24 
@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 2022 年 9 月 19 日 下午 1:59 
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  [作者] 2022 年 9 月 19 日 下午 1:01 
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 2022 年 9 月 19 日 下午 12:11 
{
"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  [作者] 2022 年 9 月 19 日 上午 7:27 
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 2022 年 9 月 18 日 下午 11:36 
okay, what do I use to edit it?
Mei  [作者] 2022 年 9 月 17 日 下午 3:45 
@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 2022 年 9 月 17 日 下午 3:10 
[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 2022 年 9 月 17 日 下午 3:09 
okay nvm the config has the option but how you do it without causing errors?
Journey's End 2022 年 9 月 17 日 下午 3:04 
eh is it possible to add compatabillity it just made my bullets hitscan again when before the update they were not.
Serika 2022 年 9 月 16 日 上午 3:44 
awesome
Mei  [作者] 2022 年 9 月 15 日 下午 6:35 
@Zekkriel fixed
Caçador 2022 年 9 月 15 日 上午 7:49 
O tnks o think this is a bullet drop mor
Serika 2022 年 9 月 14 日 下午 12:04 
this mod makes bullets not push props for some reason
Caçador 2022 年 9 月 11 日 下午 12:57 
compatible with ArcCw?
HarryM2005 2022 年 9 月 11 日 上午 10:55 
Is it compatible with TFA and Scripted NPCs?
killerfishfromsandiego 2022 年 9 月 11 日 上午 1:32 
thank you @Zekkriel.
Mei  [作者] 2022 年 9 月 10 日 上午 11:08 
@Yeet Lord >:3 You can now configure bullet speed/drop for individual weapons in "garrysmod/data/projectile_bullets/config.json"
Serika 2022 年 9 月 10 日 上午 4:50 
The drop is 1 and the speed is 700.
killerfishfromsandiego 2022 年 9 月 9 日 下午 10:48 
I kinda messed up with the settings, so can anyone please tell me what are the default settings again? Sorry.
blackow1cz 2022 年 9 月 9 日 下午 7:57 
damn, this would go well with airsoft guns
michael9r9r 2022 年 9 月 9 日 下午 2:10 
Would be awesome to have some way to adjust the velocities based on ammo type
Spywagen 2022 年 9 月 9 日 上午 10:45 
darn, can't see the bullets, no matter how slow
Mei  [作者] 2022 年 9 月 9 日 上午 6:13 
@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 2022 年 9 月 9 日 上午 2:39 
do npcs also shoot projectile bullets?
Gem 2022 年 9 月 8 日 下午 11:05 
Is there a way to add tracers like in the gif?
Mei  [作者] 2022 年 9 月 7 日 下午 7:32 
@gigabloxersaurus @Ocean fixed
Ocean_Man57 2022 年 9 月 7 日 上午 4:35 
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 2022 年 9 月 6 日 下午 6:28 
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  [作者] 2022 年 9 月 6 日 下午 4:35 
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  [作者] 2022 年 9 月 6 日 上午 11:06 
@jp4 @Holynoobs
fixed
BaJlepa 6oJlbIIIou' eJlDaK 2022 年 9 月 6 日 上午 8:20 
there is. check for bullet distance