View Issue Details

IDProjectCategoryView StatusLast Update
0004181The Dark ModDesign/Codingpublic23.07.2015 18:27
ReporterSteveL Assigned ToSteveL  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.04Fixed in VersionTDM 2.04 
Summary0004181: Melee weapons should be able to break glass in one hit
DescriptionMelee weapons should be able to break glass in one hit, if the weapon damage is greater than the glass' health.
Additional InformationTo break a func_facture like glass, you have to first reduce its health to 0 and then apply any kind of touch or impulse to make the glass shatter.

Thrown items and arrows can break glass in one hit. That's because the moveable collision code first applies damage then applies a physics force, in that order.

Melee weapons don't break glass in one hit because they do it the other way round: first the force, then the damage. It's all done in the weapons Think() routine, and there's not much going on between the two effects, so we should try switching them round.
TagsNo tags attached.

Relationships

child of 0004177 new Func_fractures overhaul 

Activities

SteveL

SteveL

23.07.2015 18:19

reporter   ~0007661

Last edited: 23.07.2015 18:20

On second thoughts, there's no need to alter the MeleeWeapon code and risk unforeseen side-effects. Now that we have a general Damage() function for glass (idBrittleFracture) as a result of 0004180, we can simply have it raise a Touch event after any damage, which will shatter glass that's at 0 health

SteveL

SteveL

23.07.2015 18:27

reporter   ~0007662

At rev 6520

game/BrittleFracture.cpp

Issue History

Date Modified Username Field Change
19.07.2015 19:15 SteveL New Issue
19.07.2015 19:15 SteveL Status new => assigned
19.07.2015 19:15 SteveL Assigned To => SteveL
19.07.2015 19:15 SteveL Relationship added child of 0004177
23.07.2015 18:19 SteveL Note Added: 0007661
23.07.2015 18:20 SteveL Note Edited: 0007661
23.07.2015 18:27 SteveL Note Added: 0007662
23.07.2015 18:27 SteveL Status assigned => resolved
23.07.2015 18:27 SteveL Fixed in Version => TDM 2.04
23.07.2015 18:27 SteveL Resolution open => fixed