Coder Social home page Coder Social logo

Comments (4)

szapp avatar szapp commented on June 10, 2024

Fix #12 set focus vob by bounding box

from gothicfreeaim.

szapp avatar szapp commented on June 10, 2024

This here does not give any results (always returns zero) and does really make sense to me anyways:

const int zTBBox3D__GetSphere3D = 5528768; //0x545CC0
CALL_RetValIsStruct(24); // sizeof_zTBBox3D
CALL__thiscall(_@(her)+124, zTBBox3D__GetSphere3D); // zTBBox3D
var int sphere3d1; sphere3d1 = CALL_RetValAsInt();
CALL_RetValIsStruct(24); // sizeof_zTBBox3D
CALL__thiscall(MEM_World.foundVob+124, zTBBox3D__GetSphere3D);
var int sphere3d2; sphere3d2 = CALL_RetValAsInt();

const int zTBSphere3D__IsIntersecting = 5521632; //0x5440E0
CALL_PtrParam(sphere3d2);
CALL__thiscall(sphere3d1, zTBSphere3D__IsIntersecting);
var int answ; answ = CALL_RetValAsInt();
MEM_Free(sphere3d1);
MEM_Free(sphere3d2);

MEM_Info(ConcatStrings("Sphere test returns: ", IntToString(answ)));

from gothicfreeaim.

szapp avatar szapp commented on June 10, 2024

Improve trace ray

  • Exclude origin vob (hero)
  • Set flags to (zTRACERAY_VOB_IGNORE_NO_CD_DYN | zTRACERAY_VOB_BBOX) (1 + 4 = 5), or (zTRACERAY_VOB_IGNORE_NO_CD_DYN | zTRACERAY_VOB_BBOX | zTRACERAY_STAT_POLY | zTRACERAY_POLY_NORMAL) (1 + 4 + 32 + 128 = 165)
  • Check if trace ray changes input arguments (vectors)
  • Experiment with zTBBox3D::GetSphere3D and zTBSphere3D::IsIntersecting

from gothicfreeaim.

szapp avatar szapp commented on June 10, 2024

Idea

Set focus collection to a small angle. During aiming check if focus vob is in a narrow angle (oCNpc::GetAngle) in front of the player model (center is [0.5, 0.5]). If the current focus vob is not in that angle, clear focus vob. Remaining question: Will the focus collections (Focus.d) then continuously set the new (correct) focus vob?

This approach is not satisfying. It is, however, available in the branch focusbyangles.

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.