bugWarmux - Bugs: bug #11045, grenades and similar weapons have...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #11045: grenades and similar weapons have impact damage

Submitted by:  Jaka Kranjc <lynxlynxlynx>
Submitted on:  Tue Feb 12 15:00:26 2008  
 
Category: PhysicsSeverity: 3 - Normal
Priority: 5 - NormalStatus: In Progress
Assigned to: Matthieu Fertré <gentildemon>Open/Closed: Open
Release: 0.8svn

(Jump to the original submission Jump to the original submission)

Sat Apr 4 21:50:09 2009, comment #12:

It is still better, since the damage is smaller.

Jaka Kranjc <lynxlynxlynx>
Project Member
Thu Apr 2 21:59:45 2009, comment #11:

Ok, I have missed to correctly updates the comment before commiting but the bug is partially fixed in r5973.

Can you test it and give some feedback ?

Here is the "changelog" of the revision... :
[bug #11045] Better managament of collision

This patch remove the PhysicalObj::SignalCollision virtual method and add a new
parameter to PhysicalObj::SignalObjectCollision virtual method.
Character collision have been handling to better managed collision with object.
When an object collides with the character, there is no damage since the
character was not moving (thus, no speed). On the contrary, if the character
collides on an object (falls on a barrel for instance), there is damage.

Currently, this is not perfect, since after an object has collided with the
character get speeds and then collides with the ground with speed and gets
damage. TODO: make damage depend on the physical speed vector and the contact
angle.

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Sun Mar 29 08:00:56 2009, comment #10:

What happened with this bug? Is it still a bug? Will it be fixed in the new physical engine?

Pablo Antonio <crazy2k>
Mon May 5 20:30:09 2008, comment #9:

> Would it be any different if the gravity factor was increased and the weight decreased


Yes, it should be different

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Wed Apr 30 07:44:03 2008, comment #8:

It's initialised with 50. Would it be any different if the gravity factor was increased and the weight decreased?

Jaka Kranjc <lynxlynxlynx>
Project Member
Tue Apr 29 23:08:47 2008, comment #7:

Here is a patch but I don't like it

Moreover, I'm really asking if there is a problem in the physical engine or only on xml file.

In data/game_mode/classic_objects.xml, the football bomb is initialized with a mass of 100 kg! that's enormous! It's exactly the same mass than the character!! In that case, it's not so surprising that it mades some damage!

(file #4277)

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Tue Apr 29 21:56:42 2008, comment #6:

The problem appears as follow:
1) a projectile detects a collision with a character (PhysicalObj::NotifyMove) and it gives speed to this character
2) in next iteration of the physical engine, the character detects either a collision with the projectile or with the ground.
3) In both case, this time the character has speed. Thus, when calling Character::SignalCollision, some energy will be removed depending of this speed

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Tue Apr 29 07:48:21 2008, comment #5:

Still happens. Just throw a football bomb at full speed.

Jaka Kranjc <lynxlynxlynx>
Project Member
Mon Apr 28 23:33:23 2008, comment #4:

I have just modified collision handling in the physical engine and I can't reproduce this bug.

Could you confirm it has been fixed ?

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Wed Mar 12 23:17:17 2008, comment #3:

After testing I agree with Jaka!

You can kill somebody with the football bomb before it explodes, only with the collision!!!

Matthieu Fertré <gentildemon>
Project AdministratorIn charge of this item.
Sat Feb 23 13:59:37 2008, comment #2:

What exactly is your argument here? :S

And to give some numbers - a fully thrown grenade can make some 20hp of damage to the target before exploding; a football bomb some 70!

Jaka Kranjc <lynxlynxlynx>
Project Member
Sat Feb 23 11:46:18 2008, comment #1:

I'm not sure about this. I would quite on the contrary appreciate that the game does such thing, because it allows some strategic moves. For instance, you can already plan your bazooka/grenade/dynamite shot to encompass several characters, or make one fall, or drop into water.

That an object with some speed causes damage to a character it strikes is such an example too.

Finally, it sounds more to me like a wish (and a debatable one) than a "normal" bug.

Kurosu <kurosu>
Project Administrator
Tue Feb 12 15:00:26 2008, original submission:

You can throw the grenade directly into someone and the impact itself will do some damage (especially visible with the football bomb as it is the heaviest). Power up more for a stronger effect.

While this is realistic, I don't think it is fair or good for the game.

Jaka Kranjc <lynxlynxlynx>
Project Member

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by crazy2k (Posted a comment)
  • -unavailable- added by gentildemon (Posted a comment)
  • -unavailable- added by kurosu (Posted a comment)
  • -unavailable- added by lynxlynxlynx (Submitted the item)
  •  

    Error: not logged in

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Apr 2 21:59:45 2009gentildemonStatusConfirmed=>In Progress
      Assigned toNone=>gentildemon
    Tue Apr 29 23:08:47 2008gentildemonAttached File-=>Added ignore_some_collisions.patch, #4277
    Wed Mar 12 23:17:17 2008gentildemonCategoryNone=>Physics
      StatusNone=>Confirmed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup