
Endless skies
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
Endless skies
In Duke Nukem 3D you can have skies that go on forever (Episode 2) I know how to do this in Doom, but everytime I try it (and have tried it) I always get HOM. How do I prevent the HOM? I wanna make levels that feel like floiating meteors in space or a space ship that is flying through space (I'll use sky boxes) but in order to make the illusion work I need to have endless skies.


- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
Nah, that's all wrong, I mean when you create a sector with the floor and ceiling textures set as the sky, then create a controll sector with the floor and ceiling set to sky again, but that has an overall height of 0. I've never seen it done in any doom level, but it's used all the time in Duke3d's episode 2 (the space station ones). It creates the illusion that you are looking into space. It's hard to explain, but when you get a door and you accidentilly set the ceiling texture of the door to F_SKY then you look at the door and you just see sky. That's the effect I want, but all around you. I know how to do it, but everytime I try I get HOM (it kinda ruins the effect, just a little bit
).
Secondly, I want a script to shoot BFG and Mancubus blasts at about 12 mapspots continuously, but at random intervals. My scripting sux and I havnt' got a clue of where to start.


Secondly, I want a script to shoot BFG and Mancubus blasts at about 12 mapspots continuously, but at random intervals. My scripting sux and I havnt' got a clue of where to start.

- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
set f_sky to the floor and ceiling and then use Line_Horizon() on the sector
like this
um that was a bad explanation... look at this example instead
like this
Code: Select all
f_sky = \/ \/ = room
+--+---------+
| | |
| | |
+-> | | |
| | | |
| +--+---------+
Line Horizon()
- Nanami
- Posts: 1066
- Joined: Tue Jul 15, 2003 5:13 pm
- Location: That little island pritch created.
- Contact:
Lexus Alyus wrote:Secondly, I want a script to shoot BFG and Mancubus blasts at about 12 mapspots continuously, but at random intervals. My scripting sux and I havnt' got a clue of where to start
Code: Select all
script 99 OPEN
{
Thing_Projectile(99,T_BFGSHOT,0,100,0); //tid, type, angle, speed, vspeed
delay(random(7,14)*5);
restart;
}
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
Thnks a lot for the horizon thing
, here's me trying to use something that obveously won't work when thjere is clearly an easier way
. Thank a lot
.
As for the script, that's cool, but wxplain how that delay random thing works and what if I have more than one map spot (obveously set to different TID's). How do I randomise between those?




As for the script, that's cool, but wxplain how that delay random thing works and what if I have more than one map spot (obveously set to different TID's). How do I randomise between those?

- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact:
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
/me looks at ROTGS....no, don't think it does somehow.Lexus Alyus wrote:My scripting sux
I think I had this problem when doing part of my SSD intro - I got round it by adding another sector round the outside with F_SKY1 floor and ceiling, and placing the sky selector thing inside the inner sector. (I think it was that, as I was getting homs before I did that and I didn't get them afterwards)
- Nanami
- Posts: 1066
- Joined: Tue Jul 15, 2003 5:13 pm
- Location: That little island pritch created.
- Contact:
The delay is in tics. There are 35 tics in a second so in my example it gives a random number between 7 and 14, then multiplies by 5. So it'll be between 1 and 2 seconds, basically, in intervals of 5 tics. You can change those numbers if you like.Lexus Alyus wrote:Thnks a lot for the horizon thing :-D, here's me trying to use something that obveously won't work when thjere is clearly an easier way :-D. Thank a lot :-).
As for the script, that's cool, but wxplain how that delay random thing works and what if I have more than one map spot (obveously set to different TID's). How do I randomise between those?
:twisted:
For the random tids, do something like this: random(lowtid,hightid), so if you want them to spawn randomly at tids between 6 and 12, just put random(6,12)
er should correct myself, F_SKY1 alone will work, it's if you use a skybox in that sector which causes homCyb wrote:in 47i and prior if you use F_SKY1 on floor and ceiling and use line_horizon() you will get hom, there's no way around this right now (unless you use the old sky window trick from doom2.exe) but it has been fixed for the next release... WHENEVER THAT ONE COMES OUT NUDGE NUDGE RANDY ; )