Skip to content

env_sprite not animating #354

@Alienmario

Description

@Alienmario

Continuing from Discord

ak47toh

— 1/31/26, 11:08 AM
Any idea why some sprites doesn't play its animation? Despite they have ⁨framerate 10.0⁩ already.

This is from The Final Expedition, in the dedicated server, this ⁨sprites/physring1.vmt⁩ simply just don't play its animation. Is this client sided issue, or latency issue?

2026-01-31_17-23-19.mp4

The culprit is a failing m_flMaxFrame calculation (SDK13).

If one knows the max frame of given material, it can be fixed after spawning like so:

SetEntPropFloat(pEntity.entindex, Prop_Data, "m_flMaxFrame", 8.0);
pEntity.AcceptInput("ToggleSprite");
pEntity.AcceptInput("ToggleSprite");

Metadata

Metadata

Assignees

No one assigned

    Labels

    entity-issuesengine entity-related bugs/crashes/issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions