View Issue Details

IDProjectCategoryView StatusLast Update
0004180The Dark ModDesign/Codingpublic21.07.2015 17:32
ReporterSteveL Assigned ToSteveL  
PrioritynormalSeveritynormalReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.04Fixed in VersionTDM 2.04 
Summary0004180: Glass doesn't show cracks when damaged by most objects.
DescriptionFunc_fractures show crack decals when hit by a weapon but not when hit by thrown or wielded moveable objects.
Additional InformationThe decals are applied by AddDamageEffect, which is called by the weapon code. We can call it too from the BrittleFracture's Pain() function, which will make them appear for any damage, but we'll have to avoid getting 2 decals when a weapon hits, which will also call Pain(). To keep the logic in the right place, probably best to have the BrittleFracture remember when it last applied a decal, and skip doing it if there's already been one applied in the current frame.
TagsNo tags attached.

Relationships

child of 0004177 new Func_fractures overhaul 

Activities

SteveL

SteveL

20.07.2015 18:09

reporter   ~0007649

We can't/shouldn't use Pain(). It doesn;t get enough info to call AddDamageEffect. We can probably use Damage(), however. That's an idEntity virtual function too, and it does receive enough info.
SteveL

SteveL

21.07.2015 17:31

reporter   ~0007652

rev 6158

/trunk/game/BrittleFracture.cpp
/trunk/game/BrittleFracture.h

idBrittleFracture gains a member variable m_lastCrackFrameNum to keep track of when it last applied a crack, and intercepts idEntity::Damage() so it can apply a crack for any damage.

Issue History

Date Modified Username Field Change
19.07.2015 19:10 SteveL New Issue
19.07.2015 19:10 SteveL Status new => assigned
19.07.2015 19:10 SteveL Assigned To => SteveL
19.07.2015 19:11 SteveL Relationship added child of 0004177
20.07.2015 18:09 SteveL Note Added: 0007649
21.07.2015 17:31 SteveL Note Added: 0007652
21.07.2015 17:32 SteveL Status assigned => resolved
21.07.2015 17:32 SteveL Fixed in Version => TDM 2.04
21.07.2015 17:32 SteveL Resolution open => fixed