Garry's Mod

Garry's Mod

74 ratings
Simple Drowning System V2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Realism
File Size
Posted
Updated
3.822 KB
17 Jul, 2021 @ 5:36pm
22 Jul, 2021 @ 1:18pm
2 Change Notes ( view )

Subscribe to download
Simple Drowning System V2

Description
4kb total!

Why V2? Steam wouldn't let me update the first one to fix the typo that made it not work at all. Plus some minor improvements. If you find other bugs, let me know in the comments.

Features:
  • Quick, clean and reliable script
  • Easily configurable and adjustable
  • Kills attributed to players who dealt damage
  • Fully functional with NPCs
Convars:
  • drown_enabled
    (default true) - Enable/disable the addon
  • drown_breath
    (Default 10000 - 10 seconds) - Amount of time players can hold their breaths in ms
  • drown_dmg
    (Default 10) - Amount of damage players take per hit
  • drown_delay
    (Default 1000 - 1 second) - Amount of time between hits while drowning in ms
  • drown_waterlevel
    (Default head) - What bodylevel you begin to drown at (feet, waist or head) -- players can technically swim without their waist underwater, so use 'feet' for swimming in general
  • drown_credit
    (Default 30) - How many seconds can elapse after player damage for it to be
    counted as a kill (0 to disable credit system)
Note: does not affect players in seats
30 Comments
waranas 4 May @ 7:44pm 
A question, how do I save the changes?
Goofyscooby 21 Dec, 2024 @ 2:48pm 
You should add a scuba mask or something like that. That would be so cool!
Mr. Green 2 Nov, 2024 @ 10:27pm 
@Maxar its pronounced "drown_enabled 1" for enabled and "drown_enabled 0" for disable. No hate just wanting to lend a hand
iumiforgot 4 Sep, 2024 @ 12:28am 
works for me! :barotrauma:
priospecter 15 Aug, 2024 @ 8:53pm 
does not work
Hank Schrader 27 Feb, 2024 @ 4:58am 
@AAAAAHH use hl2 HEV mode for drowning u can see it when u click on a map
Maxar 31 Dec, 2023 @ 2:17pm 
This doesn't work. Typing "drown_enabled false" does not disable drowning.
pooby 26 Sep, 2023 @ 6:15pm 
when ragdolled*
pooby 26 Sep, 2023 @ 6:15pm 
i use ragmod and drowning does not work, if it did work id give 10/10 otherwise, still very great mod 9/10:steamhappy:
night janitor 4 Sep, 2023 @ 11:28am 
can npcs drown to?