View Issue Details

IDProjectCategoryView StatusLast Update
0005008The Dark ModDef / Setuppublic02.07.2022 17:28
ReporterDragofer Assigned To 
PrioritynoneSeverityminorReproducibilityalways
Status newResolutionopen 
Product VersionTDM 2.06 
Summary0005008: "is_lantern" spawnarg breaks the "should_be_vert" spawnarg
DescriptionIf a moveable lantern should stay lit despite lying on its side, the spawnarg "set should_be vert on light" "0" needs to be set on the lantern. This will only work if "is_lantern" is set to "0" on the lantern.
TagsNo tags attached.

Activities

Dragofer

Dragofer

13.03.2019 09:07

developer   ~0011686

From betatesting thread of Marsh of Rahena, post 0000041:
"Now dropped lanterns remains lit, yet they stop to turn on or off after several times. Putting them down or changing holding distance temporary helps with that."

[Typo in title, spawning instead of spawnarg.]
Dragofer

Dragofer

02.07.2022 17:28

developer   ~0014958

Both "is_lantern" and "should_be_vert" result in verticality checks. The difference is the first is set on the lantern, while the second is set on the light entity itself. They use slightly different verticality checks. The one for "is_lantern" is made in Entity.cpp while for "should_be_vert" it's made in Light.cpp.

"should_be_vert" should only apply to lights with the spawnarg "AIUse" "AIUSE_LIGHTTYPE_TORCH", but I've noticed verticality requirements also on moveable candles, so there's probably a 3rd method somewhere that controls verticality of lights.

Issue History

Date Modified Username Field Change
06.03.2019 15:29 Dragofer New Issue
13.03.2019 09:07 Dragofer Note Added: 0011686
02.07.2022 16:56 Dragofer Summary "is_lantern" spawning breaks "should_be_vert" spawnarg => "is_lantern" spawnarg breaks the "should_be_vert" spawnarg
02.07.2022 16:56 Dragofer Description Updated
02.07.2022 17:28 Dragofer Note Added: 0014958