Half-Life 2

Half-Life 2

Railgun/Sniper Script
32 Comments
Shadow1997 18 Feb @ 8:35am 
Please add this addon to Entropy zero 2 workshop!
FROZEFIGHTER 17 Feb @ 7:37am 
we gonna need normal bullet script... for remighton 700 and mosin nagant and other sniper rifles
Cursed Hawkins 29 Jan @ 6:41pm 
@Level-Headed
Really? It's almost as if it says that "it's a script" thus is REQUIRED to function properly so it missing is going to break saves it was used in prior!
Level-Headed Gamer 28 Jan @ 5:22am 
bad mod
corrupts your save when you try to uninstall
2.5 Bobux 22 Jan @ 11:21am 
Hello, this is a very good mod. My only complaint is that this overwrites the ammo and damage for the crossbow regardless of your load order, and that the trail — although very well-done — seems to render too close to the player, which does not look very good if not using the scope, though this is a very minor issue.

Could the line of code for sk_ammo_crossbow_max and sk_plr_dmg_crossbow be removed from the custom scripts to increase compatibility with other mods?

Also, I agree with @John on this one. It would be ultra awesome to have this.

That's all, excellent work, I did not even know this was possible to do.
John 4 Jan @ 10:31pm 
Ever thought about doing this for the AR2 ALT-Fire? I just wanna replace it with something similar to the grenade launcher on the SMG1. Mainly so I can use it rather seamlessly with the M4 w/M203 mod.
Arctic_Flamingo 30 Dec, 2024 @ 9:45am 
Everytime i fire the thing it thinks i don't have anymore ammo when i already do.. i have Infinite ammo on and it still won't fire, just shows up as red, what's the deal with that?
khánh 27 Dec, 2024 @ 9:12pm 
mine you can see the tracer but you can still the bolt flying slowly to where you aiming
The watcher 25 Dec, 2024 @ 7:03pm 
so the script stopped working.... even on community maps the script doesn't work. there is only the crossbow proj, no tracers and no increased speed. if you can fix this or tell me how to fix it i will be very VERY thankful.
Vinny  [author] 11 Dec, 2024 @ 1:02pm 
it uses multiple CFGs to spawn in a trigger that encases the entire map
the trigger only detects the crossbow bolt class and runs another CFG when it fires
the cfg teleports the bolt and spawns the tracer effect
Obsidian Plague 9 Dec, 2024 @ 12:52am 
how does this work, exactly?
Mo Gigmal 8 Dec, 2024 @ 5:27pm 
could you port this to gmod? if not that fine
Coomp 6 Dec, 2024 @ 9:51pm 
I don't know what I'm doing wrong, but all that I keep getting is just a normal crossbow bolt with a misplaced tracer. I have the multiloader at the very top and this underneath, pls help
Elf 5 Dec, 2024 @ 4:30am 
peak mod, allows me to hit 360s on metro cops
John Roboeye 29 Nov, 2024 @ 9:05am 
it was a save issue it fixed itself after creating a new save
John Roboeye 29 Nov, 2024 @ 7:48am 
The new update might have broke the script. I just updated the game placed multiloader and the script at the top, only to find some bolt shooting out instead of lazer
Vinny  [author] 28 Nov, 2024 @ 12:28pm 
the script multiloader should be at the very top and this should be somewhere beneath it
Daylight106 28 Nov, 2024 @ 12:19pm 
is there a specific load-order I should have for this?
It still fires a crossbow bolt, and the tracer is incredibly offset.
I have the multi-loader and I've heard that load-order is important for mods.
Vinny  [author] 28 Nov, 2024 @ 11:57am 
that's weird, it works for me
The watcher 28 Nov, 2024 @ 4:04am 
i just realised it doesn't work on ep2. oppsies
Mister Derquisglesworth Longbutt 27 Nov, 2024 @ 11:51am 
Is there a version to make it shoot "bullets" rather then a railgun
Vinny  [author] 25 Nov, 2024 @ 2:53pm 
what map were you playing on and where at?
The watcher 25 Nov, 2024 @ 2:51pm 
it still shoots a crossbow bolt and travels in a arc. i tried shooting an enemy from a distance and it took a second or two for the enemy to die before getting hit. the only thing is a tracer that doesn't match with the crossbow bolt
LostSektor 25 Nov, 2024 @ 12:15pm 
Now sniper is perfect, short clip with SR2 sniper skin and the script: https://youtu.be/hs2HnT0kDoY
Kabob004 25 Nov, 2024 @ 9:22am 
So this can script makes the Crossbow into a Rail Driver from Red Faction... Potentially?
Xx_L Δ M B D R Σ λ_xX 24 Nov, 2024 @ 11:18pm 
So it's basically the gauss cannon?
Destruction 24 Nov, 2024 @ 10:10pm 
alr, good to know
Vinny  [author] 24 Nov, 2024 @ 10:00pm 
yes, forgot to mention that
could move that to a separate addon later
Destruction 24 Nov, 2024 @ 9:37pm 
Does this script affect any sk_ variables? I've started having a 24 crossbow bolt limit when it's enabled, which disappears when it is disabled.
Wolf 24 Nov, 2024 @ 6:02pm 
10/10
Trizz 24 Nov, 2024 @ 5:43pm 
Dark and gritty
Vinny  [author] 24 Nov, 2024 @ 12:47pm 
I'm not sure how well this will work for other people, but I've had little problems with it so I'm making it public now