Inside3D!
     

Lightmaps and doors

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
SkinnedAlive



Joined: 25 Feb 2005
Posts: 65

PostPosted: Thu Jun 05, 2008 3:28 pm    Post subject: Lightmaps and doors Reply with quote

I'm working on a wave-based co-op mod. It's no spoonmatch but hey. I have some monsters and a wave system in place but it needs a little more flavour. So 2 questions:

Is it possible to make the lightmap temporarily pitch-black via QC?
and
How might I go about making doors that only open on certain waves?
Back to top
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Thu Jun 05, 2008 7:44 pm    Post subject: Reply with quote

You could maybe hack a light with some compiled lightstyles, then have some sort of hack that forces a certain lightstyle for it, then force it to what lightstyle you want when triggered
_________________
Back to top
View user's profile Send private message
Supa



Joined: 26 Oct 2004
Posts: 122

PostPosted: Thu Jun 05, 2008 7:53 pm    Post subject: Reply with quote

Quote:
Is it possible to make the lightmap temporarily pitch-black via QC?

Take a look at the bottom part of WorldSpawn in world.qc. Keep in mind that switchable lights will have a unique lightstyle number assigned to them during map compiliation so that'll present a fun complication for you to deal with. Come to think of it, you could easily solve this problem with the solution for your second problem..

Quote:
How might I go about making doors that only open on certain waves?

A nice way to do it would be something like a trigger_wave point entity. You'd set .open and .close values and target it to a set of doors (or other things..). At the beginning of every wave you'd cycle through all trigger_wave ents - should the current wave number match up with the .open or .close settings for a trigger_wave ent it'd fire its targets, opening or closing whatever door you targetted. You could just set .open/.close values for each door and cycle through doors, but a trigger_wave entity could be so much more fun. :)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group