Gun sound revamp (#46689)

* shitload of new sounds

* dme fix

* file fixes

* more file fixes

* more file fixes

* volume tweaks + better pistol sounds

* more new sounds + no through walls suppressed

* better suppressed

* more work

* pistol handling sounds

* small tweaks
This commit is contained in:
Rob Bailey
2019-09-24 15:01:27 -07:00
committed by ShizCalev
parent 63937d37ad
commit 7d7a1e72d9
115 changed files with 116 additions and 111 deletions

View File

@@ -97,7 +97,7 @@
/datum/status_effect/bounty/on_apply() /datum/status_effect/bounty/on_apply()
to_chat(owner, "<span class='boldnotice'>You hear something behind you talking...</span> <span class='notice'>You have been marked for death by [rewarded]. If you die, they will be rewarded.</span>") to_chat(owner, "<span class='boldnotice'>You hear something behind you talking...</span> <span class='notice'>You have been marked for death by [rewarded]. If you die, they will be rewarded.</span>")
playsound(owner, 'sound/weapons/shotgunpump.ogg', 75, FALSE) playsound(owner, 'sound/weapons/gun/shotgun/rack.ogg', 75, FALSE)
return ..() return ..()
/datum/status_effect/bounty/tick() /datum/status_effect/bounty/tick()
@@ -108,7 +108,7 @@
/datum/status_effect/bounty/proc/rewards() /datum/status_effect/bounty/proc/rewards()
if(rewarded && rewarded.mind && rewarded.stat != DEAD) if(rewarded && rewarded.mind && rewarded.stat != DEAD)
to_chat(owner, "<span class='boldnotice'>You hear something behind you talking...</span> <span class='notice'>Bounty claimed.</span>") to_chat(owner, "<span class='boldnotice'>You hear something behind you talking...</span> <span class='notice'>Bounty claimed.</span>")
playsound(owner, 'sound/weapons/shotgunshot.ogg', 75, FALSE) playsound(owner, 'sound/weapons/gun/shotgun/shot.ogg', 75, FALSE)
to_chat(rewarded, "<span class='greentext'>You feel a surge of mana flow into you!</span>") to_chat(rewarded, "<span class='greentext'>You feel a surge of mana flow into you!</span>")
for(var/obj/effect/proc_holder/spell/spell in rewarded.mind.spell_list) for(var/obj/effect/proc_holder/spell/spell in rewarded.mind.spell_list)
spell.charge_counter = spell.charge_max spell.charge_counter = spell.charge_max

View File

@@ -247,7 +247,7 @@
desc = "A weapon for combat exosuits. Launches primed tear-stache grenades." desc = "A weapon for combat exosuits. Launches primed tear-stache grenades."
icon_state = "mecha_grenadelnchr" icon_state = "mecha_grenadelnchr"
projectile = /obj/item/grenade/chem_grenade/teargas/moustache projectile = /obj/item/grenade/chem_grenade/teargas/moustache
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/grenade_launch.ogg'
projectiles = 6 projectiles = 6
missile_speed = 1.5 missile_speed = 1.5
projectile_energy_cost = 800 projectile_energy_cost = 800

View File

@@ -212,7 +212,7 @@ GLOBAL_LIST_INIT(meteorsC, list(/obj/effect/meteor/dust)) //for space dust event
pass_flags = PASSTABLE | PASSGRILLE pass_flags = PASSTABLE | PASSGRILLE
hits = 1 hits = 1
hitpwr = 3 hitpwr = 3
meteorsound = 'sound/weapons/gunshot_smg.ogg' meteorsound = 'sound/weapons/gun/smg/shot.ogg'
meteordrop = list(/obj/item/stack/ore/glass) meteordrop = list(/obj/item/stack/ore/glass)
threat = 1 threat = 1

View File

@@ -661,7 +661,7 @@ GLOBAL_LIST_INIT(arcade_prize_pool, list(
else if(href_list["killcrew"]) //shoot a crewmember else if(href_list["killcrew"]) //shoot a crewmember
if(gameStatus == ORION_STATUS_NORMAL || event == ORION_TRAIL_LING) if(gameStatus == ORION_STATUS_NORMAL || event == ORION_TRAIL_LING)
var/sheriff = remove_crewmember() //I shot the sheriff var/sheriff = remove_crewmember() //I shot the sheriff
playsound(loc,'sound/weapons/gunshot.ogg', 100, TRUE) playsound(loc,'sound/weapons/gun/pistol/shot.ogg', 100, TRUE)
if(settlers.len == 0 || alive == 0) if(settlers.len == 0 || alive == 0)
say("The last crewmember [sheriff], shot themselves, GAME OVER!") say("The last crewmember [sheriff], shot themselves, GAME OVER!")

View File

@@ -662,8 +662,8 @@
mode = TURRET_LETHAL mode = TURRET_LETHAL
stun_projectile = /obj/item/projectile/bullet stun_projectile = /obj/item/projectile/bullet
lethal_projectile = /obj/item/projectile/bullet lethal_projectile = /obj/item/projectile/bullet
lethal_projectile_sound = 'sound/weapons/gunshot.ogg' lethal_projectile_sound = 'sound/weapons/gun/pistol/shot.ogg'
stun_projectile_sound = 'sound/weapons/gunshot.ogg' stun_projectile_sound = 'sound/weapons/gun/pistol/shot.ogg'
icon_state = "syndie_off" icon_state = "syndie_off"
base_icon_state = "syndie" base_icon_state = "syndie"
faction = list(ROLE_SYNDICATE) faction = list(ROLE_SYNDICATE)
@@ -714,8 +714,8 @@
shot_delay = 3 shot_delay = 3
stun_projectile = /obj/item/projectile/bullet/p50/penetrator/shuttle stun_projectile = /obj/item/projectile/bullet/p50/penetrator/shuttle
lethal_projectile = /obj/item/projectile/bullet/p50/penetrator/shuttle lethal_projectile = /obj/item/projectile/bullet/p50/penetrator/shuttle
lethal_projectile_sound = 'sound/weapons/gunshot_smg.ogg' lethal_projectile_sound = 'sound/weapons/gun/smg/shot.ogg'
stun_projectile_sound = 'sound/weapons/gunshot_smg.ogg' stun_projectile_sound = 'sound/weapons/gun/smg/shot.ogg'
armor = list("melee" = 50, "bullet" = 30, "laser" = 30, "energy" = 30, "bomb" = 80, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90) armor = list("melee" = 50, "bullet" = 30, "laser" = 30, "energy" = 30, "bomb" = 80, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90)
/obj/machinery/porta_turret/syndicate/shuttle/target(atom/movable/target) /obj/machinery/porta_turret/syndicate/shuttle/target(atom/movable/target)

View File

@@ -210,7 +210,7 @@
//Base ballistic weapon type //Base ballistic weapon type
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic /obj/item/mecha_parts/mecha_equipment/weapon/ballistic
name = "general ballistic weapon" name = "general ballistic weapon"
fire_sound = 'sound/weapons/gunshot.ogg' fire_sound = 'sound/weapons/gun/smg/shot.ogg'
var/projectiles var/projectiles
var/projectiles_cache //ammo to be loaded in, if possible. var/projectiles_cache //ammo to be loaded in, if possible.
var/projectiles_cache_max var/projectiles_cache_max
@@ -290,7 +290,7 @@
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/silenced /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/silenced
name = "\improper S.H.H. \"Quietus\" Carbine" name = "\improper S.H.H. \"Quietus\" Carbine"
desc = "A weapon for combat exosuits. A mime invention, field tests have shown that targets cannot even scream before going down." desc = "A weapon for combat exosuits. A mime invention, field tests have shown that targets cannot even scream before going down."
fire_sound = 'sound/weapons/gunshot_silenced.ogg' fire_sound = 'sound/weapons/gun/general/heavy_shot_suppressed.ogg'
icon_state = "mecha_mime" icon_state = "mecha_mime"
equip_cooldown = 30 equip_cooldown = 30
projectile = /obj/item/projectile/bullet/mime projectile = /obj/item/projectile/bullet/mime
@@ -333,7 +333,7 @@
desc = "A weapon for combat exosuits. Launches light explosive missiles." desc = "A weapon for combat exosuits. Launches light explosive missiles."
icon_state = "mecha_missilerack" icon_state = "mecha_missilerack"
projectile = /obj/item/projectile/bullet/a84mm_he projectile = /obj/item/projectile/bullet/a84mm_he
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/rocket_launch.ogg'
projectiles = 8 projectiles = 8
projectiles_cache = 0 projectiles_cache = 0
projectiles_cache_max = 0 projectiles_cache_max = 0
@@ -347,7 +347,7 @@
desc = "A weapon for combat exosuits. Launches low-explosive breaching missiles designed to explode only when striking a sturdy target." desc = "A weapon for combat exosuits. Launches low-explosive breaching missiles designed to explode only when striking a sturdy target."
icon_state = "mecha_missilerack_six" icon_state = "mecha_missilerack_six"
projectile = /obj/item/projectile/bullet/a84mm_br projectile = /obj/item/projectile/bullet/a84mm_br
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/rocket_launch.ogg'
projectiles = 6 projectiles = 6
projectiles_cache = 0 projectiles_cache = 0
projectiles_cache_max = 0 projectiles_cache_max = 0
@@ -383,7 +383,7 @@
desc = "A weapon for combat exosuits. Launches primed flashbangs." desc = "A weapon for combat exosuits. Launches primed flashbangs."
icon_state = "mecha_grenadelnchr" icon_state = "mecha_grenadelnchr"
projectile = /obj/item/grenade/flashbang projectile = /obj/item/grenade/flashbang
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/grenade_launch.ogg'
projectiles = 6 projectiles = 6
projectiles_cache = 6 projectiles_cache = 6
projectiles_cache_max = 24 projectiles_cache_max = 24

View File

@@ -23,7 +23,7 @@
/obj/item/latexballon/proc/burst() /obj/item/latexballon/proc/burst()
if (!air_contents || icon_state != "latexballon_blow") if (!air_contents || icon_state != "latexballon_blow")
return return
playsound(src, 'sound/weapons/gunshot.ogg', 100, TRUE) playsound(src, 'sound/weapons/gun/pistol/shot.ogg', 100, TRUE)
icon_state = "latexballon_bursted" icon_state = "latexballon_bursted"
item_state = "lgloves" item_state = "lgloves"
if(isliving(loc)) if(isliving(loc))

View File

@@ -312,7 +312,7 @@
item_state = "speargun" item_state = "speargun"
w_class = WEIGHT_CLASS_BULKY w_class = WEIGHT_CLASS_BULKY
force = 10 force = 10
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/grenade_launch.ogg'
gasPerThrow = 0 gasPerThrow = 0
checktank = FALSE checktank = FALSE
range_multiplier = 3 range_multiplier = 3

View File

@@ -20,7 +20,7 @@ GLOBAL_LIST_INIT(rod_recipes, list ( \
materials = list(/datum/material/iron=1000) materials = list(/datum/material/iron=1000)
max_amount = 50 max_amount = 50
attack_verb = list("hit", "bludgeoned", "whacked") attack_verb = list("hit", "bludgeoned", "whacked")
hitsound = 'sound/weapons/grenadelaunch.ogg' hitsound = 'sound/weapons/gun/general/grenade_launch.ogg'
novariants = TRUE novariants = TRUE
/obj/item/stack/rods/suicide_act(mob/living/carbon/user) /obj/item/stack/rods/suicide_act(mob/living/carbon/user)

View File

@@ -228,9 +228,9 @@
src.add_fingerprint(user) src.add_fingerprint(user)
if (src.bullets < 1) if (src.bullets < 1)
user.show_message("<span class='warning'>*click*</span>", MSG_AUDIBLE) user.show_message("<span class='warning'>*click*</span>", MSG_AUDIBLE)
playsound(src, 'sound/weapons/gun_dry_fire.ogg', 30, TRUE) playsound(src, 'sound/weapons/gun/revolver/dry_fire.ogg', 30, TRUE)
return return
playsound(user, 'sound/weapons/gunshot.ogg', 100, TRUE) playsound(user, 'sound/weapons/gun/revolver/shot.ogg', 100, TRUE)
src.bullets-- src.bullets--
user.visible_message("<span class='danger'>[user] fires [src] at [target]!</span>", \ user.visible_message("<span class='danger'>[user] fires [src] at [target]!</span>", \
"<span class='danger'>You fire [src] at [target]!</span>", \ "<span class='danger'>You fire [src] at [target]!</span>", \

View File

@@ -155,7 +155,7 @@
P.starting = targets_from P.starting = targets_from
P.firer = user P.firer = user
P.original = target P.original = target
playsound(src, 'sound/weapons/gunshot_smg.ogg', 75, TRUE) playsound(src, 'sound/weapons/gun/smg/shot.ogg', 75, TRUE)
P.xo = target.x - targets_from.x P.xo = target.x - targets_from.x
P.yo = target.y - targets_from.y P.yo = target.y - targets_from.y
P.Angle = calculated_projectile_vars[1] + rand(-9, 9) P.Angle = calculated_projectile_vars[1] + rand(-9, 9)

View File

@@ -192,7 +192,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
icon_state = "morgue4" // Cloneable icon_state = "morgue4" // Cloneable
if(mob_occupant.stat == DEAD && beeper) if(mob_occupant.stat == DEAD && beeper)
if(world.time > next_beep) if(world.time > next_beep)
playsound(src, 'sound/weapons/smg_empty_alarm.ogg', 50, FALSE) //Clone them you blind fucks playsound(src, 'sound/weapons/gun/general/empty_alarm.ogg', 50, FALSE) //Clone them you blind fucks
next_beep = world.time + beep_cooldown next_beep = world.time + beep_cooldown
break break

View File

@@ -150,16 +150,8 @@
soundin = pick('sound/effects/can_open1.ogg', 'sound/effects/can_open2.ogg', 'sound/effects/can_open3.ogg') soundin = pick('sound/effects/can_open1.ogg', 'sound/effects/can_open2.ogg', 'sound/effects/can_open3.ogg')
if("bullet_miss") if("bullet_miss")
soundin = pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg') soundin = pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg')
if("gun_insert_empty_magazine")
soundin = pick('sound/weapons/gun_magazine_insert_empty_1.ogg', 'sound/weapons/gun_magazine_insert_empty_2.ogg', 'sound/weapons/gun_magazine_insert_empty_3.ogg', 'sound/weapons/gun_magazine_insert_empty_4.ogg')
if("gun_insert_full_magazine")
soundin = pick('sound/weapons/gun_magazine_insert_full_1.ogg', 'sound/weapons/gun_magazine_insert_full_2.ogg', 'sound/weapons/gun_magazine_insert_full_3.ogg', 'sound/weapons/gun_magazine_insert_full_4.ogg', 'sound/weapons/gun_magazine_insert_full_5.ogg')
if("gun_remove_empty_magazine")
soundin = pick('sound/weapons/gun_magazine_remove_empty_1.ogg', 'sound/weapons/gun_magazine_remove_empty_2.ogg', 'sound/weapons/gun_magazine_remove_empty_3.ogg', 'sound/weapons/gun_magazine_remove_empty_4.ogg')
if("gun_slide_lock")
soundin = pick('sound/weapons/gun_slide_lock_1.ogg', 'sound/weapons/gun_slide_lock_2.ogg', 'sound/weapons/gun_slide_lock_3.ogg', 'sound/weapons/gun_slide_lock_4.ogg', 'sound/weapons/gun_slide_lock_5.ogg')
if("revolver_spin") if("revolver_spin")
soundin = pick('sound/weapons/revolverspin1.ogg', 'sound/weapons/revolverspin2.ogg', 'sound/weapons/revolverspin3.ogg') soundin = pick('sound/weapons/gun/revolver/spin1.ogg', 'sound/weapons/gun/revolver/spin2.ogg', 'sound/weapons/gun/revolver/spin3.ogg')
if("law") if("law")
soundin = pick('sound/voice/beepsky/god.ogg', 'sound/voice/beepsky/iamthelaw.ogg', 'sound/voice/beepsky/secureday.ogg', 'sound/voice/beepsky/radio.ogg', 'sound/voice/beepsky/insult.ogg', 'sound/voice/beepsky/creep.ogg') soundin = pick('sound/voice/beepsky/god.ogg', 'sound/voice/beepsky/iamthelaw.ogg', 'sound/voice/beepsky/secureday.ogg', 'sound/voice/beepsky/radio.ogg', 'sound/voice/beepsky/insult.ogg', 'sound/voice/beepsky/creep.ogg')
if("honkbot_e") if("honkbot_e")

View File

@@ -27,7 +27,7 @@
var/requires_activation //add to air processing after initialize? var/requires_activation //add to air processing after initialize?
var/changing_turf = FALSE var/changing_turf = FALSE
var/bullet_bounce_sound = 'sound/weapons/bulletremove.ogg' //sound played when a shell casing is ejected ontop of the turf. var/bullet_bounce_sound = 'sound/weapons/gun/general/mag_bullet_remove.ogg' //sound played when a shell casing is ejected ontop of the turf.
var/bullet_sizzle = FALSE //used by ammo_casing/bounce_away() to determine if the shell casing should make a sizzle sound when it's ejected over the turf var/bullet_sizzle = FALSE //used by ammo_casing/bounce_away() to determine if the shell casing should make a sizzle sound when it's ejected over the turf
//IE if the turf is supposed to be water, set TRUE. //IE if the turf is supposed to be water, set TRUE.

View File

@@ -628,7 +628,7 @@
qdel(G) qdel(G)
O.equip(M) O.equip(M)
to_chat(M, "<span class='notice'>Ammunition reloaded!</span>") to_chat(M, "<span class='notice'>Ammunition reloaded!</span>")
playsound(get_turf(M), 'sound/weapons/shotgunpump.ogg', 50, TRUE, -1) playsound(get_turf(M), 'sound/weapons/gun/shotgun/rack.ogg', 50, TRUE, -1)
qdel(src) qdel(src)
break break

View File

@@ -18,7 +18,7 @@
melee_damage_upper = 3 melee_damage_upper = 3
attacktext = "claws" attacktext = "claws"
attack_sound = 'sound/weapons/bladeslice.ogg' attack_sound = 'sound/weapons/bladeslice.ogg'
projectilesound = 'sound/weapons/gunshot.ogg' projectilesound = 'sound/weapons/gun/pistol/shot.ogg'
projectiletype = /obj/item/projectile/hivebotbullet projectiletype = /obj/item/projectile/hivebotbullet
faction = list("hivebot") faction = list("hivebot")
check_friendly_fire = 1 check_friendly_fire = 1

View File

@@ -47,7 +47,7 @@
retreat_distance = 3 retreat_distance = 3
minimum_distance = 5 minimum_distance = 5
casingtype = /obj/item/ammo_casing/c45 casingtype = /obj/item/ammo_casing/c45
projectilesound = 'sound/weapons/gunshot.ogg' projectilesound = 'sound/weapons/gun/pistol/shot_alt.ogg'
loot = list(/obj/item/gun/ballistic/automatic/pistol/m1911, loot = list(/obj/item/gun/ballistic/automatic/pistol/m1911,
/obj/effect/mob_spawn/human/corpse/nanotrasensoldier) /obj/effect/mob_spawn/human/corpse/nanotrasensoldier)
@@ -57,6 +57,6 @@
icon_living = "nanotrasenrangedsmg" icon_living = "nanotrasenrangedsmg"
rapid = 3 rapid = 3
casingtype = /obj/item/ammo_casing/c46x30mm casingtype = /obj/item/ammo_casing/c46x30mm
projectilesound = 'sound/weapons/gunshot_smg.ogg' projectilesound = 'sound/weapons/gun/smg/shot.ogg'
loot = list(/obj/item/gun/ballistic/automatic/wt550, loot = list(/obj/item/gun/ballistic/automatic/wt550,
/obj/effect/mob_spawn/human/corpse/nanotrasensoldier) /obj/effect/mob_spawn/human/corpse/nanotrasensoldier)

View File

@@ -33,7 +33,7 @@
/mob/living/simple_animal/hostile/netherworld/migo/Initialize() /mob/living/simple_animal/hostile/netherworld/migo/Initialize()
. = ..() . = ..()
migo_sounds = list('sound/items/bubblewrap.ogg', 'sound/items/change_jaws.ogg', 'sound/items/crowbar.ogg', 'sound/items/drink.ogg', 'sound/items/deconstruct.ogg', 'sound/items/carhorn.ogg', 'sound/items/change_drill.ogg', 'sound/items/dodgeball.ogg', 'sound/items/eatfood.ogg', 'sound/items/megaphone.ogg', 'sound/items/screwdriver.ogg', 'sound/items/weeoo1.ogg', 'sound/items/wirecutter.ogg', 'sound/items/welder.ogg', 'sound/items/zip.ogg', 'sound/items/rped.ogg', 'sound/items/ratchet.ogg', 'sound/items/polaroid1.ogg', 'sound/items/pshoom.ogg', 'sound/items/airhorn.ogg', 'sound/items/geiger/high1.ogg', 'sound/items/geiger/high2.ogg', 'sound/voice/beepsky/creep.ogg', 'sound/voice/beepsky/iamthelaw.ogg', 'sound/voice/ed209_20sec.ogg', 'sound/voice/hiss3.ogg', 'sound/voice/hiss6.ogg', 'sound/voice/medbot/patchedup.ogg', 'sound/voice/medbot/feelbetter.ogg', 'sound/voice/human/manlaugh1.ogg', 'sound/voice/human/womanlaugh.ogg', 'sound/weapons/sear.ogg', 'sound/ambience/antag/clockcultalr.ogg', 'sound/ambience/antag/ling_aler.ogg', 'sound/ambience/antag/tatoralert.ogg', 'sound/ambience/antag/monkey.ogg', 'sound/mecha/nominal.ogg', 'sound/mecha/weapdestr.ogg', 'sound/mecha/critdestr.ogg', 'sound/mecha/imag_enh.ogg', 'sound/effects/adminhelp.ogg', 'sound/effects/alert.ogg', 'sound/effects/attackblob.ogg', 'sound/effects/bamf.ogg', 'sound/effects/blobattack.ogg', 'sound/effects/break_stone.ogg', 'sound/effects/bubbles.ogg', 'sound/effects/bubbles2.ogg', 'sound/effects/clang.ogg', 'sound/effects/clockcult_gateway_disrupted.ogg', 'sound/effects/clownstep2.ogg', 'sound/effects/curse1.ogg', 'sound/effects/dimensional_rend.ogg', 'sound/effects/doorcreaky.ogg', 'sound/effects/empulse.ogg', 'sound/effects/explosion_distant.ogg', 'sound/effects/explosionfar.ogg', 'sound/effects/explosion1.ogg', 'sound/effects/grillehit.ogg', 'sound/effects/genetics.ogg', 'sound/effects/heart_beat.ogg', 'sound/effects/hyperspace_begin.ogg', 'sound/effects/hyperspace_end.ogg', 'sound/effects/his_grace_awaken.ogg', 'sound/effects/pai_boot.ogg', 'sound/effects/phasein.ogg', 'sound/effects/picaxe1.ogg', 'sound/effects/ratvar_reveal.ogg', 'sound/effects/sparks1.ogg', 'sound/effects/smoke.ogg', 'sound/effects/splat.ogg', 'sound/effects/snap.ogg', 'sound/effects/tendril_destroyed.ogg', 'sound/effects/supermatter.ogg', 'sound/misc/desceration-01.ogg', 'sound/misc/desceration-02.ogg', 'sound/misc/desceration-03.ogg', 'sound/misc/bloblarm.ogg', 'sound/misc/airraid.ogg', 'sound/misc/bang.ogg','sound/misc/highlander.ogg', 'sound/misc/interference.ogg', 'sound/misc/notice1.ogg', 'sound/misc/notice2.ogg', 'sound/misc/sadtrombone.ogg', 'sound/misc/slip.ogg', 'sound/misc/splort.ogg', 'sound/weapons/armbomb.ogg', 'sound/weapons/beam_sniper.ogg', 'sound/weapons/chainsawhit.ogg', 'sound/weapons/emitter.ogg', 'sound/weapons/emitter2.ogg', 'sound/weapons/blade1.ogg', 'sound/weapons/bladeslice.ogg', 'sound/weapons/blastcannon.ogg', 'sound/weapons/blaster.ogg', 'sound/weapons/bulletflyby3.ogg', 'sound/weapons/circsawhit.ogg', 'sound/weapons/cqchit2.ogg', 'sound/weapons/drill.ogg', 'sound/weapons/genhit1.ogg', 'sound/weapons/gunshot_silenced.ogg', 'sound/weapons/gunshot.ogg', 'sound/weapons/handcuffs.ogg', 'sound/weapons/homerun.ogg', 'sound/weapons/kenetic_accel.ogg', 'sound/machines/clockcult/steam_whoosh.ogg', 'sound/machines/fryer/deep_fryer_emerge.ogg', 'sound/machines/airlock.ogg', 'sound/machines/airlock_alien_prying.ogg', 'sound/machines/airlockclose.ogg', 'sound/machines/airlockforced.ogg', 'sound/machines/airlockopen.ogg', 'sound/machines/alarm.ogg', 'sound/machines/blender.ogg', 'sound/machines/boltsdown.ogg', 'sound/machines/boltsup.ogg', 'sound/machines/buzz-sigh.ogg', 'sound/machines/buzz-two.ogg', 'sound/machines/chime.ogg', 'sound/machines/cryo_warning.ogg', 'sound/machines/defib_charge.ogg', 'sound/machines/defib_failed.ogg', 'sound/machines/defib_ready.ogg', 'sound/machines/defib_zap.ogg', 'sound/machines/deniedbeep.ogg', 'sound/machines/ding.ogg', 'sound/machines/disposalflush.ogg', 'sound/machines/door_close.ogg', 'sound/machines/door_open.ogg', 'sound/machines/engine_alert1.ogg', 'sound/machines/engine_alert2.ogg', 'sound/machines/hiss.ogg', 'sound/machines/honkbot_evil_laugh.ogg', 'sound/machines/juicer.ogg', 'sound/machines/ping.ogg', 'sound/ambience/signal.ogg', 'sound/machines/synth_no.ogg', 'sound/machines/synth_yes.ogg', 'sound/machines/terminal_alert.ogg', 'sound/machines/triple_beep.ogg', 'sound/machines/twobeep.ogg', 'sound/machines/ventcrawl.ogg', 'sound/machines/warning-buzzer.ogg', 'sound/ai/outbreak5.ogg', 'sound/ai/outbreak7.ogg', 'sound/ai/poweroff.ogg', 'sound/ai/radiation.ogg', 'sound/ai/shuttlecalled.ogg', 'sound/ai/shuttledock.ogg', 'sound/ai/shuttlerecalled.ogg', 'sound/ai/aimalf.ogg') //hahahaha fuck you code divers migo_sounds = list('sound/items/bubblewrap.ogg', 'sound/items/change_jaws.ogg', 'sound/items/crowbar.ogg', 'sound/items/drink.ogg', 'sound/items/deconstruct.ogg', 'sound/items/carhorn.ogg', 'sound/items/change_drill.ogg', 'sound/items/dodgeball.ogg', 'sound/items/eatfood.ogg', 'sound/items/megaphone.ogg', 'sound/items/screwdriver.ogg', 'sound/items/weeoo1.ogg', 'sound/items/wirecutter.ogg', 'sound/items/welder.ogg', 'sound/items/zip.ogg', 'sound/items/rped.ogg', 'sound/items/ratchet.ogg', 'sound/items/polaroid1.ogg', 'sound/items/pshoom.ogg', 'sound/items/airhorn.ogg', 'sound/items/geiger/high1.ogg', 'sound/items/geiger/high2.ogg', 'sound/voice/beepsky/creep.ogg', 'sound/voice/beepsky/iamthelaw.ogg', 'sound/voice/ed209_20sec.ogg', 'sound/voice/hiss3.ogg', 'sound/voice/hiss6.ogg', 'sound/voice/medbot/patchedup.ogg', 'sound/voice/medbot/feelbetter.ogg', 'sound/voice/human/manlaugh1.ogg', 'sound/voice/human/womanlaugh.ogg', 'sound/weapons/sear.ogg', 'sound/ambience/antag/clockcultalr.ogg', 'sound/ambience/antag/ling_aler.ogg', 'sound/ambience/antag/tatoralert.ogg', 'sound/ambience/antag/monkey.ogg', 'sound/mecha/nominal.ogg', 'sound/mecha/weapdestr.ogg', 'sound/mecha/critdestr.ogg', 'sound/mecha/imag_enh.ogg', 'sound/effects/adminhelp.ogg', 'sound/effects/alert.ogg', 'sound/effects/attackblob.ogg', 'sound/effects/bamf.ogg', 'sound/effects/blobattack.ogg', 'sound/effects/break_stone.ogg', 'sound/effects/bubbles.ogg', 'sound/effects/bubbles2.ogg', 'sound/effects/clang.ogg', 'sound/effects/clockcult_gateway_disrupted.ogg', 'sound/effects/clownstep2.ogg', 'sound/effects/curse1.ogg', 'sound/effects/dimensional_rend.ogg', 'sound/effects/doorcreaky.ogg', 'sound/effects/empulse.ogg', 'sound/effects/explosion_distant.ogg', 'sound/effects/explosionfar.ogg', 'sound/effects/explosion1.ogg', 'sound/effects/grillehit.ogg', 'sound/effects/genetics.ogg', 'sound/effects/heart_beat.ogg', 'sound/effects/hyperspace_begin.ogg', 'sound/effects/hyperspace_end.ogg', 'sound/effects/his_grace_awaken.ogg', 'sound/effects/pai_boot.ogg', 'sound/effects/phasein.ogg', 'sound/effects/picaxe1.ogg', 'sound/effects/ratvar_reveal.ogg', 'sound/effects/sparks1.ogg', 'sound/effects/smoke.ogg', 'sound/effects/splat.ogg', 'sound/effects/snap.ogg', 'sound/effects/tendril_destroyed.ogg', 'sound/effects/supermatter.ogg', 'sound/misc/desceration-01.ogg', 'sound/misc/desceration-02.ogg', 'sound/misc/desceration-03.ogg', 'sound/misc/bloblarm.ogg', 'sound/misc/airraid.ogg', 'sound/misc/bang.ogg','sound/misc/highlander.ogg', 'sound/misc/interference.ogg', 'sound/misc/notice1.ogg', 'sound/misc/notice2.ogg', 'sound/misc/sadtrombone.ogg', 'sound/misc/slip.ogg', 'sound/misc/splort.ogg', 'sound/weapons/armbomb.ogg', 'sound/weapons/beam_sniper.ogg', 'sound/weapons/chainsawhit.ogg', 'sound/weapons/emitter.ogg', 'sound/weapons/emitter2.ogg', 'sound/weapons/blade1.ogg', 'sound/weapons/bladeslice.ogg', 'sound/weapons/blastcannon.ogg', 'sound/weapons/blaster.ogg', 'sound/weapons/bulletflyby3.ogg', 'sound/weapons/circsawhit.ogg', 'sound/weapons/cqchit2.ogg', 'sound/weapons/drill.ogg', 'sound/weapons/genhit1.ogg', 'sound/weapons/gun/pistol/shot_suppressed.ogg', 'sound/weapons/gun/pistol/shot.ogg', 'sound/weapons/handcuffs.ogg', 'sound/weapons/homerun.ogg', 'sound/weapons/kenetic_accel.ogg', 'sound/machines/clockcult/steam_whoosh.ogg', 'sound/machines/fryer/deep_fryer_emerge.ogg', 'sound/machines/airlock.ogg', 'sound/machines/airlock_alien_prying.ogg', 'sound/machines/airlockclose.ogg', 'sound/machines/airlockforced.ogg', 'sound/machines/airlockopen.ogg', 'sound/machines/alarm.ogg', 'sound/machines/blender.ogg', 'sound/machines/boltsdown.ogg', 'sound/machines/boltsup.ogg', 'sound/machines/buzz-sigh.ogg', 'sound/machines/buzz-two.ogg', 'sound/machines/chime.ogg', 'sound/machines/cryo_warning.ogg', 'sound/machines/defib_charge.ogg', 'sound/machines/defib_failed.ogg', 'sound/machines/defib_ready.ogg', 'sound/machines/defib_zap.ogg', 'sound/machines/deniedbeep.ogg', 'sound/machines/ding.ogg', 'sound/machines/disposalflush.ogg', 'sound/machines/door_close.ogg', 'sound/machines/door_open.ogg', 'sound/machines/engine_alert1.ogg', 'sound/machines/engine_alert2.ogg', 'sound/machines/hiss.ogg', 'sound/machines/honkbot_evil_laugh.ogg', 'sound/machines/juicer.ogg', 'sound/machines/ping.ogg', 'sound/ambience/signal.ogg', 'sound/machines/synth_no.ogg', 'sound/machines/synth_yes.ogg', 'sound/machines/terminal_alert.ogg', 'sound/machines/triple_beep.ogg', 'sound/machines/twobeep.ogg', 'sound/machines/ventcrawl.ogg', 'sound/machines/warning-buzzer.ogg', 'sound/ai/outbreak5.ogg', 'sound/ai/outbreak7.ogg', 'sound/ai/poweroff.ogg', 'sound/ai/radiation.ogg', 'sound/ai/shuttlecalled.ogg', 'sound/ai/shuttledock.ogg', 'sound/ai/shuttlerecalled.ogg', 'sound/ai/aimalf.ogg') //hahahaha fuck you code divers
/mob/living/simple_animal/hostile/netherworld/migo/say(message, bubble_type, var/list/spans = list(), sanitize = TRUE, datum/language/language = null, ignore_spam = FALSE, forced = null) /mob/living/simple_animal/hostile/netherworld/migo/say(message, bubble_type, var/list/spans = list(), sanitize = TRUE, datum/language/language = null, ignore_spam = FALSE, forced = null)
..() ..()

View File

@@ -71,6 +71,6 @@
retreat_distance = 3 retreat_distance = 3
minimum_distance = 5 minimum_distance = 5
casingtype = /obj/item/ammo_casing/c46x30mm casingtype = /obj/item/ammo_casing/c46x30mm
projectilesound = 'sound/weapons/gunshot_smg.ogg' projectilesound = 'sound/weapons/gun/smg/shot.ogg'
loot = list(/obj/item/gun/ballistic/automatic/wt550, loot = list(/obj/item/gun/ballistic/automatic/wt550,
/obj/effect/mob_spawn/human/corpse/nanotrasensoldier) /obj/effect/mob_spawn/human/corpse/nanotrasensoldier)

View File

@@ -40,7 +40,7 @@
ranged = 1 ranged = 1
retreat_distance = 5 retreat_distance = 5
minimum_distance = 5 minimum_distance = 5
projectilesound = 'sound/weapons/gunshot.ogg' projectilesound = 'sound/weapons/gun/revolver/shot.ogg'
casingtype = /obj/item/ammo_casing/n762 casingtype = /obj/item/ammo_casing/n762

View File

@@ -175,13 +175,13 @@
icon_state = "syndicate_pistol" icon_state = "syndicate_pistol"
icon_living = "syndicate_pistol" icon_living = "syndicate_pistol"
casingtype = /obj/item/ammo_casing/c10mm casingtype = /obj/item/ammo_casing/c10mm
projectilesound = 'sound/weapons/gunshot.ogg' projectilesound = 'sound/weapons/gun/pistol/shot.ogg'
loot = list(/obj/effect/gibspawner/human) loot = list(/obj/effect/gibspawner/human)
dodging = FALSE dodging = FALSE
rapid_melee = 1 rapid_melee = 1
/mob/living/simple_animal/hostile/syndicate/ranged/infiltrator //shuttle loan event /mob/living/simple_animal/hostile/syndicate/ranged/infiltrator //shuttle loan event
projectilesound = 'sound/weapons/gunshot_silenced.ogg' projectilesound = 'sound/weapons/gun/smg/shot_suppressed.ogg'
loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier) loot = list(/obj/effect/mob_spawn/human/corpse/syndicatesoldier)
/mob/living/simple_animal/hostile/syndicate/ranged/space /mob/living/simple_animal/hostile/syndicate/ranged/space
@@ -211,7 +211,7 @@
icon_state = "syndicate_smg" icon_state = "syndicate_smg"
icon_living = "syndicate_smg" icon_living = "syndicate_smg"
casingtype = /obj/item/ammo_casing/c45 casingtype = /obj/item/ammo_casing/c45
projectilesound = 'sound/weapons/gunshot_smg.ogg' projectilesound = 'sound/weapons/gun/smg/shot.ogg'
/mob/living/simple_animal/hostile/syndicate/ranged/smg/pilot //caravan ambush ruin /mob/living/simple_animal/hostile/syndicate/ranged/smg/pilot //caravan ambush ruin
name = "Syndicate Salvage Pilot" name = "Syndicate Salvage Pilot"

View File

@@ -85,4 +85,4 @@
if(still_warm && T && T.bullet_sizzle) if(still_warm && T && T.bullet_sizzle)
addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, src, 'sound/items/welder.ogg', 20, 1), bounce_delay) //If the turf is made of water and the shell casing is still hot, make a sizzling sound when it's ejected. addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, src, 'sound/items/welder.ogg', 20, 1), bounce_delay) //If the turf is made of water and the shell casing is still hot, make a sizzling sound when it's ejected.
else if(T && T.bullet_bounce_sound) else if(T && T.bullet_bounce_sound)
addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, src, T.bullet_bounce_sound, 60, 1), bounce_delay) //Soft / non-solid turfs that shouldn't make a sound when a shell casing is ejected over them. addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, src, T.bullet_bounce_sound, 20, 1), bounce_delay) //Soft / non-solid turfs that shouldn't make a sound when a shell casing is ejected over them.

View File

@@ -1,6 +1,6 @@
/obj/item/ammo_casing/energy/c3dbullet /obj/item/ammo_casing/energy/c3dbullet
projectile_type = /obj/item/projectile/bullet/c3d projectile_type = /obj/item/projectile/bullet/c3d
select_name = "spraydown" select_name = "spraydown"
fire_sound = 'sound/weapons/gunshot_smg.ogg' fire_sound = 'sound/weapons/gun/smg/shot.ogg'
e_cost = 20 e_cost = 20
firing_effect_type = /obj/effect/temp_visual/dir_setting/firing_effect firing_effect_type = /obj/effect/temp_visual/dir_setting/firing_effect

View File

@@ -9,7 +9,7 @@
e_cost = 100 e_cost = 100
/obj/item/ammo_casing/energy/electrode/gun /obj/item/ammo_casing/energy/electrode/gun
fire_sound = 'sound/weapons/gunshot.ogg' fire_sound = 'sound/weapons/gun/pistol/shot.ogg'
e_cost = 100 e_cost = 100
/obj/item/ammo_casing/energy/electrode/old /obj/item/ammo_casing/energy/electrode/old

View File

@@ -107,7 +107,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(src, 'sound/weapons/bulletinsert.ogg', 60, TRUE) playsound(src, 'sound/weapons/gun/general/mag_bullet_insert.ogg', 60, TRUE)
A.update_icon() A.update_icon()
update_icon() update_icon()
return num_loaded return num_loaded
@@ -118,7 +118,7 @@
A.forceMove(drop_location()) A.forceMove(drop_location())
if(!user.is_holding(src) || !user.put_in_hands(A)) //incase they're using TK if(!user.is_holding(src) || !user.put_in_hands(A)) //incase they're using TK
A.bounce_away(FALSE, NONE) A.bounce_away(FALSE, NONE)
playsound(src, 'sound/weapons/bulletinsert.ogg', 60, TRUE) playsound(src, 'sound/weapons/gun/general/mag_bullet_insert.ogg', 60, TRUE)
to_chat(user, "<span class='notice'>You remove a round from [src]!</span>") to_chat(user, "<span class='notice'>You remove a round from [src]!</span>")
update_icon() update_icon()

View File

@@ -18,14 +18,14 @@
item_flags = NEEDS_PERMIT item_flags = NEEDS_PERMIT
attack_verb = list("struck", "hit", "bashed") attack_verb = list("struck", "hit", "bashed")
var/fire_sound = "gunshot" var/fire_sound = 'sound/weapons/gun/pistol/shot.ogg'
var/vary_fire_sound = TRUE var/vary_fire_sound = TRUE
var/fire_sound_volume = 50 var/fire_sound_volume = 50
var/dry_fire_sound = 'sound/weapons/gun_dry_fire.ogg' var/dry_fire_sound = 'sound/weapons/gun/general/dry_fire.ogg'
var/suppressed = null //whether or not a message is displayed when fired var/suppressed = null //whether or not a message is displayed when fired
var/can_suppress = FALSE var/can_suppress = FALSE
var/suppressed_sound = 'sound/weapons/gunshot_silenced.ogg' var/suppressed_sound = 'sound/weapons/gun/general/heavy_shot_suppressed.ogg'
var/suppressed_volume = 10 var/suppressed_volume = 60
var/can_unsuppress = TRUE var/can_unsuppress = TRUE
var/recoil = 0 //boom boom shake the room var/recoil = 0 //boom boom shake the room
var/clumsy_check = TRUE var/clumsy_check = TRUE
@@ -156,7 +156,7 @@
shake_camera(user, recoil + 1, recoil) shake_camera(user, recoil + 1, recoil)
if(suppressed) if(suppressed)
playsound(user, suppressed_sound, suppressed_volume, vary_fire_sound) playsound(user, suppressed_sound, suppressed_volume, vary_fire_sound, ignore_walls = FALSE)
else else
playsound(user, fire_sound, fire_sound_volume, vary_fire_sound) playsound(user, fire_sound, fire_sound_volume, vary_fire_sound)
if(message) if(message)
@@ -226,7 +226,7 @@
loop_counter++ loop_counter++
addtimer(CALLBACK(G, /obj/item/gun.proc/process_fire, target, user, TRUE, params, null, bonus_spread), loop_counter) addtimer(CALLBACK(G, /obj/item/gun.proc/process_fire, target, user, TRUE, params, null, bonus_spread), loop_counter)
process_fire(target, user, TRUE, params, null, bonus_spread) return process_fire(target, user, TRUE, params, null, bonus_spread)

View File

@@ -7,39 +7,39 @@
w_class = WEIGHT_CLASS_NORMAL w_class = WEIGHT_CLASS_NORMAL
///sound when inserting magazine ///sound when inserting magazine
var/load_sound = "gun_insert_full_magazine" var/load_sound = 'sound/weapons/gun/general/magazine_insert_full.ogg'
///sound when inserting an empty magazine ///sound when inserting an empty magazine
var/load_empty_sound = "gun_insert_empty_magazine" var/load_empty_sound = 'sound/weapons/gun/general/magazine_insert_empty.ogg'
///volume of loading sound ///volume of loading sound
var/load_sound_volume = 40 var/load_sound_volume = 40
///whether loading sound should vary ///whether loading sound should vary
var/load_sound_vary = TRUE var/load_sound_vary = TRUE
///sound of racking ///sound of racking
var/rack_sound = "gun_slide_lock" var/rack_sound = 'sound/weapons/gun/general/bolt_rack.ogg'
///volume of racking ///volume of racking
var/rack_sound_volume = 60 var/rack_sound_volume = 60
///whether racking sound should vary ///whether racking sound should vary
var/rack_sound_vary = TRUE var/rack_sound_vary = TRUE
///sound of when the bolt is locked back manually ///sound of when the bolt is locked back manually
var/lock_back_sound = "sound/weapons/pistollock.ogg" var/lock_back_sound = 'sound/weapons/gun/general/slide_lock_1.ogg'
///volume of lock back ///volume of lock back
var/lock_back_sound_volume = 60 var/lock_back_sound_volume = 60
///whether lock back varies ///whether lock back varies
var/lock_back_sound_vary = TRUE var/lock_back_sound_vary = TRUE
///Sound of ejecting a magazine ///Sound of ejecting a magazine
var/eject_sound = "gun_remove_empty_magazine" var/eject_sound = 'sound/weapons/gun/general/magazine_remove_full.ogg'
///sound of ejecting an empty magazine ///sound of ejecting an empty magazine
var/eject_empty_sound = "gun_remove_full_magazine" var/eject_empty_sound = 'sound/weapons/gun/general/magazine_remove_empty.ogg'
///volume of ejecting a magazine ///volume of ejecting a magazine
var/eject_sound_volume = 40 var/eject_sound_volume = 40
///whether eject sound should vary ///whether eject sound should vary
var/eject_sound_vary = TRUE var/eject_sound_vary = TRUE
///sound of dropping the bolt or releasing a slide ///sound of dropping the bolt or releasing a slide
var/bolt_drop_sound = 'sound/weapons/gun_chamber_round.ogg' var/bolt_drop_sound = 'sound/weapons/gun/general/bolt_drop.ogg'
///volume of bolt drop/slide release ///volume of bolt drop/slide release
var/bolt_drop_sound_volume = 60 var/bolt_drop_sound_volume = 60
///empty alarm sound (if enabled) ///empty alarm sound (if enabled)
var/empty_alarm_sound = 'sound/weapons/smg_empty_alarm.ogg' var/empty_alarm_sound = 'sound/weapons/gun/general/empty_alarm.ogg'
///empty alarm volume sound ///empty alarm volume sound
var/empty_alarm_volume = 70 var/empty_alarm_volume = 70
///whether empty alarm sound varies ///whether empty alarm sound varies
@@ -59,8 +59,6 @@
var/empty_alarm = FALSE var/empty_alarm = FALSE
///Whether the gun supports multiple special mag types ///Whether the gun supports multiple special mag types
var/special_mags = FALSE var/special_mags = FALSE
///Whether the gun is currently alarmed to prevent it from spamming sounds
var/alarmed = FALSE
///The bolt type of the gun, affects quite a bit of functionality, see combat.dm defines for bolt types: BOLT_TYPE_STANDARD; BOLT_TYPE_LOCKING; BOLT_TYPE_OPEN; BOLT_TYPE_NO_BOLT ///The bolt type of the gun, affects quite a bit of functionality, see combat.dm defines for bolt types: BOLT_TYPE_STANDARD; BOLT_TYPE_LOCKING; BOLT_TYPE_OPEN; BOLT_TYPE_NO_BOLT
var/bolt_type = BOLT_TYPE_STANDARD var/bolt_type = BOLT_TYPE_STANDARD
///Used for locking bolt and open bolt guns. Set a bit differently for the two but prevents firing when true for both. ///Used for locking bolt and open bolt guns. Set a bit differently for the two but prevents firing when true for both.
@@ -320,20 +318,19 @@
update_icon() update_icon()
///postfire empty checks for bolt locking and sound alarms ///postfire empty checks for bolt locking and sound alarms
/obj/item/gun/ballistic/proc/postfire_empty_checks() /obj/item/gun/ballistic/proc/postfire_empty_checks(last_shot_succeeded)
if (!chambered && !get_ammo()) if (!chambered && !get_ammo())
if (!alarmed && empty_alarm) if (empty_alarm && last_shot_succeeded)
playsound(src, empty_alarm_sound, empty_alarm_volume, empty_alarm_vary) playsound(src, empty_alarm_sound, empty_alarm_volume, empty_alarm_vary)
alarmed = TRUE
update_icon() update_icon()
if (bolt_type == BOLT_TYPE_LOCKING) if (last_shot_succeeded && bolt_type == BOLT_TYPE_LOCKING)
bolt_locked = TRUE bolt_locked = TRUE
update_icon() update_icon()
/obj/item/gun/ballistic/afterattack() /obj/item/gun/ballistic/afterattack()
prefire_empty_checks() prefire_empty_checks()
. = ..() //The gun actually firing . = ..() //The gun actually firing
postfire_empty_checks() postfire_empty_checks(.)
//ATTACK HAND IGNORING PARENT RETURN VALUE //ATTACK HAND IGNORING PARENT RETURN VALUE
/obj/item/gun/ballistic/attack_hand(mob/user) /obj/item/gun/ballistic/attack_hand(mob/user)

View File

@@ -6,10 +6,11 @@
fire_delay = 2 fire_delay = 2
actions_types = list(/datum/action/item_action/toggle_firemode) actions_types = list(/datum/action/item_action/toggle_firemode)
semi_auto = TRUE semi_auto = TRUE
fire_sound = "sound/weapons/smgshot.ogg" fire_sound = 'sound/weapons/gun/smg/shot.ogg'
fire_sound_volume = 80 fire_sound_volume = 90
vary_fire_sound = FALSE vary_fire_sound = FALSE
rack_sound = "sound/weapons/smgrack.ogg" rack_sound = 'sound/weapons/gun/smg/smgrack.ogg'
suppressed_sound = 'sound/weapons/gun/smg/shot_suppressed.ogg'
/obj/item/gun/ballistic/automatic/proto /obj/item/gun/ballistic/automatic/proto
name = "\improper Nanotrasen Saber SMG" name = "\improper Nanotrasen Saber SMG"
@@ -102,7 +103,7 @@
burst_size = 2 burst_size = 2
bolt_type = BOLT_TYPE_OPEN bolt_type = BOLT_TYPE_OPEN
mag_display = TRUE mag_display = TRUE
rack_sound = "sound/weapons/pistollock.ogg" rack_sound = 'sound/weapons/gun/pistol/slide_lock.ogg'
/obj/item/gun/ballistic/automatic/m90 /obj/item/gun/ballistic/automatic/m90
name = "\improper M-90gl Carbine" name = "\improper M-90gl Carbine"
@@ -110,7 +111,6 @@
icon_state = "m90" icon_state = "m90"
item_state = "m90" item_state = "m90"
mag_type = /obj/item/ammo_box/magazine/m556 mag_type = /obj/item/ammo_box/magazine/m556
fire_sound = 'sound/weapons/gunshot_smg.ogg'
can_suppress = FALSE can_suppress = FALSE
var/obj/item/gun/ballistic/revolver/grenadelauncher/underbarrel var/obj/item/gun/ballistic/revolver/grenadelauncher/underbarrel
burst_size = 3 burst_size = 3
@@ -118,6 +118,7 @@
pin = /obj/item/firing_pin/implant/pindicate pin = /obj/item/firing_pin/implant/pindicate
mag_display = TRUE mag_display = TRUE
empty_indicator = TRUE empty_indicator = TRUE
fire_sound = 'sound/weapons/gun/smg/shot_alt.ogg'
/obj/item/gun/ballistic/automatic/m90/Initialize() /obj/item/gun/ballistic/automatic/m90/Initialize()
. = ..() . = ..()
@@ -185,7 +186,6 @@
w_class = WEIGHT_CLASS_HUGE w_class = WEIGHT_CLASS_HUGE
slot_flags = 0 slot_flags = 0
mag_type = /obj/item/ammo_box/magazine/tommygunm45 mag_type = /obj/item/ammo_box/magazine/tommygunm45
fire_sound = 'sound/weapons/gunshot_smg.ogg'
can_suppress = FALSE can_suppress = FALSE
burst_size = 4 burst_size = 4
fire_delay = 1 fire_delay = 1
@@ -198,7 +198,6 @@
item_state = "arg" item_state = "arg"
slot_flags = 0 slot_flags = 0
mag_type = /obj/item/ammo_box/magazine/m556 mag_type = /obj/item/ammo_box/magazine/m556
fire_sound = 'sound/weapons/gunshot_smg.ogg'
can_suppress = FALSE can_suppress = FALSE
burst_size = 3 burst_size = 3
fire_delay = 1 fire_delay = 1
@@ -225,8 +224,9 @@
mag_display = TRUE mag_display = TRUE
mag_display_ammo = TRUE mag_display_ammo = TRUE
tac_reloads = FALSE tac_reloads = FALSE
fire_sound = 'sound/weapons/rifleshot.ogg' fire_sound = 'sound/weapons/gun/l6/shot.ogg'
rack_sound = 'sound/weapons/chunkyrack.ogg' rack_sound = 'sound/weapons/gun/l6/l6_rack.ogg'
suppressed_sound = 'sound/weapons/gun/general/heavy_shot_suppressed.ogg'
/obj/item/gun/ballistic/automatic/l6_saw/unrestricted /obj/item/gun/ballistic/automatic/l6_saw/unrestricted
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
@@ -242,10 +242,7 @@
/obj/item/gun/ballistic/automatic/l6_saw/AltClick(mob/user) /obj/item/gun/ballistic/automatic/l6_saw/AltClick(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/gun/l6/l6_door.ogg', 60, TRUE)
playsound(user, 'sound/weapons/sawopen.ogg', 60, TRUE)
else
playsound(user, 'sound/weapons/sawopen.ogg', 60, TRUE)
update_icon() update_icon()
@@ -287,11 +284,12 @@
desc = "A long ranged weapon that does significant damage. No, you can't quickscope." desc = "A long ranged weapon that does significant damage. No, you can't quickscope."
icon_state = "sniper" icon_state = "sniper"
item_state = "sniper" item_state = "sniper"
fire_sound = "sound/weapons/sniper_shot.ogg" fire_sound = 'sound/weapons/gun/sniper/shot.ogg'
fire_sound_volume = 90 fire_sound_volume = 90
vary_fire_sound = FALSE vary_fire_sound = FALSE
load_sound = "sound/weapons/sniper_mag_insert.ogg" load_sound = 'sound/weapons/gun/sniper/mag_insert.ogg'
rack_sound = "sound/weapons/sniper_rack.ogg" rack_sound = 'sound/weapons/gun/sniper/rack.ogg'
suppressed_sound = 'sound/weapons/gun/general/heavy_shot_suppressed.ogg'
recoil = 2 recoil = 2
weapon_weight = WEAPON_HEAVY weapon_weight = WEAPON_HEAVY
mag_type = /obj/item/ammo_box/magazine/sniper_rounds mag_type = /obj/item/ammo_box/magazine/sniper_rounds

View File

@@ -7,7 +7,7 @@
icon_state = "dshotgun_sawn" icon_state = "dshotgun_sawn"
item_state = "gun" item_state = "gun"
mag_type = /obj/item/ammo_box/magazine/internal/grenadelauncher mag_type = /obj/item/ammo_box/magazine/internal/grenadelauncher
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/grenade_launch.ogg'
w_class = WEIGHT_CLASS_NORMAL w_class = WEIGHT_CLASS_NORMAL
pin = /obj/item/firing_pin/implant/pindicate pin = /obj/item/firing_pin/implant/pindicate
bolt_type = BOLT_TYPE_NO_BOLT bolt_type = BOLT_TYPE_NO_BOLT
@@ -35,7 +35,7 @@
name = "gyrojet pistol" name = "gyrojet pistol"
desc = "A prototype pistol designed to fire self propelled rockets." desc = "A prototype pistol designed to fire self propelled rockets."
icon_state = "gyropistol" icon_state = "gyropistol"
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/gun/general/grenade_launch.ogg'
mag_type = /obj/item/ammo_box/magazine/m75 mag_type = /obj/item/ammo_box/magazine/m75
burst_size = 1 burst_size = 1
fire_delay = 0 fire_delay = 0
@@ -48,7 +48,7 @@
icon_state = "rocketlauncher" icon_state = "rocketlauncher"
item_state = "rocketlauncher" item_state = "rocketlauncher"
mag_type = /obj/item/ammo_box/magazine/internal/rocketlauncher mag_type = /obj/item/ammo_box/magazine/internal/rocketlauncher
fire_sound = 'sound/weapons/rocketlaunch.ogg' fire_sound = 'sound/weapons/gun/general/rocket_launch.ogg'
w_class = WEIGHT_CLASS_BULKY w_class = WEIGHT_CLASS_BULKY
can_suppress = FALSE can_suppress = FALSE
pin = /obj/item/firing_pin/implant/pindicate pin = /obj/item/firing_pin/implant/pindicate

View File

@@ -9,11 +9,18 @@
fire_delay = 0 fire_delay = 0
actions_types = list() actions_types = list()
bolt_type = BOLT_TYPE_LOCKING bolt_type = BOLT_TYPE_LOCKING
fire_sound = "sound/weapons/gunshot.ogg" fire_sound = 'sound/weapons/gun/pistol/shot.ogg'
dry_fire_sound = 'sound/weapons/gun/pistol/dry_fire.ogg'
suppressed_sound = 'sound/weapons/gun/pistol/shot_suppressed.ogg'
load_sound = 'sound/weapons/gun/pistol/mag_insert.ogg'
load_empty_sound = 'sound/weapons/gun/pistol/mag_insert.ogg'
eject_sound = 'sound/weapons/gun/pistol/mag_release.ogg'
eject_empty_sound = 'sound/weapons/gun/pistol/mag_release.ogg'
vary_fire_sound = FALSE vary_fire_sound = FALSE
fire_sound_volume = 80 rack_sound = 'sound/weapons/gun/pistol/rack_small.ogg'
rack_sound = "sound/weapons/pistolrack.ogg" lock_back_sound = 'sound/weapons/gun/pistol/lock_small.ogg'
bolt_drop_sound = "sound/weapons/pistolslidedrop.ogg" bolt_drop_sound = 'sound/weapons/gun/pistol/drop_small.ogg'
fire_sound_volume = 90
bolt_wording = "slide" bolt_wording = "slide"
/obj/item/gun/ballistic/automatic/pistol/no_mag /obj/item/gun/ballistic/automatic/pistol/no_mag
@@ -31,7 +38,11 @@
w_class = WEIGHT_CLASS_NORMAL w_class = WEIGHT_CLASS_NORMAL
mag_type = /obj/item/ammo_box/magazine/m45 mag_type = /obj/item/ammo_box/magazine/m45
can_suppress = FALSE can_suppress = FALSE
fire_sound = 'sound/weapons/gun/pistol/shot_alt.ogg'
rack_sound = 'sound/weapons/gun/pistol/rack.ogg'
lock_back_sound = 'sound/weapons/gun/pistol/slide_lock.ogg'
bolt_drop_sound = 'sound/weapons/gun/pistol/slide_drop.ogg'
/obj/item/gun/ballistic/automatic/pistol/m1911/no_mag /obj/item/gun/ballistic/automatic/pistol/m1911/no_mag
spawnwithmagazine = FALSE spawnwithmagazine = FALSE
@@ -43,7 +54,11 @@
mag_type = /obj/item/ammo_box/magazine/m50 mag_type = /obj/item/ammo_box/magazine/m50
can_suppress = FALSE can_suppress = FALSE
mag_display = TRUE mag_display = TRUE
fire_sound = 'sound/weapons/gun/rifle/shot.ogg'
rack_sound = 'sound/weapons/gun/pistol/rack.ogg'
lock_back_sound = 'sound/weapons/gun/pistol/slide_lock.ogg'
bolt_drop_sound = 'sound/weapons/gun/pistol/slide_drop.ogg'
/obj/item/gun/ballistic/automatic/pistol/deagle/gold /obj/item/gun/ballistic/automatic/pistol/deagle/gold
desc = "A gold plated Desert Eagle folded over a million times by superior martian gunsmiths. Uses .50 AE ammo." desc = "A gold plated Desert Eagle folded over a million times by superior martian gunsmiths. Uses .50 AE ammo."
icon_state = "deagleg" icon_state = "deagleg"

View File

@@ -3,12 +3,12 @@
desc = "A suspicious revolver. Uses .357 ammo." //usually used by syndicates desc = "A suspicious revolver. Uses .357 ammo." //usually used by syndicates
icon_state = "revolver" icon_state = "revolver"
mag_type = /obj/item/ammo_box/magazine/internal/cylinder mag_type = /obj/item/ammo_box/magazine/internal/cylinder
fire_sound = 'sound/weapons/revolver357shot.ogg' fire_sound = 'sound/weapons/gun/revolver/shot_alt.ogg'
load_sound = 'sound/weapons/revolverload.ogg' load_sound = 'sound/weapons/gun/revolver/load_bullet.ogg'
eject_sound = 'sound/weapons/revolverempty.ogg' eject_sound = 'sound/weapons/gun/revolver/empty.ogg'
vary_fire_sound = FALSE vary_fire_sound = FALSE
fire_sound_volume = 90 fire_sound_volume = 90
dry_fire_sound = 'sound/weapons/revolverdry.ogg' dry_fire_sound = 'sound/weapons/gun/revolver/dry_fire.ogg'
casing_ejector = FALSE casing_ejector = FALSE
internal_magazine = TRUE internal_magazine = TRUE
bolt_type = BOLT_TYPE_NO_BOLT bolt_type = BOLT_TYPE_NO_BOLT
@@ -75,7 +75,7 @@
/obj/item/gun/ballistic/revolver/detective /obj/item/gun/ballistic/revolver/detective
name = "\improper Colt Detective Special" name = "\improper Colt Detective Special"
desc = "A classic, if not outdated, law enforcement firearm. Uses .38-special rounds." desc = "A classic, if not outdated, law enforcement firearm. Uses .38-special rounds."
fire_sound = 'sound/weapons/revolver38shot.ogg' fire_sound = 'sound/weapons/gun/revolver/shot.ogg'
icon_state = "detective" icon_state = "detective"
mag_type = /obj/item/ammo_box/magazine/internal/cylinder/rev38 mag_type = /obj/item/ammo_box/magazine/internal/cylinder/rev38
obj_flags = UNIQUE_RENAME obj_flags = UNIQUE_RENAME
@@ -114,7 +114,7 @@
to_chat(user, "<span class='warning'>You can't modify it!</span>") to_chat(user, "<span class='warning'>You can't modify it!</span>")
return TRUE return TRUE
magazine.caliber = "357" magazine.caliber = "357"
fire_sound = 'sound/weapons/revolver357shot.ogg' fire_sound = 'sound/weapons/gun/revolver/shot_alt.ogg'
desc = "The barrel and chamber assembly seems to have been modified." desc = "The barrel and chamber assembly seems to have been modified."
to_chat(user, "<span class='notice'>You reinforce the barrel of [src]. Now it will fire .357 rounds.</span>") to_chat(user, "<span class='notice'>You reinforce the barrel of [src]. Now it will fire .357 rounds.</span>")
else else
@@ -128,7 +128,7 @@
to_chat(user, "<span class='warning'>You can't modify it!</span>") to_chat(user, "<span class='warning'>You can't modify it!</span>")
return return
magazine.caliber = "38" magazine.caliber = "38"
fire_sound = 'sound/weapons/revolver38shot.ogg' fire_sound = 'sound/weapons/gun/revolver/shot.ogg'
desc = initial(desc) desc = initial(desc)
to_chat(user, "<span class='notice'>You remove the modifications on [src]. Now it will fire .38 rounds.</span>") to_chat(user, "<span class='notice'>You remove the modifications on [src]. Now it will fire .38 rounds.</span>")
return TRUE return TRUE

View File

@@ -8,11 +8,11 @@
bolt_type = BOLT_TYPE_STANDARD bolt_type = BOLT_TYPE_STANDARD
semi_auto = FALSE semi_auto = FALSE
internal_magazine = TRUE internal_magazine = TRUE
fire_sound = "sound/weapons/rifleshot.ogg" fire_sound = 'sound/weapons/gun/rifle/shot.ogg'
fire_sound_volume = 80 fire_sound_volume = 90
vary_fire_sound = FALSE vary_fire_sound = FALSE
rack_sound = "sound/weapons/mosinboltout.ogg" rack_sound = 'sound/weapons/gun/rifle/bolt_out.ogg'
bolt_drop_sound = "sound/weapons/mosinboltin.ogg" bolt_drop_sound = 'sound/weapons/gun/rifle/bolt_in.ogg'
tac_reloads = FALSE tac_reloads = FALSE
obj/item/gun/ballistic/rifle/update_icon() obj/item/gun/ballistic/rifle/update_icon()

View File

@@ -7,11 +7,11 @@
item_state = "shotgun" item_state = "shotgun"
inhand_x_dimension = 64 inhand_x_dimension = 64
inhand_y_dimension = 64 inhand_y_dimension = 64
fire_sound = "sound/weapons/shotgunshot.ogg" fire_sound = 'sound/weapons/gun/shotgun/shot.ogg'
vary_fire_sound = FALSE vary_fire_sound = FALSE
fire_sound_volume = 90 fire_sound_volume = 90
rack_sound = "sound/weapons/shotgunpump.ogg" rack_sound = "sound/weapons/gun/shotgun/rack.ogg"
load_sound = "sound/weapons/shotguninsert.ogg" load_sound = "sound/weapons/gun/shotgun/insert_shell.ogg"
w_class = WEIGHT_CLASS_BULKY w_class = WEIGHT_CLASS_BULKY
force = 10 force = 10
flags_1 = CONDUCT_1 flags_1 = CONDUCT_1
@@ -127,6 +127,7 @@
burst_size = 1 burst_size = 1
fire_delay = 0 fire_delay = 0
pin = /obj/item/firing_pin/implant/pindicate pin = /obj/item/firing_pin/implant/pindicate
fire_sound = 'sound/weapons/gun/shotgun/shot_alt.ogg'
actions_types = list() actions_types = list()
mag_display = TRUE mag_display = TRUE
empty_indicator = TRUE empty_indicator = TRUE
@@ -264,4 +265,4 @@
if(toggled) if(toggled)
hook.afterattack(target, user, flag, params) hook.afterattack(target, user, flag, params)
else else
return ..() return ..()

View File

@@ -4,7 +4,7 @@
icon_state = "saber" icon_state = "saber"
item_state = "gun" item_state = "gun"
mag_type = /obj/item/ammo_box/magazine/toy/smg mag_type = /obj/item/ammo_box/magazine/toy/smg
fire_sound = 'sound/weapons/gunshot_smg.ogg' fire_sound = 'sound/items/syringeproj.ogg'
force = 0 force = 0
throwforce = 0 throwforce = 0
burst_size = 3 burst_size = 3
@@ -27,7 +27,7 @@
bolt_type = BOLT_TYPE_LOCKING bolt_type = BOLT_TYPE_LOCKING
w_class = WEIGHT_CLASS_SMALL w_class = WEIGHT_CLASS_SMALL
mag_type = /obj/item/ammo_box/magazine/toy/pistol mag_type = /obj/item/ammo_box/magazine/toy/pistol
fire_sound = 'sound/weapons/gunshot.ogg' fire_sound = 'sound/items/syringeproj.ogg'
burst_size = 1 burst_size = 1
fire_delay = 0 fire_delay = 0
actions_types = list() actions_types = list()
@@ -51,6 +51,7 @@
force = 0 force = 0
throwforce = 0 throwforce = 0
mag_type = /obj/item/ammo_box/magazine/internal/shot/toy mag_type = /obj/item/ammo_box/magazine/internal/shot/toy
fire_sound = 'sound/items/syringeproj.ogg'
clumsy_check = FALSE clumsy_check = FALSE
item_flags = NONE item_flags = NONE
casing_ejector = FALSE casing_ejector = FALSE
@@ -102,6 +103,7 @@
/obj/item/gun/ballistic/automatic/l6_saw/toy //This is the syndicate variant with syndicate firing pin and riot darts. /obj/item/gun/ballistic/automatic/l6_saw/toy //This is the syndicate variant with syndicate firing pin and riot darts.
name = "donksoft LMG" name = "donksoft LMG"
desc = "A heavily modified toy light machine gun, designated 'L6 SAW'. Ages 8 and up." desc = "A heavily modified toy light machine gun, designated 'L6 SAW'. Ages 8 and up."
fire_sound = 'sound/items/syringeproj.ogg'
can_suppress = FALSE can_suppress = FALSE
item_flags = NONE item_flags = NONE
mag_type = /obj/item/ammo_box/magazine/toy/m762/riot mag_type = /obj/item/ammo_box/magazine/toy/m762/riot

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More