Skip to content

Commit f88b707

Browse files
committed
fixed build
1 parent 8b7bdc0 commit f88b707

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
138138

139139
- New option to mute audio when the game window loses focus.
140140

141-
- `ReloadTimer` on `HDFirearm` is now exposed to Lua.
141+
- New `GetReloadTimer()` on `HDFirearm` to get the underlying reload timer.
142142

143143
- `ReloadProgress` on `HDFirearm` is now a writable property in Lua, and not only readable.
144144

Source/Lua/LuaBindingsEntities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ LuaBindingRegisterFunctionDefinitionForType(EntityLuaBindings, HDFirearm) {
654654
.property("DeactivationDelay", &HDFirearm::GetDeactivationDelay, &HDFirearm::SetDeactivationDelay)
655655
.property("BaseReloadTime", &HDFirearm::GetBaseReloadTime, &HDFirearm::SetBaseReloadTime)
656656
.property("ReloadTime", &HDFirearm::GetReloadTime)
657-
.property("ReloadTimer", &HDFirearm::GetReloadTimer)
658657
.property("ReloadProgress", &HDFirearm::GetReloadProgress, &HDFirearm::SetReloadProgress)
659658
.property("ShakeRange", &HDFirearm::GetShakeRange, &HDFirearm::SetShakeRange)
660659
.property("SharpShakeRange", &HDFirearm::GetSharpShakeRange, &HDFirearm::SetSharpShakeRange)
@@ -668,6 +667,7 @@ LuaBindingRegisterFunctionDefinitionForType(EntityLuaBindings, HDFirearm) {
668667
.property("IsAnimatedManually", &HDFirearm::IsAnimatedManually, &HDFirearm::SetAnimatedManually)
669668
.property("RecoilTransmission", &HDFirearm::GetJointStiffness, &HDFirearm::SetJointStiffness)
670669

670+
.def("GetReloadTimer", &HDFirearm::GetReloadTimer)
671671
.def("GetAIFireVel", &HDFirearm::GetAIFireVel)
672672
.def("GetAIBulletLifeTime", &HDFirearm::GetAIBulletLifeTime)
673673
.def("GetBulletAccScalar", &HDFirearm::GetBulletAccScalar)

0 commit comments

Comments
 (0)