// Token: 0x06000265 RID: 613 RVA: 0x0000CBB4 File Offset: 0x0000ADB4 public void Init(float arrowSpeed, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance, bool firedLocal) { this.speedPerSec = arrowSpeed; if (itemRep != null && itemInstance != null) { this._myBow = itemRep; this._myItemInstance = itemInstance; } }
// Token: 0x060032BE RID: 12990 RVA: 0x000C0178 File Offset: 0x000BE378 public void FireArrow(Vector3 pos, Quaternion ang, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance) { GameObject gameObject = (GameObject)Object.Instantiate(this.arrowPrefab, pos, ang); global::ArrowMovement component = gameObject.GetComponent <global::ArrowMovement>(); component.Init(this.arrowSpeed, itemRep, itemInstance, false); this.fireArrowSound.Play(pos, 1f, 2f, 10f); }
// Token: 0x060032C0 RID: 12992 RVA: 0x000C0200 File Offset: 0x000BE400 public void ArrowReportHit(IDMain hitMain, global::ArrowMovement arrow, global::ItemRepresentation itemRepresentation, global::IBowWeaponItem itemInstance) { if (!hitMain) { return; } global::TakeDamage component = hitMain.GetComponent <global::TakeDamage>(); if (!component) { return; } BitStream bitStream = new BitStream(false); bitStream.Write <global::NetEntityID>(global::NetEntityID.Get(hitMain), new object[0]); bitStream.Write <Vector3>(hitMain.transform.position, new object[0]); itemRepresentation.ActionStream(2, 0, bitStream); global::Character character = itemInstance.character; if (component && component.ShouldPlayHitNotification()) { this.PlayHitNotification(arrow.transform.position, character); } }
// Token: 0x060032BD RID: 12989 RVA: 0x000C00F0 File Offset: 0x000BE2F0 public virtual void Local_FireArrow(global::ViewModel vm, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance, ref global::HumanController.InputSample sample) { if (vm) { vm.Play("fire_1", 0); } this.MakeReadyIn(itemInstance, this.fireRate); global::Character character = itemInstance.character; if (character == null) { return; } Ray eyesRay = character.eyesRay; Vector3 eyesOrigin = character.eyesOrigin; this.FireArrow(eyesOrigin, character.eyesRotation, itemRep, itemInstance); BitStream bitStream = new BitStream(false); bitStream.WriteVector3(eyesOrigin); bitStream.WriteQuaternion(character.eyesRotation); itemRep.ActionStream(1, 0, bitStream); }
// Token: 0x060032BC RID: 12988 RVA: 0x000C0088 File Offset: 0x000BE288 public virtual void Local_ReadyArrow(global::ViewModel vm, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance, ref global::HumanController.InputSample sample) { if (vm) { vm.Play("drawarrow", 0); } itemInstance.completeDrawTime = Time.time + this.drawLength; this.drawArrowSound.PlayLocal(Camera.main.transform, Vector3.zero, 1f, 1f, 3f, 20f, 0); }
// Token: 0x060032C5 RID: 12997 RVA: 0x000C033C File Offset: 0x000BE53C public virtual void Local_GetTired(global::ViewModel vm, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance, ref global::HumanController.InputSample sample) { if (itemInstance.tired) { return; } if (vm) { vm.CrossFade("tiredloop", 5f); } }
// Token: 0x060032C3 RID: 12995 RVA: 0x000C032C File Offset: 0x000BE52C public virtual void MakeReadyIn(global::IBowWeaponItem itemInstance, float delay) { itemInstance.MakeReadyIn(delay); }
// Token: 0x060032C2 RID: 12994 RVA: 0x000C02C0 File Offset: 0x000BE4C0 public virtual void Local_CancelArrow(global::ViewModel vm, global::ItemRepresentation itemRep, global::IBowWeaponItem itemInstance, ref global::HumanController.InputSample sample) { if (vm) { vm.CrossFade("cancelarrow", 0.15f); } this.MakeReadyIn(itemInstance, this.fireRate * 3f); this.cancelArrowSound.PlayLocal(Camera.main.transform, Vector3.zero, 1f, 1f, 3f, 20f, 0); }