Catapult

From Team Fortress Wiki
Revision as of 23:41, 1 May 2020 by 404UNF (talk | contribs) (Proper code snippet)
Jump to: navigation, search

The Catapult is a scrapped Engineer building seen in footage of a leaked Team Fortress 2 "staging" (indev) build alongside other features that were being worked on for the scrapped Spy vs Engineer WAR! update. It was teased in Lecture Valley[1].

The Catapult was a modified Teleporter that worked similar to the player launchers in the Passtime gamemode, launching the user into the air with some forward momentum using airblast force to do so.

The commented-out code is the actual Catapult functionality, while what remains appears to be Valve trying to quickly test the Speed Pad speed boost using the same building.

void CObjectCatapult::Launch( CBaseEntity* pEnt )
{
	CTFPlayer *pPlayer = ToTFPlayer( pEnt );
	if ( !pPlayer ) 
		return;

	//Vector vForward;
	//QAngle qEyeAngle = pEnt->EyeAngles();
	//AngleVectors( pEnt->EyeAngles(), &vForward );
	//vForward.NormalizeInPlace();
	//vForward.z += 2.0f;
	//vForward.NormalizeInPlace();

	
	//pPlayer->ApplyAirBlastImpulse( tf_engineer_catapult_force.GetFloat() * vForward );
	pPlayer->m_Shared.AddCond( TF_COND_SPEED_BOOST, 5.0f );
}

Gallery

References