Skip to content

Comments

Development work for level_graph, CExplosive, CGrenade, CWeaponStatMgun, CWeapon, script mutant movement. Export CGrenade functions.#420

Merged
themrdemonized merged 7 commits intothemrdemonized:ghenfrom
GhenTuong:WIP
Feb 7, 2026
Merged

Development work for level_graph, CExplosive, CGrenade, CWeaponStatMgun, CWeapon, script mutant movement. Export CGrenade functions.#420
themrdemonized merged 7 commits intothemrdemonized:ghenfrom
GhenTuong:WIP

Conversation

@GhenTuong
Copy link
Contributor

@GhenTuong GhenTuong commented Feb 3, 2026

level_graph:
LUA: level.get_nearby_vertices(...) can be used to collect nearby vertices.
LUA: level.vertex_link(...) can be used to get the vertices that is connected to the current vertex.
LUA: level.get_nearby_covers(...) can be used to collect nearby vertices that are covers.

CExplosive, CGrenade:
Unify changes under #define EXPLOSIVE_CHANGE.
"on_grenade_explode" can be added to grenade configuration section to fire a callback when the grenade explode.
"explode_on_contact" can be added to grenade configuration section to make the grenade explode when it lands on a solid surface.
Export explosive object and grenade get/set functions.

CWeaponStatMgun:
Set Actor position when leaving machine gun turret.

CWeapon:
Export:
Get_mOffset
Get_mStrapOffset
Get_strap_bone0
Get_strap_bone1
Get_strapped_mode
HandDependence

Script mutant movement:
Allow the use of move.walk_fwd and move.run_fwd since they're also legit movement flags.

scripts\xr_combat_ignore.script
Add a fix to properly set enemy_id to nil when the enemy is no longer valid.

@GhenTuong GhenTuong marked this pull request as draft February 4, 2026 13:26
@GhenTuong GhenTuong marked this pull request as ready for review February 4, 2026 14:14
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to ghen February 7, 2026 06:13
@themrdemonized themrdemonized merged commit 0703906 into themrdemonized:ghen Feb 7, 2026
17 of 18 checks passed
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