Garry's Mod

Garry's Mod

Clientside Hitreg
79 条留言
wget  [作者] 5 月 18 日 下午 5:30 
@Glebaasツ
idk why it would, this addon doesnt do anything per-frame, it only does something when bullets are fired
it naturally uses a bit more memory and increases net usage, but only very minimally
there aren't memory leaks (like shot info tables being retained in memory forever) and the net messages are packed as tight as they can possibly be, you can check the code on github
Glebaasツ 5 月 18 日 上午 8:08 
Can this addon affect FPS and optimization in any way?
sadie! <3 5 月 14 日 上午 10:09 
holy moly it even fixed the bullet penetration and particles are working now.
sadie! <3 5 月 14 日 上午 10:00 
Fix seemed to have worked without a hitch. Thanks for the quick fix! <3
wget  [作者] 5 月 14 日 上午 12:22 
@sadie! <3
thanks for reporting, can you check if the recent update fixes your issue
sadie! <3 5 月 13 日 下午 11:19 
[Clientside Hitreg] lua/marghitreg/sv_marghitreg.lua:1059: Tried to use a NULL entity!
1. unknown - [C]:-1
2. v - lua/marghitreg/sv_marghitreg.lua:1059
3. unknown - lua/includes/modules/hook.lua:102

It seems to be an issue only with SWCS, even with bullet penetration disabled.
wget  [作者] 5 月 13 日 下午 10:12 
@sadie! <3
can you send the errors
sadie! <3 5 月 13 日 下午 6:02 
For whatever reason, SWCS weapons work like a dream with this in sandbox, but cause errors, don't show up particles when i shoot things, and make bullet penetration inconsistent in TTT.
22050hz amen break sample 2 月 23 日 上午 1:48 
this remains goated because it doesn't break bullet spread unlike leyhitreg
wget  [作者] 2 月 7 日 上午 2:52 
IMPORTANT!!!

