mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Ballistic Weapon/Shotgun Reload Sounds
This commit is contained in:
@@ -86,6 +86,7 @@
|
|||||||
if(num_loaded)
|
if(num_loaded)
|
||||||
if(!silent)
|
if(!silent)
|
||||||
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src]!</span>")
|
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src]!</span>")
|
||||||
|
playsound(user, 'sound/weapons/bulletinsert.ogg', 60, 1)
|
||||||
A.update_icon()
|
A.update_icon()
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
@@ -96,6 +97,7 @@
|
|||||||
if(A)
|
if(A)
|
||||||
user.put_in_hands(A)
|
user.put_in_hands(A)
|
||||||
to_chat(user, "<span class='notice'>You remove a round from \the [src]!</span>")
|
to_chat(user, "<span class='notice'>You remove a round from \the [src]!</span>")
|
||||||
|
playsound(user, 'sound/weapons/bulletremove.ogg', 60, 1)
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
/obj/item/ammo_box/update_icon()
|
/obj/item/ammo_box/update_icon()
|
||||||
|
|||||||
@@ -44,6 +44,8 @@
|
|||||||
oldmag.update_icon()
|
oldmag.update_icon()
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='notice'>You insert the magazine into \the [src].</span>")
|
to_chat(user, "<span class='notice'>You insert the magazine into \the [src].</span>")
|
||||||
|
|
||||||
|
playsound(user, 'sound/weapons/autoguninsert.ogg', 60, 1)
|
||||||
chamber_round()
|
chamber_round()
|
||||||
A.update_icon()
|
A.update_icon()
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -300,6 +302,10 @@
|
|||||||
/obj/item/weapon/gun/ballistic/automatic/l6_saw/attack_self(mob/user)
|
/obj/item/weapon/gun/ballistic/automatic/l6_saw/attack_self(mob/user)
|
||||||
cover_open = !cover_open
|
cover_open = !cover_open
|
||||||
to_chat(user, "<span class='notice'>You [cover_open ? "open" : "close"] [src]'s cover.</span>")
|
to_chat(user, "<span class='notice'>You [cover_open ? "open" : "close"] [src]'s cover.</span>")
|
||||||
|
if(cover_open)
|
||||||
|
playsound(user, 'sound/weapons/sawopen.ogg', 60, 1)
|
||||||
|
else
|
||||||
|
playsound(user, 'sound/weapons/sawclose.ogg', 60, 1)
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
|
||||||
@@ -330,6 +336,7 @@
|
|||||||
magazine = null
|
magazine = null
|
||||||
update_icon()
|
update_icon()
|
||||||
to_chat(user, "<span class='notice'>You remove the magazine from [src].</span>")
|
to_chat(user, "<span class='notice'>You remove the magazine from [src].</span>")
|
||||||
|
playsound(user, 'sound/weapons/magout.ogg', 60, 1)
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/gun/ballistic/automatic/l6_saw/attackby(obj/item/A, mob/user, params)
|
/obj/item/weapon/gun/ballistic/automatic/l6_saw/attackby(obj/item/A, mob/user, params)
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
var/num_loaded = magazine.attackby(A, user, params, 1)
|
var/num_loaded = magazine.attackby(A, user, params, 1)
|
||||||
if(num_loaded)
|
if(num_loaded)
|
||||||
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src].</span>")
|
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src].</span>")
|
||||||
|
playsound(user, 'sound/weapons/bulletinsert.ogg', 60, 1)
|
||||||
A.update_icon()
|
A.update_icon()
|
||||||
update_icon()
|
update_icon()
|
||||||
chamber_round(0)
|
chamber_round(0)
|
||||||
@@ -45,6 +46,7 @@
|
|||||||
num_unloaded++
|
num_unloaded++
|
||||||
if (num_unloaded)
|
if (num_unloaded)
|
||||||
to_chat(user, "<span class='notice'>You unload [num_unloaded] shell\s from [src].</span>")
|
to_chat(user, "<span class='notice'>You unload [num_unloaded] shell\s from [src].</span>")
|
||||||
|
playsound(user, 'sound/weapons/bulletremove.ogg', 60, 1)
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='warning'>[src] is empty!</span>")
|
to_chat(user, "<span class='warning'>[src] is empty!</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
var/num_loaded = magazine.attackby(A, user, params, 1)
|
var/num_loaded = magazine.attackby(A, user, params, 1)
|
||||||
if(num_loaded)
|
if(num_loaded)
|
||||||
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src]!</span>")
|
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src]!</span>")
|
||||||
|
playsound(user, 'sound/weapons/shotguninsert.ogg', 60, 1)
|
||||||
A.update_icon()
|
A.update_icon()
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
|||||||
BIN
sound/weapons/autoguninsert.ogg
Normal file
BIN
sound/weapons/autoguninsert.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/bulletinsert.ogg
Normal file
BIN
sound/weapons/bulletinsert.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/bulletremove.ogg
Normal file
BIN
sound/weapons/bulletremove.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/magin.ogg
Normal file
BIN
sound/weapons/magin.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/magout.ogg
Normal file
BIN
sound/weapons/magout.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/sawclose.ogg
Normal file
BIN
sound/weapons/sawclose.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/sawopen.ogg
Normal file
BIN
sound/weapons/sawopen.ogg
Normal file
Binary file not shown.
BIN
sound/weapons/shotguninsert.ogg
Normal file
BIN
sound/weapons/shotguninsert.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user