mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Committing BubbleWrap's cuff buff! r3000, wooooooo~
See the changelog for details. Also adding in some floors to make working on planet station easier. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3000 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -115,7 +115,25 @@
|
||||
now_pushing = 1
|
||||
if (ismob(AM))
|
||||
var/mob/tmob = AM
|
||||
if(tmob.a_intent == "help" && a_intent == "help" && tmob.canmove && canmove) // mutual brohugs all around!
|
||||
|
||||
//BubbleWrap - Should stop you pushing a restrained person out of the way
|
||||
|
||||
if(istype(tmob, /mob/living/carbon/human))
|
||||
|
||||
for(var/mob/M in range(tmob, 1))
|
||||
if( ((M.pulling == tmob && ( tmob.restrained() && !( M.restrained() ) && M.stat == 0)) || locate(/obj/item/weapon/grab, tmob.grabbed_by.len)) )
|
||||
if ( !(world.time % 5) )
|
||||
src << "\red [tmob] is restrained, you cannot push past"
|
||||
now_pushing = 0
|
||||
return
|
||||
if( tmob.pulling == M && ( M.restrained() && !( tmob.restrained() ) && tmob.stat == 0) )
|
||||
if ( !(world.time % 5) )
|
||||
src << "\red [tmob] is restraining [M], you cannot push past"
|
||||
now_pushing = 0
|
||||
return
|
||||
|
||||
//BubbleWrap: people in handcuffs are always switched around as if they were on 'help' intent to prevent a person being pulled from being seperated from their puller
|
||||
if((tmob.a_intent == "help" || tmob.restrained()) && (a_intent == "help" || src.restrained()) && tmob.canmove && canmove) // mutual brohugs all around!
|
||||
var/turf/oldloc = loc
|
||||
loc = tmob.loc
|
||||
tmob.loc = oldloc
|
||||
|
||||
@@ -119,14 +119,39 @@
|
||||
visible_message("\red <B>[M] has pushed [src]!</B>")
|
||||
return
|
||||
|
||||
var/talked = 0 // BubbleWrap
|
||||
|
||||
if(randn <= 60)
|
||||
drop_item()
|
||||
//BubbleWrap: Disarming breaks a pull
|
||||
if ( pulling )
|
||||
visible_message("\red <b>[M] has broken [src]'s grip on [pulling]!</B>")
|
||||
talked = 1
|
||||
pulling = null
|
||||
|
||||
//BubbleWrap: Disarming also breaks a grab - this will also stop someone being choked, won't it?
|
||||
var/obj/item/weapon/grab/lgrab = l_hand
|
||||
var/obj/item/weapon/grab/rgrab = r_hand
|
||||
if ( lgrab )
|
||||
if ( lgrab.affecting )
|
||||
visible_message("\red <b>[M] has broken [src]'s grip on [lgrab.affecting]!</B>")
|
||||
talked = 1
|
||||
spawn(1)
|
||||
del(lgrab)
|
||||
if ( rgrab )
|
||||
if ( rgrab.affecting )
|
||||
visible_message("\red <b>[M] has broken [src]'s grip on [rgrab.affecting]!</B>")
|
||||
talked = 1
|
||||
spawn(1)
|
||||
del(rgrab)
|
||||
//End BubbleWrap
|
||||
|
||||
if( !talked ) //BubbleWrap
|
||||
drop_item()
|
||||
visible_message("\red <B>[M] has disarmed [src]!</B>")
|
||||
playsound(loc, 'thudswoosh.ogg', 50, 1, -1)
|
||||
visible_message("\red <B>[M] has disarmed [src]!</B>")
|
||||
return
|
||||
|
||||
|
||||
playsound(loc, 'punchmiss.ogg', 25, 1, -1)
|
||||
visible_message("\red <B>[M] attempted to disarm [src]!</B>")
|
||||
return
|
||||
|
||||
|
||||
return
|
||||
+13
-2
@@ -59,6 +59,15 @@
|
||||
Stuff which is in development and not yet visible to players or just code related
|
||||
(ie. code improvements for expandability, etc.) should not be listed here. They
|
||||
should be listed in the changelog upon commit tho. Thanks. -->
|
||||
|
||||
<b><font color='blue'>28 January 2012</font><b>
|
||||
<ul>
|
||||
<li><b>BubbleWrap updated:</b>
|
||||
<ul>
|
||||
<li>Arresting buff!</li>
|
||||
<li>A person in handcuffs being pulled cannot be bumped out of the way, nor can the person pulling them. They can still push through a crowd (they get bumped back to behind the person being pulled, or pushed ahead depending on intent).</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<b><font color='blue'>27 January 2012</font><b>
|
||||
<ul>
|
||||
@@ -81,8 +90,10 @@ oxygen tanks, and breath masks.</li>
|
||||
<li>Lattice is now removed when you create plating or floor (credit Donkieyo).</li>
|
||||
<li>Monkeys now take damage while in crit (credit Nodrak).</li>
|
||||
<li>The warden now has his own jacket. (credit Shiftyeyesshady).</li>
|
||||
<li>Spectacular new dice that will display the proper side when rolled!! (credit TedJustice)</li>
|
||||
</ul>
|
||||
<li>Spectacular new dice that will display the proper side when rolled!! (credit TedJustice)</li>
|
||||
<li>Spectacular new dice that will display the proper side when rolled!! (credit TedJustice)</li>
|
||||
|
||||
<li>Borg RCDs can no longer take down R-walls. (headcoder orders)</li> </ul>
|
||||
</ul>
|
||||
|
||||
<b><font color='blue'>19 January 2012</font><b>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 317 KiB After Width: | Height: | Size: 312 KiB |
Reference in New Issue
Block a user