Garry's Mod

Garry's Mod

2,639 arvostelua
Customizable Flashlight
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
Tiedostokoko
Julkaistu
Päivitetty
836.107 KB
31.3.2014 klo 20.00
18.2.2019 klo 12.11
18 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Customizable Flashlight

Kuvaus
Notice: People keep claiming this weapon blocks access to the flashlight after disabling/uninstalling/deleting the gma/deleting all mods/uninstalling the game/deleting system32. Put simply, this is impossible. Once the gma, and therefore the lua files are removed, no hook exists to intercept the keypress. These instances are most likely user error. Regardless, if you're afraid, I recommend going elsewhere.

Also note that this weapon is currently outdated. It will not work online and has errors. A rewrite is in early development.

If a light spot gets stuck on screen, use the button in the cleanup menu.

This weapon is meant to be a recreation and improvement of Zoey's (Magenta's) Zombie Master Flashlight once available for Garry's Mod 10.
This weapon is recreated from scratch to provide a similar function to the weapon removed from garrysmod.org years (a year? two years? I don't know, two computers.) ago.
This weapon replaces regular flashlight functionality with a new flashlight held in the hand of the player. The player can use a simple melee attack while holding the light and the light source follows the weapon's view model.

The light source in this weapon, however, will never be bound to the model at the wrong angle. This is because I have bound the light to an attachment on the model, so it will always face in the proper direction. This weapon is also customizable, with the ability to select different textures and colors for your flashlight beam and the ability for the server to disable the flashlight when necessary.

Settings & Customization
To change weapon settings, a menu is available under the options tab. To add new textures to the menu, the method is essentially the same as adding a new rope texture, or a new texture to the standard lamp tool. Make a new .lua file in the autorun folder containing a line with the following format:

list.Set( "FlashlightTextures", "effects/flashlight/flashlight_crappy", { Name = "Crappy Example" } )

This weapon hasn't been tested online, but hopefully won't pose problems for anyone planning to use it online.

Credits
Model & Animations - Zombie Master
Original Diffuse Texture - Bobba Fett
Normal Map, Code, 'trigger' animation, HUD graphics - Paynamia

Partially based upon LUA code included with Garry's Mod.

GitHub Repository[github.com]