Sarge
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > Maximum keygrab distance?
 
Author
All times are GMT. The time now is 00:32. Post New Thread    Post A Reply
Memfis
Forum Spammer


Posts: 5793
Registered: 04-07


What is the maximum distance at which keygrabbing by "bumping" is possible? I always thought that it is 16 units (like in ksutra map19) but yesterday I managed to grab the yellow key in AV map02 (22 units, very difficult).

Old Post 01-01-13 08:09 #
Memfis is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
scifista42
Forum Staple


Posts: 2637
Registered: 05-12


Well, I may be completely wrong, but this is how I understand grabbing items by bumping:

http://i.imgur.com/gFUgo.png

Step 1: Player is running towards the key, which is behind a solid obstackle.
Step 2: One tic later, player have moved a certain distance, which always depends on his actual speed. Engine doesn't check for collision with walls, so the player runs in the wall (and the key) like if there was no wall.
Between steps 2 and 3: The engine first checks if player's bounding box is overlapping with an item -> the key is grabbed. After that, it checks for collisions -> the collision is detected and the engine "moves the player back". But the key has been grabbed before it.

Therefore, I guess that the maximum distance depends on player's speed. But as I said, I may be wrong. I don't understand the engine perfectly, this just seems logical to me :)

Old Post 01-01-13 11:50 #
scifista42 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
scifista42
Forum Staple


Posts: 2637
Registered: 05-12


So:
code:
15 units by running 21 units by SR40 23 units by SR50 35 units by wallrunning ?

Old Post 01-01-13 12:02 #
scifista42 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
dew
experts


Posts: 3711
Registered: 05-08


doom2 map13 bk grab is 24 units and it's considered one of the hardest known grabs.

Old Post 01-01-13 12:03 #
dew is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Memfis
Forum Spammer


Posts: 5793
Registered: 04-07


Here is a test map I made. There is a bunch of health potions on a ledge, the 1st potion is 1 unit away from the border, the 2nd potion is 2 units away and so on. So when you bump into the ledge, your HP - 100 = the distance of your grab. The zip includes three demos where I do:
18 unit grab by running
22 unit grab by sr40
24 unit grab by sr50

--------------------

So I rotated this map by 180 degrees and for this version my best results are:
11 unit grab by running
13 unit grab by sr40
14 unit grab by sr50

Interesting, so running in south direction gives much better results?

Last edited by Memfis on 01-01-13 at 15:26

Old Post 01-01-13 13:29 #
Memfis is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
tempun
Member


Posts: 597
Registered: 08-09



dew said:
doom2 map13 bk grab is 24 units
Really? Key radius is 20 according to doomwiki.org, the key center is 40 units away from blocking linedef. So it seems to be 20 units?

Old Post 01-01-13 13:48 #
tempun is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Memfis
Forum Spammer


Posts: 5793
Registered: 04-07


What do you mean by "radius"? Things in Doom aren't circles I think?

edit: Just did 19/23/25 on grabtest.wad.

Last edited by Memfis on 01-01-13 at 15:24

Old Post 01-01-13 13:53 #
Memfis is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
TimeOfDeath
Forum Regular


Posts: 2749
Registered: 06-06


old thread: http://forums.zdaemon.org/viewtopic.php?p=180308#180308

The distances in that thread are from the center of the key. I don't know how to move an item one unit away since doom builder grid only goes down to 2x2.

Old Post 01-01-13 15:51 #
TimeOfDeath is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
Memfis
Forum Spammer


Posts: 5793
Registered: 04-07



TimeOfDeath said:
I don't know how to move an item one unit away since doom builder grid only goes down to 2x2.

Turn off "snap to grid"? Don't tell me that you didn't know you can do this. :)

Old Post 01-01-13 17:17 #
Memfis is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
TimeOfDeath
Forum Regular


Posts: 2749
Registered: 06-06


Never tried it... :)

Old Post 01-01-13 17:55 #
TimeOfDeath is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
BloodyAcid
Senior Member


Posts: 1301
Registered: 09-11



TimeOfDeath said:
old thread: http://forums.zdaemon.org/viewtopic.php?p=180308#180308

The distances in that thread are from the center of the key. I don't know how to move an item one unit away since doom builder grid only goes down to 2x2.

Doom Builder 2 (not sure if that makes a difference) grid can go down to 1x1

Old Post 01-01-13 18:53 #
BloodyAcid is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
Scypek2
Member


Posts: 597
Registered: 01-12



dew said:
doom2 map13 bk grab is 24 units and it's considered one of the hardest known grabs.

honestly, I've never even seen this wall closed when playing that level.

Old Post 01-02-13 07:04 #
Scypek2 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit || Quote
tempun
Member


Posts: 597
Registered: 08-09



Memfis said:
What do you mean by "radius"? Things in Doom aren't circles I think?
But WRT Chebyshev distance, they ARE circles. :)

Old Post 01-02-13 08:02 #
tempun is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
RjY
anARCHy


Posts: 978
Registered: 05-02



Memfis said:
What do you mean by "radius"? Things in Doom aren't circles I think?
They're not, they are indeed squares but the game uses the term "radius" to mean half the square's side length.

Scypek2 said:
honestly, I've never even seen this wall closed when playing that level.
Go into the building via the big teleporter at the top of the map that's basically a giant shortcut for both the blue key and the blue door. You teleport up to the ledge around the BFG building and then it is easy to jump off onto the raised ledge by the little door on the front of the building with the key. You know, the ledge with the backpack on it.

Or just watch a speedrun.

dew said:
doom2 map13 bk grab is 24 units and it's considered one of the hardest known grabs.
I just tried this and managed to grab the key after only a couple of tries. It seemed that running against the torch to build momentum, a fairly standard thing glide, did the trick. I don't know if I was just very lucky though. I bet if I tried to record it I would fail repeatedly...

Old Post 01-02-13 10:09 #
RjY is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Z86
Junior Member


Posts: 110
Registered: 07-11


I'm also curious about the switch flipping distance while doing a grabbing like run. I have a map where I have a switch behind bars, and by experimenting i ended up making the shortest distance between a bar gap and the switch to be 40 units. Now it seems untouchable, but I'm not sure about SR50 (wallrunning is out of picture, no suitable walls nearby).

Old Post 01-02-13 20:16 #
Z86 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
RjY
anARCHy


Posts: 978
Registered: 05-02



Z86 said:
I'm also curious about the switch flipping distance while doing a grabbing like run. I have a map where I have a switch behind bars, and by experimenting i ended up making the shortest distance between a bar gap and the switch to be 40 units. Now it seems untouchable, but I'm not sure about SR50 (wallrunning is out of picture, no suitable walls nearby).
I don't think switch-pressing is affected by taking run-ups.

When you press the use key the game traces out up to 64 units from your centre in the direction you are facing until it reaches a special line or something else that stops it. Since the player's radius is 16 units the button press can reach at most 40 units from the nearest distance he can approach the switch, as you have observed.

The momentary position checks that allow people to pick up items behind walls don't apply here as all of that happens entirely within the one call to P_TryMove. Use key presses are handled separately, afterwards possibly beforewards since P_PlayerThink comes before P_RunThinkers...

Old Post 01-03-13 03:38 #
RjY is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 00:32. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > Maximum keygrab distance?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.