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

Adding a knockback effect to grenades


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-03-2014 , 22:49   Adding a knockback effect to grenades
Reply With Quote #1

Hi folks,

I'm looking to create a knockback effect on CS:S grenades. I can do most of the code, but am stumped by a fairly crucial piece!

In order to calculate the proper knockback direction, I need to know the location and timing of the grenade exploding.

Can anyone provide any help as to how I might work this out? Is there a hook for when a grenade explodes? Is there a way of working out the position of the grenade when it does explode?

Thanks for any help!
Remy Lebeau is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-03-2014 , 23:09   Re: Adding a knockback effect to grenades
Reply With Quote #2

You're probably looking for this.
__________________

Last edited by Impact123; 04-03-2014 at 23:16.
Impact123 is offline
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-03-2014 , 23:19   Re: Adding a knockback effect to grenades
Reply With Quote #3

/ hugs!
Remy Lebeau is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 04-05-2014 , 00:56   Re: Adding a knockback effect to grenades
Reply With Quote #4

Javalia made it here FYI (hence I stopped developping an equivalent plugin).

The plugin is just really poorly named.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 04-05-2014 at 00:57.
RedSword 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 09:16.


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