Flashlight Mod

Post your scripting questions / solutions here

Moderator: Moderators

Kiko
Major
Posts: 303
Joined: Mon Aug 29, 2005 8:58 pm
Location: US
Contact:

Flashlight Mod

Post by Kiko »

I need a flashlight mod, it doesn't have to actually be a flashlight model or anything like that, just when they hit a binded button by the mod it will kick it into play with a short beam of light that shows infront of them only (about 5 yards so they can see around in my dark tunnels) Is there one already? If not can someone make it.

(\_/)
(O.o)
This is Bunny. Copy Bunny
(> <)
to help him achieve world domination.
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

there is one of these on a gun in the modern combat full mod. I think its scripted to just that one gun though. try and find it.
Image[ Formerly Known As Snakeâ„¢ ]
Kiko
Major
Posts: 303
Joined: Mon Aug 29, 2005 8:58 pm
Location: US
Contact:

Post by Kiko »

So it'd be possible to possibly rip it from that mod ;) leave credit too of course

(\_/)
(O.o)
This is Bunny. Copy Bunny
(> <)
to help him achieve world domination.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

yes, another one of jv's devious inventions. it's fairly standard in game now, however. all that happens is a dynamic light is spawned within a sighttrace distance of hte player. for instance, if the player was standing on a flat map with no walls his light would project a set amount if front of him, if he faces a wall the light will hit the wall at the closest intersection between player and wall.

it causes some lag, however, as dynamic lights are not a Q3 specialty.

generally in games nowadays, however, a bulb overlay is put on the player's screen and the client light model is changed based on that, which looks natural and fine. the only problem is transmitting this to multiplayer efficiently, which is still not easily done, as a conical light is more difficult to derive than a spherical.

Of course you probably won't get that, but i still thought it was worth noting.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

Kiko wrote:So it'd be possible to possibly rip it from that mod ;) leave credit too of course
you could try, but i think deffo on just the one gun. Maybe look at the script and try your own based on that?
Image[ Formerly Known As Snakeâ„¢ ]
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Long live jv :P
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Jv did a very ingenious trick of attaching a spotlight to the barrel of the gun. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Kiko
Major
Posts: 303
Joined: Mon Aug 29, 2005 8:58 pm
Location: US
Contact:

Post by Kiko »

Can Kiko have? It'll be on a sniper only! :)

(\_/)
(O.o)
This is Bunny. Copy Bunny
(> <)
to help him achieve world domination.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

i'll have to play through it again.. but the version i played was just a projected light, it had no dimensions different than a regular light. :\
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Exactly, just like a spotlight, the one you get with the MG42s in SP. It's just a scaled-down one. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Kiko
Major
Posts: 303
Joined: Mon Aug 29, 2005 8:58 pm
Location: US
Contact:

Post by Kiko »

Ok, so is it a real looking flashlight "light" or just light the light that would go infront of you, cause if it's that then I'm not really wanting it no offense.

(\_/)
(O.o)
This is Bunny. Copy Bunny
(> <)
to help him achieve world domination.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Image

:P
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

i love the modern warefare mod. I wish there was a darker map on iy to fully test out the smg with the light tho.. because it looked good, but was totally pointless...
Image[ Formerly Known As Snakeâ„¢ ]
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Snake? wrote:i love the modern warefare mod. I wish there was a darker map on iy to fully test out the smg with the light tho.. because it looked good, but was totally pointless...
Yah that covers it well.. we originally tried to make it blind other players when they looked into the light but it would usually blind the player holding the weapon too :(
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

modern warfare should have gotten a LOT more recognition than it did. probably the most professional mod i've seen to date, topped CS1.6 for me.

i'll have to redownload, it was a spotlight? could have sworn it was just a dynamic light in front of the player.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply