@@ -29,8 +29,8 @@ public partial class Ped {
2929/// </summary>
3030public DamageInfo KillingDamageInfo { get ; set ; }
3131
32- public float LastTimeWhenDamaged { get ; private set ; }
33- public float TimeSinceDamaged => Time . time - this . LastTimeWhenDamaged ;
32+ public double LastTimeWhenDamaged { get ; private set ; }
33+ public double TimeSinceDamaged => Time . timeAsDouble - this . LastTimeWhenDamaged ;
3434
3535private bool m_alreadyKilled = false ;
3636
@@ -53,10 +53,10 @@ public DamageResult(float damageAmount)
5353public struct UnderAimInfo
5454{
5555public DamageInfo damageInfo ;
56- public float time ;
56+ public double time ;
5757public Ped ped ;
5858
59- public UnderAimInfo ( DamageInfo damageInfo , float time , Ped ped )
59+ public UnderAimInfo ( DamageInfo damageInfo , double time , Ped ped )
6060{
6161this . damageInfo = damageInfo ;
6262this . time = time ;
@@ -150,7 +150,7 @@ public void OnDamaged()
150150if ( this . Health <= 0 )
151151return ;
152152
153- this . LastTimeWhenDamaged = Time . time ;
153+ this . LastTimeWhenDamaged = Time . timeAsDouble ;
154154
155155var damageInfo = this . Damageable . LastDamageInfo ;
156156
@@ -168,7 +168,7 @@ public void SendDamagedEventToClients(DamageInfo damageInfo, float damageAmount)
168168
169169public void OnReceivedDamageEventFromServer ( float damageAmount , Ped attackingPed )
170170{
171- this . LastTimeWhenDamaged = Time . time ;
171+ this . LastTimeWhenDamaged = Time . timeAsDouble ;
172172
173173if ( attackingPed != null && attackingPed . IsControlledByLocalPlayer && attackingPed != this )
174174{
@@ -210,19 +210,19 @@ public void OnUnderAimOfOtherPed(DamageInfo damageInfo)
210210int index = _underAimInfos . FindIndex ( _=> _ . ped == attackerPed ) ;
211211if ( index >= 0 )
212212{
213- _underAimInfos [ index ] = new UnderAimInfo ( damageInfo , Time . time , attackerPed ) ;
213+ _underAimInfos [ index ] = new UnderAimInfo ( damageInfo , Time . timeAsDouble , attackerPed ) ;
214214return ;
215215}
216216
217- _underAimInfos . Add ( new UnderAimInfo ( damageInfo , Time . time , attackerPed ) ) ;
217+ _underAimInfos . Add ( new UnderAimInfo ( damageInfo , Time . timeAsDouble , attackerPed ) ) ;
218218}
219219
220220private bool ShouldUnderAimInfoBeRemoved ( UnderAimInfo underAimInfo )
221221{
222222if ( null == underAimInfo . ped )
223223return true ;
224224
225- return Time . time - underAimInfo . time > PedManager . Instance . timeIntervalToUpdateUnderAimStatus ;
225+ return Time . timeAsDouble - underAimInfo . time > PedManager . Instance . timeIntervalToUpdateUnderAimStatus ;
226226}
227227
228228}