Half-Life 2

Half-Life 2

119 ratings
Railgun/Sniper Script
   
Award
Favorite
Favorited
Unfavorite
type: assets
File Size
Posted
5.852 KB
Nov 24, 2024 @ 12:36pm
1 Change Note ( view )

Subscribe to download
Railgun/Sniper Script

Description
Changes the behavior of the crossbow to act partially like a hitscan weapon and adds a tracer effect whenever you fire.

A byproduct of how this works is that you can sometimes shoot through thin walls, hence the 'Railgun' in the title.

I recommend using this Overwatch SR2 Sniper Rifle skin alongside this script
32 Comments
Shadow1997 Feb 18 @ 8:35am 
Please add this addon to Entropy zero 2 workshop!
FROZEFIGHTER Feb 17 @ 7:37am 
we gonna need normal bullet script... for remighton 700 and mosin nagant and other sniper rifles
Cursed Hawkins Jan 29 @ 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 Jan 28 @ 5:22am 
bad mod
corrupts your save when you try to uninstall
2.5 Bobux Jan 22 @ 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 Jan 4 @ 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 Dec 30, 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?
danquynhon Dec 27, 2024 @ 9:12pm 
mine you can see the tracer but you can still the bolt flying slowly to where you aiming
The watcher Dec 25, 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.
Vincenza  [author] Dec 11, 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