Raised This Month: $ Target: $400
 0% 

[HELP] Force grenade throw?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-07-2017 , 18:49   [HELP] Force grenade throw?
Reply With Quote #1

Hello, is there any command like engclient_cmd(id, "drop") or same that force a player to throw he nades?
__________________








CrazY. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-07-2017 , 19:08   Re: [HELP] Force grenade throw?
Reply With Quote #2

Probably the same way as the code you mentioned?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-07-2017 , 20:14   Re: [HELP] Force grenade throw?
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Probably the same way as the code you mentioned?
I'm referring to force the player's attack grenades and don't drop them.

Quote:
Originally Posted by EFFx View Post
Use Ham_Weapon_PrimaryAttack, use get_user_weapon() for check if the weapon is a grenade and use set_pev() for force the throw.
Where can I check a listing with the functions of the set_pev?

EDIT: Just search in google lol
__________________









Last edited by CrazY.; 03-07-2017 at 20:15.
CrazY. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-07-2017 , 19:57   Re: [HELP] Force grenade throw?
Reply With Quote #4

Use Ham_Weapon_PrimaryAttack, use get_user_weapon() for check if the weapon is a grenade and use set_pev() for force the throw.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-07-2017 at 19:59.
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-07-2017 , 20:32   Re: [HELP] Force grenade throw?
Reply With Quote #5

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
__________________








CrazY. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-07-2017 , 21:04   Re: [HELP] Force grenade throw?
Reply With Quote #6

What I said about the Ham_Weapon_PrimaryAttack doesn't makes sense. But how are you trying to force? With a command?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-07-2017 at 21:04.
EFFx is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-07-2017 , 22:54   Re: [HELP] Force grenade throw?
Reply With Quote #7

I'm 99.9% sure this has been discussed before, try searching.
__________________
Bugsy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-08-2017 , 10:00   Re: [HELP] Force grenade throw?
Reply With Quote #8

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.
__________________

Last edited by HamletEagle; 03-08-2017 at 10:00.
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-08-2017 , 19:29   Re: [HELP] Force grenade throw?
Reply With Quote #9

Ok, I will search more.
__________________








CrazY. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-09-2017 , 00:32   Re: [HELP] Force grenade throw?
Reply With Quote #10

Why do you ignore my post?
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode