Difference between revisions of "Catapult"

From Team Fortress Wiki
Jump to: navigation, search
m (Proper code snippet)
(It's important information. The previous version suggested "airblast" pushing mechanism (why?), while Portal 2 Aerial Faith Plate physically thrusts the player)
 
(7 intermediate revisions by 4 users not shown)
Line 11: Line 11:
 
}}
 
}}
  
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]] building for the [[Engineer]] 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 using airblast force to do so.
+
This building was intended to throw player into the air.<ref>game/shared/tf/trigger_catapult_shared.cpp</ref>. According to in-code comment, this code was copied from Portal 2 and then modified.
  
''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.''
+
Building speed for this building type is increasesd 4 times (approximately 5.2 seconds) when constructed and 7 times (3 seconds) when redeployed.<ref>game/server/tf/tf_player.cpp:L7973-7976</ref>
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 ==

Latest revision as of 15:35, 14 March 2024

The Catapult is a scrapped building for the Engineer 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].

This building was intended to throw player into the air.[2]. According to in-code comment, this code was copied from Portal 2 and then modified.

Building speed for this building type is increasesd 4 times (approximately 5.2 seconds) when constructed and 7 times (3 seconds) when redeployed.[3]

Gallery

References

  1. http://www.teamfortress.com/lecturevalley/02.php
  2. game/shared/tf/trigger_catapult_shared.cpp
  3. game/server/tf/tf_player.cpp:L7973-7976