16 lines
296 B
GDScript
16 lines
296 B
GDScript
extends HitscanWeapon
|
|
class_name SniperWeapon
|
|
|
|
@export var scope_mask : CanvasLayer
|
|
|
|
|
|
func hold_second_trigger():
|
|
super.hold_second_trigger()
|
|
scope_mask.set_visible(true)
|
|
hero.set_zoom_factor(3.0)
|
|
|
|
|
|
func release_second_trigger():
|
|
super.release_second_trigger()
|
|
scope_mask.set_visible(false)
|