From d1cfda704804b85b93cfcb9a4a788560d49dfd09 Mon Sep 17 00:00:00 2001 From: Leshana Date: Tue, 24 Apr 2018 00:23:39 -0400 Subject: [PATCH] Added jump boots and gryphon boots. Jump boots let you throw yourself forwards! Gryphon boots just look like gryphon foots. --- .../clothing/shoes/miscellaneous_vr.dm | 42 ++++++++++++++++++ icons/mob/feet_vr.dmi | Bin 422 -> 740 bytes icons/obj/clothing/shoes_vr.dmi | Bin 382 -> 611 bytes vorestation.dme | 1 + 4 files changed, 43 insertions(+) create mode 100644 code/modules/clothing/shoes/miscellaneous_vr.dm 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 16cb2f33a7135b35df039b075f3bf47811949643..41062144df1a5c5b457387a486d15b689766aadd 100644 GIT binary patch delta 654 zcmV;90&)GO1LOsNiBL{Q4GJ0x0000DNk~Le0001h0001B2m=5B0OF*IdjJ3cX;4g5 zMZmzo*x1;>z`&)YrGI~ava+)O*Z_=-j7&^SGcz+lKtO+08JU@xa&mHJW@hHTHPDwp z^5327&1LAsNY|xV4Gj%CI5-gz5gi>JgMooIHZ~+ABvMi+QY0fIaBXcI92~~y|KRff zTwGjSH_3zm0004WQchCUz4m<>})Fs%hQC5gdtP zq$cO24U|N6+CWV-b%cxql1^nU?SMt9<-efFxwg20q9|6Y#>7w4OzEqrm?FJWjT9pu z*)|Oas5b%t00000008iW)*Ig{x+*?@YRqlmyEW_UPOjiLo!@HRx4zpb>1{F~T70ID z5l;*#>E8P^A-{s&B?FzHn{fl0gRNIK;5#2n`}9ufYu_e=ZS*P4u<^-r-`F`y*_000000002^0K#_&Ch&KrZlb8DsYI-yq=&J~JbkpN8_@jkLg=|&K_9|S z(C-_V)|oyg@8$mc*rS*F55plfI1Iy7hu!hiCxiXzC^_iE!5)VnssGP#w1*%WIA5;U o%lZDiu17)=Z<2vqO8$R>UlB1LDN&AK5C8xG07*qoM6N<$f+A`qCjbBd delta 353 zcmaFDx{SHLGr-TCmrII^fq{Y7)59eQNIQTq3p0?6aL;)Qq;vy(LR=3VIB?^}4IsI6 z>C#P`HvPZB(9_f7d-nK#hzgL4Lsu4$p3+ z0Xex55ugt(h0J=nKuAcuk&y*^Ev4ah3~<*o5Z0W=?Fppk&&@=;y`eq}46RwWECg&JEAs#IpQ9bCY}b`8h|Q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