I made a flashlight!
Moderator: InsideQC Admins
22 posts
• Page 1 of 2 • 1, 2
I made a flashlight!
Doesn't come with a fleshlight, sorry folks.
Anyway, scar3crow and inertia were talking in #qc about getting inert help for someone to program a flashlight for his mod/map; I'm not exactly sure as I arrived late in the conversation. I then volunteered to help and the next thing I know I've released my own version of the Inside3D Shockman's flashlight tutorial for people to play around with and give feedback/bug reports/etc .. so here you are: A flashlight with new fun fantastic awesomely flippin wicked features!
Enjoy!
Readme (Recommended): http://renegade.circa1984.com/Mods/flashlight.txt
Download: http://renegade.circa1984.com/Mods/flashlight.rar
Anyway, scar3crow and inertia were talking in #qc about getting inert help for someone to program a flashlight for his mod/map; I'm not exactly sure as I arrived late in the conversation. I then volunteered to help and the next thing I know I've released my own version of the Inside3D Shockman's flashlight tutorial for people to play around with and give feedback/bug reports/etc .. so here you are: A flashlight with new fun fantastic awesomely flippin wicked features!
Enjoy!
Readme (Recommended): http://renegade.circa1984.com/Mods/flashlight.txt
Download: http://renegade.circa1984.com/Mods/flashlight.rar
-

RenegadeC - Posts: 391
- Joined: Fri Oct 15, 2004 10:19 pm
- Location: The freezing hell; Canada
I gotta say, that's the most disgusting looking shotgun EVAR.
Nice job, RenegadeC. You might talk to FrikaC about a DP-only real time directional light he did for a mod, that looks way better than this trace stuff. Of course, you could still do the alerting the enemies and such...
Nice job, RenegadeC. You might talk to FrikaC about a DP-only real time directional light he did for a mod, that looks way better than this trace stuff. Of course, you could still do the alerting the enemies and such...
-

Entar - Posts: 439
- Joined: Fri Nov 05, 2004 7:27 pm
- Location: At my computer
-

RenegadeC - Posts: 391
- Joined: Fri Oct 15, 2004 10:19 pm
- Location: The freezing hell; Canada
Entar wrote:I gotta say, that's the most disgusting looking shotgun EVAR.
...AGREEDED! LOL...
...Oh and Ren.. Ummm... Hey your right it IS DP! So that being the case if you don't want to see that null.spr being drawn just throw this null.spr_0.png skin in the progs folder...
...Sorry ugly sg is still there...
-

xaGe - Posts: 461
- Joined: Wed Mar 01, 2006 8:29 am
- Location: Upstate, New York
Sajt wrote:DP allows null.spr to be seen? What does that mean?
It means any entity that uses a 2D sprite of a single transparent pixel is now visible while in other engines it's completely invisible as it should be.
-

RenegadeC - Posts: 391
- Joined: Fri Oct 15, 2004 10:19 pm
- Location: The freezing hell; Canada
Tei wrote:But.. theres a better way to do that? I mean, what people propose to hidden the spr is hacks. I think DP sould provide something real, maybe something network based DP_NOTSHOW or something!, check the dpextension.qc file!
EF_NODRAW.
-

Entar - Posts: 439
- Joined: Fri Nov 05, 2004 7:27 pm
- Location: At my computer
Sorry to bump this, but the link to the flashlight mod is broken. RenegadeC, can you re-upload the file? Thanks a lot.
The tutorial found on http://www.inside3d.com/showtutorial.php?id=119 isn't really a good flashlight because it spawns the flashlight with a fixed radius in front of the player, and makes the world cast shadows in a really weird way. It also has the tendency to go through walls.
Thanks!
The tutorial found on http://www.inside3d.com/showtutorial.php?id=119 isn't really a good flashlight because it spawns the flashlight with a fixed radius in front of the player, and makes the world cast shadows in a really weird way. It also has the tendency to go through walls.
Thanks!
-

Nash - Posts: 95
- Joined: Fri Oct 19, 2007 5:56 pm
- Location: Kuala Lumpur, Malaysia
If you're using Darkplaces, it's best to use a cubemap flashlight...
It generally goes something like this (I hope).
'skin = 30' means it uses a cubemap found at 'moddir/cubemaps/30*.tga'. Where * is px, py, pz, nx, ny, or nz.
For a flashlight, just make a white blob on a black background and save it as cubemaps/30px.tga. The other five images should just be black.
It generally goes something like this (I hope).
- Code: Select all
void() flashlight_think =
{
setorigin(self, self.owner.origin + self.owner.view_ofs);
self.angles = self.owner.v_angle;
self.angles_x = self.angles_x * -1;
self.nextthink = time;
};
...
newmis = spawn();
newmis.pflags = PFLAGS_FULLDYNAMIC;
newmis.light_lev = 720;
newmis.color = '2.2 2.2 1.6';
newmis.skin = 30;
newmis.owner = self;
self.flashlight = newmis;
newmis.think = flashlight_think;
newmis.nextthink = time;
'skin = 30' means it uses a cubemap found at 'moddir/cubemaps/30*.tga'. Where * is px, py, pz, nx, ny, or nz.
For a flashlight, just make a white blob on a black background and save it as cubemaps/30px.tga. The other five images should just be black.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
22 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest

