0bca862419
* map tweaks/shuttle engines * helpers and defines * global/onclick * controllers and datums * mapping * game folder * some other stuff * some modules * modules that aren't mobs * some mob stuff * new player stuff * mob living * silicon stuff * simple animal things * carbon/ayylmao * update_icons * carbon/human * sounds and tools * icons and stuff * hippie grinder changes + tgui * kitchen.dmi * compile issues fixed * mapfix * Mapfixes 2.0 * mapedit2.0 * mapmerger pls * Revert "mapedit2.0" This reverts commit 74139a3cacea10df7aafca06c0a10bd3daf3a481. * clean up vore folder + 2 hotfixes * admin ticket refinement * Blob tweaks and LAZYADD * LAZYADD IS LAZY * Magic strings purged * DEFINES NEED HIGHER PRIORITIES * Only a sleepless idiot deals in absolute TRUE|FALSE * u h g * progress bar fix * reverts ticket logs * there's always that one guy * fixes and stuff * 2/27 fixes * game folder stuff * stats * some modules again * clothing stuff gets vg clothing out of the main files * everything not mobs again * mob stuff * maps, tgui, sql stuff * icons * additional fixes and compile errors * don't need this anymore * Oh right this isn't needed anymore * maint bar re-added * that doesn't need to be here * stupid events * wtfeven * probably makes Travis happy * don't care to fix the grinder atm * fixes vending sprites, changes turret * lethal, not lethals * overylays are finicky creatures * lazy fix for bleeding edgy (#252) * map tweaks/shuttle engines * helpers and defines * global/onclick * controllers and datums * mapping * game folder * some other stuff * some modules * modules that aren't mobs * some mob stuff * new player stuff * mob living * silicon stuff * simple animal things * carbon/ayylmao * update_icons * carbon/human * sounds and tools * icons and stuff * hippie grinder changes + tgui * kitchen.dmi * compile issues fixed * mapfix * Mapfixes 2.0 * mapedit2.0 * mapmerger pls * Revert "mapedit2.0" This reverts commit 74139a3cacea10df7aafca06c0a10bd3daf3a481. * clean up vore folder + 2 hotfixes * admin ticket refinement * Blob tweaks and LAZYADD * LAZYADD IS LAZY * Magic strings purged * DEFINES NEED HIGHER PRIORITIES * Only a sleepless idiot deals in absolute TRUE|FALSE * u h g * progress bar fix * reverts ticket logs * there's always that one guy * fixes and stuff * 2/27 fixes * game folder stuff * stats * some modules again * clothing stuff gets vg clothing out of the main files * everything not mobs again * mob stuff * maps, tgui, sql stuff * icons * additional fixes and compile errors * don't need this anymore * Oh right this isn't needed anymore * maint bar re-added * that doesn't need to be here * stupid events * wtfeven * probably makes Travis happy * don't care to fix the grinder atm * fixes vending sprites, changes turret * lethal, not lethals * overylays are finicky creatures
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
//var/following = null //Gross, but necessary as we loose all concept of who we're following otherwise
|
|
/client/proc/mentor_follow(var/mob/living/M)
|
|
if(!check_mentor())
|
|
return
|
|
|
|
if(isnull(M))
|
|
return
|
|
|
|
if(!istype(usr, /mob))
|
|
return
|
|
|
|
if(!holder)
|
|
var/datum/mentors/mentor = mentor_datums[usr.client.ckey]
|
|
mentor.following = M
|
|
/* else
|
|
holder.following = M*/
|
|
|
|
usr.reset_perspective(M)
|
|
src.verbs += /client/proc/mentor_unfollow
|
|
|
|
admins << "<span class='mentor'><span class='prefix'>MENTOR:</span> <EM>[key_name(usr)]</EM> is now following <EM>[key_name(M)]</span>"
|
|
usr << "<span class='info'>You are now following [M]. Click the \"Stop Following\" button in the Mentor tab to stop.</span>"
|
|
log_mentor("[key_name(usr)] began following [key_name(M)]")
|
|
|
|
|
|
|
|
/client/proc/mentor_unfollow()
|
|
set category = "Mentor"
|
|
set name = "Stop Following"
|
|
set desc = "Stop following the followed."
|
|
|
|
if(!check_mentor())
|
|
return
|
|
|
|
usr.reset_perspective(null)
|
|
src.verbs -= /client/proc/mentor_unfollow
|
|
|
|
var/following = null
|
|
if(!holder)
|
|
var/datum/mentors/mentor = mentor_datums[usr.client.ckey]
|
|
following = mentor.following
|
|
/*else
|
|
following = holder.following*/
|
|
|
|
|
|
admins << "<span class='mentor'><span class='prefix'>MENTOR:</span> <EM>[key_name(usr)]</EM> is no longer following <EM>[key_name(following)]</span>"
|
|
usr << "<span class='info'>You are no longer following [following].</span>"
|
|
log_mentor("[key_name(usr)] stopped following [key_name(following)]")
|
|
|
|
following = null
|
|
|