AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved [CS:GO] All nades explode on impact (https://forums.alliedmods.net/showthread.php?t=342051)

r14170 03-04-2023 22:41

[CS:GO] All nades explode on impact
 
Hi guys,

I've been looking for a plugin like this: https://forums.alliedmods.net/showthread.php?t=309154

but it does not do the trick exactly for me.

Im looking for a plugin that will make any nade go off on impact. This means that when a nade (he, flash, smoke) touches or colludes with anything it will do its thing. At the same time, I would like the normal way of using nades to be removed - as they are by default.

Is it possible?

Cruze 03-07-2023 15:15

Re: [CS:GO] All nades explode on impact
 
1 Attachment(s)
Untested. Code taken from grenade modes

r14170 03-07-2023 19:03

Re: [CS:GO] All nades explode on impact
 
You are awesome!

Works like a charm!

The only thing that "doesn't work" is that Im using a frostnade plugin which transforms smokes into frostnades and dont get me wrong, they activate on impact but if I throw them in the air and they stay in the air more time that the usual exploding in the air, they still explode. I will try to use some of your code to fix it!

Thank you very very much! I really appreciate it!

Cruze 03-08-2023 03:22

Re: [CS:GO] All nades explode on impact
 
Quote:

Originally Posted by r14170 (Post 2800850)
You are awesome!

Works like a charm!

The only thing that "doesn't work" is that Im using a frostnade plugin which transforms smokes into frostnades and dont get me wrong, they activate on impact but if I throw them in the air and they stay in the air more time that the usual exploding in the air, they still explode. I will try to use some of your code to fix it!

Thank you very very much! I really appreciate it!

Replace "g_sGrenadeProjectiles" to:
PHP Code:

char g_sGrenadeProjectiles[][] =
{
    
"hegrenade_projectile",
    
"flashbang_projectile",
    
"decoy_projectile",
    
"molotov_projectile",
    
"incgrenade_projectile"
}; 


r14170 03-08-2023 17:14

Re: [CS:GO] All nades explode on impact
 
Quote:

Originally Posted by Cruze (Post 2800865)
Replace "g_sGrenadeProjectiles" to:
PHP Code:

char g_sGrenadeProjectiles[][] =
{
    
"hegrenade_projectile",
    
"flashbang_projectile",
    
"decoy_projectile",
    
"molotov_projectile",
    
"incgrenade_projectile"
}; 


Tried this but this removes the impact effect from the frostnade :/

r14170 03-08-2023 19:01

Re: [CS:GO] All nades explode on impact
 
Using your code I was able to fix directly the frostnades plugin I have and now it works as I want.

Thanks very much again!


All times are GMT -4. The time now is 22:34.

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