jump.tf Forums
Welcome B)

Preventing stickies from bouncing off other players

Larry · 8 · 2242

Larry

  • Intermediate
  • ***
    • Posts: 132
    • Frags: +3/-0
    • View Profile
Here's a plugin that should stop stickies from bouncing off other players.
You can disable bouncing for all players or only for friendly players using sm_cvar stopstickybounce_teamonly 1/0. I know that's a terrible name for a cvar.

CollisionHook sourcemod extension is required! https://forums.alliedmods.net/showthread.php?t=197815

Source: https://github.com/laurirasanen/stopstickybounce

Update 30/10/2017
- Jay has updated the plugin to version 1.0.1
- Updated gamedata is now also included in github repo
« Last Edit: October 30, 2017, 10:30:06 AM by Larry »


JoinedSenses

  • ECJ Owner
  • Administrator
  • Novice
  • *****
    • Posts: 57
    • Frags: +0/-0
    • View Profile
oh? has this been tested? There is an old plugin that allows rockets to pass through other players, but i had to remove it due to bugs. Any chance you could simulate this as well?

One bug in particular was that firing rockets into stickies would cause the rockets to stall during collision until the sticky was detonated.
https://forums.alliedmods.net/showthread.php?p=2000641


Larry

  • Intermediate
  • ***
    • Posts: 132
    • Frags: +3/-0
    • View Profile
I've only tested it for like 10 mins on my server, so it's probably riddled with bugs. I don't see why the same method wouldn't work for rockets as well.


JoinedSenses

  • ECJ Owner
  • Administrator
  • Novice
  • *****
    • Posts: 57
    • Frags: +0/-0
    • View Profile
With Larry's help, I've modified the original to include rockets.

Here is the source/plugin and the included collisionhook extension with updated gamedata:
https://drive.google.com/open?id=0B9OIU46BWvHDc2xJUUxha3p0NVk
I also changed the team cvar to projectilecollision_teamonly 0/1


jayess

  • Novice
  • **
    • Posts: 68
    • Frags: +0/-0
    • View Profile
Very nice! Will be adding this to Tempus soon.

With Larry's help, I've modified the original to include rockets.
-snip-

I'm not sure including rockets here is needed. Most jump servers run noblock plugins which prevent projectile collisions as a side effect (stickies aside).


JoinedSenses

  • ECJ Owner
  • Administrator
  • Novice
  • *****
    • Posts: 57
    • Frags: +0/-0
    • View Profile
I've never heard or seen a noblock plugin. Is it a private plugin?

It's never been needed, since ECJ uses tf_avoidteammates_pushaway to avoid player collision (plugin not required).
« Last Edit: November 04, 2017, 11:46:29 AM by JoinedSenses »


jayess

  • Novice
  • **
    • Posts: 68
    • Frags: +0/-0
    • View Profile
Oh... I kind of assumed at the method, apologies. The plugin I was thinking of sets the 'm_CollisionGroup' netprop to 2 on players to prevent collisions with teammates and the other team.

Makes sense to use that cvar with how jump maps separate the teams anyway.


JoinedSenses

  • ECJ Owner
  • Administrator
  • Novice
  • *****
    • Posts: 57
    • Frags: +0/-0
    • View Profile