Garry's Mod

Garry's Mod

4,887 ratings
Improved Stealth Mod
4
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Realism
File Size
Posted
Updated
10.724 MB
Jan 25, 2016 @ 7:53pm
May 5, 2016 @ 11:19pm
25 Change Notes ( view )

Subscribe to download
Improved Stealth Mod

Description
This mod allows you to hide in the shadows, remaining undetected to enemy NPCs. Lighting and movement will alert them. In this state, you can't hide anymore, but if you stay out of their line of sight, they will eventually stop chasing you. This is based on an old mod made by -|Sparky|-. He lets everyone modify it, so I took the source and tried to improve it with new features. At first it was only for personal use, but then I decided to upload it. This is the first thing I make in LUA, so there may be bugs. Feel free to post them here, and I'll try to fix them asap. I'm also open for suggestions, but my programming knowledge is a bit limited, so I may or may not implement them.

DO YOU HAVE A PROBLEM WITH THE MOD?

READ THE FAQ BEFORE ASKING, PLEASE:

http://steamcommunity.com/workshop/filedetails/discussion/608796788/412448158154761922/

Development is halted.
I left the game, and I won't work on this addon until I return. Don't expect any more updates until then.
User Schilcote has made his own branch of this mod, with my permission. You can find his version here:
http://steamcommunity.com/sharedfiles/filedetails/?id=779595105

Theres a FAQ (Frequently Asked Questions) in the discussions section. Read it before asking something.


Features:
- Enemies sight range is affected by your light level and movement speed. Also, it's halved if you are crouching.

- Enemies can hear you, even through walls. Always walk or crouch when approaching an enemy from behind.

- Once alerted, they will inmediately start chasing you, and you can't hide anymore. Stay out of their line of sight for a few seconds and they will lose track of you.

- Includes HUD elements to keep track of your light level and alertness of enemies.

- Optional music, sound and visual effect for when an enemy detects a player.

- You can change most internal variables with console commands or in the toolmenu. These settings are located in the Options tab.

- You can change what weapons are silent, or make less noise, and what kind of NPC's are affected by this mod (by default, only Combine Soldiers and Metrocops). These lists are located in "Garrysmod/data/stealth". Remember to reload them in game.

- Includes two stealth tools: Sound Grenade and Proximity Sensor.

- Support for Cardboard Box swep by Olivia. Enemies will ignore you if you hide inside the box, as long as you don't move. You can find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=317267606

- Enemies will alert nearby NPCs if they detect you, unless you kill them quickly.

- Enemies will investigate dead bodies. You need "Keep Corpses" on for this to work, or you can enable "Keep Corpses Override". Disable both if you're using Gibmod or Blood and Gore Overhaul.

- You can press USE to grab enemy corpses (only for those affected by this mod).

- You can override the original relationship between the player and the NPCs included in npc.txt. This way you can make this mod work with friendly NPCs.

- The default lists comes with support for the following weapon packs:
CW 2.0
FA 2.0 Alpha
TFA Official Weapons
TFA NMRIH
TFA CSS
TFA CSS Alternates
TFA CS:GO
Half Life 2
Half Life Reanaissance
Some M9k Weapons

- If you want add support for this mod in your custom HUD, you can use the "stealthmod" global table:
*stealthmod.enablehud: (1 or 0) Enables or disables the default HUD.
*stealthmod.luminocity: (0 to 255) Stores current light level of LocalPlayer()
*stealthmod.alertdanger: (0 to 255) Stores current alert danger of LocalPlayer()

Console Commands:
Serverside:
"stealth_enabled": Default is 1. This will cease all stealth operations. It won't affect current active NPCs.
"stealth_alerttime": Default is 15. Time until the NPCs leave their alerted state.
"stealth_override": Default is 1. This will make any npc your enemy as long as it's included in npc.txt.
"stealth_keepcorpses": Default is 0. This will spawn server corpses even if ai_servercorpses is 0. However, they will spawn in T pose.
"stealth_alertondamage": Default is 1. This will make NPCs spot the player immediately after receiving damage, instead of investigating his position.
"stealth_maxcorpses": Default is 10. Limits the maximum amount of enemy ragdolls (only for NPCs affected by this mod).
"stealth_multiplier": Default is 1. This increases or decreases all stealth settings.
"stealth_minsight": Default is 200. Range at which an NPC can detect a standing player with minimum light level.
"stealth_maxsight": Default is 1500. Range at which an NPC can detect a standing player with maximum light level.
"stealth_movebonus": Default is 0.3. Sight range will be increased this much when a player is running (doubled if sprinting).
"stealth_minhearing": Default is 200. Range at which an NPC can hear a running player (doubled if sprinting).
"stealth_shotrange": Default is 1000. Range at which an NPC can hear a gunshot.
"stealth_suppmultiplier": Default is 0.3. Hearing range multiplier for suppressed weapons.
"stealth_backuptime": Default is 1. Time in seconds until an enemy alerts nearby npcs after detecting a player.
"stealth_backuprange: Default is 800. When an enemy detects you, he will alert all npcs inside this range.

"stealth_reloadsettings": This will reload the lists of silent weapons and affected NPCs.

