add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -175,6 +175,8 @@ public class IKWeaponSystem : weaponObjectInfo
public weaponAttachmentSystem mainWeaponAttachmentSystem;
public bool weaponUsesAttachment;
public bool ignoreUseAttachmentSystem;
public bool jumpingOnProcess;
bool weaponInJumpStart;
bool weaponInJumpEnd;
@@ -792,9 +794,18 @@ public class IKWeaponSystem : weaponObjectInfo
if (weaponsManager.checkIfHideWeaponMeshWhenNotUsed (hideWeaponIfKeptInThirdPerson)) {
enableOrDisableWeaponMesh (false);
if (checkIfWeaponUsesAttachment ()) {
mainWeaponAttachmentSystem.checkInitializeAttachmentElements ();
}
}
}
public bool checkIfWeaponUsesAttachment ()
{
return weaponUsesAttachment && !ignoreUseAttachmentSystem;
}
public void setPlayerOnJumpStartState (bool state)
{
playerOnJumpStart = state;
@@ -938,6 +949,11 @@ public class IKWeaponSystem : weaponObjectInfo
return weaponSystemManager.getWeaponSystemAmmoName ();
}
public int getWeaponOriginalClipSize ()
{
return weaponSystemManager.getWeaponOriginalClipSize ();
}
public void setRemainAmmoAmount (int newRemainAmmoAmount)
{
weaponSystemManager.setRemainAmmoAmount (newRemainAmmoAmount);
@@ -5688,6 +5704,44 @@ public class IKWeaponSystem : weaponObjectInfo
}
}
public void resetWeaponPositionInAnyView ()
{
bool firstPersonActive = isPlayerCameraFirstPersonActive ();
Transform newParent = weaponsManager.getWeaponsParent ();
if (newParent == null) {
newParent = weaponsManager.getPlayerManagersParentGameObject ();
}
Transform newParentWeaponMesh = newParent;
if (usingDualWeapon) {
if (usingRightHandDualWeapon) {
if (firstPersonActive) {
newParentWeaponMesh = firstPersonWeaponInfo.rightHandDualWeaopnInfo.keepPosition;
} else {
newParentWeaponMesh = thirdPersonWeaponInfo.rightHandDualWeaopnInfo.keepPosition;
}
} else {
if (firstPersonActive) {
newParentWeaponMesh = firstPersonWeaponInfo.leftHandDualWeaponInfo.keepPosition;
} else {
newParentWeaponMesh = thirdPersonWeaponInfo.leftHandDualWeaponInfo.keepPosition;
}
}
} else {
if (firstPersonActive) {
newParentWeaponMesh = firstPersonWeaponInfo.keepPosition;
} else {
newParentWeaponMesh = thirdPersonWeaponInfo.keepPosition;
}
}
weaponTransform.localPosition = newParentWeaponMesh.localPosition;
weaponTransform.localRotation = newParentWeaponMesh.localRotation;
}
public void setWeaponHasRecoilState (bool state)
{
thirdPersonWeaponInfo.weaponHasRecoil = state;
@@ -6688,6 +6742,116 @@ public class IKWeaponSystem : weaponObjectInfo
weaponSystemManager.enableOrDisableWeaponMesh (state);
}
public void setWeaponMeshScale (float newValue)
{
weaponSystemManager.setWeaponMeshScale (newValue);
}
public void adjustAllFireWeaponTransformReferencePosition (float newValue)
{
thirdPersonWeaponInfo.aimPosition.localPosition *= newValue;
thirdPersonWeaponInfo.walkPosition.localPosition *= newValue;
thirdPersonWeaponInfo.aimRecoilPosition.localPosition *= newValue;
if (thirdPersonWeaponInfo.surfaceCollisionPosition != null) {
thirdPersonWeaponInfo.surfaceCollisionPosition.localPosition *= newValue;
}
if (thirdPersonWeaponInfo.surfaceCollisionRayPosition != null) {
thirdPersonWeaponInfo.surfaceCollisionRayPosition.localPosition *= newValue;
}
if (thirdPersonWeaponInfo.weaponPositionInHandForDeactivateIK != null) {
thirdPersonWeaponInfo.weaponPositionInHandForDeactivateIK.localPosition *= newValue;
}
if (thirdPersonWeaponInfo.weaponPivotPoint != null) {
thirdPersonWeaponInfo.weaponPivotPoint.localPosition *= newValue;
}
if (thirdPersonWeaponInfo.weaponRotationPointHeadLookTarget != null) {
thirdPersonWeaponInfo.weaponRotationPointHeadLookTarget.localPosition *= newValue;
}
currentKeepPath = thirdPersonWeaponInfo.keepPath;
for (int j = 0; j < currentKeepPath.Count; j++) {
if (currentKeepPath [j] != null) {
if (currentKeepPath [j] != thirdPersonWeaponInfo.walkPosition) {
currentKeepPath [j].localPosition *= newValue;
}
}
}
for (int i = 0; i < thirdPersonWeaponInfo.handsInfo.Count; i++) {
for (int j = 0; j < thirdPersonWeaponInfo.handsInfo [i].wayPoints.Count; j++) {
if (thirdPersonWeaponInfo.handsInfo [i].wayPoints [j] != null &&
thirdPersonWeaponInfo.handsInfo [i].wayPoints [j] != thirdPersonWeaponInfo.handsInfo [i].position) {
thirdPersonWeaponInfo.handsInfo [i].wayPoints [j].localPosition *= newValue;
}
}
}
//public Transform aimPosition;
//public Transform walkPosition;
//public Transform keepPosition;
//public Transform aimRecoilPosition;
//public Transform walkRecoilPosition;
//public Transform surfaceCollisionPosition;
//public Transform surfaceCollisionRayPosition;
//public Transform lowerWeaponPosition;
//public Transform runPosition;
//public Transform jumpStartPosition;
//public Transform jumpEndPosition;
//public Transform meleeAttackPosition;
//public Transform meleeAttackRaycastPosition;
//public Transform editAttachmentPosition;
//public Transform attachmentCameraPosition;
//public Transform leftHandEditPosition;
//public Transform leftHandParent;
//public Transform extraLeftHandMeshParent;
//public Transform secondPositionForHand;
//public Transform sightPosition;
//public Transform sightRecoilPosition;
//public List<Transform> deactivateIKDrawPath = new List<Transform> ();
//public Transform weaponPositionInHandForDeactivateIK;
//public List<Transform> keepPath = new List<Transform> ();
//public Transform weaponRotationPoint;
//public Transform weaponRotationPointHolder;
//public Transform weaponRotationPointHeadLookTarget;
//public Transform weaponPivotPoint;
//public Transform crouchPosition;
//public Transform crouchRecoilPosition;
}
public void setHandTransform (Transform rightHand, Transform leftHand, Transform newRightHandMountPoint, Transform newLeftHandMountPoint)
{
for (int j = 0; j < thirdPersonWeaponInfo.handsInfo.Count; j++) {
@@ -7422,7 +7586,7 @@ public class IKWeaponSystem : weaponObjectInfo
weaponSystemManager.setCurrentWeaponState (state);
if (currentWeapon) {
if (weaponUsesAttachment) {
if (checkIfWeaponUsesAttachment ()) {
mainWeaponAttachmentSystem.checkIfAttachmentSystemInitialized ();
}
} else {
@@ -7490,6 +7654,13 @@ public class IKWeaponSystem : weaponObjectInfo
return hideWeaponIfKeptInThirdPerson;
}
public void initializeAttachmentSystem ()
{
if (checkIfWeaponUsesAttachment ()) {
mainWeaponAttachmentSystem.initializeAttachmentSystem ();
}
}
public bool pickupAttachment (string attachmentName)
{
if (mainWeaponAttachmentSystem != null) {