mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 09:14:17 +00:00
98 lines
2.2 KiB
Plaintext
98 lines
2.2 KiB
Plaintext
/*
|
|
Humans:
|
|
Adds an exception for gloves, to allow special glove types like the ninja ones.
|
|
|
|
Otherwise pretty standard.
|
|
*/
|
|
/mob/living/carbon/human/UnarmedAttack(var/atom/A, var/proximity)
|
|
var/obj/item/clothing/gloves/G = gloves // not typecast specifically enough in defines
|
|
|
|
// Special glove functions:
|
|
// If the gloves do anything, have them return 1 to stop
|
|
// normal attack_hand() here.
|
|
if(proximity && istype(G) && G.Touch(A,1))
|
|
return
|
|
|
|
A.attack_hand(src)
|
|
/atom/proc/attack_hand(mob/user as mob)
|
|
return
|
|
|
|
/*
|
|
/mob/living/carbon/human/RestrainedClickOn(var/atom/A) -- Handled by carbons
|
|
return
|
|
*/
|
|
|
|
/mob/living/carbon/RestrainedClickOn(var/atom/A)
|
|
return 0
|
|
|
|
// Commented out to prevent overwriting RangedAttack in click.dm ~ Bone White
|
|
/*
|
|
/mob/living/carbon/human/RangedAttack(var/atom/A)
|
|
if(!gloves && !mutations.len) return
|
|
var/obj/item/clothing/gloves/G = gloves
|
|
if((LASER in mutations) && a_intent == I_HARM)
|
|
LaserEyes(A) // moved into a proc below
|
|
|
|
else if(istype(G) && G.Touch(A,0)) // for magic gloves
|
|
return
|
|
|
|
else if(TK in mutations)
|
|
A.attack_tk(src)
|
|
*/
|
|
|
|
/*
|
|
Animals & All Unspecified
|
|
*/
|
|
/mob/living/UnarmedAttack(var/atom/A)
|
|
A.attack_animal(src)
|
|
|
|
/mob/living/simple_animal/hostile/UnarmedAttack(var/atom/A)
|
|
target = A
|
|
AttackingTarget()
|
|
|
|
/atom/proc/attack_animal(mob/user as mob)
|
|
return
|
|
/mob/living/RestrainedClickOn(var/atom/A)
|
|
return
|
|
|
|
/*
|
|
Aliens
|
|
Defaults to same as monkey in most places
|
|
*/
|
|
/mob/living/carbon/alien/UnarmedAttack(var/atom/A)
|
|
A.attack_alien(src)
|
|
/atom/proc/attack_alien(mob/user as mob)
|
|
attack_hand(user)
|
|
return
|
|
/mob/living/carbon/alien/RestrainedClickOn(var/atom/A)
|
|
return
|
|
|
|
// Babby aliens
|
|
/mob/living/carbon/alien/larva/UnarmedAttack(var/atom/A)
|
|
A.attack_larva(src)
|
|
/atom/proc/attack_larva(mob/user as mob)
|
|
return
|
|
|
|
|
|
/*
|
|
Slimes
|
|
Nothing happening here
|
|
*/
|
|
/mob/living/carbon/slime/UnarmedAttack(var/atom/A)
|
|
A.attack_slime(src)
|
|
/atom/proc/attack_slime(mob/user as mob)
|
|
return
|
|
/mob/living/carbon/slime/RestrainedClickOn(var/atom/A)
|
|
return
|
|
|
|
/*
|
|
New Players:
|
|
Have no reason to click on anything at all.
|
|
*/
|
|
/mob/new_player/ClickOn()
|
|
return
|
|
|
|
// pAIs are not intended to interact with anything in the world
|
|
/mob/living/silicon/pai/UnarmedAttack(var/atom/A)
|
|
return
|