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

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionButtonActivator.cs
uploadId: 814740
uploadId: 889948

View File

@@ -27,6 +27,10 @@ public class sharedActionContent : MonoBehaviour
public bool alignMainSharedActionGameObjectToBothCharacters;
[Space]
public bool resumeAnyCharacterIfActionFinished;
[Space]
[Header ("Probability Settings")]
[Space]

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionContent.cs
uploadId: 814740
uploadId: 889948

View File

@@ -97,6 +97,9 @@ public class sharedActionSystem : MonoBehaviour
public playerStatsSystem mainPlayerStatsSystem;
List<sharedActionTemporalInfo> sharedActionTemporalInfoList = new List<sharedActionTemporalInfo> ();
sharedActionSystemInfo currentActionInfo;
sharedActionContent currentSharedActionContent;
@@ -120,6 +123,8 @@ public class sharedActionSystem : MonoBehaviour
bool ignoreExtraSharedActionActive = false;
bool ignoreAlternativeSharedActionActive = false;
float lastTimeSharedActionActive = 0;
public void setExternalCharacter (GameObject newCharacter)
{
currentExternalCharacter = newCharacter;
@@ -272,6 +277,45 @@ public class sharedActionSystem : MonoBehaviour
return;
}
bool checkMinWaitTimeToPlaySharedActionResult = false;
if (currentActionInfo.checkMinWaitTimeToPlaySharedAction) {
float checkMinWaitTimeToPlaySharedAction = currentActionInfo.minWaitTimeToPlaySharedAction;
int sharedActionTemporalIndex = sharedActionTemporalInfoList.FindIndex (s => s.Name.Equals (actionName));
if (sharedActionTemporalIndex > -1) {
sharedActionTemporalInfo currentSharedActionTemporalInfo = sharedActionTemporalInfoList [sharedActionTemporalIndex];
if (currentSharedActionTemporalInfo.lastTimeActionPlayed < lastTimeSharedActionActive && lastTimeSharedActionActive > 0) {
checkMinWaitTimeToPlaySharedActionResult = true;
} else {
currentSharedActionTemporalInfo.lastTimeActionPlayed = lastTimeSharedActionActive;
}
} else {
sharedActionTemporalInfo newSharedActionTemporalInfo = new sharedActionTemporalInfo ();
newSharedActionTemporalInfo.Name = actionName;
newSharedActionTemporalInfo.lastTimeActionPlayed = lastTimeSharedActionActive;
sharedActionTemporalInfoList.Add (newSharedActionTemporalInfo);
}
}
if (checkMinWaitTimeToPlaySharedActionResult) {
if (showDebugPrint) {
print ("min wait time to play this action not reached, cancelling " + actionName);
}
if (!usingSharedActionZoneResult) {
sharedActionGameObject.SetActive (false);
}
checkEventOnSharedActionResult (false, actionName);
return;
}
if (!usingSharedActionZoneResult) {
bool checkCharacterOrientationResult = true;
@@ -337,6 +381,23 @@ public class sharedActionSystem : MonoBehaviour
bool canPlaySharedActionResult = true;
//check distance and angle of characters
if (currentSharedActionContent.useMinDistanceToActivateAction) {
float charactersDistance = GKC_Utils.distance (firstCharacter.transform.position, secondCharacter.transform.position);
if (charactersDistance > currentSharedActionContent.minDistanceToActivateAction) {
if (showDebugPrint) {
print ("conditions not achieved from distance between characters " + actionName);
}
if (!usingSharedActionZoneResult) {
sharedActionGameObject.SetActive (false);
}
checkEventOnSharedActionResult (false, actionName);
return;
}
}
//check stats on this character
if (currentSharedActionContent.checkCharacterStats && !ignoreStatsCheckEnabled) {
@@ -405,7 +466,7 @@ public class sharedActionSystem : MonoBehaviour
if (currentSharedActionContent.checkWeaponsOnFirstCharacter) {
if (currentSharedActionContent.checkWeaponNameOnFirstCharacter) {
canPlaySharedActionResult =
canPlaySharedActionResult =
GKC_Utils.isCharacterUsingMeleeWeapons (firstCharacter, currentSharedActionContent.weaponNameOnFirstCharacter) ||
GKC_Utils.isCharacterUsingFireWeapons (firstCharacter, currentSharedActionContent.weaponNameOnFirstCharacter);
@@ -422,7 +483,7 @@ public class sharedActionSystem : MonoBehaviour
if (currentSharedActionContent.checkWeaponsOnSecondCharacter) {
if (currentSharedActionContent.checkWeaponNameOnSecondCharacter) {
canPlaySharedActionResult =
canPlaySharedActionResult =
GKC_Utils.isCharacterUsingMeleeWeapons (secondCharacter, currentSharedActionContent.weaponNameOnSecondCharacter) ||
GKC_Utils.isCharacterUsingFireWeapons (secondCharacter, currentSharedActionContent.weaponNameOnSecondCharacter);
@@ -699,6 +760,8 @@ public class sharedActionSystem : MonoBehaviour
}
GKC_Utils.disableCurrentAttackInProcess (firstCharacter);
GKC_Utils.stopMatchPlayerToTargetMovementIfActive (firstCharacter);
}
void checkStopSecondCharacterActions ()
@@ -712,7 +775,10 @@ public class sharedActionSystem : MonoBehaviour
}
GKC_Utils.disableCurrentAttackInProcess (secondCharacter);
GKC_Utils.stopMatchPlayerToTargetMovementIfActive (secondCharacter);
}
IEnumerator updateSystemCoroutine ()
{
sharedActionActive = true;
@@ -858,13 +924,25 @@ public class sharedActionSystem : MonoBehaviour
bool sharedActionsFinished = false;
float lastTimeSharedActionActive = Time.time;
lastTimeSharedActionActive = Time.time;
float sharedActionDuration = (firstCharacterPlayerActionSystem.getCurrentActionDuration () +
secondCharacterPlayerActionSystem.getCurrentActionDuration ()) / 1.5f;
bool resumeAnyCharacterIfActionFinished = currentSharedActionContent.resumeAnyCharacterIfActionFinished;
bool firstCharacterResumed = false;
bool secondCharacterResumed = false;
while (!sharedActionsFinished) {
if (!firstCharacterPlayerActionSystem.isActionActive () && !secondCharacterPlayerActionSystem.isActionActive ()) {
bool firstCharacterIsActionActive = firstCharacterPlayerActionSystem.isActionActive ();
bool secondCharacterIsActionActive = secondCharacterPlayerActionSystem.isActionActive ();
if (!firstCharacterIsActionActive && !secondCharacterIsActionActive) {
sharedActionsFinished = true;
}
@@ -872,6 +950,26 @@ public class sharedActionSystem : MonoBehaviour
sharedActionsFinished = true;
}
if (resumeAnyCharacterIfActionFinished) {
if (Time.time > 0.2f + lastTimeSharedActionActive) {
if (!firstCharacterIsActionActive) {
if (!firstCharacterResumed) {
currentSharedActionContent.firstCharacterActionSystem.setPlayerActionDeactivate (firstCharacter);
firstCharacterResumed = true;
}
}
if (!secondCharacterIsActionActive) {
if (!secondCharacterResumed) {
currentSharedActionContent.secondCharacterActionSystem.setPlayerActionDeactivate (secondCharacter);
secondCharacterResumed = true;
}
}
}
}
yield return null;
}
@@ -881,9 +979,13 @@ public class sharedActionSystem : MonoBehaviour
sharedActionGameObject.SetActive (false);
}
currentSharedActionContent.firstCharacterActionSystem.setPlayerActionDeactivate (firstCharacter);
if (!firstCharacterResumed) {
currentSharedActionContent.firstCharacterActionSystem.setPlayerActionDeactivate (firstCharacter);
}
currentSharedActionContent.secondCharacterActionSystem.setPlayerActionDeactivate (secondCharacter);
if (!secondCharacterResumed) {
currentSharedActionContent.secondCharacterActionSystem.setPlayerActionDeactivate (secondCharacter);
}
stopCheckCharacterStatusCoroutine ();
@@ -1337,6 +1439,11 @@ public class sharedActionSystem : MonoBehaviour
public bool setThisCharacterAsFirstCharacter;
[Space]
public bool checkMinWaitTimeToPlaySharedAction;
public float minWaitTimeToPlaySharedAction;
[Space]
[Header ("Probability Settings")]
[Space]
@@ -1344,7 +1451,6 @@ public class sharedActionSystem : MonoBehaviour
public bool useProbabilityToUseAction;
[Range (0, 100)] public float probabilityToUseAction;
[Space]
[Header ("Shared Action Zones Settings")]
[Space]
@@ -1397,4 +1503,11 @@ public class sharedActionSystem : MonoBehaviour
public List<string> randomSharedActionNameList;
}
[System.Serializable]
public class sharedActionTemporalInfo
{
public string Name;
public float lastTimeActionPlayed;
}
}

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -14,6 +14,10 @@ public class sharedActionSystemRemoteActivator : MonoBehaviour
public GameObject characterGameObject;
[Space]
public bool setAllSharedActionsActivatorResultAsNotActivated;
[Space]
[Header ("Target Raycast Detection Settings")]
[Space]
@@ -285,10 +289,22 @@ public class sharedActionSystemRemoteActivator : MonoBehaviour
return;
}
bool isSharedActionEnabledPreviousValue = false;
mainSharedActionSystem.setExternalCharacter (currentExternalCharacter);
if (setAllSharedActionsActivatorResultAsNotActivated) {
isSharedActionEnabledPreviousValue = mainSharedActionSystem.isSharedActionEnabled ();
mainSharedActionSystem.setSharedActionEnabledState (false);
}
mainSharedActionSystem.activateSharedActionByName (sharedActionName);
if (setAllSharedActionsActivatorResultAsNotActivated) {
mainSharedActionSystem.setSharedActionEnabledState (isSharedActionEnabledPreviousValue);
}
if (mainSharedActionSystem.isLastSharedActionFound ()) {
checkEventOnTargetDetectedResult (true, sharedActionName);
} else {
@@ -296,6 +312,11 @@ public class sharedActionSystemRemoteActivator : MonoBehaviour
}
}
public void setSetAllSharedActionsActivatorResultAsNotActivatedState (bool state)
{
setAllSharedActionsActivatorResultAsNotActivated = state;
}
public void setRemoteActivatorEnabledState (bool state)
{
remoteActivatorEnabled = state;
@@ -307,11 +328,25 @@ public class sharedActionSystemRemoteActivator : MonoBehaviour
checkSharedActionSystemByExternalDetection (sharedActionName);
}
public void setSetAllSharedActionsActivatorResultAsNotActivatedStateFromEditor (bool state)
{
setSetAllSharedActionsActivatorResultAsNotActivatedState (state);
updateComponent ();
}
public void activateSharedActionByNameFromEditor ()
{
activateSharedActionByName ();
}
void updateComponent ()
{
GKC_Utils.updateComponent (this);
GKC_Utils.updateDirtyScene ("Update Shared Action Remote Activator " + gameObject.name, gameObject);
}
[System.Serializable]
public class remoteSharedActionSystemInfo
{

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionSystemRemoteActivator.cs
uploadId: 814740
uploadId: 889948

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionZone.cs
uploadId: 814740
uploadId: 889948

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionZoneManager.cs
uploadId: 814740
uploadId: 889948

View File

@@ -12,7 +12,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Action System/Shared Action System/sharedActionZoneTrigger.cs
uploadId: 814740
uploadId: 889948