Files
Bubberstation/code/modules/vehicles/bicycle.dm
Militaires 0e67b7ad0c new speedwagon sprites: car now runs people down easier (#24961)
* new sprite and """hitbox"""

* new overlay glass cover

* fixes offsets for new speeduwagon sprites

* rogue white line and steering wheel

* MISSING pxl
2017-03-16 20:15:51 +13:00

31 lines
929 B
Plaintext

/obj/vehicle/bicycle
name = "bicycle"
desc = "Keep away from electricity."
icon_state = "bicycle"
var/easter_egg_chance = 1
var/static/list/bike_music = list('sound/misc/bike1.mid',
'sound/misc/bike2.mid',
'sound/misc/bike3.mid')
/obj/vehicle/bicycle/New()
..()
riding_datum = new/datum/riding/bicycle
/obj/vehicle/bicycle/buckle_mob(mob/living/M, force = 0, check_loc = 1)
if(prob(easter_egg_chance) || (SSevent.holidays && SSevent.holidays[APRIL_FOOLS]))
M << sound(pick(bike_music), repeat = 1, wait = 0, volume = 80, channel = 42)
. = ..()
/obj/vehicle/bicycle/unbuckle_mob(mob/living/buckled_mob,force = 0)
if(buckled_mob)
buckled_mob << sound(null, repeat = 0, wait = 0, volume = 80, channel = 42)
. =..()
/obj/vehicle/bicycle/tesla_act() // :::^^^)))
name = "fried bicycle"
desc = "Well spent."
riding_datum = null
color = rgb(63, 23, 4)
for(var/m in buckled_mobs)
unbuckle_mob(m,1)