XML:ONCC: Difference between revisions

108 bytes removed ,  10 October 2021
m
more copy-editing
(partial copy-edit; corrections to shadow section)
m (more copy-editing)
Line 105: Line 105:
| Starting transparency of the shadow when the character begins to get above <FadeHeight>
| Starting transparency of the shadow when the character begins to get above <FadeHeight>
|}
|}


==<JumpConstants>==
==<JumpConstants>==
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
|-
| <JumpDistance>
| <JumpDistance>
| float
| float
| always the same (25)
| Always 25; unused
|-
|-
| <JumpHeight>
| <JumpHeight>
| int8
| int8
| always the same (22)
| Always 22; unused
|-
|-
| <JumpDistanceSquares>
| <JumpDistanceSquares>
| int8
| int8
| always the same (6)
| Always 6
|}
|}


==<CoverConstants>==
==<CoverConstants>==
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
|-
| <RayIncrement>
| <RayIncrement>
| float
| float
| always the same (40)
| Always 40; unused
|-
|-
| <RayMax>
| <RayMax>
| float
| float
| always the same (300)
| Always 300; unused
|-
|-
| <RayAngle>
| <RayAngle>
| float
| float
| always the same (0.017453 = PI/180)  
| Always 0.017453 /180); unused
|-
|-
| <RayAngleMax>
| <RayAngleMax>
| float
| float
| always the same (1.57 = PI/2)  
| Always 1.57 /2); unused
|}
|}


==<AutoFreezeConstants>==
==<AutoFreezeConstants>==
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
|-
| <DistanceXZ>
| <DistanceXZ>
| float
| float
| always the same (5)
| Always 5; unused
|-
|-
| <DistanceY>
| <DistanceY>
| float
| float
| always the same (1)
| Always 1; unused
|}
|}


==<InventoryConstants>==
==<InventoryConstants>==
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
|-
|valign=top| <HypoRegenerationRate>
|valign=top| <HypoRegenerationRate>
|valign=top| int16
|valign=top| int16
| (inverse) hypo regeneration rate in frames per health point; overhealth regeneration rate is not affected by this
| Hypo healing speed in ticks per health point; overhealth regeneration rate is not affected by this


if rate = 60; if a hypo restores 50HP then we get 60/1 * 50 = 3000 frames (50s)<br>  
If rate = 60 and a hypo restores 50HP then we get a total healing time of 60 * 50 = 3000 ticks (50s)<br>  
if rate = 6; if a hypo restores 50HP then we get 6/1 * 50 = 300 frames (5s)<br>
If rate = 6 and a hypo restores 50HP then we get 6 * 50 = 300 ticks (5s)<br>
if rate = 0 it becomes rate = 1 at runtime, so regeneration will still take 50 frames (< 1s)
If rate = 0, it becomes rate = 1 at runtime so regeneration will take 50 ticks (<1s)
|}
|}


==<LODConstants>==
==<LODConstants>==
Distances from camera to render certain [[XML:TRBS|LODs]] (level of detail).
Distances from camera used to choose which [[XML:TRBS|LOD]] (level of detail) to use for a character model.
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
!width=120px| content type
!width=120px| Content type
! description
! Description
|-
|-
| <Float>
| <Float>
| float
| float
| always the same (193600); this is 440 squared
| Always 193,600 (440^2)
|-
|-
| <Float>
| <Float>
| float
| float
| always the same (48400); this is 220 squared
| Always 48,400 (220^2)
|-
|-
| <Float>
| <Float>
| float
| float
| always the same (12100); this is 110 squared
| Always 12,100 (110^2)  
|-
|-
| <Float>
| <Float>
| float
| float
| always the same (0)
| Always 0
|-
|-
| <Float>
| <Float>
| float
| float
| always the same (0)
| Always 0
|}
|}


==<HurtSoundConstants>==
==<HurtSoundConstants>==