Discussion > Editing

Cameras?

(1/1)

Kr00zA:
So Ive set up a room containing three CyberDemons. It's similar to the pen that holds all the monster in the final level of Absolution. But has more polished lighting and textures as Ive added a camera in the room so that the player can check how many CyberDemons he has crushed by activating the Artefact switchs.
Ive set the camera position and set a monitor in the starting room to activate it... all is good.
But I can't then deactivate camera mode  :-[
Ive set the monitor with action 201 'Camera Set'
Id like it so the camera mode either lasts for five seconds or so... or clicking 'use' again brings you back out of camera mode. ::)

sector666:
A good example of what you're trying to do is in map01. You know that lift near the exit which lowers to reveal a computer? Let's take a look at the macro there that makes the camera show you the soulsphere:


--- Quote ---Batch 10
  (201) Camera Set : 16
  (223) Freeze Player : 45
  (203) Delay : 45
Batch 20
  (200) Camera Clear : 6
Batch 30
  (0) None : 0
--- End quote ---

I think you know what's going on with the camera set. The freeze player in the macro is set to freeze for 45 gametics. However long that is in real time I forget.

There's also a delay of exactly the same number of tics as the player freeze. If you're making a camera you'll want to have a delay like that as well.

When the delay is over, the next batch is run. That clears the camera (duh). Important there is the 6. The player 1 start is tagged 6 in the map, so I'm guessing the number there tells where to set the camera.

I'm guessing your problem was that you didn't giver the player 1 thing a tag number and then use that number in the camera clear.

Although why the number is needed I don't know. You'd think camera clear would just send it back to the player automatically...

The third batch is probably just there by mistake, unless camera clear for some reason needs another batch to come after it in order to work (which I doubt is the case).

Kr00zA:
Cheers  :) I'll have a play around with it  ;)

Kaiser:
sector666 pretty much got it spot on. The delay is just there to determine how long the player is in 'camera' mode before it switches back to the player's view.

Navigation

[0] Message Index

Go to full version