From 84d0d855dd6257bba72f88d098a02c382cce48b4 Mon Sep 17 00:00:00 2001 From: LeonMrBonnie Date: Thu, 2 Sep 2021 22:12:58 +0200 Subject: [PATCH] Add missing player getters Former-commit-id: e787366454ffa7c9a4c9844a91606b00f7f05090 --- src/bindings/Player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindings/Player.cpp b/src/bindings/Player.cpp index 68445c00..022e83f8 100644 --- a/src/bindings/Player.cpp +++ b/src/bindings/Player.cpp @@ -417,6 +417,10 @@ extern V8Class v8Player("Player", v8Entity, nullptr, [](v8::Local(isolate, tpl, "armour"); V8::SetAccessor(isolate, tpl, "maxArmour"); V8::SetAccessor(isolate, tpl, "isDead"); + V8::SetAccessor(isolate, tpl, "isInRagdoll"); + V8::SetAccessor(isolate, tpl, "isAiming"); + V8::SetAccessor(isolate, tpl, "aimPos"); + V8::SetAccessor(isolate, tpl, "headRot"); V8::SetAccessor, &IPlayer::GetEntityAimingAt>(isolate, tpl, "entityAimingAt"); V8::SetAccessor(isolate, tpl, "entityAimOffset");