Raised This Month: $32 Target: $400
 8% 

Explode Grenades using +attack1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 09-22-2018 , 15:55   Explode Grenades using +attack1
Reply With Quote #1

Hello, can anyone tell me if they have something similar that makes the grenades explode if the player keeps holding them after taking the safety pin?

If possible to work with all grenades (HE, FLASH and SMOKE)

Thank you.
__________________

Last edited by gui1porpis; 09-22-2018 at 15:56. Reason: more info
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-23-2018 , 00:43   Re: Explode Grenades using +attack1
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=940530
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 09-28-2018 , 22:30   Re: Explode Grenades using +attack1
Reply With Quote #3

It was the same, but it is not working correctly, when I use + attack2 (right click) to arm the grenade and launch it, it already explodes.
Since the P3Anut plugin works only with HE, how do I configure ot_207 to work the same as P3Anut with all grenades, including SMOKE, because it only has the PINO removal animation and does not come back when it recovers the weapon .

Thank you.
__________________
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-29-2018 , 13:35   Re: Explode Grenades using +attack1
Reply With Quote #4

Try that modification in P3Anut's:

PHP Code:
const CONST_GRENADES = (<< CSW_HEGRENADE)|(<< CSW_SMOKEGRENADE)|(<< CSW_FLASHBANG
PHP Code:
if(equal(w_Name"weapon_hegrenade") && !done[id] && !task[id]) { 
->

PHP Code:
if(((<< u_Weapon) & CONST_GRENADES) && !done[id] && !task[id]) { 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

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

Last edited by EFFx; 09-29-2018 at 13:36.
EFFx is offline
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 10-03-2018 , 22:58   Re: Explode Grenades using +attack1
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
Try that modification in P3Anut's:

PHP Code:
const CONST_GRENADES = (<< CSW_HEGRENADE)|(<< CSW_SMOKEGRENADE)|(<< CSW_FLASHBANG
PHP Code:
if(equal(w_Name"weapon_hegrenade") && !done[id] && !task[id]) { 
->

PHP Code:
if(((<< u_Weapon) & CONST_GRENADES) && !done[id] && !task[id]) { 
So it worked out more or less, except that FLASH instead of blinding is exploding just like grenade and SMOKE as well. Is it too complicated to make these changes? If it's expensive, you do not even have to break your head. I use it only with the same HE.

Thank you.

[bp]
Cara, se quiser postar BR (via MP) até melhor, assim não fico usando o Google tradutor rsrsrs
__________________

Last edited by gui1porpis; 10-04-2018 at 20:18. Reason: fix
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-04-2018 , 15:22   Re: Explode Grenades using +attack1
Reply With Quote #6

Quote:
[bp]
Cara, se quiser postar BR até melhor, assim não fico usando o Google tradutor rsrsrs
Read forum rules. This forum is english, not portuguese.
__________________








CrazY. is offline
Old 10-04-2018, 15:34
thEsp
This message has been deleted by thEsp.
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 10-04-2018 , 20:20   Re: Explode Grenades using +attack1
Reply With Quote #7

Quote:
Originally Posted by CrazY. View Post
Read forum rules. This forum is english, not portuguese.
I'm sorry , I forgot the detail.

I already corrected the.
__________________
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
Reply


Thread Tools
Display Modes

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 12:34.


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