AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Explode Grenades using +attack1 (https://forums.alliedmods.net/showthread.php?t=310848)

gui1porpis 09-22-2018 15:55

Explode Grenades using +attack1
 
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.

EFFx 09-23-2018 00:43

Re: Explode Grenades using +attack1
 
https://forums.alliedmods.net/showthread.php?p=940530

gui1porpis 09-28-2018 22:30

Re: Explode Grenades using +attack1
 
Quote:

Originally Posted by EFFx (Post 2616399)

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.

EFFx 09-29-2018 13:35

Re: Explode Grenades using +attack1
 
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]) { 


gui1porpis 10-03-2018 22:58

Re: Explode Grenades using +attack1
 
Quote:

Originally Posted by EFFx (Post 2617328)
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

CrazY. 10-04-2018 15:22

Re: Explode Grenades using +attack1
 
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.

gui1porpis 10-04-2018 20:20

Re: Explode Grenades using +attack1
 
Quote:

Originally Posted by CrazY. (Post 2618121)
Read forum rules. This forum is english, not portuguese.

I'm sorry :oops:, I forgot the detail.

I already corrected the. :)


All times are GMT -4. The time now is 20:23.

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