[all] Bouncing collision

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
TheMisterCat
Posts: 53
Joined: Sun Jul 25, 2010 7:25 pm

[all] Bouncing collision

Post by TheMisterCat »

Are there any plans to ever fix the bouncing code up a little? As it currently stands, bouncing off walls and floors is fine, but anything that hits a ceiling automatically loses all bouncing properties, and anything that lands on top of an actors hitbox falls inside it and becomes stuck
Gez
 
 
Posts: 17942
Joined: Fri Jul 06, 2007 3:22 pm

Re: [all] Bouncing collision

Post by Gez »

What bouncing style and flags are you using? I've successfully made actors that bounced happily forever and ever, including on ceilings.
TheMisterCat
Posts: 53
Joined: Sun Jul 25, 2010 7:25 pm

Re: [all] Bouncing collision

Post by TheMisterCat »

admittedly I am using skulltag, which has the older bounce flags, but i have tested in zdoom (2.4.1 at least) and if a bouncer falls on top of an actor, it goes straight through (and makes a lot of bouncing noises), loses its momentum. +CANPASS stops it from falling through but it then doesn't bounce. I've tried with all the skulltag-supported bouncetypes, not MBF though
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [all] Bouncing collision

Post by randi »

Can you make a demo level to illustrate your problems?
User avatar
InsaneFury
Posts: 105
Joined: Mon Nov 23, 2009 6:51 am

Re: [all] Bouncing collision

Post by InsaneFury »

I noticed the jumpy/get stuck part with my Caco Football (http://forum.zdoom.org/viewtopic.php?f=3&t=26610&p) and I assumed it happened whenever the player touched it (i.e. actor hitbox clash) or when it was close to a wall. Not sure if it's related.
TheMisterCat
Posts: 53
Joined: Sun Jul 25, 2010 7:25 pm

Re: [all] Bouncing collision

Post by TheMisterCat »

Is this being looked into at all? The above link is an example...
User avatar
Spleen
Posts: 497
Joined: Fri Nov 28, 2008 7:07 pm

Re: [all] Bouncing collision

Post by Spleen »

I think this has something to do with the fact that actor bouncing is checked for in P_XYMovement, but not P_ZMovement. This might be fixable by adding an actor bounce check somewhere in P_ZMovement, since a floor bounce check is also there.
User avatar
Minigunner
Posts: 754
Joined: Mon Dec 28, 2009 5:13 pm

Re: [all] Bouncing collision

Post by Minigunner »

There's also the fact that if a bouncing actor hits a wall at a near-parallel angle, it will bounce indefinitely on said wall and will move a lot faster.
unknownna
Posts: 215
Joined: Sat Oct 06, 2007 4:45 pm

Re: [all] Bouncing collision

Post by unknownna »

unknownna wrote:But I noticed that grenades don't explode upon contact with explosive barrels, but instead, simply bounce off them. Using a WAD that Spleen gave me, which replicates the Skulltag grenade launcher in ZDoom, indicates that it works the same way there (GZDoom 323 & ZDoom 2.5.0).

From testing, it seems that grenades are hard-coded to explode upon contact with actors that have the '+SOLID' or '+SHOOTABLE' flag in addition to the '+ISMONSTER' one defined in them. So if you add the '+ISMONSTER' flag to the barrels, the grenades will explode upon contact.
unknownna wrote:IMHO, having grenades exploding upon contact with explosive barrels makes more sense than having them destroy them, then bounce off them, as they currently do. It'd be like removing the 'ISMONSTER' flag from monsters, e.g. 'ZombieMan'. The grenades would harm them upon contact (and probably kill them) and then simply bounce off them.
Gez wrote:So make it a two out of three thing? SOLID MONSTER, SOLID SHOOTABLE, SHOOTABLE MONSTER?

Or just go for SOLID SHOOTABLE and forget the ISMONSTER test?
unknownna wrote:SOLID MONSTER and SHOOTABLE MONSTER is the current behavior. SOLID SHOOTABLE would make grenades explode upon hitting destructible decorative actors, such as the explosive barrel. Since not all SOLID and SHOOTABLE actors are monsters.

SOLID SHOOTABLE definitely sounds like the most reasonable choice, unless it would break anything, of course.
Quoted from here.
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Re: [all] Bouncing collision

Post by CaptainToenail »

I experienced all sorts of bouncing bugs with Dodgeball Doom. Balls getting stuck in sloped floors and moving sectors, balls desyncing, sometimes they would even snag on a wall and 'wall-run'.
unknownna
Posts: 215
Joined: Sat Oct 06, 2007 4:45 pm

Re: [all] Bouncing collision

Post by unknownna »

CaptainToenail wrote:I experienced all sorts of bouncing bugs with Dodgeball Doom. Balls getting stuck in sloped floors and moving sectors, balls desyncing, sometimes they would even snag on a wall and 'wall-run'.
It's also possible to make grenades bounce into the void.

Image
Image
Image
Image
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [all] Bouncing collision

Post by randi »

Sorry it took so long. Fixed what was illustrated in the example wad.
Post Reply

Return to “Closed Bugs [GZDoom]”