Skip to content

Freak Fortress 2 is a one versus all mod for Team Fortress 2. It is the successor to the Vs. Saxton Hale plugin.

License

Notifications You must be signed in to change notification settings

50DKP/FF2-Official

Repository files navigation

Welcome to the official FF2 repository! Build Status

Want the latest version? Check out the Releases page. You can also check out the forums to learn more. Brought to you by 50DKP.

Include File Changes


Some third-party include files were modified in order to make FF2 work properly with or without the plugin that the include file belonged to. It is highly recommended that you also make these changes when compiling FF2.

smac.inc:

  • Remove:
MarkNativeAsOptional("SMAC_CheatDetected");

rtd.inc: Inside public SharedPlugin:__pl_rtd =

  • Remove:
required = 1
  • Add:
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif

Formatting


If you wish to make a pull request, the following formatting rules should be adhered to:

  • Braces on new line
  • No spaces between parentheses or most operators (=, ==, *, |, &, etc)
    • Exception: One space between &&, ||, ;, and ,
    • Note: & and | formatting rules are currently not enforced
  • Tabs, not spaces
  • No tabs on newline
  • No whitespace after a line
  • Bracket all conditional statements, even if it is not required (one-line if statements, for example)
  • Variable names should be camel-cased (markdownIsStupid)
  • Method names should be capitalized normally (MarkNativeAsOptional)

Example:

if(markdownIsStupid)
{
	if(ubuntuIsAmazing)
	{
		while(!someOtherBoolean)
		{
			for(new i=0; i<=someOtherNumber; i+=3)
			{
				if(i==someNumber && moreVariableNames!=42)
				{
					someOtherBoolean=true;
				}
			}
		}
	}

	someBitWiseThing[someNumber]=someBitWiseThing[someNumber]|coolBitWiseVariable;
	return;
}