CGS - Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Stop Sprites from falling (upsidedown room)  (Read 1997 times)

0 Members and 1 Guest are viewing this topic.

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Stop Sprites from falling (upsidedown room)
« on: October 13, 2014, 08:00:46 PM »

I making an upsidedown underwater room you enter through a hole in the ceiling using TROR, it took time to mirror and flip them and all the other rooms you can see out through the windows.

Problem 1: all my sprites - barrels, lamps, phones etc.. all sink to the floor ruining the effect, is there any way using F8 or script_expertmode to stop them from falling.

Problem 2: I build most of my level on test maps and copy them over just in-case I want to overlap stuff among other things, but when I copy TROR's they get all flubbed up.
Logged
Massive Out....

Forge

  • Overlord
  • *****
  • Offline Offline
  • Posts: 2167
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #1 on: October 13, 2014, 11:15:31 PM »

floor aligned blocking invisible sprites

the downside is if it's underwater the player might be able to get on top of the sprite and stop drowning
even if they are blocking the player can still go up through them (unless they are 1-sided?)

other option is to do something with tror to keep them from falling. this and tror getting messed up during copy-paste operations will probably have to be answered by MickyC
Logged
Take it down to the beach with a hammer and pound sand up your ass

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #2 on: October 14, 2014, 05:21:11 AM »

Wow amazing idea, I never would have thought of that and I have a few invisible switches allready.

I'll probably use sprite 3026 (blank).

Thanks  ;D
Logged
Massive Out....

Micky C

  • Beach Community Project
  • Battlelord
  • ****
  • Offline Offline
  • Posts: 1078
    • View Profile
    • My youtube channel
Re: Stop Sprites from falling (upsidedown room)
« Reply #3 on: October 14, 2014, 01:33:32 PM »

will probably have to be answered by MickyC

I can give more help than you bargained for. As a result of Bob Averill's BobSP4, one of the eduke developers put in a little feature where if you give a floor-aligned sprite an xvel of 1, it will no longer cause the underwater bug when you're above the sprite.

As for the TROR sectors, try holding down right shift when you release alt, which should select ALL the sectors in the box, i.e all the TROR sectors, still connected together.

Maybe some unwanted help; a while ago I asked someone to write some mapster script which automatically turns selected sectors upside down, so I hope you didn't waste too much time doing that :P
« Last Edit: October 14, 2014, 01:35:14 PM by Micky C »
Logged
Wall whore.

High Treason

  • Beach Community Project
  • Enforcer
  • **
  • Offline Offline
  • Posts: 289
  • Fiona, where is you?
    • View Profile
    • Duke Nukem Archive
Re: Stop Sprites from falling (upsidedown room)
« Reply #4 on: October 14, 2014, 03:51:33 PM »

Another way may be to make a 1-sided wall with the floor behind at the height you want the sprites... This room would have to be "visible" to the player from wherever he would be able to see the sprite - when I say visible, I mean if the wall wasn't there, the game will still draw the sector. You could also use a very thin sector along a wall if your sprite is near a wall.

Enable script_expertmode in the console. F8 the sprite and change the Sectnum to the sector you made, the sprite would fall but think it's floor was the one in the sector you made - so it would hit that and hover improbably in mid-air. At least, in theory.


I suspect the other solutions given may be better, but this sectnum trick is under-used IMO. It is a pain in the ass though because every time you alter the map you'll have to set the sprite back or it will correct the sectnum on it's own. Trivial shit; you can even hook things up to moving sectors this way and, yes, it will move. For shits and giggles, put an object in a mirror sector and then set it's sectnum to the one in front of the mirror, it does weird stuff, I used it in Poormann's Library until MetHy broke one of them.
Logged
Yayaya Coco Jamboo, Yayayay!

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #5 on: October 14, 2014, 05:45:20 PM »

Quote
I can give more help than you bargained for. As a result of Bob Averill's BobSP4, one of the eduke developers put in a little feature where if you give a floor-aligned sprite an xvel of 1, it will no longer cause the underwater bug when you're above the sprite.

I will try that for sure thanks.

