Player Indicator now working OK. Scaling depending on how far away you are makes the Indicator to hide players head behind it. Shields are making indicators to disappear.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Indicator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Indicator.xsd">
|
||||
<MaxDistance>10</MaxDistance>
|
||||
<MinDistance>10</MinDistance>
|
||||
<MinDistance>1</MinDistance>
|
||||
<MaxDistance>1</MaxDistance>
|
||||
<MinScale>10</MinScale>
|
||||
</Indicator>
|
||||
@@ -9,14 +9,7 @@
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="MaxDistance" type="t:double" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>After this distance between the camera and the sprite, the sprite will not get any smaller on the screen</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="MinDistance" type="t:double" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>Smaller distance between the camera and the sprite, the sprite will not get any bigger on the screen</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="MinScale" type="t:double" minOccurs="0"/>
|
||||
<xs:element name="MaxScale" type="t:double" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
@@ -349,7 +349,7 @@
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<AnimationName1>Idle</AnimationName1>
|
||||
<Time1>0.30516549779527224</Time1>
|
||||
<Time1>1.9902125899398158</Time1>
|
||||
<Speed1>1</Speed1>
|
||||
</c:Animation>
|
||||
<c:Model>
|
||||
@@ -370,8 +370,8 @@
|
||||
<Transparent>true</Transparent>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0.120430455" Y="-0.232123077" Z="-0.181454748"/>
|
||||
<Orientation X="0.010404747" Y="-0.00268168887" Z="0.0428438447"/>
|
||||
<Position X="0.120430678" Y="-0.228444964" Z="-0.181454539"/>
|
||||
<Orientation X="0.0104046883" Y="-0.00268161646" Z="0.0428441353"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
@@ -477,7 +477,7 @@
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<AnimationName1>Idle</AnimationName1>
|
||||
<Time1>1.9204144556290004</Time1>
|
||||
<Time1>1.7887947062665859</Time1>
|
||||
<Speed1>1</Speed1>
|
||||
</c:Animation>
|
||||
<c:AnimationOffset>
|
||||
@@ -501,8 +501,8 @@
|
||||
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0.157390118" Y="1.03132391" Z="-0.215858489"/>
|
||||
<Orientation X="-0.0626512468" Y="-0.0318936296" Z="0.120511964"/>
|
||||
<Position X="0.158748239" Y="1.02847004" Z="-0.215365171"/>
|
||||
<Orientation X="-0.0626733601" Y="-0.0367665328" Z="0.120039687"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
@@ -575,7 +575,7 @@
|
||||
<Entity name="Indicator">
|
||||
<Components>
|
||||
<c:Indicator>
|
||||
<MaxDistance>30</MaxDistance>
|
||||
<MinScale>80</MinScale>
|
||||
</c:Indicator>
|
||||
<c:Sprite>
|
||||
<DiffuseTexture>Textures/Icons/Arrow.png</DiffuseTexture>
|
||||
@@ -585,7 +585,7 @@
|
||||
<c:HiddenForLocalPlayer/>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="1.69509101" Z="0"/>
|
||||
<Scale X="0.100000001" Y="0.100000001" Z="0.100000001"/>
|
||||
<Scale X="0.300000012" Y="0.300000012" Z="0.300000012"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
|
||||
@@ -349,7 +349,7 @@
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<AnimationName1>Idle</AnimationName1>
|
||||
<Time1>0.73262309029003347</Time1>
|
||||
<Time1>1.5972608217572741</Time1>
|
||||
<Speed1>1</Speed1>
|
||||
</c:Animation>
|
||||
<c:Model>
|
||||
@@ -370,8 +370,8 @@
|
||||
<Transparent>true</Transparent>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0.120430365" Y="-0.24209328" Z="-0.181454867"/>
|
||||
<Orientation X="0.0104046632" Y="-0.0026818295" Z="0.0428442396"/>
|
||||
<Position X="0.12043044" Y="-0.234334946" Z="-0.181454733"/>
|
||||
<Orientation X="0.0104046538" Y="-0.00268155546" Z="0.0428440906"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
@@ -477,7 +477,7 @@
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<AnimationName1>Idle</AnimationName1>
|
||||
<Time1>0.031207590802594609</Time1>
|
||||
<Time1>1.0291785284465931</Time1>
|
||||
<Speed1>1</Speed1>
|
||||
</c:Animation>
|
||||
<c:AnimationOffset>
|
||||
@@ -501,8 +501,8 @@
|
||||
<Resource>Models/Weapons/Red/AssaultWeaponRed.mesh</Resource>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0.157017991" Y="1.03271544" Z="-0.216204733"/>
|
||||
<Orientation X="-0.0626475811" Y="-0.0306777786" Z="0.120614327"/>
|
||||
<Position X="0.163536936" Y="1.02330899" Z="-0.215455115"/>
|
||||
<Orientation X="-0.0631270558" Y="-0.0581946671" Z="0.118220322"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
@@ -575,7 +575,7 @@
|
||||
<Entity name="Indicator">
|
||||
<Components>
|
||||
<c:Indicator>
|
||||
<MaxDistance>30</MaxDistance>
|
||||
<MinScale>80</MinScale>
|
||||
</c:Indicator>
|
||||
<c:Sprite>
|
||||
<DiffuseTexture>Textures/Icons/Arrow.png</DiffuseTexture>
|
||||
@@ -584,7 +584,7 @@
|
||||
<c:HiddenForLocalPlayer/>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="1.69500005" Z="0"/>
|
||||
<Scale X="0.100000001" Y="0.100000001" Z="0.100000001"/>
|
||||
<Scale X="0.300000012" Y="0.300000012" Z="0.300000012"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
|
||||
Reference in New Issue
Block a user