Files
siliconsGitHubVM_USER <VM_USER>
6dec5d41e7 refactors pushing, movespeed, actionspeed, throwing, movement, pass flags, and probably things i forgot about; adds overhand throwing (#4360)
* initial

* wack

* changes

* insanity

* staging

* t

* note2self

* wild

* find replace

* changes

* pain

* fixes

* that's right out

* augh

* augh

* wild

* lol

* fuck this not refacotring all that in one day

* oopsy doopsy

* that goes away

* fixes

* pain!

* throwing stuff

* Fixes

* g

* eternal curse upon you, space indenter

* eternal curse upon you, space indenter x2

* real combat refactor energy

* refactors

* stuff

* subsystem logic

* a

* pain

* logic

* push logic

* logic

* i hate micros

* fixes

* a

* convert the rest

* let's finish this

* s

* fixes

* aah.

* augh

* AUGH

* stuff

* a

* more

* a
git pu

* fixes

* fixes

* fix

* fixes

* warnings

* more

* maybe don't have them throw past walls

* fixes

* ack

* f

* better ui

* fixes

* fixes

* a

* proximity monitors

* proximity monitors

* proximity monitors

* wack

* swap stuff

* a

* fix

* fix

* fix

* default

* Fix

* fixes

* ayy

* aoug

* aoug

* stuff

* fix

* fix

* ay

* ay

* ough

* ayo

* fix

* cannon

* wack

* i tested it

* fix

* why

Co-authored-by: VM_USER <VM_USER>
2022-09-08 01:43:03 -07:00

51 lines
1.2 KiB
Plaintext

/mob/proc/throw_item(obj/item/I, atom/target, overhand, neat = a_intent == INTENT_HELP, force = THROW_FORCE_DEFAULT)
return
/mob/proc/toggle_throw_mode(overhand)
if(overhand)
switch(in_throw_mode)
if(THROW_MODE_ON)
throw_mode_overhand()
if(THROW_MODE_OVERHAND)
throw_mode_off()
if(THROW_MODE_OFF)
throw_mode_overhand()
else
switch(in_throw_mode)
if(THROW_MODE_ON)
throw_mode_off()
if(THROW_MODE_OVERHAND)
throw_mode_on()
if(THROW_MODE_OFF)
throw_mode_on()
/mob/proc/throw_mode_off()
in_throw_mode = THROW_MODE_OFF
throw_icon?.update_icon()
/mob/proc/throw_mode_on()
in_throw_mode = THROW_MODE_ON
throw_icon?.update_icon()
/mob/proc/throw_mode_overhand()
in_throw_mode = THROW_MODE_OVERHAND
throw_icon?.update_icon()
/mob/proc/throw_mode_check()
return in_throw_mode != THROW_MODE_OFF
/mob/proc/throw_active_held_item(atom/target)
var/obj/item/held = get_active_held_item()
if(!held)
return
return throw_item(held, target)
/mob/proc/can_throw_item(obj/item/I, atom/target)
if(incapacitated())
to_chat(src, SPAN_WARNING("You can't throw things right now!"))
return FALSE
return TRUE
/mob/overhand_throw_delay(mob/user)
return OVERHAND_THROW_MOB_DELAY