Garry's Mod

Garry's Mod

2,662 평점
Customizable Flashlight
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
파일 크기
게시일
업데이트일
836.107 KB
2014년 3월 31일 오후 8시 00분
2019년 2월 18일 오후 12시 11분
변경 사항 18개 ( 보기 )

다운로드 위해 구독하기
Customizable Flashlight

설명
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]