// Token: 0x06000124 RID: 292 RVA: 0x00009D28 File Offset: 0x00007F28 public static void NoteFiredProjectile(int projectileID, uint prefabID, int ammotype) { RangeAim.FiredProjectiles[projectileID] = new FiredProjectile { FiredTime = RangeAim.GetCurrentTime(), PrefabID = prefabID, AmmoType = ammotype }; }
// Token: 0x06000128 RID: 296 RVA: 0x0000A06C File Offset: 0x0000826C private static float GetTimeout(FiredProjectile projectile, float distance) { double maxVelocity = (double)OpCodes.GetMaxVelocity(projectile.AmmoType); bool flag = projectile.AmmoType > 0; if (flag) { maxVelocity *= (double)OpCodes.GetProjectileVelocityScale((EPrefabUID)projectile.PrefabID); } double y = (double)(projectile.FiredTime + 1f); double z = maxVelocity; double w = (double)OpCodes.GetProjectileInitialDistance(projectile.AmmoType); double f = (double)distance; double chisl = -w + f + 1.5 * y * z - 0.0979899987578392 * z; double znam = 1.5 * z; double drob = chisl / znam; double normDrob = drob - (double)RangeAim.GetCurrentTime(); return((float)normDrob); }