-
Notifications
You must be signed in to change notification settings - Fork 7
/
Grenade.cs
39 lines (25 loc) · 812 Bytes
/
Grenade.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using UnityEngine;
using Steamworks; // Requires CSteamID.cs
namespace SDG.Unturned
{
// Explodes after a certain amount of time after being instantiated
public class Grenade : MonoBehaviour
{
public CSteamID killer;
// Damage range of explosion
public float range;
public float playerDamage;
public float zombieDamage;
public float animalDamage;
public float barricadeDamage;
public float structureDamage;
public float vehicleDamage;
public float resourceDamage;
public float objectDamage;
// Effect ID to play once exploded
public ushort explosion;
public float fuseLength = 2.5f;
public float explosionLaunchSpeed;
public bool shouldDestroySelf = true;
}
}