mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-19 04:05:56 +01:00
75577bd3ca
* better filters for vchat, unsorted chat filter * adds closing tags, fixes an error I somehow missed
17 lines
538 B
Plaintext
17 lines
538 B
Plaintext
/mob/living/proc/toggle_rider_reins()
|
|
set name = "Give Reins"
|
|
set category = "Abilities"
|
|
set desc = "Let people riding on you control your movement."
|
|
|
|
if(riding_datum)
|
|
if(istype(riding_datum,/datum/riding))
|
|
if(riding_datum.keytype)
|
|
riding_datum.keytype = null
|
|
to_chat(src, "<span class='filter_notice'>Rider control enabled.</span>")
|
|
return
|
|
else
|
|
riding_datum.keytype = /obj/item/material/twohanded/riding_crop
|
|
to_chat(src, "<span class='filter_notice'>Rider control restricted.</span>")
|
|
return
|
|
return
|