// Token: 0x06001F4C RID: 8012 RVA: 0x00087E78 File Offset: 0x00086078 private void OnTriggerExit(Collider other) { Rigidbody component = other.GetComponent <Rigidbody>(); ProjectileSimple component2 = other.GetComponent <ProjectileSimple>(); if (component) { this.affectedRigidbodies.Remove(component); } if (component2 && !component2.enableVelocityOverLifetime) { component.velocity = component.transform.forward * component2.velocity; } }
// Token: 0x06001E6B RID: 7787 RVA: 0x0008F888 File Offset: 0x0008DA88 private static void InitializeProjectile(ProjectileController projectileController, FireProjectileInfo fireProjectileInfo) { GameObject gameObject = projectileController.gameObject; ProjectileDamage component = gameObject.GetComponent <ProjectileDamage>(); TeamFilter component2 = gameObject.GetComponent <TeamFilter>(); ProjectileNetworkTransform component3 = gameObject.GetComponent <ProjectileNetworkTransform>(); MissileController component4 = gameObject.GetComponent <MissileController>(); ProjectileSimple component5 = gameObject.GetComponent <ProjectileSimple>(); projectileController.Networkowner = fireProjectileInfo.owner; projectileController.procChainMask = fireProjectileInfo.procChainMask; if (component2) { component2.teamIndex = TeamComponent.GetObjectTeam(fireProjectileInfo.owner); } if (component3) { component3.SetValuesFromTransform(); } if (component4) { component4.target = (fireProjectileInfo.target ? fireProjectileInfo.target.transform : null); } if (fireProjectileInfo.useSpeedOverride && component5) { component5.velocity = fireProjectileInfo.speedOverride; } if (fireProjectileInfo.useFuseOverride) { ProjectileImpactExplosion component6 = gameObject.GetComponent <ProjectileImpactExplosion>(); if (component6) { component6.lifetime = fireProjectileInfo.fuseOverride; } ProjectileFuse component7 = gameObject.GetComponent <ProjectileFuse>(); if (component7) { component7.fuse = fireProjectileInfo.fuseOverride; } } if (component) { component.damage = fireProjectileInfo.damage; component.force = fireProjectileInfo.force; component.crit = fireProjectileInfo.crit; component.damageColorIndex = fireProjectileInfo.damageColorIndex; } }