Quote
As for the TROR sectors, try holding down right shift when you release alt, which should select ALL the sectors in the box, i.e all the TROR sectors, still connected together.

I'll give it a shot, these things have a way of fighting me, hopefully it works. :o

Quote
Maybe some unwanted help; a while ago I asked someone to write some mapster script which automatically turns selected sectors upside down, so I hope you didn't waste too much time doing that :P

Yea it took me a very long time across multiple complicated rooms I kept putting it off, it was one of the 1st ideas I had and finally got the patience to carry it out, how does that function work since I may have to redo it.
Logged
Massive Out....

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #6 on: October 14, 2014, 05:50:21 PM »

Another way may be to make a 1-sided wall with the floor behind at the height you want the sprites... This room would have to be "visible" to the player from wherever he would be able to see the sprite - when I say visible, I mean if the wall wasn't there, the game will still draw the sector. You could also use a very thin sector along a wall if your sprite is near a wall.

Enable script_expertmode in the console. F8 the sprite and change the Sectnum to the sector you made, the sprite would fall but think it's floor was the one in the sector you made - so it would hit that and hover improbably in mid-air. At least, in theory.


I suspect the other solutions given may be better, but this sectnum trick is under-used IMO. It is a pain in the ass though because every time you alter the map you'll have to set the sprite back or it will correct the sectnum on it's own. Trivial shit; you can even hook things up to moving sectors this way and, yes, it will move. For shits and giggles, put an object in a mirror sector and then set it's sectnum to the one in front of the mirror, it does weird stuff, I used it in Poormann's Library until MetHy broke one of them.

I'll try this out on a test map just to be sure I grasp the method, but it wont work for what I am doing since I have duplicate right side up sectors & it has to match perfectly on both of them :Thanks for your help.
Logged
Massive Out....

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #7 on: October 14, 2014, 09:00:05 PM »

No xvel listed under F8, what is xvel and where does one find it?
Logged
Massive Out....

Forge

  • Overlord
  • *****
  • Offline Offline
  • Posts: 2167
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #8 on: October 15, 2014, 12:58:22 AM »

it's short for x-velocity
2d mode
F8
far right column under Angle
Logged
Take it down to the beach with a hammer and pound sand up your ass

Micky C

  • Beach Community Project
  • Battlelord
  • ****
  • Offline Offline
  • Posts: 1078
    • View Profile
    • My youtube channel
Re: Stop Sprites from falling (upsidedown room)
« Reply #9 on: October 15, 2014, 01:59:52 AM »

The sector flipping script has instructions inside the file itself. The only thing is, when it says "type xxxxxxxxx" it really means "open the console with the tilde key and type xxxxxxxxxxxx" in case that isn't clear.
Logged
Wall whore.

Captain Massive

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 101
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #10 on: October 15, 2014, 04:58:09 AM »

Oh, sorry about that my shorthand reading skills are bit rusty  :P

The last time I built a Duke level my computer was so old it had an 8-Track player in it.

It had wooden panels on it.

If we wanted Poly-anything you had to buy a parrot.

And my Modem was a rotary phone.

I'm Joking of course thanks for clearing that up. :D



Logged
Massive Out....

Forge

  • Overlord
  • *****
  • Offline Offline
  • Posts: 2167
    • View Profile
Re: Stop Sprites from falling (upsidedown room)
« Reply #11 on: October 15, 2014, 04:19:56 PM »

The last time I built a Duke level my computer was so old it had an 8-Track player in it.
watch it now. Puritan and I still use those  ;D
Logged
Take it down to the beach with a hammer and pound sand up your ass

Puritan

  • Administrator
  • Overlord
  • *****
  • Offline Offline
  • Posts: 1876
  • Beach Patrol
    • View Profile
    • Come Get Some
Re: Stop Sprites from falling (upsidedown room)
« Reply #12 on: October 15, 2014, 04:46:27 PM »

We also play records from a 78 rpm player  :D
Logged
To succeed in life, you need three things: a wishbone, a backbone and a funny bone.
Pages: [1]   Go Up
 

Page created in 0.098 seconds with 20 queries.