Few more symbols and clean up "Disable Hostile AI In Creative Mode" #88
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "bigjango13/minecraft-pi-reborn:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I got a bunch of constructors and vtables from
MobFactory
@ -470,2 +469,4 @@
Entity *target = mob->vtable->findAttackTarget(mob);
// Check if hostile
if (mob->vtable->getCreatureBaseType(mob) != 1) {
What's the point of this check?
It's called "Disable Hostile AI In Creative Mode", so I figured it should only be disabled for hostile mobs.
It's less "disable AI for hostile mobs" and more "disable mobs attacking the player."
But only hostile mobs attack the player.
Maybe change the comment to
Do not modify AI of non-hostile mobs
or similar.Is
Only modify the AI of monsters
sufficient?@ -33,3 +34,1 @@
property float head_height = 0x68;
property float hitbox_width = 0x6c;
property float hitbox_height = 0x70;
property AABB aabb = 0x50;
Should this be called
hitbox
?Good idea 👍
64cb51e37c
to5efbb19bcc
5efbb19bcc
to64cb51e37c
@ -833,2 +834,4 @@
overwrite_calls((void *) Player_stopUsingItem, (void *) Player_stopUsingItem_injection);
// Fix invalid ItemInHandRenderer texture cache
uchar cmp_r7_patch[] = {0x07, 0x00, 0x57, 0xe1}; // "cmp r7,r7"
Sorry if this sounds a bit nit-picky, but
feels very much like
The description of the patch you gave on Discord would probably make a much better comment.
I'm not sure what you mean, do you want me to remove the "cmp r7,r7" comment?
Sorry, that was a bit vague.
I meant two things really:
Fix invalid ItemInHandRenderer texture cache
.cmp_r7_patch
andmoveq_r3_true_patch
aren't the best name for patch variables IMO when the comment just repeats it later. For instance, other variables in the file arechest_model_patch
andchest_color_patch
. And yeah, this is very much a nitpick and something I am very much guilty of myself in MCPI-Reborn.Also, this should probably be under a feature flag, but I can do that later.