Skip to content

Commit

Permalink
Basic Mob Gorillas (#78918)
Browse files Browse the repository at this point in the history
Now we can make basic mobs with hands easily so I did, they don't
actually use their hands for anything with AI.
In the future we can come back and share the monkey AI where they pick
up items to hit people with, but frankly few weapons are more deadly
than a gorilla's fists.

IIRC I didn't really change their behaviour much, this is mostly just a
straight conversion. Main difference is that they will prioritise eating
nearby bananas and fruit salads over punching people.

When I make these conversions nowadays I need to decide between "does
this attack at the speed that it did as an NPC mob or the speed it did
as a player?"
I am arbitrarily deciding that gorillas are usually not players and
electing for the former, but tell me if you disagree.

I also made "show basic inhand sprites" into a component shared by
Gorillas, Drones, and Dextrous Guardians (all also now available to
become basic, once I get around to it),

And I added an AI behaviour to run a basic emote. This is similar but
different to "random speech", which kind of sucks and needs rewriting
anyway.
Gorillas don't speak, only ooga.

https://www.youtube.com/watch?v=npuuTBlEb1U

🆑
refactor: Gorillas now use the basic mob framework. Please report any
unusual side effects.
/🆑
  • Loading branch information
Jacquerel authored and dwasint committed Nov 19, 2023
1 parent 1285e42 commit 5f0d52c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions code/__DEFINES/ai/ai_blackboard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
/// Something the mob will remote when calling reinforcements
#define BB_REINFORCEMENTS_EMOTE "BB_reinforcements_emote"

/// Store a single or list of emotes at this key
#define BB_EMOTE_KEY "BB_emotes"
/// Chance to perform an emote per second
#define BB_EMOTE_CHANCE "BB_EMOTE_CHANCE"

///Turf we want a mob to move to
#define BB_TRAVEL_DESTINATION "BB_travel_destination"

Expand Down
4 changes: 0 additions & 4 deletions code/modules/mob/living/carbon/human/human_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,6 @@ There are several things that need to be remembered:
hand_overlay.pixel_y += dna.species.offset_features[OFFSET_HANDS][2]

hands += hand_overlay


overlays_standing[HANDS_LAYER] = hands
apply_overlay(HANDS_LAYER)
return hands

/proc/wear_female_version(t_color, icon, layer, type, greyscale_colors)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/mob_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

///Updates the held items overlay(s) & HUD element.
/mob/proc/update_held_items()
SHOULD_CALL_PARENT(TRUE)
SEND_SIGNAL(src, COMSIG_MOB_UPDATE_HELD_ITEMS)

///Updates the mask overlay & HUD element.
Expand Down

0 comments on commit 5f0d52c

Please sign in to comment.