Skip to content

Commit

Permalink
GTA Jetpack (vgstation-coders#37198)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeityLink authored Sep 28, 2024
1 parent 377cf81 commit 01d78a7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions code/defines/obj/weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,31 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
w_class = W_CLASS_SMALL
flags = FPRINT


/obj/item/gta_jetpack
name = "jetpack"
desc = "ROCKETMAN"
icon = 'icons/obj/weapons.dmi'
inhand_states = list("left_hand" = 'icons/mob/in-hand/left/misc_tools.dmi', "right_hand" = 'icons/mob/in-hand/right/misc_tools.dmi')
icon_state = "jetpack"
item_state = "jetpack"
w_class = W_CLASS_HUGE

/obj/item/gta_jetpack/pickup(var/mob/user)
..()
playsound(src, 'sound/items/GTA_UI.ogg', 100, 0, null, FALLOFF_SOUNDS, 0)
user.flying = 1
animate(user, pixel_y = pixel_y + 10 * PIXEL_MULTIPLIER , time = 10, loop = 1, easing = SINE_EASING)

/obj/item/gta_jetpack/dropped(var/mob/user)
..()
user.flying = 0
animate(user, pixel_y = pixel_y + 10 * PIXEL_MULTIPLIER , time = 1, loop = 1)
animate(user, pixel_y = pixel_y, time = 10, loop = 1, easing = SINE_EASING)
animate(user)
if(user.lying)//aka. if they have just been stunned
user.pixel_y -= 6 * PIXEL_MULTIPLIER

/obj/item/weapon/wire
desc = "This is just a simple piece of regular insulated wire."
name = "wire"
Expand Down
Binary file modified icons/mob/in-hand/left/misc_tools.dmi
Binary file not shown.
Binary file modified icons/mob/in-hand/right/misc_tools.dmi
Binary file not shown.
Binary file modified icons/obj/weapons.dmi
Binary file not shown.
Binary file added sound/items/GTA_UI.ogg
Binary file not shown.

0 comments on commit 01d78a7

Please sign in to comment.