Code Monkey home page Code Monkey logo

Comments (4)

szapp avatar szapp commented on June 24, 2024

Fix #28 complete focus collection

from gothicfreeaim.

szapp avatar szapp commented on June 24, 2024

New Idea

DOES NOT WORK: oCNpc::IsNpcBetweenMeAndTarget is for close range npc fighting

Shoot trace ray without bbox detection.

  1. If there is a collected focus npc, perform an action similar to 0x67C7D0 (6801360) int __thiscall oCNpc::IsNpcBetweenMeAndTarget(zCVob *) (but instead of the hero take the camera and instead of a zCVob do it with a zVEC3 position). If an npc is in the way, it will most likely be the focus npc (how to make sure?). Take the distance to the focus npc.
    Since oCNpc::IsNpcBetweenMeAndTarget might not be easy or performance light to fully rewrite in deadalus, the camera vob could be casted as oCNpc and a dummy or fake vob can be used as target vob. It is only important to assure there is any npc in between - it does not matter if it is the focus npc.
  2. If there is no valid focus npc, take the distance to the trace ray intersection.

Done.

from gothicfreeaim.

szapp avatar szapp commented on June 24, 2024

Also check what 0x732F40 (7548736) int __thiscall oCNpc::FocusCheckBBox(zCVob const * int int float float &) does.

from gothicfreeaim.

szapp avatar szapp commented on June 24, 2024

New idea

Check how 0x733A10 (7551504) void __thiscall oCNpc::CollectFocusVob(int) does it.

from gothicfreeaim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.