Skip to content

Fix HeadCrab Jump Attack - #16

Open
dooeex wants to merge 1 commit into
Sandern:lw_1.4from
dooeex:headcrab-jump-attack-fix
Open

Fix HeadCrab Jump Attack#16
dooeex wants to merge 1 commit into
Sandern:lw_1.4from
dooeex:headcrab-jump-attack-fix

Conversation

@dooeex

@dooeex dooeex commented Jul 24, 2026

Copy link
Copy Markdown

This change adds support for a special entity flag (hd_jump_target_worldcenter) that allows Headcrabs to use WorldSpaceCenter() instead of EyePosition() when selecting a jump target.

This fixes cases where certain low-profile entities are difficult or impossible for Headcrabs to hit because the default target position is too low or unavailable.

P.S. This flag is not enabled on any entities by default. It is intended to be assigned only to specific entities that require this behavior (for example: Teleporters, Control Points, Barricades, Mountable Turrets, etc.).

@dooeex
dooeex force-pushed the headcrab-jump-attack-fix branch from 8e55525 to 7a4fd7f Compare July 25, 2026 15:02
@dooeex
dooeex force-pushed the headcrab-jump-attack-fix branch from 7a4fd7f to d300c93 Compare July 25, 2026 15:20
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.

1 participant