Fixed a light issue in Security Maintenance (thanks to muskets).

Update to Bridge.
More updates to CentCom. Added doors (elevator sprite) to CentCom but they are inaccessible at the moment.
Added new weapon sounds: blaster, laser, pulse, wave, emitter, and one for the marauder canon. Not all are used at the moment.
New sounds for the energy sword on and off states (they're unlicensed, I promise).
Added/changed alien attack sounds.
Added some more messages for aliens attacking mechs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@700 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
noisomehollow@lycos.com
2010-12-25 08:30:40 +00:00
parent f0fa7bb9bd
commit 7d0ad606e4
30 changed files with 5461 additions and 5381 deletions

View File

@@ -120,6 +120,12 @@ Airlock index -> wire color are { 9, 4, 6, 7, 5, 8, 1, 2, 3 }.
opacity = 0 opacity = 0
doortype = 7 doortype = 7
/obj/machinery/door/airlock/centcom
name = "Airlock"
icon = 'Doorele.dmi'
opacity = 0
doortype = 8
/* /*
About the new airlock wires panel: About the new airlock wires panel:
* An airlock wire dialog can be accessed by the normal way or by using wirecutters or a multitool on the door while the wire-panel is open. This would show the following wires, which you can either wirecut/mend or send a multitool pulse through. There are 9 wires. * An airlock wire dialog can be accessed by the normal way or by using wirecutters or a multitool on the door while the wire-panel is open. This would show the following wires, which you can either wirecut/mend or send a multitool pulse through. There are 9 wires.

View File

@@ -27,7 +27,7 @@ However people seem to like it for some reason.
/obj/machinery/the_singularitygen/attackby(obj/item/W, mob/user) /obj/machinery/the_singularitygen/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/wrench)) if(istype(W, /obj/item/weapon/wrench))
anchored = !anchored anchored = !anchored
playsound(src.loc, 'Ratchet.ogg', 75, 1) playsound(src.loc, 'Ratchet.ogg', 75, 1)
if(anchored) if(anchored)
user.visible_message("[user.name] secure [src.name] to the floor.", \ user.visible_message("[user.name] secure [src.name] to the floor.", \
@@ -86,7 +86,7 @@ However people seem to like it for some reason.
del(src) //TODO: some animation del(src) //TODO: some animation
return return
if(2.0 to 3.0) //no way if(2.0 to 3.0) //no way
return return
return return
/obj/machinery/the_singularity/process() /obj/machinery/the_singularity/process()
@@ -125,7 +125,7 @@ However people seem to like it for some reason.
move() move()
spawn(5) spawn(5)
move() move()
/obj/machinery/the_singularity /obj/machinery/the_singularity
@@ -136,7 +136,7 @@ However people seem to like it for some reason.
/turf/space, \ /turf/space, \
/obj/effects, \ /obj/effects, \
/obj/beam, /* not sure*/ \ /obj/beam, /* not sure*/ \
/obj/overlay /obj/overlay
) )
/obj/machinery/the_singularity/proc/is_eatable(atom/X) /obj/machinery/the_singularity/proc/is_eatable(atom/X)
@@ -151,7 +151,7 @@ However people seem to like it for some reason.
continue continue
if (!is_eatable(X)) if (!is_eatable(X))
continue continue
if(istype(X,/obj/machinery/field_generator)) if(istype(X,/obj/machinery/field_generator))
var/obj/machinery/field_generator/F = X var/obj/machinery/field_generator/F = X
if(F.active) if(F.active)
@@ -267,7 +267,7 @@ However people seem to like it for some reason.
) )
//looks like I need new function istypefromlist //looks like I need new function istypefromlist
/obj/machinery/the_singularity/proc/is_strippable(turf/simulated/X) /obj/machinery/the_singularity/proc/is_strippable(turf/simulated/X)
for(var/Type in unstrippable) for(var/Type in unstrippable)
if (istype(X,Type)) if (istype(X,Type))
return 0 return 0
@@ -626,7 +626,7 @@ However people seem to like it for some reason.
use_power(1000) use_power(1000)
var/obj/beam/a_laser/A = new /obj/beam/a_laser( src.loc ) var/obj/beam/a_laser/A = new /obj/beam/a_laser( src.loc )
A.icon_state = "u_laser" A.icon_state = "u_laser"
playsound(src.loc, 'Laser.ogg', 75, 1) playsound(src.loc, 'emitter.ogg', 75, 1)
if(prob(35)) if(prob(35))
var/datum/effects/system/spark_spread/s = new /datum/effects/system/spark_spread var/datum/effects/system/spark_spread/s = new /datum/effects/system/spark_spread
@@ -682,7 +682,7 @@ However people seem to like it for some reason.
else else
user << "\red [src] is welded to the floor!" user << "\red [src] is welded to the floor!"
return 1 return 1
else if(istype(W, /obj/item/weapon/weldingtool) && W:welding) else if(istype(W, /obj/item/weapon/weldingtool) && W:welding)
if (state == 0) if (state == 0)
user << "\red The emitter needs to be wrenched to the floor first." user << "\red The emitter needs to be wrenched to the floor first."
@@ -923,7 +923,7 @@ However people seem to like it for some reason.
S = list() S = list()
for(var/obj/machinery/the_singularity/myS in orange(12,src)) for(var/obj/machinery/the_singularity/myS in orange(12,src))
S += myS S += myS
for (var/ca_dir in cardinal) for (var/ca_dir in cardinal)
var/obj/machinery/power/collector_array/newCA = locate() in get_step(src,ca_dir) var/obj/machinery/power/collector_array/newCA = locate() in get_step(src,ca_dir)
if (isnull(newCA)) if (isnull(newCA))
@@ -1032,7 +1032,7 @@ However people seem to like it for some reason.
return 1 return 1
playsound(src.loc, 'Ratchet.ogg', 75, 1) playsound(src.loc, 'Ratchet.ogg', 75, 1)
src.anchored = !src.anchored src.anchored = !src.anchored
if(src.anchored == 1) if(src.anchored == 1)
user.visible_message("[user.name] secure [src.name] to the floor.", \ user.visible_message("[user.name] secure [src.name] to the floor.", \
"You secure the [src.name] to the floor.", \ "You secure the [src.name] to the floor.", \

View File

@@ -115,7 +115,7 @@
if (targloc == curloc) if (targloc == curloc)
return return
playsound(chassis, 'Laser.ogg', 50, 1) playsound(chassis, 'marauder.ogg', 50, 1)
var/obj/beam/a_laser/A = new /obj/beam/a_laser/pulse_laser(curloc) var/obj/beam/a_laser/A = new /obj/beam/a_laser/pulse_laser(curloc)
A.current = curloc A.current = curloc
A.yo = targloc.y - curloc.y A.yo = targloc.y - curloc.y

View File

@@ -213,9 +213,17 @@
/obj/mecha/attack_alien(mob/user as mob) /obj/mecha/attack_alien(mob/user as mob)
if(!prob(src.deflect_chance)) if(!prob(src.deflect_chance))
src.take_damage(15) src.take_damage(15)
//TODO: Add text playsound(src.loc, 'slash.ogg', 50, 1, -1)
user << "\red You slash at the armored suit!"
for (var/mob/V in viewers(src))
if(V.client && !(V.blinded))
V.show_message("The [user] slashes at [src.name]'s armor!", 1)
else else
user << "No effect" user << "\green Your claws had no effect!"
src.occupant_message("\blue The [user]'s claws are stopped by the armor.")
for (var/mob/V in viewers(src))
if(V.client && !(V.blinded))
V.show_message("The [user] rebounds off the [src.name] armor!", 1)
return return

View File

@@ -60,7 +60,7 @@ TELEPORT GUN
return return
var/obj/beam/a_laser/A = new /obj/beam/a_laser/pulse_laser(user.loc) var/obj/beam/a_laser/A = new /obj/beam/a_laser/pulse_laser(user.loc)
playsound(user, 'Laser.ogg', 50, 1) playsound(user, 'pulse.ogg', 50, 1)
A.current = curloc A.current = curloc
A.yo = targloc.y - curloc.y A.yo = targloc.y - curloc.y
A.xo = targloc.x - curloc.x A.xo = targloc.x - curloc.x
@@ -990,7 +990,7 @@ obj/item/weapon/gun/revolver/attackby(obj/item/weapon/ammo/a357/A as obj, mob/us
user << "\red *click* *click*"; user << "\red *click* *click*";
return return
playsound(user, 'Taser.ogg', 50, 1) playsound(user, 'laser3.ogg', 50, 1)
src.charges-- src.charges--
update_icon() update_icon()

View File

@@ -30,6 +30,7 @@ STUN BATON
else else
src.icon_state = "sword1" src.icon_state = "sword1"
src.w_class = 4 src.w_class = 4
playsound(user, 'saberon.ogg', 50, 1)
else else
user << "\blue [src] can now be concealed." user << "\blue [src] can now be concealed."
src.force = 3 src.force = 3
@@ -38,6 +39,7 @@ STUN BATON
else else
src.icon_state = "sword0" src.icon_state = "sword0"
src.w_class = 2 src.w_class = 2
playsound(user, 'saberoff.ogg', 50, 1)
src.add_fingerprint(user) src.add_fingerprint(user)
return return

View File

@@ -1444,7 +1444,7 @@
if (src.organs[def_zone]) if (src.organs[def_zone])
affecting = src.organs[def_zone] affecting = src.organs[def_zone]
if ((istype(affecting, /datum/organ/external) && prob(95))) if ((istype(affecting, /datum/organ/external) && prob(95)))
playsound(src.loc, "punch", 25, 1, -1) playsound(src.loc, 'slice.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1) O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1)
if (def_zone == "head") if (def_zone == "head")
@@ -1469,7 +1469,7 @@
if (prob(50)) if (prob(50))
if (src.weakened < 5) if (src.weakened < 5)
src.weakened = 5 src.weakened = 5
playsound(src.loc, 'thudswoosh.ogg', 50, 1, -1) playsound(src.loc, 'slashmiss.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has tackled down []!</B>", M, src), 1, "\red You hear someone fall.", 2) O.show_message(text("\red <B>[] has tackled down []!</B>", M, src), 1, "\red You hear someone fall.", 2)
else else
@@ -1504,6 +1504,7 @@
src.updatehealth() src.updatehealth()
else else
playsound(src.loc, 'slashmiss.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[M] has lunged at [src] but missed!</B>"), 1) O.show_message(text("\red <B>[M] has lunged at [src] but missed!</B>"), 1)
return return
@@ -1514,15 +1515,18 @@
src.w_uniform.add_fingerprint(M) src.w_uniform.add_fingerprint(M)
var/randn = rand(1, 100) var/randn = rand(1, 100)
if (randn <= 25) if (randn <= 25)
playsound(src.loc, 'pierce.ogg', 25, 1, -1)
src.weakened = 2 src.weakened = 2
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has tackled over []!</B>", M, src), 1) O.show_message(text("\red <B>[] has tackled over []!</B>", M, src), 1)
else else
if (randn <= 60) if (randn <= 60)
playsound(src.loc, 'slash.ogg', 25, 1, -1)
src.drop_item() src.drop_item()
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has knocked the item out of []'s hand!</B>", M, src), 1) O.show_message(text("\red <B>[] has knocked the item out of []'s hand!</B>", M, src), 1)
else else
playsound(src.loc, 'slashmiss.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has tried to knock the item out of []'s hand!</B>", M, src), 1) O.show_message(text("\red <B>[] has tried to knock the item out of []'s hand!</B>", M, src), 1)
return return

View File

@@ -292,7 +292,7 @@
if ((O.client && !( O.blinded ))) if ((O.client && !( O.blinded )))
O.show_message(text("\red <B>[] has slashed [src.name]!</B>", M), 1) O.show_message(text("\red <B>[] has slashed [src.name]!</B>", M), 1)
playsound(src.loc, "punch", 25, 1, -1) playsound(src.loc, 'slice.ogg', 25, 1, -1)
var/damage = rand(5, 10) var/damage = rand(5, 10)
if (prob(40)) if (prob(40))
damage = rand(20, 40) damage = rand(20, 40)
@@ -306,7 +306,7 @@
src.bruteloss += damage src.bruteloss += damage
src.updatehealth() src.updatehealth()
else else
playsound(src.loc, 'punchmiss.ogg', 25, 1, -1) playsound(src.loc, 'slashmiss.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
if ((O.client && !( O.blinded ))) if ((O.client && !( O.blinded )))
O.show_message(text("\red <B>[] has attempted to lunge at [src.name]!</B>", M), 1) O.show_message(text("\red <B>[] has attempted to lunge at [src.name]!</B>", M), 1)
@@ -329,15 +329,14 @@
O.show_message(text("\red [] has grabbed [src.name] passively!", M), 1) O.show_message(text("\red [] has grabbed [src.name] passively!", M), 1)
else else
if (!( src.paralysis )) if (!( src.paralysis ))
if (prob(25)) playsound(src.loc, 'pierce.ogg', 25, 1, -1)
if(prob(25))
src.paralysis = 2 src.paralysis = 2
playsound(src.loc, 'thudswoosh.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
if ((O.client && !( O.blinded ))) if ((O.client && !( O.blinded )))
O.show_message(text("\red <B>[] has tackled down [src.name]!</B>", M), 1) O.show_message(text("\red <B>[] has tackled down [src.name]!</B>", M), 1)
else else
drop_item() drop_item()
playsound(src.loc, 'thudswoosh.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
if ((O.client && !( O.blinded ))) if ((O.client && !( O.blinded )))
O.show_message(text("\red <B>[] has disarmed [src.name]!</B>", M), 1) O.show_message(text("\red <B>[] has disarmed [src.name]!</B>", M), 1)

View File

@@ -227,7 +227,7 @@
src.weakened = max(src.weakened,4) src.weakened = max(src.weakened,4)
src.stunned = max(src.stunned,4) src.stunned = max(src.stunned,4)
*/ */
playsound(src.loc, "punch", 25, 1, -1) playsound(src.loc, 'slash.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1) O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1)
if(prob(8)) if(prob(8))
@@ -235,7 +235,7 @@
src.bruteloss += damage src.bruteloss += damage
src.updatehealth() src.updatehealth()
else else
playsound(src.loc, 'punchmiss.ogg', 25, 1, -1) playsound(src.loc, 'slashmiss.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] took a swipe at []!</B>", M, src), 1) O.show_message(text("\red <B>[] took a swipe at []!</B>", M, src), 1)
return return
@@ -247,11 +247,11 @@
src.stunned = 5 src.stunned = 5
step(src,get_dir(M,src)) step(src,get_dir(M,src))
spawn(5) step(src,get_dir(M,src)) spawn(5) step(src,get_dir(M,src))
playsound(src.loc, 'thudswoosh.ogg', 50, 1, -1) playsound(src.loc, 'slash.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has pushed back []!</B>", M, src), 1) O.show_message(text("\red <B>[] has pushed back []!</B>", M, src), 1)
else else
playsound(src.loc, 'punchmiss.ogg', 25, 1, -1) playsound(src.loc, 'slashmiss.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] attempted to push back []!</B>", M, src), 1) O.show_message(text("\red <B>[] attempted to push back []!</B>", M, src), 1)
return return

View File

@@ -493,7 +493,7 @@
src.stunned = max(src.stunned,4) src.stunned = max(src.stunned,4)
*/ */
playsound(src.loc, "punch", 25, 1, -1) playsound(src.loc, 'slash.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1) O.show_message(text("\red <B>[] has slashed at []!</B>", M, src), 1)
if(prob(8)) if(prob(8))
@@ -501,7 +501,7 @@
src.bruteloss += damage src.bruteloss += damage
src.updatehealth() src.updatehealth()
else else
playsound(src.loc, 'punchmiss.ogg', 25, 1, -1) playsound(src.loc, 'slashmiss.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] took a swipe at []!</B>", M, src), 1) O.show_message(text("\red <B>[] took a swipe at []!</B>", M, src), 1)
return return
@@ -513,11 +513,11 @@
src.stunned = 5 src.stunned = 5
step(src,get_dir(M,src)) step(src,get_dir(M,src))
spawn(5) step(src,get_dir(M,src)) spawn(5) step(src,get_dir(M,src))
playsound(src.loc, 'thudswoosh.ogg', 50, 1, -1) playsound(src.loc, 'slash.ogg', 50, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] has pushed back []!</B>", M, src), 1) O.show_message(text("\red <B>[] has pushed back []!</B>", M, src), 1)
else else
playsound(src.loc, 'punchmiss.ogg', 25, 1, -1) playsound(src.loc, 'slashmiss.ogg', 25, 1, -1)
for(var/mob/O in viewers(src, null)) for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>[] attempted to push back []!</B>", M, src), 1) O.show_message(text("\red <B>[] attempted to push back []!</B>", M, src), 1)
return return

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
sound/weapons/Laser2.ogg Normal file

Binary file not shown.

Binary file not shown.

BIN
sound/weapons/blaster.ogg Normal file

Binary file not shown.

BIN
sound/weapons/emitter.ogg Normal file

Binary file not shown.

BIN
sound/weapons/emitter2.ogg Normal file

Binary file not shown.

BIN
sound/weapons/laser3.ogg Normal file

Binary file not shown.

BIN
sound/weapons/marauder.ogg Normal file

Binary file not shown.

BIN
sound/weapons/pierce.ogg Normal file

Binary file not shown.

BIN
sound/weapons/pulse.ogg Normal file

Binary file not shown.

BIN
sound/weapons/pulse2.ogg Normal file

Binary file not shown.

BIN
sound/weapons/pulse3.ogg Normal file

Binary file not shown.

BIN
sound/weapons/saberoff.ogg Normal file

Binary file not shown.

BIN
sound/weapons/saberon.ogg Normal file

Binary file not shown.

BIN
sound/weapons/slash.ogg Normal file

Binary file not shown.

BIN
sound/weapons/slashmiss.ogg Normal file

Binary file not shown.

BIN
sound/weapons/slice.ogg Normal file

Binary file not shown.

BIN
sound/weapons/taser2.ogg Normal file

Binary file not shown.

BIN
sound/weapons/wave.ogg Normal file

Binary file not shown.