Your Ad Here

Subscribe
 Post #1
 13th July 2007
Devilsson201's Avatar
January 2007
361 Posts
V2 of the flashlight SWEP by me. Also a super huge awesome big thanks to mrflippy for working out the battery script, and fixing most of my errors for me :).

You can just overwrite the old flashlight files:
Extract to garrysmod/garrysmod/

This is much more practical and realistic than the first one.

Use: Left click to turn on and right click to turn off. Every second it is on, it will drain 2 'battery' and when it is off, it will regen 1 'battery'. However if you hit 0 then you have to wait for it to get enough power to turn back on (which is 5 energy (10 seconds))

This SWEP disbales the 'f' flashlight so I do not recommend downloading it unless you are really going to use it. Or if you want to be able to use this and the regular flashlight just delete the cl_init script under lua/weapons/flashlight.

The view model is the same, I couldn't find anything better. I also made the world model the toolgun so it doesn't look like you're going to shoot someone.

If there are any bugs/suggestions post them here.



 Post #2
 13th July 2007
Bacon Man's Avatar
December 2006
195 Posts
1st post ands it's a good thing to have
 Post #3
 13th July 2007
Freedom9er's Avatar
June 2007
16 Posts
What would be cool is if you could put it on sweps or create your own sweps with the light.
 Post #4
 13th July 2007
Gold Member
Skorpy's Avatar
July 2005
5,236 Posts
Pretty neat.
 Post #5
 13th July 2007
shs's Avatar
October 2005
1,172 Posts
Gold star but this just toggles the owner's flashlight, would have been cooler if the light was bigger and custom-coded. Still, interesting idea and implementation. If the model was different this could be used in Roleplay or something.
 Post #6
 14th July 2007
Devilsson201's Avatar
January 2007
361 Posts
shs posted:
Gold star but this just toggles the owner's flashlight, would have been cooler if the light was bigger and custom-coded. Still, interesting idea and implementation. If the model was different this could be used in Roleplay or something.
It is coded, there is no way to make the flashlight bigger, the model doesn't matter at all, and it does more than just toggle the light.
 Post #7
 14th July 2007
Silverlan's Avatar
October 2005
1,290 Posts
The new version works fine, except for the battery power, it doesn't reload.
It just says "Timer Error: attempt to call a nil value" in the console and does nothing. :/
 Post #8
 14th July 2007
Maestro
PelPix123's Avatar
August 2006
3,180 Posts
Good. Now code a shader for it and make it cast stencil buffer shadows.






Just kidding.
 Post #9
 14th July 2007
Devilsson201's Avatar
January 2007
361 Posts
Silverlan posted:
The new version works fine, except for the battery power, it doesn't reload.
It just says "Timer Error: attempt to call a nil value" in the console and does nothing. :/
It doesn't work1? I'll check it tout when I get back home, I'm in vermont.
 Post #10
 14th July 2007
Gold Member
Zeddy's Avatar
July 2006
6,795 Posts
I don't see why you aren't using the w_model. It's just the Doom 3 flashlight and I know it has a w_model because I've seen it, and they have Co-op that shows it in peoples hands. What's wrong with the v_model?
 Post #11
 14th July 2007
Devilsson201's Avatar
January 2007
361 Posts
Zeddy posted:
I don't see why you aren't using the w_model. It's just the Doom 3 flashlight and I know it has a w_model because I've seen it, and they have Co-op that shows it in peoples hands. What's wrong with the v_model?
Well I didn't decompile it, so if you want to get it I'll take it :)
 Post #12
 14th July 2007
Gold Member
Zeddy's Avatar
July 2006
6,795 Posts
The Doom model pack had it I'm sure.
 Post #13
 14th July 2007
Devilsson201's Avatar
January 2007
361 Posts
Zeddy posted:
The Doom model pack had it I'm sure.
Didn't know there was a model pack.
 Post #14
 14th July 2007
Gold Member
Foda's Avatar
April 2006
3,073 Posts
Do you get shadows?
 Post #15
 5th January 2009
Zedo Mann's Avatar
November 2008
1,258 Posts
I think you should remove the shining light from the model because it looks weird when you are holding it with it turned off. Also if you could, it would be nice if you could make it so you had this when you spawned, since it disables the "f button" flashlight.
 Post #16
 6th January 2009
Zerg_humper's Avatar
December 2006
1,217 Posts
Zedo Mann posted:
I think you should remove the shining light from the model because it looks weird when you are holding it with it turned off. Also if you could, it would be nice if you could make it so you had this when you spawned, since it disables the "f button" flashlight.
Nice two year bump there! Seriously I don't think the OP cares anymore. Try PMing him instead... (I use this often and agree with your complaints)
 Post #17
 7th January 2009
FmX92's Avatar
January 2009
84 Posts
Nice swep.
 Post #18
 7th January 2009
Zedo Mann's Avatar
November 2008
1,258 Posts
Zerg_humper posted:
Nice two year bump there! Seriously I don't think the OP cares anymore. Try PMing him instead... (I use this often and agree with your complaints)
Dang...Didn't think to look at the dates. Sorry about Bumping. Anyway, I will try to PM him...
 Post #19
 7th January 2009
Gold Member
Dennab
February 2008
3,691 Posts
This should be really good for gamemodes.
 Post #20
 21st January 2009
Sales Kital's Avatar
January 2008
581 Posts
I would like to suggest a version that will work with mods.
 Post #21
 20th November 2009
House's Avatar
November 2008
72 Posts
Lol, You got the model from Doom 3! :)
 Post #22
 20th November 2009
Sgt Shrapnel's Avatar
July 2009
111 Posts
Lol, You got the model from Doom 3! :)
You seriously bumped up a nearly year old thread just to point out something most people knew.
 Post #23
 20th November 2009
Russian's Avatar
August 2009
272 Posts
make hl2 hands or css for this
 Post #24
 20th November 2009
Gold Member
theJ89's Avatar
February 2005
4,655 Posts
Secondary attack should let you whack someone over the head with it - which in turn would refill the batteries.

Nevermind, didn't notice the dust and cobwebs on this thread
 Post #25
 20th November 2009
cNova's Avatar
May 2009
480 Posts
pretty cool but a high poly model be better imo
also like "theJ89" suggestion like a secondary attack to whack someone
 Post #26
 12th December 2009
Creamy's Avatar
March 2009
14 Posts
Guys, I found out how to make the Flashlight bigger/smaller in console say r_flashlight All difrent types of flashlight commands come out. Which u can edit to make bigger smaller and more stuff i don't understand.
Reply

All times are GMT. The time now is 12:00AM.

Facepunch Studios 2010 - Server 'MARGE'