[HELP] Force grenade throw?
Hello, is there any command like engclient_cmd(id, "drop") or same that force a player to throw he nades?
|
Re: [HELP] Force grenade throw?
Probably the same way as the code you mentioned?
|
Re: [HELP] Force grenade throw?
Use Ham_Weapon_PrimaryAttack, use get_user_weapon() for check if the weapon is a grenade and use set_pev() for force the throw.
|
Re: [HELP] Force grenade throw?
Quote:
Quote:
EDIT: Just search in google lol :D |
Re: [HELP] Force grenade throw?
Well, among these several pev's, I'm not sure about which one to use. Any tips?
https://raw.githubusercontent.com/al...meta_const.inc |
Re: [HELP] Force grenade throw?
What I said about the Ham_Weapon_PrimaryAttack doesn't makes sense. But how are you trying to force? With a command?
|
Re: [HELP] Force grenade throw?
I'm 99.9% sure this has been discussed before, try searching.
|
Re: [HELP] Force grenade throw?
Calling Ham_Weapon_PrimaryAttack on the grenade entity will do the job. Giving more details(about when you want to throw and how - by a command, directly) will help for sure.
I already gave you a link to a thread in which you have multiple solutions, depending on what you really want. If it's not what you need or you don't understand something, ask. |
Re: [HELP] Force grenade throw?
Ok, I will search more.
|
Re: [HELP] Force grenade throw?
Why do you ignore my post?
|
| All times are GMT -4. The time now is 18:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.