View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004180 | The Dark Mod | Design/Coding | public | 19.07.2015 19:10 | 21.07.2015 17:32 |
Reporter | SteveL | Assigned To | SteveL | ||
Priority | normal | Severity | normal | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | TDM 2.03 | ||||
Target Version | TDM 2.04 | Fixed in Version | TDM 2.04 | ||
Summary | 0004180: Glass doesn't show cracks when damaged by most objects. | ||||
Description | Func_fractures show crack decals when hit by a weapon but not when hit by thrown or wielded moveable objects. | ||||
Additional Information | The 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. | ||||
Tags | No tags attached. | ||||
child of | 0004177 | new | Func_fractures overhaul |
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. | |
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. |
|
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 |