mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-02 13:42:32 +00:00
* crawling? * knockdown. CONTAINS CHANGES THAT NEED REVERTING * plotting can_moves death * CANMOVE IS DEAD * mappers are insane * removes todos as the are todone * decreases crawling speed * silly-con fixes * surgery fixes * fixes death * pAI fixes * removes var/lying * runtime fix * decreases default crawling speed * correct crawling dir * some more fixes * stunbaton tweak, revert later * rejuv fix * restraint and incapacitated refactor * crawling dir in line with TG * fixes vehicle movement and grabs * alien rest fixes * antistun fixes * fixed fall sounds * forgor to stage this * first review * canmove zombie dispersal * fix * lots of fixes * defines * fixes the trait helper * if you got no legs you can still crawl * sillyconfix * no reverty keepy * jaunt fix * hopefully fixes perma sleepy zzz * admin rejuv temp fix * rest canceling * antistun chems now remove knockdown * buckle offset fix * fixes some stuff * crawling delay = 4 * descuffs bed * sleeping hotfix * fixes simple mob resting * V is the macro for resting * projectiles no dodgy * refines the projectile check * god I hate strings * MORE FIXES * I hate buckling * fixes capulettium plus * winding down * farie review * bugs did stop showing up * SEAN * todo * sean review * ed209 * i HATE cyborgs * steel review * laaaaaast things * reverts stun baton changes * and done
29 lines
816 B
Plaintext
29 lines
816 B
Plaintext
/mob/living/carbon/human/key_down(_key, client/user)
|
|
switch(_key)
|
|
if("V")
|
|
if(!client.keys_held["Ctrl"] && !client.keys_held["Shift"])
|
|
rest()
|
|
if("H")
|
|
var/obj/item/clothing/accessory/holster/H = null
|
|
if(istype(w_uniform, /obj/item/clothing/under))
|
|
var/obj/item/clothing/under/S = w_uniform
|
|
if(S.accessories.len)
|
|
H = locate() in S.accessories
|
|
if (!H)
|
|
return
|
|
if(!H.holstered)
|
|
if(!istype(get_active_hand(), /obj/item/gun))
|
|
to_chat(usr, "<span class='warning'>You need your gun equiped to holster it.</span>")
|
|
return
|
|
var/obj/item/gun/W = get_active_hand()
|
|
H.holster(W, usr)
|
|
else
|
|
H.unholster(usr)
|
|
if(client.keys_held["Shift"])
|
|
switch(_key)
|
|
if("E") // Put held thing in belt or take out most recent thing from belt
|
|
quick_equip()
|
|
|
|
|
|
return ..()
|