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

Why i can't set model body? #989

Open
q52888940 opened this issue Aug 9, 2024 · 5 comments
Open

Why i can't set model body? #989

q52888940 opened this issue Aug 9, 2024 · 5 comments

Comments

@q52888940
Copy link

void CAK47::Spawn()
{
Precache();

m_iId = WEAPON_AK47;
SET_MODEL(edict(), "models/w_ak47.mdl");

pev->body = 3;
@dystopm
Copy link
Contributor

dystopm commented Aug 9, 2024

May you want to add this to weaponboxes instead of pure weapon entities?

@q52888940
Copy link
Author

I want the BODY of the model to be 3 at the moment the player throws it, or when the armory_entity entity spawns

@q52888940
Copy link
Author

May you want to add this to weaponboxes instead of pure weapon entities?

I want the BODY of the model to be 3 at the moment the player throws it, or when the armory_entity entity spawns

@dystopm
Copy link
Contributor

dystopm commented Aug 9, 2024

Yes, but you are not catching weaponboxes or armoury entities spawning. Weapon entities are attaches to players and they are invisible, they only have a model attached to them for touching purposes

@q52888940
Copy link
Author

是的,但你没有捕捉到武器箱或军械库实体的生成。武器实体附着在玩家身上,它们是不可见的,它们只有一个模型附着在它们身上以供触摸

Can you provide me with the relevant code? I don't know where to write it

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

No branches or pull requests

2 participants