Difference between revisions of "Catapult"

From Team Fortress Wiki
Jump to: navigation, search
(unrelated trigger_catapult stuff)
m (Proper code snippet)
Line 13: Line 13:
 
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<ref>http://www.teamfortress.com/lecturevalley/02.php</ref>.
 
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<ref>http://www.teamfortress.com/lecturevalley/02.php</ref>.
  
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.
+
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.
  
There are also plenty of {{code|// HACK!}} comments on many lines involving float mathematics, indicating that the building was scrapped most likely due to these technical reasons.
+
''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 ==
 
== Gallery ==

Revision as of 23:41, 1 May 2020

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