Skip to content

Is changing player's voice possible? #1315

Description

@DipsiTheCreeper

Hi, quick question about CounterStrikeSharp / CS2 agents.

I can change a player model with:

pawn.SetModel("agents/models/tm_professional/tm_professional_varj.vmdl");

The model changes, and the voice changes away from the default faction voice, but it does not use the exact agent voice bank.

For example, this agent has:

model_player = agents/models/tm_professional/tm_professional_varj.vmdl
vo_prefix    = professional_fem

I tried AddContext / SetContext too:

pawn.AcceptInput("AddContext", pawn, pawn, "model:professional_fem");
pawn.AcceptInput("SetContext", pawn, pawn, "model:professional_fem");

but it still does not use the professional_fem voice.

Is there any known way in CounterStrikeSharp to set the real agent voice bank / vo_prefix, or is this only possible through lower-level native/signature work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions