Jump to content
The Dark Mod Forums

Recommended Posts

Posted

So Ive got a problem in my BHM wip, with NPCs talking landing damage, on stairs and other diagonal terrain when they. I dont think the stairs or the terrain are steep enough to be causing this, so what else is going on? 

image.thumb.png.f0783a4b9f39245c3b9644e1be1d382a.png

bhm_banner.jpg

Posted

I don't know if it's related but in the past when I placed knocked out NPCs on a sloped floor they could just die there after awhile. Physics in TDM are the truly unpredictable sometimes.

  • Confused 1
Posted

True, NPC can die by an simple knock out (mostly those sitting in a chair), but survive falling from a high tower which would kill the player yes or yes. Well, physics in games are always questionable and TDM isn't an exception (eg.jumping, swimming and climbing carrying a ton of lot).

image.png.a6e202c5727612fd22fb4fa50ec5cff4.png

  • Haha 1

Laptop ACER, AMD Ryzen, GPU AMD Radeon  RAM 16GB, SSD 512GB - Win11 Home 64 v26H2 (Lenguages Spanish, German, English)

Posted

Well I have narrowed down how when it happens, basically if I am outside the vizleaf that the NPC/s are in they will take said landing damage. @stgatilov asked me to try "tdm_ai_opt_disable" "1" but that dosent make any different the NPC still take damage. 

So what changes on NPC's, when the player is not in the same vizleaf?

bhm_banner.jpg

Posted
40 minutes ago, Bikerdude said:

basically if I am outside the vizleaf that the NPC/s are in they will take said landing damage.

Is there something that does not get rendered because of being outside the vizleaf?

Could the r_lockView debug cvar help with this?

 

Posted (edited)
3 hours ago, datiswous said:

Is there something that does not get rendered because of being outside the vizleaf? Could the r_lockView debug cvar help with this?

On both instanced there is a func_static that is set to non-solid and a nodrawsolid brush in the exact same place. 

Regarding 'r_lockView', I don't fully understand how I can use this arg...

And on a related note, why can NPC's run up a slopped brush/func_static just fine when chasing the player, but when on a simple patrol, walking up the same slope, they get stuck in circles on some parts of that slope..

Edited by Bikerdude
  • Like 1

bhm_banner.jpg

Posted (edited)
1 hour ago, Bikerdude said:

Regarding 'r_lockView', I don't fully understand how I can use this arg...

Well you can see it in use in the video Stgatilov made. I thought you could noclip to the position where the guard is when it happens while the rendered view is as when you are outside the visleaf, but I could be wrong. But yeah I don't know if you would see anything interesting.

 

Edited by datiswous
Posted

I found that AIs suddenly gets large negative vertical velocity.

  1. Getting velZ = -2000 kills them with landing damage next frame when velocity returns to normal value (idActor::CrashLand, after delta < 390000 thresholding).
  2. Smaller values can result in knockout when person is standing on non-opaque surface (idActor::CrashLand, Fall_Knockout call almost at the beginning).

The code of the point 2 is intended to knockout freefalling AIs. But the freefall check tests for negative vertical velocity (with rather weak threshold) and for the remaining distance of falling. The remaining distance was computed incorrectly for e.g. nodrawsolid ground, and I hopefully fixed this in svn rev 11369. And increased thresholds in 11370.

The issue no longer happens for me, but I'm still worried that I have not found what causes these cases of sudden negative velocity. I tried teleporting to the location where in happens, everything looks find visually.

  • Thanks 2

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

    • JackFarmer

      German Intelligence (BND) just revealed, why MS Outlook is down: even the MS CEO has been seduced by a Chinese spy and the BND just published a convincing picture of the agent:

      Way to go, lads!
       
       
      · 0 replies
    • JackFarmer

      I will NOT return to Discord. Who wants to try something new?
       
      · 12 replies
    • JackFarmer

      I do not understand why Gilmour/Waters trash the "Atom Heart Mother" album and wish for that "all existing copies get dumped".
      I think it is a great recording. Is there something wrong inside my twisted little brain?
      · 3 replies
    • revelator

      Asus ROG strix x570-E gaming ryzen 3700x 32 gb ram radeon RX9070XT 10 tb ssd space (all full)
      · 5 replies
    • The Black Arrow

      I was playing Doom 3, and I learned how to edit maps text-by-text, this should help me a lot with finding secrets and locations I hope.
      That is, if I feel sneaky and greedy...Which I always do, can't get enough 100% a mission.
      · 3 replies
×
×
  • Create New...