Skip to content

Instantly share code, notes, and snippets.

@Kha
Created August 13, 2014 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kha/fe6a1593848b0fd04093 to your computer and use it in GitHub Desktop.
Save Kha/fe6a1593848b0fd04093 to your computer and use it in GitHub Desktop.
public class MatchVariants : TowerFall.MatchVariants
{
public Variant NoHeadBounce;
}
public class Player : TowerFall.Player
{
public override void BouncedOn(TowerFall.Player bouncer)
{
if (!((MatchVariants)Level.Session.MatchSettings.Variants).NoHeadBounce)
base.BouncedOn(bouncer);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment