Garry's Mod

Garry's Mod

414 ratings
GMod Crossbow Prediction
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun
File Size
Posted
Updated
6.518 KB
13 Jan, 2023 @ 8:48am
4 Jul, 2023 @ 12:30pm
7 Change Notes ( view )

Subscribe to download
GMod Crossbow Prediction

Description
!!! WARNING !!!
You'll probably need a decent CPU for handling smooth and extensive bolt simulations. Do NOT go into the comment section and blame the addon for causing excessive lag. You WILL be ignored if you do that.
Also don't even bother posting a comment like "doesnt work!!!" without providing extra information. Make sure the 'pcrossbow_enabled' CVar is enabled first before posting a comment like this.

Tip: To avoid significant reduction in FPS, consider looking into the settings of the addon located under 'Utilities' and adjust the values in the 'Simulation' section to your liking.

⎯⎯ ✧ Overview ✧ ⎯⎯
Have you ever wanted to accomplish a crazy trickshot... Ever thought of dominating the whole server perhaps? Maybe you just want to mess with your friend? Well, today is a great day for you!
This addon is able to calculate and predict the movement of every single crossbow bolt you or your foes shoot. You even get to align your crossbow before shooting it at the enemy!

⎯⎯ ✧ CVars ✧ ⎯⎯
  • pcrossbow_enabled (0/1) - Enable drawing of the predicted bolt trajectory.
    ^ Disabled by default
  • pcrossbow_frametime (0/1) - Use game's FPS to calculate trajectory of the bolt.
  • pcrossbow_timestep (1+) - Manually set expected FPS to calculate trajectory of the bolt.
    ^ Takes effect only when 'pcrossbow_frametime' is disabled
  • pcrossbow_time - Trajectory calculation time.
  • pcrossbow_delay - Trajectory calculation delay.
  • pcrossbow_color_r (0-255)
  • pcrossbow_color_g (0-255)
  • pcrossbow_color_b (0-255)

P.S.
I was originally supposed to release this in private access. But since there are several YT videos done on crossbow prediction with no official source code releases, I have decided to upload this to the Workshop for public use. You are free to learn how the calculations are done.


[ko-fi.com]
64 Comments
Nep Nep 19 Jul @ 11:44am 
https://imgur.com/Ia3PE7B
Well, im trying to catch an bolt
☆ jows ☆ 21 Apr @ 9:51am 
How do I bind this?
[FJOX.win] ƒjøx 1 Apr @ 3:49am 
is a Dual X5690 a decent cpu?
V 28 Feb @ 10:15am 
are there ways to set this thing to work with the defaults of 'Improved Crossbow Bolts'?
i made a discussion on that addon and will delete it if this addon adds options for said mod
Trevor1881 1 Oct, 2023 @ 11:36pm 
i serched the things
Trevor1881 1 Oct, 2023 @ 11:31pm 
it no work bro
benjadeu 21 Apr, 2023 @ 5:45pm 
i just tried it no lag its good
benjadeu 21 Apr, 2023 @ 5:32pm 
would a ryzen 7 pro 4750g be good?
Huh?! 22 Feb, 2023 @ 9:11pm 
thanks!