Zombies + Skeleton Physics arrow + aimbot

360 headhsot ezz
This commit is contained in:
Crizomb 2025-01-15 00:51:59 +01:00
parent b3a87fb2a6
commit bf010f3476
91 changed files with 28021 additions and 84 deletions

View file

@ -8,13 +8,19 @@ public class ArrowHandler : MonoBehaviour
{
[SerializeField] private float baseDamage;
[SerializeField] private float baseKnockback;
public Rigidbody _rigidBody;
private Rigidbody _rigidBody;
void Awake()
{
_rigidBody = GetComponent<Rigidbody>();
}
void Update()
{
// Align with speed
if (_rigidBody.linearVelocity.magnitude >= 1f) transform.forward = _rigidBody.linearVelocity.normalized;
}
public void LaunchArrow(Vector3 baseSpeed)
{
_rigidBody.linearVelocity = baseSpeed;
@ -33,5 +39,7 @@ public class ArrowHandler : MonoBehaviour
}
unit.TakeDamage(baseDamage);
}
Destroy(this.gameObject);
}
}