diff --git a/code/modules/clothing/shoes/miscellaneous_vr.dm b/code/modules/clothing/shoes/miscellaneous_vr.dm new file mode 100644 index 0000000000..13ac1af3f4 --- /dev/null +++ b/code/modules/clothing/shoes/miscellaneous_vr.dm @@ -0,0 +1,42 @@ +/obj/item/clothing/shoes/griffin + name = "griffon boots" + desc = "A pair of costume boots fashioned after bird talons." + icon_state = "griffinboots" + item_state = "griffinboots" + icon = 'icons/obj/clothing/shoes_vr.dmi' + icon_override = 'icons/mob/feet_vr.dmi' // This appends "_r" "_l" to icon state + +/obj/item/clothing/shoes/bhop + name = "jump boots" + desc = "A specialized pair of combat boots with a built-in propulsion system for rapid foward movement." + icon_state = "jetboots" + item_state = "jetboots" + icon = 'icons/obj/clothing/shoes_vr.dmi' + icon_override = 'icons/mob/feet_vr.dmi' // This appends "_r" "_l" to icon state + // resistance_flags = FIRE_PROOF + action_button_name = "Activate Jump Boots" + permeability_coefficient = 0.05 + var/jumpdistance = 5 //-1 from to see the actual distance, e.g 4 goes over 3 tiles + var/jumpspeed = 3 + var/recharging_rate = 60 //default 6 seconds between each dash + var/recharging_time = 0 //time until next dash + // var/jumping = FALSE //are we mid-jump? We have no throw_at callback, so we have to check user.throwing. + +/obj/item/clothing/shoes/bhop/ui_action_click() + var/mob/living/user = loc + if(!isliving(user)) + return + + if(user.throwing) + return // User is already being thrown + + if(recharging_time > world.time) + to_chat(user, "The boot's internal propulsion needs to recharge still!") + return + + var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction + + playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1) + user.visible_message("[user] dashes forward into the air!") + user.throw_at(target, jumpdistance, jumpspeed) + recharging_time = world.time + recharging_rate diff --git a/icons/mob/feet_vr.dmi b/icons/mob/feet_vr.dmi index 16cb2f33a7..41062144df 100644 Binary files a/icons/mob/feet_vr.dmi and b/icons/mob/feet_vr.dmi differ diff --git a/icons/obj/clothing/shoes_vr.dmi b/icons/obj/clothing/shoes_vr.dmi index 39f0bb7c9d..aa3269278c 100644 Binary files a/icons/obj/clothing/shoes_vr.dmi and b/icons/obj/clothing/shoes_vr.dmi differ diff --git a/vorestation.dme b/vorestation.dme index 8d0b9ef50d..751e07e391 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1532,6 +1532,7 @@ #include "code\modules\clothing\shoes\leg_guards_vr.dm" #include "code\modules\clothing\shoes\magboots.dm" #include "code\modules\clothing\shoes\miscellaneous.dm" +#include "code\modules\clothing\shoes\miscellaneous_vr.dm" #include "code\modules\clothing\spacesuits\alien.dm" #include "code\modules\clothing\spacesuits\breaches.dm" #include "code\modules\clothing\spacesuits\miscellaneous.dm"