Squashed commit of the following:

commit 428243f4a6
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Sat Aug 29 13:43:13 2026 +0300

    Squashed commit of the following:

    commit 68e78fa464
    Author: AsanoRema <asanorema2036@gmail.com>
    Date:   Sat Aug 29 13:41:49 2026 +0300

        Updated .gitignore

commit 9f87122a34
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Sat Aug 29 13:34:57 2026 +0300

    Added Dohya

commit f6a7547e84
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Fri Aug 21 17:59:13 2026 +0300

    Fixed

commit b98901c366
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Tue Aug 18 17:37:22 2026 +0300

    Added new particle Package

commit bb2f4a3b16
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Tue Aug 18 17:17:48 2026 +0300

    Map mehanic ready to multiplayer

commit c01ff800f6
Author: AsanoRema <asanorema2036@gmail.com>
Date:   Tue Aug 18 16:16:19 2026 +0300

    Squashed commit of the following:

    commit 173bbb165c
    Author: henjkey <henjkey@gmail.com>
    Date:   Fri Aug 14 18:51:23 2026 +0500

        Mappp

    commit d559ab338a
    Author: henjkey <henjkey@gmail.com>
    Date:   Thu Aug 13 18:42:41 2026 +0500

        Map

        Controller
        Coordinates
        Target System
        Crosshair System
        Radar System
