-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2031 from MistakeNot4892/giddyup
Adds mob riding for small mobs and simple_animals.
- Loading branch information
Showing
23 changed files
with
257 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -469,4 +469,3 @@ | |
|
||
/atom/movable/proc/get_object_size() | ||
return ITEM_SIZE_NORMAL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/decl/grab/simple/control | ||
name = "controlling grab" | ||
shift = 0 | ||
adjust_plane = FALSE | ||
|
||
/decl/grab/simple/control/on_hit_help(var/obj/item/grab/G, var/atom/A, var/proximity) | ||
if(A == G.assailant) | ||
A = G.affecting | ||
if(isliving(G.affecting)) | ||
var/mob/living/living_mob = G.affecting | ||
return living_mob.handle_rider_help_order(G.assailant, A, proximity) | ||
return FALSE | ||
|
||
/decl/grab/simple/control/on_hit_disarm(var/obj/item/grab/G, var/atom/A, var/proximity) | ||
if(A == G.assailant) | ||
A = G.affecting | ||
if(isliving(G.affecting)) | ||
var/mob/living/living_mob = G.affecting | ||
return living_mob.handle_rider_disarm_order(G.assailant, A, proximity) | ||
return FALSE | ||
|
||
/decl/grab/simple/control/on_hit_grab(var/obj/item/grab/G, var/atom/A, var/proximity) | ||
if(A == G.assailant) | ||
A = G.affecting | ||
if(isliving(G.affecting)) | ||
var/mob/living/living_mob = G.affecting | ||
return living_mob.handle_rider_grab_order(G.assailant, A, proximity) | ||
return FALSE | ||
|
||
/decl/grab/simple/control/on_hit_harm(var/obj/item/grab/G, var/atom/A, var/proximity) | ||
if(A == G.assailant) | ||
A = G.affecting | ||
if(isliving(G.affecting)) | ||
var/mob/living/living_mob = G.affecting | ||
return living_mob.handle_rider_harm_order(G.assailant, A, proximity) | ||
return FALSE | ||
|
||
// Override these for mobs that will respond to instructions from a rider. | ||
/mob/living/proc/handle_rider_harm_order(mob/user, atom/target, proximity) | ||
return FALSE | ||
|
||
/mob/living/proc/handle_rider_grab_order(mob/user, atom/target, proximity) | ||
return FALSE | ||
|
||
/mob/living/proc/handle_rider_disarm_order(mob/user, atom/target, proximity) | ||
return FALSE | ||
|
||
/mob/living/proc/handle_rider_help_order(mob/user, atom/target, proximity) | ||
return FALSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.