Jump to content
The Dark Mod Forums

Can Prey's local gravity work with Doom3?


AluminumHaste

Recommended Posts

Does the engine need to be modified for this or is this functionality built in and just needs to be exposed?

I've made a map that has a giant cube with an intricate maze on all 6 sides (made from a real life 3d maze) and I would love to be able to spin it on 3 axis and use local gravity on the cube to make the player stick to the surface so the world would turn upside down and stuff.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Does the engine need to be modified for this or is this functionality built in and just needs to be exposed?

I've made a map that has a giant cube with an intricate maze on all 6 sides (made from a real life 3d maze) and I would love to be able to spin it on 3 axis and use local gravity on the cube to make the player stick to the surface so the world would turn upside down and stuff.

 

I think this would already work with force fields (func_forcefield entities), but there might be even native support in the way that you just change the direction of the gravity force.

 

See:

 

http://wiki.thedarkmod.com/index.php/Func_Forcefields

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I think this would already work with force fields (func_forcefield entities), but there might be even native support in the way that you just change the direction of the gravity force.

 

See:

 

http://wiki.thedarkmod.com/index.php/Func_Forcefields

 

I suck at math lol, didn't understand the math at all. It's similar but I'm not sure that it would work that way I want. It can pull or push you in any direction of course, but your relative orientation (what you see as up and down) does not change, your feet are still pointing along the z axis, so this is not the same. I want to be able to re-orient the player so that his feet are pointing up and he's upside down. I'm not sure if that tutorial allows you to do that. I will need someone more technically inclined to figure that one out for me.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

I suck at math lol, didn't understand the math at all. It's similar but I'm not sure that it would work that way I want. It can pull or push you in any direction of course, but your relative orientation (what you see as up and down) does not change, your feet are still pointing along the z axis, so this is not the same. I want to be able to re-orient the player so that his feet are pointing up and he's upside down. I'm not sure if that tutorial allows you to do that. I will need someone more technically inclined to figure that one out for me.

 

Ah, yes, sorry ignore my stupid comment about func_forcefield. As for changing the direction of gravity, a quick google didn't turn up anything so far. If id was clever and didn't hardcode the gravity vector, it can be done. But offhand I don't know how exactly.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Ah, yes, sorry ignore my stupid comment about func_forcefield. As for changing the direction of gravity, a quick google didn't turn up anything so far. If id was clever and didn't hardcode the gravity vector, it can be done. But offhand I don't know how exactly.

 

Filtering out all the stupid "Doom3 stole HL2s gravity gun" posts with -"gravity gun" brought me this:

 

http://www.doom3world.org/phpbb2/viewtopic.php?t=6067

 

Maybe this helps?

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Filtering out all the stupid "Doom3 stole HL2s gravity gun" posts with -"gravity gun" brought me this:

 

http://www.doom3world.org/phpbb2/viewtopic.php?t=6067

 

Maybe this helps?

 

I checked and it looks like you can't set the players gravity, which was the whole point, but you can set the monsters (AI) so yeah, we can have AI walking on the walls lol.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Given that the entire gameplay code is in the SDK, a mod would be able to change the player's gravity and view orientation. The real question is how easy/hard it would be and whether it would be worth the time to implement it in TDM (I think we have more important concerns right now). Also, given that AAS is precompiled with assumptions about gravity, I think it'd be difficult for monsters to navigate while taking new gravity into account.

Link to comment
Share on other sites

  • 1 month later...
Given that the entire gameplay code is in the SDK, a mod would be able to change the player's gravity and view orientation. The real question is how easy/hard it would be and whether it would be worth the time to implement it in TDM (I think we have more important concerns right now). Also, given that AAS is precompiled with assumptions about gravity, I think it'd be difficult for monsters to navigate while taking new gravity into account.

 

I just realized something, in doom 3 monsters came from the ceiling and walls and such and unless those were hardcoded sequences, it shouldn't be a problem for the monsters. Just a thought.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Those monsters were scripted in Doom3. In Prey the gravity was changed. Should work in D3 as well though, only the AI would have problems with the original code, and would need some adaption maybe.

 

Ah, I see. Still you guys have enough on your plate to get a beta release for this December.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

  • 2 weeks later...

Yeah there was an opportunity for "Aliens" type sequences with those spider monsters crawling in along the hallways from all directions, but the game didn't support that, so apart from the occasional scripted entry sequence, they just walked along the ground like every other monster.

Link to comment
Share on other sites

Yeah there was an opportunity for "Aliens" type sequences with those spider monsters crawling in along the hallways from all directions, but the game didn't support that, so apart from the occasional scripted entry sequence, they just walked along the ground like every other monster.

 

There is a guy who was able to get monsters to walk on the walls without scripting, any monster. I can't find the link, but I'll keep trying.

 

EDIT: Found it

Edited by AluminumHaste

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...