This commit is contained in:
2026-08-29 13:45:55 +03:00
parent 68e78fa464
commit ffa1064063
3344 changed files with 4722286 additions and 105458 deletions
@@ -0,0 +1,35 @@
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(ParticleSystem))]
public class CFX_AutoDestructShuriken : MonoBehaviour
{
public bool OnlyDeactivate;
void OnEnable()
{
StartCoroutine("CheckIfAlive");
}
IEnumerator CheckIfAlive ()
{
while(true)
{
yield return new WaitForSeconds(0.5f);
if(!GetComponent<ParticleSystem>().IsAlive(true))
{
if(OnlyDeactivate)
{
#if UNITY_3_5
this.gameObject.SetActiveRecursively(false);
#else
this.gameObject.SetActive(false);
#endif
}
else
GameObject.Destroy(this.gameObject);
break;
}
}
}
}
@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 6fd2e8874f60266498a388d7229a1bac
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
AssetOrigin:
serializedVersion: 1
productId: 5669
packageName: War FX
packageVersion: 1.8.04
assetPath: Assets/JMO Assets/WarFX/Scripts/CFX_AutoDestructShuriken.cs
uploadId: 301034
@@ -0,0 +1,65 @@
using UnityEngine;
using System.Collections;
// Cartoon FX - (c) 2015, Jean Moreno
// Decreases a light's intensity over time.
[RequireComponent(typeof(Light))]
public class CFX_LightIntensityFade : MonoBehaviour
{
// Duration of the effect.
public float duration = 1.0f;
// Delay of the effect.
public float delay = 0.0f;
/// Final intensity of the light.
public float finalIntensity = 0.0f;
// Base intensity, automatically taken from light parameters.
private float baseIntensity;
// If <c>true</c>, light will destructs itself on completion of the effect
public bool autodestruct;
private float p_lifetime = 0.0f;
private float p_delay;
void Start()
{
baseIntensity = GetComponent<Light>().intensity;
}
void OnEnable()
{
p_lifetime = 0.0f;
p_delay = delay;
if(delay > 0) GetComponent<Light>().enabled = false;
}
void Update ()
{
if(p_delay > 0)
{
p_delay -= Time.deltaTime;
if(p_delay <= 0)
{
GetComponent<Light>().enabled = true;
}
return;
}
if(p_lifetime/duration < 1.0f)
{
GetComponent<Light>().intensity = Mathf.Lerp(baseIntensity, finalIntensity, p_lifetime/duration);
p_lifetime += Time.deltaTime;
}
else
{
if(autodestruct)
GameObject.Destroy(this.gameObject);
}
}
}
@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: c2255468ea97f384a9ebbb13e497e050
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
AssetOrigin:
serializedVersion: 1
productId: 5669
packageName: War FX
packageVersion: 1.8.04
assetPath: Assets/JMO Assets/WarFX/Scripts/CFX_LightIntensityFade.cs
uploadId: 301034
@@ -0,0 +1,77 @@
using UnityEngine;
using System.Collections;
/**
* Handles the bullet hole decals:
* - Sets a random frame
* - Fades the material according to the defined lifetime
* - Optionally rotates the decal
*
* (c) 2015, Jean Moreno
**/
[RequireComponent(typeof(MeshFilter))]
public class WFX_BulletHoleDecal : MonoBehaviour
{
static private Vector2[] quadUVs = new Vector2[]{new Vector2(0,0), new Vector2(0,1), new Vector2(1,0), new Vector2(1,1)};
public float lifetime = 10f;
public float fadeoutpercent = 80;
public Vector2 frames;
public bool randomRotation = false;
public bool deactivate = false;
private float life;
private float fadeout;
private Color color;
private float orgAlpha;
void Awake()
{
color = this.GetComponent<Renderer>().material.GetColor("_TintColor");
orgAlpha = color.a;
}
void OnEnable()
{
//Random UVs
int random = Random.Range(0, (int)(frames.x*frames.y));
int fx = (int)(random%frames.x);
int fy = (int)(random/frames.y);
//Set new UVs
Vector2[] meshUvs = new Vector2[4];
for(int i = 0; i < 4; i++)
{
meshUvs[i].x = (quadUVs[i].x + fx) * (1.0f/frames.x);
meshUvs[i].y = (quadUVs[i].y + fy) * (1.0f/frames.y);
}
this.GetComponent<MeshFilter>().mesh.uv = meshUvs;
//Random rotate
if(randomRotation)
this.transform.Rotate(0f,0f,Random.Range(0f,360f), Space.Self);
//Start lifetime coroutine
life = lifetime;
fadeout = life * (fadeoutpercent/100f);
color.a = orgAlpha;
this.GetComponent<Renderer>().material.SetColor("_TintColor", color);
StopAllCoroutines();
StartCoroutine("holeUpdate");
}
IEnumerator holeUpdate()
{
while(life > 0f)
{
life -= Time.deltaTime;
if(life <= fadeout)
{
color.a = Mathf.Lerp(0f, orgAlpha, life/fadeout);
this.GetComponent<Renderer>().material.SetColor("_TintColor", color);
}
yield return null;
}
}
}
@@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 395f3a2ded34a634fbd77ee83f9939a7
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
AssetOrigin:
serializedVersion: 1
productId: 5669
packageName: War FX
packageVersion: 1.8.04
assetPath: Assets/JMO Assets/WarFX/Scripts/WFX_BulletHoleDecal.cs
uploadId: 301034
@@ -0,0 +1,38 @@
using UnityEngine;
using System.Collections;
/**
* Rapidly sets a light on/off.
*
* (c) 2015, Jean Moreno
**/
[RequireComponent(typeof(Light))]
public class WFX_LightFlicker : MonoBehaviour
{
public float time = 0.05f;
private float timer;
void Start ()
{
timer = time;
StartCoroutine("Flicker");
}
IEnumerator Flicker()
{
while(true)
{
GetComponent<Light>().enabled = !GetComponent<Light>().enabled;
do
{
timer -= Time.deltaTime;
yield return null;
}
while(timer > 0);
timer = time;
}
}
}
@@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 96d332ab3dbfaaf40bdd9745ff0b19f0
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
AssetOrigin:
serializedVersion: 1
productId: 5669
packageName: War FX
packageVersion: 1.8.04
assetPath: Assets/JMO Assets/WarFX/Scripts/WFX_LightFlicker.cs
uploadId: 301034