- Moved character nametag visibility culling to the update method (doesn't make sense for the update rate to be tied to rendering framerate).

- Name tags on characters that are outside the camera view are automatically hidden to avoid the costly visibility checks.
- If the controlled character or the target has no head, the visibility check is done based on the position of the torso.
- Fixed sub->outside visibility checks.
- Fixed invalid attributes in the flashlight config.
This commit is contained in:
Joonas Rikkonen
2017-12-17 21:47:03 +02:00
parent 62bb5119ab
commit 6127bb473d
3 changed files with 49 additions and 70 deletions
@@ -247,7 +247,7 @@
<Body width="27" height="10" density="15"/>
<Holdable slots="Any,RightHand,LeftHand,Face" holdpos="30,-15" aimpos="100,0" handle1="-13" handle2="-13">
<Holdable slots="Any,RightHand,LeftHand,Face" holdpos="30,-15" aimpos="100,0" handle1="-13,0" handle2="-13,0">
<StatusEffect type="OnActive" target="Contained" Condition="-0.2"/>
</Holdable>