Skip to content

Commit

Permalink
added attribute to Hologram
Browse files Browse the repository at this point in the history
  • Loading branch information
tra committed Jun 28, 2024
1 parent c2146f9 commit 367e11e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions levels/avaraline-quirks-mode/alf/layout/heir-apparent.alf
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@
<Wall color="#ad6a6c" x="0" z="7.5" w="15" d="0" h="2" />
<Wall color="#ad6a6c" x="-7.5" z="0" w="0" d="15" h="2" />
<Wall color="#ad6a6c" x="7.5" z="0" w="0" d="15" h="2" />
<Solid y="2.01" shape="bspGrid7.5" scale="5" color="#3a2c2c" cx="0" cz="4.5" pitch="90" angle="0" />
<Solid y="2.01" shape="bspEnso" scale="4" color="#3a2c2c" cx="1.75" cz="3.25" angle="-20" />
<Solid y="2.01" shape="bspGroundStar" scale="0.1" color="#3a2c2c" cx="2.25" cz="3" angle="0" />
<Solid y="2.01" shape="bspGroundStar" scale="0.1" color="#3a2c2c" cx="1.75" cz="3.5" angle="0" />
<Hologram y="2.01" shape="bspGrid7.5" scale="5" color="#3a2c2c" cx="0" cz="4.5" pitch="90" angle="0" />
<Hologram y="2.01" shape="bspEnso" scale="4" color="#3a2c2c" cx="1.75" cz="3.25" angle="-20" />
<Hologram y="2.01" shape="bspGroundStar" scale="0.1" color="#3a2c2c" cx="2.25" cz="3" angle="0" />
<Hologram y="2.01" shape="bspGroundStar" scale="0.1" color="#3a2c2c" cx="1.75" cz="3.5" angle="0" />

<Teleporter y="20" shape="0" activeRange="35 * 5" deadRange="28 * 5" destGroup="@recenter" cx="0" cz="0" />
<Teleporter y="15" shape="0" group="@recenter" cx="0" cz="0" />
Expand Down
2 changes: 2 additions & 0 deletions src/game/CHologramActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void CHologramActor::BeginScript() {

ProgramLongVar(iShape, 600);
ProgramVariable(iRoll, 0);
ProgramVariable(iPitch, 0);
ProgramLongVar(iIsAmbient, false);
}

Expand All @@ -39,6 +40,7 @@ CAbstractActor *CHologramActor::EndScript() {
thePart->userFlags |= CBSPUserFlags::kIsAmbient;
thePart->Reset();
thePart->RotateZ(ReadFixedVar(iRoll));
thePart->RotateX(ReadFixedVar(iPitch));
thePart->RotateOneY(heading);
TranslatePart(thePart, location[0], location[1], location[2]);
thePart->MoveDone();
Expand Down

0 comments on commit 367e11e

Please sign in to comment.