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

added actorSit actorGetUp actorRaycast calculateAnticipatedLocation #2016

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fenix31415
Copy link

No description provided.

Copy link
Contributor

@Pospelove Pospelove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall seems good, thank you!

Could you please a 1-line changelog entry like sp-***.md
in this folder:
https://github.com/skyrim-multiplayer/skymp/tree/main/docs/release/dev

Also please in this file add the following lines it the end. Then compile and commit result (compile will run TS codegen). This will make you fuction callable from TypeScript.

export declare function actorSit(formId: number): void;
export declare function actorGetUp(actorId: number): void;
export declare function actorRaycast(actorId: number, r: number): number[];
export declare function calculateAnticipatedLocation(actorId: number): number[];

a->actorState1.sitSleepState = RE::SIT_SLEEP_STATE::kIsSitting;
}

void getUp(RE::Actor* a)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's meet skymp naming guidelines
getUp -> GetUp
sit -> Sit
etc

{
auto havokWorldScale = RE::bhkWorld::GetWorldScale();
RE::bhkPickData pick_data;
RE::NiPoint3 ray_start, ray_end;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ray_start -> rayStart, etc

return point2js(ans);
}

void Register(JsValue& exports)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fenix31415 fenix31415 requested a review from Pospelove June 3, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants