Porting tesla/electrocute code updates. (#12280)
* Porting tesla/electrocute code updates. * Why is the dominator being insta-deleted by zaps a good idea? * Yikes. * ah
This commit is contained in:
@@ -24,10 +24,12 @@
|
||||
buckled_mob.stop_sound_channel(CHANNEL_BICYCLE)
|
||||
. =..()
|
||||
|
||||
/obj/vehicle/ridden/bicycle/tesla_act() // :::^^^)))
|
||||
/obj/vehicle/ridden/bicycle/zap_act(zap_str, zap_flags, shocked_targets) // :::^^^)))
|
||||
//This didn't work for 3 years because none ever tested it I hate life
|
||||
name = "fried bicycle"
|
||||
desc = "Well spent."
|
||||
color = rgb(63, 23, 4)
|
||||
can_buckle = FALSE
|
||||
. = ..()
|
||||
for(var/m in buckled_mobs)
|
||||
unbuckle_mob(m,1)
|
||||
|
||||
@@ -77,3 +77,7 @@
|
||||
if(!force && occupant_amount() >= max_occupants)
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/obj/vehicle/ridden/zap_act(zap_str, zap_flags, shocked_targets)
|
||||
zap_buckle_check(zap_str)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user