Raised This Month: $51 Target: $400
 12% 

Solved [CS:GO] All nades explode on impact


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r14170
Veteran Member
Join Date: Dec 2009
Old 03-04-2023 , 22:41   [CS:GO] All nades explode on impact
Reply With Quote #1

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?

Last edited by r14170; 03-08-2023 at 00:03.
r14170 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 03-07-2023 , 15:15   Re: [CS:GO] All nades explode on impact
Reply With Quote #2

Untested. Code taken from grenade modes
Attached Files
File Type: sp Get Plugin or Get Source (ImpactGrenade.sp - 52 views - 3.0 KB)
__________________
Taking paid private requests! Contact me
Cruze is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 03-07-2023 , 19:03   Re: [CS:GO] All nades explode on impact
Reply With Quote #3

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!
r14170 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 03-08-2023 , 03:22   Re: [CS:GO] All nades explode on impact
Reply With Quote #4

Quote:
Originally Posted by r14170 View Post
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"
}; 
__________________
Taking paid private requests! Contact me
Cruze is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 03-08-2023 , 17:14   Re: [CS:GO] All nades explode on impact
Reply With Quote #5

Quote:
Originally Posted by Cruze View Post
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 is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 03-08-2023 , 19:01   Re: [CS:GO] All nades explode on impact
Reply With Quote #6

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!
r14170 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 07:10.


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