View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002547 | The Dark Mod | Script/Def | public | 16.01.2011 10:23 | 05.10.2017 17:32 |
Reporter | tels | Assigned To | |||
Priority | low | Severity | normal | Reproducibility | have not tried |
Status | closed | Resolution | unable to reproduce | ||
Product Version | TDM 1.03 | ||||
Target Version | TDM 2.05 | Fixed in Version | TDM 2.05 | ||
Summary | 0002547: Stim Response for lights need updating | ||||
Description | Functions defined in script/tdm_response_effects.script seem to not work together with our tdm_light_holder script. They do call simply $light.Off() instead of the better $light.LightsOff() if available. Also, the light fade script manually fades the light, instead of just calling Fade(). So make a testmap, and then update them and see if anything breaks or things work now (multiple flame objects f.i.). | ||||
Additional Information | Example: void effect_light_off_action(entity owner, entity stimEnt, string effectPostfix, float magnitude, float threadNum) { if (!isActive(owner, effectPostfix)) return; // Search for something like "sr_effect_1_1_argN" string argRoot = "sr_effect_" + effectPostfix + "_arg"; // Retrieve the light target entity entity lightTarget = getTargetEntity(owner.getKey(argRoot + "1"), owner); lightTarget.setRadius(0); lightTarget.Off(); // Check for a "extinguished" model string extModel = lightTarget.getKey("model_extinguished"); if (extModel != "") { lightTarget.setModel(extModel); } } This f.i. misses the skin change. Also the "setRadius(0)" is susp. | ||||
Tags | No tags attached. | ||||
As I believe that this tracker seems to be related to your fix in 2546 (which I see requires a bit of an expensive snoop operation), I will state that there are anecdotal statements about performance drops for combined light entities from a number of folk. (This is stated in comparison to v1.03.) I know that you have code comment for possible optimizations like caching but I wasn't sure if this is the tracker for those concerns or if another should be created. (Maybe a test map with x-number of candles bench-marked in v1.03 verses v1.05 ?) |
|
Has this been fixed now? See SteveL's updated script following 0004186 and 0004195 (The comment about the manual fade still looks pertinent, though.) |
|
The current tdm_response_effects.script is wildly different than what is discussed here thought the Fade() comment still probably applies. | |
Date Modified | Username | Field | Change |
---|---|---|---|
16.01.2011 10:23 | tels | New Issue | |
11.04.2011 22:42 | nbohr1more | Note Added: 0003801 | |
30.08.2015 12:44 | VanishedOne | Note Added: 0007748 | |
31.08.2015 17:29 | SteveL | Relationship added | related to 0004186 |
05.10.2017 17:31 | nbohr1more | Note Added: 0009401 | |
05.10.2017 17:32 | nbohr1more | Status | new => closed |
05.10.2017 17:32 | nbohr1more | Resolution | open => unable to reproduce |
05.10.2017 17:32 | nbohr1more | Fixed in Version | => TDM 2.05 |
05.10.2017 17:32 | nbohr1more | Target Version | => TDM 2.05 |