mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 12:47:16 +01:00
Merge pull request #4947 from CHOMPStation2/upstream-merge-13731
[MIRROR] Allows Long Predatorial Reach to toggle modes.
This commit is contained in:
+16
-2
@@ -1185,12 +1185,19 @@
|
||||
to_chat(src, "<span class='warning'>It doesn't work that way.</span>")
|
||||
return
|
||||
|
||||
var/choice = tgui_alert(src, "Do you wish to change the color of your appendage or use it?", "Selection List", list("Use it", "Color"))
|
||||
var/choice = tgui_alert(src, "Do you wish to change the color of your appendage, use it, or change its functionality?", "Selection List", list("Use it", "Color", "Functionality"))
|
||||
|
||||
if(choice == "Color") //Easy way to set color so we don't bloat up the menu with even more buttons.
|
||||
var/new_color = input(usr, "Choose a color to set your appendage to!", "", appendage_color) as color|null
|
||||
if(new_color)
|
||||
appendage_color = new_color
|
||||
|
||||
if(choice == "Functionality") //Easy way to set color so we don't bloat up the menu with even more buttons.
|
||||
var/choice2 = tgui_alert(usr, "Choose if you want to be pulled to the target or pull them to you!", "Functionality Setting", list("Pull target to self", "Pull self to target"))
|
||||
if(choice2 == "Pull target to self")
|
||||
appendage_alt_setting = 0
|
||||
else
|
||||
appendage_alt_setting = 1
|
||||
else
|
||||
var/list/targets = list() //IF IT IS NOT BROKEN. DO NOT FIX IT.
|
||||
|
||||
@@ -1271,9 +1278,16 @@
|
||||
if(istype(target, /mob/living))
|
||||
var/mob/living/M = target
|
||||
var/throw_range = get_dist(firer,M)
|
||||
if(istype(firer, /mob/living)) //Let's check for any alt settings. Such as: User selected to be thrown at target.
|
||||
var/mob/living/F = firer
|
||||
if(F.appendage_alt_setting == 1)
|
||||
F.throw_at(M, throw_range, firer.throw_speed, F) //Firer thrown at target.
|
||||
F.updateicon()
|
||||
return
|
||||
if(istype(M))
|
||||
M.throw_at(firer, throw_range, M.throw_speed, firer) //Fun fact: living things have a throw_speed of 2.
|
||||
M.updateicon()
|
||||
return
|
||||
else //Anything that isn't a /living
|
||||
return
|
||||
if(istype(target, /obj/item/)) //We hit an object? Pull it. This can only happen via admin shenanigans such as a gun being VV'd with this projectile.
|
||||
@@ -1362,4 +1376,4 @@
|
||||
name = "tongue ball"
|
||||
hitsound = 'sound/vore/sunesound/pred/schlorp.ogg'
|
||||
hitsound_wall = 'sound/vore/sunesound/pred/schlorp.ogg'
|
||||
zaptype = /obj/item/projectile/beam/appendage
|
||||
zaptype = /obj/item/projectile/beam/appendage
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
noisy = client.prefs_vr.noisy
|
||||
selective_preference = client.prefs_vr.selective_preference
|
||||
appendage_color = client.prefs_vr.appendage_color
|
||||
appendage_alt_setting = client.prefs_vr.appendage_alt_setting
|
||||
|
||||
drop_vore = client.prefs_vr.drop_vore
|
||||
stumble_vore = client.prefs_vr.stumble_vore
|
||||
|
||||
Reference in New Issue
Block a user