CapturePointSystem now tracks and verifies if a capturePoint can be taken over. Also the time is changed faster the more players stand on the capturepoint (number*dt). Also took care of the problem when both teams have the same contested capturepoint.
Added variable in the CapturePoint component: CapturePointNumber. This is needed since we cant know what capturepoint is next to be taken over otherwise. Updated the CapturePointTest according to current CapturePointSystem TODO: try to refactor code in CapturePointSystem
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<c:CapturePoint>
|
||||
<CapturePointNumber>0</CapturePointNumber>
|
||||
<CaptureTimer>0</CaptureTimer>
|
||||
<OwnedBy>0</OwnedBy>
|
||||
<IsHomeCapturePointForTeamNumber>0</IsHomeCapturePointForTeamNumber>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<xs:element name="CaptureTimer" type="t:double" minOccurs="0"/>
|
||||
<xs:element name="OwnedBy" type="t:int" minOccurs="0"/>
|
||||
<xs:element name="IsHomeCapturePointForTeamNumber" type="t:int" minOccurs="0"/>
|
||||
<xs:element name="CapturePointNumber" type="t:int" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
Reference in New Issue
Block a user