I decided to share some of the mechanics I find in CV3's enemies as I find them. Since I'm hacking the actual code for the enemies, I can tell you exactly how certain enemies are programmed to behave. This is an extension of my crows post. Note that a number preceded by a dollar sign is hexadecimal, so multiply the first number by 16 then add the second number to that (e.g., $23 = 35). Also when something is random, it's not really random -- a robot would be able to elicit the same results every time.
Crows/Ravens
In CV3, a crow will wait until Trevor is less than $80 pixels away (give or take) both horizontally and vertically, the crow will fly up with both horizontal and vertical acceleration of 1/20 pps, hover for a second, then choose one of four flight paths from one of two sets (based on proximity to Trevor) at random. It will attack Trevor in this way 8 times before flying straight off the screen horizontally.
Ghost/Specter
When flickering, a ghost will be invincible in its wisp form, although there may be a split second in which you can slay it before the invincibility mode toggles on. It will then move in Trevor's general direction, either up or down, for one second before reorienting itself.
Hunchback
In CV3 the hunchback will wait for one second as soon as it appears. It will then either hop toward Trevor with double Trevor's move speed or leap high into the air with the same horizontal speed as Trevor. It will only leap high if Trevor is within $50 pixels of the hunchback and Trevor is facing in the hunchback's direction, otherwise it will simply hop low. When Trevor gets hit, he automatically faces his attacker, which will cause the hunchback to leap if it hops into Trevor. After five leaps, the hunchback will hop away off the screen.
Bone-Tossing / Whipping Skeletons
The two skeletons that can jump will move toward Trevor unless he is less than $40 pixels away, in which case the skeletons will back off. Their movement is subjected to a friction of roughly 1/40 pps, but this is mostly for cosmetic purposes. After roughly one second the enemy will attack. This is the same for Sword Skeletons and Dhurons. Jumping skeletons differ in movement when encountering pits or walls. If a normal skeleton encounters any kind of obstacle at its feet (a wall in front of the skeleton's face won't affect it), it will reverse direction. A jumping skeleton will jump over a pit. If there is a block in front of the jumping skeleton's feet but not in front of its head, the skeleton will jump over that block. If there is a literal wall in front of the skeleton, it will reverse direction. Timers do NOT get reset when direction changes.
Living Armor
The boring suit of armor that just paces back and forth. Based on Trevor's proximity and the current step (see note about randomness), it will set a timer to one of four possible values. When the timer reaches zero, the armor will reverse direction.
Wing Demon
These guys are bitches. They're no different than a Medusa Head, except their vertical speeds change at set intervals. When created, a timer is set. When the timer zeroes, the vertical speed will be reversed and set to a different value, which increases the amplitude of its movement. As I said elsewhere, Wing Demons were never programmed to exist in horizontal stages -- if allowed to exist in a room longer than the time it takes to traverse a single screen's width, they will glitch out.
Medusa Head
The code is beautifully simple, which is why it's so funny that people hate them so much. A Medusa Head spawns at Trevor's y-coordinate (a Medusa Head's origin is 8 pixels below it) and that value is saved in the CPU. It then moves upward. Every step, the distance from the Medusa Head's starting point is used to augment the vertical speed, which creates a wave pattern. It's so simplistic and predictable.
Slime Ball
The slime ball is nearly identical to the hunchback, with two considerable differences. First off, it can hop on the ceiling. When it leaps up, it will look for a collision with the ceiling and bump its head, just like a hunchback, but when leaping it will go off the screen if no ceiling is encountered or else it will flip itself and stick to the ceiling. Slimes will also leap high at a closer proximity (16 pixels closer). Another significant difference is slimes do not slow down when leaping high into the air. If a slime is less than $F8 with upward velocity (so 8 pixels off screen), it will respawn and drop down on Trevor.
Owl
Owls may or may not blink (which is really just the owl going invisible). After a couple seconds, the owl will appear. It then checks Trevor's proximity and based on that chooses from nine possible speeds. The closer Trevor is, the easier it will be to dodge because the owl will fly slower. It will swoop down then fly up a little and hover. After hovering for a second, it will check Trevor's proximity once again and choose from nine possible speeds. Again, the closer you are, the easier it will be to dodge. In most cases, Trevor can simply duck.
Headless Pirate / Dhuron
Something I never actually noticed in the game but apparently it's a factor in the Headless Pirates: They will avoid crumbling walkways and pits (good to know if you ever want to include fake floors in a fan mod). It's a pretty straight-forward enemy. Like the equipped skeletons, it will move toward Trevor then attack, or move away from Trevor then attack, depending on if it's less than $40 pixels away. The irony of the pit avoidance and crumbling floor avoidance is the Headless Pirate is actually scripted to fall if there's nothing under it.
Normal Skeleton / Blood Skeleton
These minions walk back and forth until a timer, which is always the same value, goes off. However, unlike enemies like Living Armors (below), the skeletons will continue moving toward Trevor when the timer resets if they are within a close enough proximity horizontally (vertical proximity is ignored). Like most enemies, they will reverse direction when a pit or wall is encountered.
Living Armor
This is just a fancy normal skeleton. A timer is set and the armor walks toward Trevor until the timer goes, at which point the armor turns around and the timer is set to one of four random values (based on the linear seed modified by Trevor's current x-coordinate). If a pit or wall is encountered it will turn around.
Whip Skeleton
This version of skeleton will keep moving toward Trevor until it's less than 64 pixels away, at which point it will attack then retreat for a second. There's not much to it and infrequency of attacks makes it a bit easier than the other armed skeletons.
I'll post more as I get to them. I'm slow.