Clientside:
"stealth_drawbar": Default is 1. Can take values from 0 to 4. It changes the HUD mode (0 is disabled).
"stealth_enablefx": Default is 1. This enables visual effects over enemies when they enter or leave alerted state.
"stealth_enablesound": Default is 1. This enables sound when an enemy is alerted.
"stealth_enablemusic": Default is 1. This enables MGS alert music when an enemy is alerted.
"stealth_hudx": Default is 29. Horizontal position of the HUD.
"stealth_hudy": Default is 220. Vertical position of the HUD. (From bottom to top)

Planned Features:
- Add A minimap with nearby enemies and their line of sight (quite unprovable)

- Make a Wire component that alerts nearby enemies, so players can build their own security systems.

- Add support for Atmos.

- Make enemies hear players talking with the mic.

- Make players harder to detect while underwater.

Known issues:
- Enemies will detect you even if you have "notarget" on. However, they won't attack you.

- When a player is detected, enemies will try to kill him, ignoring other NPCs.

- Sometimes NPCs will turn back if the player fires a weapon, even if he wasn't supposed to hear that. Thats because the default NPC ai can't tell if a weapon is suppressed or not.

- If you kill an NPC which is inside the range of a proximity sensor, it will show an holographic copy of itself for one or two seconds.

Incompatibility:
- "Anti-FriendlyFire (NPC)": With this mod, you won't be able to hurt unalerted enemies, because they are treated as allies until they spot a player.

- Any mod that modify NPC relationships (like iNPCs): If enemies attack even before spotting you, then this may be the problem.

- Any SNPC.

Credits:
Big thanks to -|Sparky|- for making the original mod, and letting everyone modify it. You can find it here: http://steamcommunity.com/sharedfiles/filedetails/?id=185904454.

Thanks to Clavus for his SWEP Contruction Kit, which allowed me to attach a tin can to a pistol as a suppressor, Brink style (?

Also thanks to Olivia for its cool Cardboard Box SWEP, and for letting me use her alert effect in my mod.

By the way, I was using CTP (Customizable Third Person) in the screenshots. The map is Freespace 13
Popular Discussions View All (52)
9
Jul 17, 2020 @ 9:36am
I think, My weapons ain't working
Adolf kebab
6
Feb 19, 2023 @ 10:06pm
Sight
ᴺᴱᵀᴼ
4
Aug 8, 2020 @ 3:03am
Cardboard box dosen't work
RealGamerVet
1,561 Comments
SpaceyKitteNMeow Mar 4 @ 3:37pm 
If you attempt to pick up a prop it immediately drops it
woohoowi Feb 23 @ 2:49pm 
bout to turn gmod into manhunt
iCarlysmom Jan 13 @ 12:07pm 
this mod seems to remove corpses with a mod by Zippy called "Zippy's Active Ragdolls". i would shoot a NPC and the corpse just disappears. im sure this is not supposed to happen and i haven't fixed it yet.
GM_Legorigin Dec 29, 2023 @ 11:03am 
⠸⠿⡀⠀ ⠀ ⠀⣀⡴⢿⣿⣿⣿⣿⣿⣿⣿⣷⣦⡀Help
⠀⠀⠀⠀⠑⢄⣠⠾⠁⣀⣄⡈⠙⣿⣿⣿⣿⣿⣿⣿⣿⣆Shrek
⠀⠀⠀⠀⢀⡀⠁⠀⠀⠈⠙⠛⠂⠈⣿⣿⣿⣿⣿⠿⡿⢿⣆Take
⠀⠀⠀⢀⡾⣁⣀⠀⠴⠂⠙⣗⡀⠀⢻⣿⣿⠭⢤⣴⣦⣤⣹⠀⠀⠀⢀⢴⣶⣆Over
⠀⠀⢀⣾⣿⣿⣿⣷⣮⣽⣾⣿⣥⣴⣿⣿⡿⢂⠔⢚⡿⢿⣿⣦⣴⣾⠸⣼⡿Steam
⠀⢀⡞⠁⠙⠻⠿⠟⠉⠀⠛⢹⣿⣿⣿⣿⣿⣌⢤⣼⣿⣾⣿⡟⠉Copy
⠀⣾⣷⣶⠇⠀⠀⣤⣄⣀⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇And
⠀⠉⠈⠉⠀⠀⢦⡈⢻⣿⣿⣿⣶⣶⣶⣶⣤⣽⡹⣿⣿⣿⣿⡇Paste
⠀⠀⠀⠀⠀⠀⠀⠉⠲⣽⡻⢿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⡇
⠀⠀ ⠀⠀⠀⠀⠀⢸⣿⣿⣷⣶⣮⣭⣽⣿⣿⣿⣿⣿⣿⣿⠇DO IT.
⠀⠀⠀⠀⠀⠀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇THIS THING IS DOPE
⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
CELL Dec 15, 2023 @ 12:17pm 
"I am vengeance. I am the night. I am Batman!"
Channel 42 #FixTF2 Jul 6, 2023 @ 5:05pm 
use Improved Stealth mod (V.2.1) dont use this one.
fumo anime plush Jun 28, 2023 @ 10:37am 
this breaks vj btw.
Alan May 15, 2023 @ 12:50pm 
all the combine starts attacking me even with friendly mod
Alan May 15, 2023 @ 12:50pm 
Does not work with friendly combine mod?
Abusive Father Apr 9, 2023 @ 3:15pm 
can you just make every npc affected as an option