Jump to content

Search the Community

Showing results for tags 'critical'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 2 results

  1. Here is my interpretation of the condition for the famous "high spear critical chances" as RE from IsoPlayer::pressedAttack(boolean) --spear +30% crit: this = IsoPlayer float var8 = IsoUtils.DistanceTo(var11.x, var11.y, this.x, this.y); this.setVariable("TargetDist", var8); int var9 = this.calculateCritChance(var11); if (var11 instanceof IsoZombie) { IsoZombie var10 = this.getClosestZombieToOtherZombie((IsoZombie)var11); if (!this.attackVars.bAimAtFloor //not aim floor && (double)var8 > 1.25D //target must be further than 1.25 "meters" && var4 == WeaponType.spear //weapon is spear && (var10 == null || (double)IsoUtils.DistanceTo(var11.x, var11.y, var10.x, var10.y) > 1.7D) //closestZombie from targetZombie is further than 1.7 meters from targetZombie ) { if (!GameClient.bClient || this.isLocalPlayer()) { this.setAttackType("overhead"); //go go spear in the head my boy ! } var9 += 30; } } Here is my proposition for correction modification of the decision algorithm : Do not take into account the closest Z to my target. But take into account the closest Z to me that I can detect. float var8 = IsoUtils.DistanceTo(var11.x, var11.y, this.x, this.y); this.setVariable("TargetDist", var8); int var9 = this.calculateCritChance(var11); if (var11 instanceof IsoZombie) { IsoZombie var10 = this.getClosestZombieThatisNotThatZombie((IsoZombie)var11); //get closestZombie to me, that I can detect, except targetZombie if (!this.attackVars.bAimAtFloor //not aim floor && (double)var8 > 1.25D //target is further than 1.25 "meters" && var4 == WeaponType.spear //weapon is spear && (var10 == null || (double)IsoUtils.DistanceTo(this.x, this.y, var10.x, var10.y) > 1.7D) //if that other "closestZombie" is far enough from me I can safely headshot with my spear ) { if (!GameClient.bClient || this.isLocalPlayer()) { this.setAttackType("overhead"); } var9 += 30; } }
  2. Hello, We've faced a critical and fatal bug on our dedicated server that needs to be addressed as soon as possible. If you attempt to react to any message sent by the Discord bridge service found on the servers, it'll crash the server instantly. The server logs somehow got deleted after restarting it (looked on all the backups, nothing there) but we had the same reaction appear on logs with a message similar to "Contact developer..." and "reaction javacord" errors.
×
×
  • Create New...