add modding support

This commit is contained in:
2022-12-31 03:48:00 +01:00
parent d2ed1afdc7
commit 56255f5473
25 changed files with 82 additions and 1782 deletions

View File

@@ -8,6 +8,7 @@ const RELOAD = 3
const DRAW_TIME = 0.35
var MELEE : bool
var MAX_CLIP : int
var DAMAGE : float
var MOMENTUM : Vector2
@@ -55,9 +56,11 @@ func InitialPos():
func Shoot():
if CanShoot():
if !FIREMODE:
if not FIREMODE:
can_shoot = false
clip -= 1
if not MELEE:
clip -= 1
state = SHOOT;
var tween = create_tween()
tween.set_trans(Tween.TRANS_ELASTIC)