Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offsets for playbacks #78

Closed
ziggi opened this issue May 6, 2017 · 0 comments
Closed

Offsets for playbacks #78

ziggi opened this issue May 6, 2017 · 0 comments

Comments

@ziggi
Copy link
Owner

ziggi commented May 6, 2017

You could do this with any recording by subtracting the x,y,z of the first position in the recording from every x,y,z in the sequence. This would set the recording the to start at 0.0,0.0,0.0 then just add your delta offsets then recalculate all the positions in the sequence by the rotation offsets. You could get NPCs to do a lot of special things with this like basing NPC's off of a players fighting style.

FCNPC_StartPlayingPlayback(npcid, file[] = "", recordid = FCNPC_INVALID_RECORD_ID, bool:auto_unload = false, Float:delta_x = 0.0, Float:delta_y  = 0.0, Float:delta_z  = 0.0, Float:delta_qw = 0.0, Float:delta_qx = 0.0, Float:delta_qy = 0.0, Float:delta_qz = 0.0);
@ziggi ziggi added this to the FCNPC 2.0 milestone Jun 1, 2017
@ziggi ziggi added the 2.0 label Jun 1, 2017
ziggi added a commit that referenced this issue Nov 5, 2017
ziggi added a commit that referenced this issue Jan 4, 2018
@ziggi ziggi closed this as completed Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant