Back to Tech

FPS Siege

2024In DevelopmentUnity 3D Game
FPS Siege Gameplay

Tactical FPS with Destructible Environments

Overview

FPS Siege is a tactical first-person shooter featuring destructible environments, realistic ballistics, and team-based gameplay. Built in Unity with custom physics and networking solutions for smooth multiplayer experiences.

Core Mechanics

Precision Shooting

Realistic recoil patterns and bullet physics

πŸ’₯

Destructible Walls

Dynamic environment destruction system

πŸ‘₯

5v5 Matches

Team-based tactical gameplay

πŸ—ΊοΈ

10+ Maps

Diverse environments and strategies

Interactive Physics Demo

Projectile Trajectory Simulation

Code Sample: Recoil System

WeaponRecoil.cs
using UnityEngine;

public class WeaponRecoil : MonoBehaviour 
{
    [Header("Recoil Settings")]
    public float verticalRecoil = 2f;
    public float horizontalRecoil = 0.5f;
    public float recoilSmoothing = 6f;
    
    private Vector3 currentRotation;
    private Vector3 targetRotation;
    
    void Update() 
    {
        targetRotation = Vector3.Lerp(
            targetRotation, 
            Vector3.zero, 
            recoilSmoothing * Time.deltaTime
        );
        
        currentRotation = Vector3.Slerp(
            currentRotation, 
            targetRotation, 
            recoilSmoothing * Time.fixedDeltaTime
        );
        
        transform.localRotation = Quaternion.Euler(currentRotation);
    }
    
    public void Fire() 
    {
        targetRotation += new Vector3(
            verticalRecoil, 
            Random.Range(-horizontalRecoil, horizontalRecoil), 
            0
        );
    }
}

Gallery

Tech Stack

Unity 2023.2
C#
Mirror Networking
ProBuilder
HDRP
Photon Fusion