Raised This Month: $ Target: $400
 0% 

[CS:GO] Grenade Collision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ceLoFaN
Member
Join Date: Apr 2014
Old 08-28-2014 , 14:43   [CS:GO] Grenade Collision
Reply With Quote #1

Hello, how does one turn off the player-grenade collision? Or at least make the grenades bounce off the players instead of stoping their movement.

I tried this and for some reason it didn't work:
Code:
public OnEntityCreated(iEntity, const String:sClassName[])
{
    if(StrContains(sClassName, "_projectile", false))
        SetEntProp(iEntity, Prop_Send, "m_CollisionGroup", 2);
}
__________________

Last edited by ceLoFaN; 08-30-2014 at 13:42.
ceLoFaN is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 08-28-2014 , 14:56   Re: [CS:GO] Grenade Collision
Reply With Quote #2

Self quoting from the donor section:

Quote:
For anyone who would want grenades noblock (without paying), you can achieve it with SDKHooks' ShouldCollide and approximately 20 lines of code

You can easily find the way there: https://forums.alliedmods.net/showthread.php?t=154226

Just saying
JoB2C is offline
ceLoFaN
Member
Join Date: Apr 2014
Old 08-29-2014 , 14:17   Re: [CS:GO] Grenade Collision
Reply With Quote #3

Thanks for the suggestion, I'll give it a try. Any idea why my code doesn't work though?
__________________
ceLoFaN is offline
ceLoFaN
Member
Join Date: Apr 2014
Old 08-30-2014 , 13:39   Re: [CS:GO] Grenade Collision
Reply With Quote #4

I would like to have grenades bouncing off players if no collision can only be achieved the way JoB2C suggested. I appreciate it, but it's just too hacky for me.
So, any other ideas?
__________________
ceLoFaN 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 23:12.


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