now that leyhitreg was just recently made free and open source and available on the workshop ( https://sp.zhabite.com/sharedfiles/filedetails/?id=3421440369 ), please do NOT use both leyhitreg and this addon at the same time

having both leyhitreg and this addon active at the same time will NOT somehow result in better hitreg if that's what you're thinking, it will actually just break a ton of things that nobody's gonna help you with, because they are not meant to be used together

you must install only either this addon or leyhitreg, so just use whichever one's most compatible with your server's set of addons
wget  [作者] 2 月 6 日 上午 3:26 
btw code should be up on github now, which i should've done like 2 years ago
https://github.com/wgetJane/gmod-clientside-hitreg
Winn 2 月 5 日 下午 1:55 
it was really weird, it happened once and then never again. thank you for your efforts though
wget  [作者] 2 月 5 日 上午 4:40 
@Winn
i could not replicate this at all in any branch, can you be specific about the circumstances of the crash?
wget  [作者] 1 月 30 日 下午 9:39 
@Winn
very odd, this is a crash on the C-side of the game

what branch of gmod is the server on, main or 64-bit or dev?

also can you be more specific on how the crash happened? is it a vanilla hl2 gun shooting a strider?
Winn 1 月 30 日 下午 6:43 
crashed while shooting a strider

Client
*Not in Lua call OR Lua has panicked*

Server
0. DispatchTraceAttack - [C]:-1
1. func - lua/marghitreg/sv_marghitreg.lua:1087
2. internal_call - lua/includes/modules/hook.lua:409
3. (null) - lua/includes/modules/hook.lua:428

MenuSystem
*Not in Lua call OR Lua has panicked*
wget  [作者] 2024 年 12 月 4 日 下午 5:44 
@Loewenstern
yes, the addon only ever disables itself in single-player mode
Loewenstern 2024 年 12 月 4 日 下午 1:36 
does this work when hosting peer to peer?
wget  [作者] 2024 年 10 月 20 日 上午 4:59 
@Dr. House M.D.
can you paste in the error you're getting
Silly Driver 2024 年 10 月 19 日 下午 12:32 
I'm having issues where the add-on either partially loads and errors or simply refuses to load at all.

sv_allowcslua 1 fixes the add-on not loading at all problem, but it still randomly decides to show only three or four convars instead of all the ones listed in the description, as well as erroring when shooting things (indicating something is missing).

Add-on works fantastic for my needs, but I cannot for the life of me get it to reliably load without restarting the server several times. (tested without other add-ons enabled)
4GClaroARG 2024 年 9 月 28 日 上午 6:19 
Thanks
wget  [作者] 2024 年 9 月 27 日 下午 11:51 
@4GClaroARG it should, maybe set clhr_tolerance_ping to like 200

if you're playing in a private server with only friends then setting clhr_supertolerant 1 should be fine
4GClaroARG 2024 年 9 月 27 日 上午 7:13 
Does this work well for players who have 200/250 ping? Because I have some players who play from the other side of the world.
wget  [作者] 2024 年 6 月 25 日 上午 9:08 
@SpawN (El Diablo)
this is a multiplayer-only addon, there's nothing it can possibly even do in singleplayer
[IG] Murlock 2024 年 6 月 25 日 上午 8:47 
BUT FR, this can prob be done better than goto statments lol! this is rly funny to me :mortis:
[IG] Murlock 2024 年 6 月 25 日 上午 8:46 
::loop::

print("WHY THE FUCK IS GOTO A THING IN LUA I HAD NO IDEA. IDK HOW TO FEEL ABOUT THIS")

goto loop
3840x2160 yes 2024 年 6 月 24 日 下午 5:34 
These do not work In singleplayer, It likely Isn't Intended to work In SP but I'd still like to see SP support.
3840x2160 yes 2024 年 6 月 9 日 下午 6:11 
I tested It and I determined that It's not any of my addons.
3840x2160 yes 2024 年 6 月 6 日 下午 4:32 
I'm not too sure then, I'll have to see to It myself l8tr
wget  [作者] 2024 年 6 月 5 日 下午 11:19 
@SpawN (El Diablo)
just tested on the main and 64-bit versions and it works completely fine
3840x2160 yes 2024 年 6 月 5 日 下午 5:54 
I don't wanna bother with what addon prevents the addon from working, even then I also tried It with all of my addons disabled and still.
wget  [作者] 2024 年 6 月 4 日 下午 10:27 
@SpawN (El Diablo)
most of the cvars are serverside, also are you sure that the addon is actually enabled? if it is then there might be a diff addon that's preventing this from working
3840x2160 yes 2024 年 6 月 4 日 下午 5:03 
I don't see the cvars In console.
wget  [作者] 2024 年 5 月 8 日 下午 11:15 
@BOSNIAN FOREVER ZA DOMOVINU
projectile bullets will not use clientside hitreg, only hitscan bullets will
berserklover1965 2024 年 5 月 8 日 下午 11:06 
might be a dumb question but if a weapon mod i'm using has projectile bullets will it work for that too
Global 2024 年 4 月 24 日 上午 10:23 
Yep, that caused prints - sorry for bothering you! Everything looks good here.
Global 2024 年 4 月 24 日 上午 10:12 
Oh, okay
I'll look into that tip, thanks a bunch
wget  [作者] 2024 年 4 月 24 日 上午 6:53 
@Global
clhr_printshots should only be printing shots that would've missed without clhr, try applying a clientside bonemanip on your target to ensure that the client and server hitboxes are desynced
Global 2024 年 4 月 22 日 上午 7:30 
I only made an attempt when this add-on wasn't printing anything for TFA Base weapons, even with clhr_printshots set to 1 - I checked if TFA was at least calling both EntityFireBullets and the Post hook, and it appears to be doing so.
I'll keep poking at it
wget  [作者] 2024 年 4 月 22 日 上午 7:23 
@Global
yeah i did attempt that too but got distracted by something else and when i finally got back to it all my progress was incomprehensible to me

currently, i don't really have plans to switch it over since nobody has reported any issues with it, and after some testing, various bullet-related hooks including the new one still work fine
Global 2024 年 4 月 22 日 上午 7:17 
Makes me wonder if the new PostEntityFireBullets hook could be used for this - iirc that allows multiple hooks to be run for each bullet?
I made an attempt to convert this over to it and failed miserably lol
Spanospy 2023 年 12 月 29 日 下午 1:26 
Heyo! Any chance to put this onto GitHub?
kitrod 2023 年 11 月 24 日 下午 3:55 
what exactly does ping tolerance do? is it just the maximum it is able to try to compensate for?
Scribble 2023 年 10 月 24 日 下午 5:28 
Awesome mod!
wget  [作者] 2023 年 10 月 11 日 下午 7:25 
@greenodst
thanks, should be fixed now
greenodst 2023 年 10 月 11 日 上午 8:04 
Hey just wanted to say that I've been getting this error since the most recent update.

[Clientside Hitreg] lua/marghitreg/sv_marghitreg.lua:176: attempt to index field 'targets' (a nil value)
1. validate - lua/marghitreg/sv_marghitreg.lua:176
2. v - lua/marghitreg/sv_marghitreg.lua:1131
3. unknown - lua/includes/modules/hook.lua:96
Mr.Patate 2023 年 8 月 27 日 上午 10:16 
imma try to fix this problem, thanks for answering
wget  [作者] 2023 年 8 月 27 日 上午 9:39 
@Mr.Patate
it is very unlikely that this addon would affect your framerate
Mr.Patate 2023 年 8 月 27 日 上午 7:24 
any way of fixing it ?
Mr.Patate 2023 年 8 月 27 日 上午 7:24 
idk why but this makes me lose a lot of fps
weedshot 2023 年 7 月 10 日 下午 7:10 
replaces bone editor