Jump to content
The Dark Mod Forums

C777 Application


New Horizon

Recommended Posts

  • Replies 75
  • Created
  • Last Reply

Top Posters In This Topic

No. You must somehow place the cameras. This you must do anyway. What I don't know is, how you, as the mapper, can know which areanumber a given room will get, as this IMO is decided when the map is compiled. If that is the case, it might even be worse, because it could happen, that if you add some new rooms, the numbers may shift and you would have to reassign everything again.

Gerhard

Link to comment
Share on other sites

@Sparhawk: The user doesn't have to know the area number. If they place these "data objects" (actually we could just put the data on the camera) in each area, the objects themselves can look up and record what area they're in when they spawn (after the map is compiled). Then they enter pointers to themselves into an array that's indexed by the area number, for easy retrieval during gameplay.

 

From the mappers perspective, they place the camera in an area, enter whatever data they need on it, and that's it. (You might possibly need a data object in addition to the camera if the actual camera is not in the room, if it's looking in from another room or something, since the data object has to be in the area for this to work).

Link to comment
Share on other sites

Ah! That sounds good then. I think a restriction like this, that your camera must be inside your room, might be acceptable.

There is already a func_cameraview entity, that seems to do basically what you need. It has to be extended though. Isht, do you want to do this? Since you know already a lot about visportals, it might be easy for you.

Gerhard

Link to comment
Share on other sites

Yeah sure, I can do that part, it should be very similar to soundprop. I don't know how to actually change the camera view once we know which one to use though (unless it is basic scripting), so I might need help at that point.

 

I have no idea how the code structure of c777's mod is set up, do they have a global object like us or what? If not, I could put everything in game_local.

 

@C777: Is that an okay restriction that the camera must be within the actual bounds of the room, i.e., not looking in from outside through a doorway or through a window? (Well, you COULD do these things, but you could not have the place it's looking in from also have another camera view location). I.e., camera looking in from skylight where there is nothing else around the camera and you can't get there, would be okay. But if you had a camera looking in from the next room, and when you enter that next room, you want the camera should switch to another position, that would not work.

 

We could do some kind of manual override setting on the camera in rare cases like this, you would put the area number on a key/value of the camera and that would override which area it applies to, over which area it's in. The default behavior would be the area it's in though.

Link to comment
Share on other sites

No, you could break a room up into two areas with a visportal and have two cameras if you want. All I'm saying is, the data object that associates an area with a camera must be placed within the area. If we make the "data object" the camera itself, that means the camera for a given area can't be placed outside that area look in from another area.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...