Quote:
Originally Posted by Chaosxk
|
Trash that first plugin that I posted, it was garbage. I completely re-coded the plugin and made it way more efficient, thanks to Chaosxk's suggestion about using SDKHook_Think. However, I discovered you have to use SDKHook_SetTransmit for projectiles. I also defined a variable to change the explosion sound and visual effect as well as the collision hitbox size to make modifying it easier. I haven't tested this thoroughly yet but it seems to work with no issues. The only thing I can think of is that the explosion occurs on the most recently created projectile entity, meaning that if the collision hitbox value is too big, the explosion won't display in the correct area. Maybe in the future I could put the explosion halfway between the two projectiles when they collide, who knows.
Let me know if you find any problems or want any changes.