View Issue Details

IDProjectCategoryView StatusLast Update
0004195The Dark ModDesign/Codingpublic04.01.2016 19:26
ReporterSteveL Assigned ToSteveL  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.05Fixed in VersionTDM 2.05 
Summary0004195: Candles can't be put out by response effect
DescriptionInvestigate report on related issue 0004186
TagsNo tags attached.

Relationships

child of 0004186 resolvedSteveL Response effect to turn light off stops it ever illuminating again 

Activities

SteveL

SteveL

02.08.2015 11:47

reporter   ~0007688

The response effect seems to work only with lights of spawnclass idLight, which is a subset of the electric ones. Entity lights that def-attach their light don't respond.
SteveL

SteveL

02.08.2015 12:31

reporter   ~0007692

The response script was trying to operate the light directly, by calling idLight::Event_On (of Off). That event exists only on lights, not on entities that def-attach lights.

The fix is to have the response script operate the light through the tdm_light_holder script object, which takes care of everything.
SteveL

SteveL

02.08.2015 12:37

reporter   ~0007693

Last edited: 02.08.2015 12:38

committed at rev 14353 along with 0004186

script/tdm_response_effects.script

SteveL

SteveL

03.08.2015 13:16

reporter   ~0007699

We should also cater for simple non-entity lights that don't have the script object.
SteveL

SteveL

03.08.2015 18:17

reporter   ~0007700

Both TDM's entity lights as well as basic "lights" created in DR are now catered for in the response effects: light ON, light OFF, and light Toggle.

There are separate responses for extinguishable lights that already used the script objects. They won't work for basic lights, but then no-one would expect them to.

New test map attached to tyhe parent tracker.
SteveL

SteveL

03.08.2015 18:19

reporter   ~0007701

at rev 14356

script/tdm_response_effects.script
SteveL

SteveL

03.08.2015 18:19

reporter   ~0007702

Script file attached to parent tracker for people to use before TDM 2.04 if they wish.

Issue History

Date Modified Username Field Change
02.08.2015 11:10 SteveL New Issue
02.08.2015 11:10 SteveL Status new => assigned
02.08.2015 11:10 SteveL Assigned To => SteveL
02.08.2015 11:10 SteveL Relationship added child of 0004186
02.08.2015 11:47 SteveL Note Added: 0007688
02.08.2015 12:31 SteveL Note Added: 0007692
02.08.2015 12:37 SteveL Note Added: 0007693
02.08.2015 12:37 SteveL Status assigned => resolved
02.08.2015 12:37 SteveL Fixed in Version => TDM 2.04
02.08.2015 12:37 SteveL Resolution open => fixed
02.08.2015 12:38 SteveL Note Edited: 0007693
03.08.2015 13:16 SteveL Note Added: 0007699
03.08.2015 13:16 SteveL Status resolved => assigned
03.08.2015 18:17 SteveL Note Added: 0007700
03.08.2015 18:19 SteveL Note Added: 0007701
03.08.2015 18:19 SteveL Note Added: 0007702
03.08.2015 18:19 SteveL Status assigned => resolved
04.01.2016 19:26 grayman Fixed in Version TDM 2.04 => TDM 2.05
04.01.2016 19:26 grayman Target Version TDM 2.04 => TDM 2.05