Combine Sniper【 Player/NPC SWEP 】【TTT/Sandbox】

If you liked this item, please rate it up on Steam Workshop page.

Authors: Dragonred, Blargh Hurek

Last revision: 9 Jul at 02:03 UTC

File size: 22.05 MB

On Steam Workshop

Description:
This Mod was a Commission.

Blargh – Commissioner


TTT Compatibility + Sniper Model Into mod Files

Thanks to Big Beautiful Pill for requesting/Suggesting a TTT version of the Weapon
And also thanks to the people who voiced the problem about the Sniper’s model not showing in other GMOD Versions, The combine sniper model was extracted from HL2 Episodic’s content and should now render normally in all versions.


Here I am again, was having a lot of IRL problems so had to put a stop to the uploads, Finally having some free time again though so I’ll try to work on my projects much Faster

【 Combine Sniper 】

This Addon was a commission done by Blargh, The goal of this Swep is to replicate the combine sniper’s ( npc_sniper ) behaviour, but as a SWEP that both Players and weapon-wielding NPCs

| Credits |
Dragonred (me) :

Coding, Making UI elements ( kill-icon, Spawn-icon, Selection-icon, Scope Texture, etc ), Making the improvised ‘Viewmodel’ and improvised ‘animations’ ( done by code, no real animating/modeling used ), Showcase video, workshop gifs & screenshots and workshop description.

Blargh :

Commissioning the Addon, presenting the Idea, Always providing support ( Eternally grateful to him )

You can find and select the SWEP at:
Weapons / Dragonred SWEPs

Here’s what this Addon provides:

‘Physical’ bullets

Instead of a traditional hit-scan bullet, this SWEP shoots a projectile-like bullet, that travels in a straight line at a constant defined speed.

This is done in order to replicate the Combine Sniper NPC’s behaviour, allowing targets to dodge around the trajectory of the bullet.

To be able to use this SWEP and properly hit your Targets, check out the ‘Prediction Tracking’ section bellow.

Prediction Tracking

Since Bullets are not Hit-Scan based, while aiming down the Scope, you will be able to see red squares around NPCs, Nextbots and Players.

Those Red-Squares are the predicted future-position the Targets will be located at, which is calculated based on = Your shooting position, the Target’s center position, the Projectile’s Speed and the Target’s Velocity.

This allows you to see exactly where the Target will be at, so aiming and shooting directly at the red-squares on your Screen will 99% of the Time guarantee a direct-Hit to the Target ( AS long as the Target maintains their velocity, if they change their direction or velocity, they can easily dodge the bullet. )

Warning: Due to how Lag compensation works in Multiplayer, this SWEP is NOT guaranteed to always be accurate when your ping is high. The SWEP Does have a simple lag-compensation measure coded in for the prediction tracking system, but it’s not perfect.

Object Piercing

The bullet can pierce up to 5 Objects, Including NPCs, Players and Nextbots.

However, The piercing has a limit and a bullet can get lodged inside an object if the surface hit leads to too much density, so depending on the angle of where you hit an Object, or the size of it, the bullet might come to a complete stop.

I coded a custom tracer-system in order for the Bullet to actually visually stop aswell.

Laser Sight

Both Players and NPCs Cast a Laser while using the SWEP.
The laser represents the Trajectory of the bullet, Allowing players to Dodge both Player’s and NPCs shots, Just like you can dodge the Combine Sniper NPC shots.

NPCS will cast a Laser when they are aiming for an Active Target
Players will cast a Laser whenever they start aiming down the scope

Players CANNOT see their own Laser. Only other players do.


Support or Commission me

Thanks for reading all of this, If you can and would like to support me, or would like to discuss a Commission, it would be VERY appreciated, even 2$ Helps me a TON:
Kofi:
https://ko-fi.com/dragon_red

In case you are interested in my Future projects or wanting to be able to make small-commissions (Example: Wall-Damage Addon (clickable link) ) monthly, take a look at my Patreon:
Patreon:
https://patreon.com/dragon_red_dnp

Right now i’m still working on my Projects (mostly consisting of Big-New unique Coop and PVP gamemodes) with Limited free time, But once my Projects are done, members of the ‘VIP Early-Access Supporter’ Role ( 5$ monthly ) will be able to add and suggest many of their ideas to the projects, along with other exclusive stuff aswell based on the Project’s theme.

Mod made by Humans

I refuse to use A.I or generative A.I, I spent years learning how to code by cheer passion, And even though my Code isn’t perfect, I’ll keep writing my own code and making my own mods by hand.