Skip to content

Export multiple CWeaponKnife related functions to Lua#347

Merged
themrdemonized merged 2 commits intothemrdemonized:all-in-one-vs2022-wpofrom
nltp-ashes:all-in-one-vs2022-wpo
Aug 27, 2025
Merged

Export multiple CWeaponKnife related functions to Lua#347
themrdemonized merged 2 commits intothemrdemonized:all-in-one-vs2022-wpofrom
nltp-ashes:all-in-one-vs2022-wpo

Conversation

@nltp-ashes
Copy link
Contributor

Hello,

This PR brings the following changes :

  • Added CScriptGameObject::cast_Knife to expose knife specific functions to Lua;
  • Added getters and setters for CWeaponKnife's internal hit 1/2 power/power critical/impulse values;
  • Added script export for CScriptGameObject::cast_Knife, as well as the new getters and setters for CWeaponKnife;
  • Simplified CWeaponKnife::OnStateSwitch given game difficulty and multiplayer are dead code;
  • Simplified CWeaponKnife::LoadFireParams given difficulty is dead code;

@themrdemonized
Copy link
Owner

Add new exports in lua_help_ex.script please

@nltp-ashes
Copy link
Contributor Author

@themrdemonized My bad. I've updated lua help now.

@themrdemonized themrdemonized merged commit 5373713 into themrdemonized:all-in-one-vs2022-wpo Aug 27, 2025
9 of 10 checks passed
themrdemonized added a commit that referenced this pull request Jan 24, 2026
Export multiple `CWeaponKnife` related functions to Lua
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