Comments (4)
Fix #12 set focus vob by bounding box
from gothicfreeaim.
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.
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
andzTBSphere3D::IsIntersecting
from gothicfreeaim.
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)
- NPC attack run turning bug is very prominent when free aiming
- Update project architecture diagram
- Finish wiki
- Decrease fine scattering angle HOT 1
- Decrease secondary modulation of accuracy HOT 1
- Crash on loading related to oCNpc::SetBodyState HOT 2
- Projectiles are not destroyed when reuse-feature is disabled in Gothic 1
- Simplify categorizing spells for drawing reticle in config
- Remove debugging visualizations (Draw3D) from default initialization
- Low FPS prevent aiming with crossbow T2 stance
- Crash when initializing GFA_SPELLS without GFA_STRAFING
- Focus mode is wrong when loading game in fight mode HOT 1
- Display reticle in virtual coordinates HOT 1
- Move "no focus no aim" to INI
- [Returning 2.0] Game crashes after intros while using Ninja GFA patch HOT 2
- Provide projectile pointer to config function HOT 1
- Add safety checks for common fixes HOT 1
- ITEM_FOCUS HOT 1
- New idea - free hiting
- [Gothic Multiplayer] AimRay intersection with player's camera bbox HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gothicfreeaim.