2023-11-15 15:19:40 +11:00
|
|
|
extends HitscanWeapon
|
|
|
|
class_name SniperWeapon
|
2023-11-08 14:28:55 +11:00
|
|
|
|
2023-11-15 15:19:40 +11:00
|
|
|
@export var scope_mask : CanvasLayer
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
func hold_second_trigger():
|
|
|
|
super.hold_second_trigger()
|
2023-11-15 15:19:40 +11:00
|
|
|
scope_mask.set_visible(true)
|
2023-11-09 17:56:08 +11:00
|
|
|
hero.set_zoom_factor(3.0)
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
func release_second_trigger():
|
|
|
|
super.release_second_trigger()
|
2023-11-15 15:19:40 +11:00
|
|
|
scope_mask.set_visible(false)
|