public virtual void StopSound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType, MonoBehaviour owner, MonoBehaviour parent) { //FCgSoundElement soundElement = GetSound(viewType, fireMode, soundType); //ICgManager_Sound manager_sound = ICgManager_Sound.Get(); //manager_sound.Stop(soundElement, owner, parent); }
public float Get(ECgViewType viewType) { if (viewType == ECgViewType.FirstPerson || viewType == ECgViewType.VR) { return(Distance1P); } if (viewType == ECgViewType.ThirdPerson) { return(Distance3P); } return(0.0f); }
public string GetBone(ECgViewType viewType) { if (viewType == ECgViewType.FirstPerson) { return(Effect1P.Bone); } if (viewType == ECgViewType.ThirdPerson) { return(Effect3P.Bone); } return(ECgCached.Str.NAME_None); }
public FCgFxElement Get(ECgViewType viewType) { if (viewType == ECgViewType.FirstPerson) { return(Effect1P); } if (viewType == ECgViewType.ThirdPerson) { return(Effect3P); } if (viewType == ECgViewType.VR) { return(Effect1P); } return(Effect3P); }
public AnimationClip Get(ECgViewType viewType, bool isLow = false) { if (viewType == ECgViewType.FirstPerson) { return(Anim1P_Internal); } if (viewType == ECgViewType.ThirdPerson) { return(isLow ? Anim3P_Low_Internal : Anim3P_Internal); } if (viewType == ECgViewType.VR) { return(AnimVR_Internal); } return(Anim3P_Internal); }
public virtual void PlaySound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType, MonoBehaviour owner, Vector3 location) { FCgSoundElement soundElement = GetSound(viewType, fireMode, soundType); if (soundElement.Get() == null) { FCgDebug.LogWarning("MCsData_ProjectileWeapon.PlaySound: Attempting to Play a NULL Sound."); return; } //ICgManager_Sound manager_sound = ICgManager_Sound.Get(); /* * FCsSoundPayload* Payload = Manager_Sound->AllocatePayload(); * Payload->Set(SoundElement); * Payload->Owner = InOwner; * Payload->Location = Location; * * Manager_Sound->Play(Payload); */ }
public virtual void GetDefaultMaterials(ref List <Material> outMaterials, ECgViewType viewType, bool isLow = false) { }
public virtual void SetMesh(Transform transform, ECgViewType viewType, bool isLow = false) { }
public virtual void SetMesh(MeshRenderer meshRenderer, ECgViewType viewType, bool isLow = false) { }
public virtual float GetDrawDistanceSq(ECgViewType viewType) { return(0.0f); }
FCgFxElement GetMuzzleFX(ECgViewType viewType, int index = 0) { int count = MuzzleFXs.Count; return(count > EMPTY ? MuzzleFXs[index % count].Get(viewType) : null); }
public virtual string GetMuzzleBone(ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0) { return(ECgCached.Str.NAME_None); }
public virtual FCgSoundElement GetSound(ECgViewType viewType, FECgWeaponFireMode fireMode, FECgWeaponSound soundType) { return(null); }
public virtual FCgFxElement GetMuzzleFX(ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0) { return(null); }
public override Mesh GetMesh(ECgViewType viewType) { return(_Mesh); }
public virtual Vector3 GetMuzzleLocation(MCgSkeleton skeleton, ECgViewType viewType, FECgWeaponFireMode fireMode, int index = 0) { return(skeleton.GetBoneLocation(GetMuzzleBone(viewType, fireMode, index))); }
public virtual Mesh GetMesh(ECgViewType viewType, bool isLow = false) { return(null); }
string GetMuzzleBone(ECgViewType viewType, int index = 0) { int count = MuzzleFXs.Count; return(count > EMPTY ? MuzzleFXs[index % count].GetBone(viewType) : null); }
public virtual Mesh GetMesh(ECgViewType viewType) { return(null); }