Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SetVariantString does not work in MCV #2261

Open
4 tasks done
DrAbcOfficial opened this issue Feb 14, 2025 · 0 comments
Open
4 tasks done

[Bug]: SetVariantString does not work in MCV #2261

DrAbcOfficial opened this issue Feb 14, 2025 · 0 comments
Labels
Bug general bugs; can be anything

Comments

@DrAbcOfficial
Copy link

Prerequisites

  • I have checked that my issue doesn't exist yet in the issue tracker

Operating System and Version

Debian 6.1.124-1 (2025-01-12) x86_64

Game / AppID and Version

MCV (1012110), Version: 1.38.0.0

SourceMod Version

1.13.0.7200

Metamod:Source Version

2.0.0-dev+1319

Version Verification

Updated SourceMod Version

1.13.0.7201

Updated Metamod:Source Version

2.0.0-dev+1321

Description

I tried to specify follow entity for prop_dynamic in MCV via SetParent and SetParentAttachment, but in testing I found that SetVariantString doesn't work correctly

Steps to Reproduce

// This code not work, SetParent by specifying the targetname also doesn't work, presumably SetVariantString is not running correctly
SetVariantString("!activator");
AcceptEntityInput(skin, "SetParent", client, skin);
// Set parent
SetEntDataEnt2(skin, 0x168, client, true);

// This code throwed error:
// ERROR: Tried to SetParentAttachment for entity prop_dynamic (prop_dynamic), but it has no attachment named .
// It's should be set to attachment named 2
SetVariantString("2");
AcceptEntityInput(skin, "SetParentAttachment", skin, skin, 0);

Relevant Log Output

@DrAbcOfficial DrAbcOfficial added the Bug general bugs; can be anything label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug general bugs; can be anything
Projects
None yet
Development

No branches or pull requests

1 participant