Garry's Mod

Garry's Mod

169 ratings
Echolocation
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Cartoon, Fun
File Size
Posted
415.514 KB
2 Jan, 2014 @ 4:46am
1 Change Note ( view )

Subscribe to download
Echolocation

Description
-What is this addon-
It includes a level and some code. The level is completely dark with a custom material on the walls for effect.
By binding a key to the command "wt_echo" you can fire out an invisible beam that makes light when it hits the wall. The invisible beam (your 'echo') can bounce up to 3 times. Each player only sees their own echo lights.

-Why?-
See the video for what it's like and to get an idea of what could be done with it. I am releasing the code for anyone to learn from (even though it's somewhat messy and all in one file (not a good idea for writing a proper gamemode)). 'Echolocation' is an interesting concept for use in a game and I wanted to see what I could get working in Garrysmod.

-The code + map source-
Download the zip file from here https://www.dropbox.com/s/jhie73xkiwvbdji/wt_echolocation.zip
Unpack to your addons folder
(If you have this in your addons folder you should disable the workshop version)

-Misc Details-
The code will only run when on a map with a matching name ( starting with wt_el_ ), so it won't interfere with standard gameplay. In this addon it includes a simple bar on the hud showing your 'power level' which limits how often you can shoot out echo beams; the hud and the power limit can be turned off easily within the code, but not in the workshop version. (Hud only shows when the addon is active, when on the correct level).
Each player only sees their own echo lights, this can also be easily changed in one line in the code.
I encourage you to try and play around with the code, even though it's not the best, it's very simple.

-Other-
How do I bind a key?
. - Open the console (default key is ~ (beside 1 on most keyboards))
. - Enter the following command: bind "F" wt_echo but replace F with the key you want to use
21 Comments
RaysurZ 2 Jan @ 6:00pm 
same, any help
The Vigilante 14 Sep, 2023 @ 6:33pm 
Hey, i don't know where to find any maps that can work with this. Any help?
Midnight At 2 A.M. 5 Oct, 2022 @ 10:32am 
figure be like
chickenshrimpramen 10 Jun, 2022 @ 11:05pm 
Hey the file on dropbox was deleted, is there any way I can get it? Thanks
>TSYGAN 25 Jun, 2016 @ 4:36pm 
I used the box vis on this map holy hell its cool looking
CocoaMoloko 21 Nov, 2015 @ 8:04pm 
i kinda like this more than the flashlight. can you make this work for every map?
Lieutenant Kara Thrace 5 Jun, 2015 @ 12:09pm 
What exaclty is this? some kind of SONAR?
AviatorSam 2 May, 2015 @ 7:18pm 
@TheChickenDude wt_el_room2
The Bloke Slayer 4 Mar, 2015 @ 4:04am 
whats the name of the added map?
weaver 3 Jun, 2014 @ 2:18pm 
Maybe make it a toggleable option in the options menu to set whether or not you are blind, if regular echo (echolocate every 'x' seconds) is on and what variable x is, and radius and strength options. I've been looking for something like this so thank you innovative man!