View Single Post
Old 04-01-2015, 08:11 AM   #6
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Actually, never mind, it's pretty simple. Here's search results for AddFortPoints in C++:

Code:
  game_shared\ff\ff_weapon_spanner.cpp(144):				pPlayer->AddFortPoints( ( iArmorGiven*0.5 ), "#FF_FORTPOINTS_GIVEARMOR");
  game_shared\ff\ff_weapon_spanner.cpp(196):						pPlayer->AddFortPoints(iHealthGiven*0.1, "#FF_FORTPOINTS_REPAIRTEAMDISPENSER");
  game_shared\ff\ff_weapon_spanner.cpp(255):							pPlayer->AddFortPoints(100, "#FF_FORTPOINTS_UPGRADETEAMMATESG");
  game_shared\ff\ff_weapon_spanner.cpp(295):						pPlayer->AddFortPoints(cells*0.3, "#FF_FORTPOINTS_REPAIRTEAMMATESG");
  game_shared\ff\ff_gamerules.cpp(1848):					pScorer->AddFortPoints( 50, "#FF_FORTPOINTS_KILLDISPENSER" );
  game_shared\ff\ff_gamerules.cpp(1856):						pScorer->AddFortPoints( 100, "#FF_FORTPOINTS_KILLSG1" );
  game_shared\ff\ff_gamerules.cpp(1859):						pScorer->AddFortPoints( 150, "#FF_FORTPOINTS_KILLSG2" );
  game_shared\ff\ff_gamerules.cpp(1862):						pScorer->AddFortPoints( 200, "#FF_FORTPOINTS_KILLSG3" );
  game_shared\multiplay_gamerules.cpp(557):				pScorer->AddFortPoints( -50, "#FF_FORTPOINTS_TEAMKILL" );
  game_shared\multiplay_gamerules.cpp(560):				pScorer->AddFortPoints( 100, "#FF_FORTPOINTS_FRAG" );
  game_shared\ff\ff_weapon_spanner.cpp(144):				pPlayer->AddFortPoints( ( iArmorGiven*0.5 ), "#FF_FORTPOINTS_GIVEARMOR");
  game_shared\ff\ff_weapon_spanner.cpp(196):						pPlayer->AddFortPoints(iHealthGiven*0.1, "#FF_FORTPOINTS_REPAIRTEAMDISPENSER");
  game_shared\ff\ff_weapon_spanner.cpp(255):							pPlayer->AddFortPoints(100, "#FF_FORTPOINTS_UPGRADETEAMMATESG");
  game_shared\ff\ff_weapon_spanner.cpp(295):						pPlayer->AddFortPoints(cells*0.3, "#FF_FORTPOINTS_REPAIRTEAMMATESG");
  game_shared\ff\ff_gamerules.cpp(1848):					pScorer->AddFortPoints( 50, "#FF_FORTPOINTS_KILLDISPENSER" );
  game_shared\ff\ff_gamerules.cpp(1856):						pScorer->AddFortPoints( 100, "#FF_FORTPOINTS_KILLSG1" );
  game_shared\ff\ff_gamerules.cpp(1859):						pScorer->AddFortPoints( 150, "#FF_FORTPOINTS_KILLSG2" );
  game_shared\ff\ff_gamerules.cpp(1862):						pScorer->AddFortPoints( 200, "#FF_FORTPOINTS_KILLSG3" );
  dlls\ff\ff_lualib_player.cpp(67):			.def("AddFortPoints",		&CFFPlayer::AddFortPoints)
  dlls\ff\ff_lualib_team.cpp(49):			.def("AddFortPoints",		&CTeam::AddFortPoints)
  dlls\ff\ff_detpack.cpp(221):	pPlayer->AddFortPoints(100,"#FF_FORTPOINTS_DEFUSEDETPACK");
  dlls\ff\ff_dispenser.cpp(541):	pSaboteur->AddFortPoints(25, "#FF_FORTPOINTS_SABOTAGEDISPENSER");
  dlls\ff\ff_player.cpp(2023):					pTagger->AddFortPoints( 50, "#FF_FORTPOINTS_TEAMMATERADIOTAGKILL" );
  dlls\ff\ff_player.cpp(4727):			pCurer->AddFortPoints( 100, "#FF_FORTPOINTS_CUREINFECTION" );
  dlls\ff\ff_player.cpp(5365):					pAttacker->AddFortPoints(10,"#FF_FORTPOINTS_RADIOTAG");
  dlls\ff\ff_player.cpp(6188):	pHealer->AddFortPoints( ( (m_iHealth - iOriginalHP) * 0.5 ), "#FF_FORTPOINTS_GIVEHEALTH");
  dlls\ff\ff_player.cpp(7063):			AddFortPoints(30, "#FF_FORTPOINTS_UNDISGUISESPY");
  dlls\ff\ff_player.cpp(7095):				AddFortPoints( 30, "#FF_FORTPOINTS_UNCLOAKSPY" );
  dlls\ff\ff_sentrygun.cpp(1848):	pSaboteur->AddFortPoints(100, "#FF_FORTPOINTS_SABOTAGESG");
Here's all instances of AddFortPoints in the various default Lua's (filenames not included because I'm lazy and Sublime Text doesn't have very copy+pasteable find results):
Code:
  258  		player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND, "Defending the Point" ) 
  258  		player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND, "Defending the Point" ) 
   37: 			player:AddFortPoints(points * 100, "Destroyed Computer" )
  404: 	player:AddFortPoints(500, "#FF_FORTPOINTS_CAPTUREPOINT")
  270: 				player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND, "Defending the Zone" ) 
  279: 					player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND * 2, "Denying Attacker from Scoring" ) 
  281: 					player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND / 2, "Defending the Zone Area" )
  338: 				player_attacker:AddFortPoints( damage, "Protecting the Zone" ) 
  347: 				player_attacker:AddFortPoints( damage, "Protecting the Zone Area" ) 
  390: 			player:AddFortPoints( FORT_POINTS_PER_INITIAL_TOUCH, "Initial Point Touch" ) 
  697:         player:AddFortPoints( FORT_POINTS_PER_PERIOD, "Touching the Point" ) 
  714: 			player:AddFortPoints( FORT_POINTS_PER_PERIOD, "Touching the Point" ) 
  381: 			player_attacker:AddFortPoints((player_victim_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  387: 			player_attacker:AddFortPoints((player_victim_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  400: 			player_attacker:AddFortPoints((player_attacker_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  406: 			player_attacker:AddFortPoints((player_attacker_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  427: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  433: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
  453: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
  459: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  681: 			i:AddFortPoints((cp.point_value[team_number]) * 100, "#FF_FORTPOINTS_CAPTUREPOINT")
  685: 			i:AddFortPoints((cp.point_value[team_number]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  694: 			i:AddFortPoints((cp.point_value[team_number]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  697: 			i:AddFortPoints((cp.point_value[team_number]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
 1061: 		player:AddFortPoints((cp.point_value[player:GetTeamId()]) * 100, "#FF_FORTPOINTS_CAPTUREPOINT")
 1340: 		player:AddFortPoints(points * 100, "#FF_FORTPOINTS_DESTROY_CC" )
  437: 			player_attacker:AddFortPoints((player_victim_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  443: 			player_attacker:AddFortPoints((player_victim_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  456: 			player_attacker:AddFortPoints((player_attacker_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  462: 			player_attacker:AddFortPoints((player_attacker_touching_cp.point_value[player_attacker:GetTeamId()]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  483: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  489: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
  509: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
  515: 					player_attacker:AddFortPoints((v.point_value[player_attacker:GetTeamId()]) * 25, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  790: 			i:AddFortPoints((cp.point_value[team_number]) * 100, "#FF_FORTPOINTS_CAPTUREPOINT")
  794: 			i:AddFortPoints((cp.point_value[team_number]) * 50, "#FF_FORTPOINTS_DEFENDPOINT")
  803: 			i:AddFortPoints((cp.point_value[team_number]) * 50, "#FF_FORTPOINTS_CAPTUREPOINT_ASSIST")
  806: 			i:AddFortPoints((cp.point_value[team_number]) * 25, "#FF_FORTPOINTS_DEFENDPOINT_ASSIST")
 1172: 		player:AddFortPoints((cp.point_value[player:GetTeamId()]) * 100, "#FF_FORTPOINTS_CAPTUREPOINT")
 1451: 		player:AddFortPoints(points * 100, "#FF_FORTPOINTS_DESTROY_CC" )
  243: 			attacker:AddFortPoints( POINTS_PER_GOALIE_ATTACK, "#FF_FORTPOINTS_GOALIE_ATTACK" )
  337: 			if self.status == 0 then player:AddFortPoints(POINTS_PER_INITIALTOUCH, "#FF_FORTPOINTS_INITIALTOUCH") end
  357: 					player:AddFortPoints( POINTS_PER_GOALIE_RETURN, "#FF_FORTPOINTS_GOALIE_RETURN" )
  562: 				player:AddFortPoints( POINTS_PER_CAPTURE * 100, "#FF_FORTPOINTS_GOAL" )
  570: 				player:AddFortPoints( -POINTS_PER_CAPTURE * 100, "#FF_FORTPOINTS_OWN_GOAL" )
  221: 				attacker:AddFortPoints( POINTS_PER_HUNTED_ATTACK * 10, "Hunted Attack" )
  397: 			player:AddFortPoints( POINTS_PER_HUNTED_ESCAPE_FOR_HUNTED * 10, "Hunted Escape" )
   93: 					player:AddFortPoints(FORTPOINTS_PER_CAPTURE, "#FF_FORTPOINTS_CAPTUREFLAG")
   93: 					player:AddFortPoints(FORTPOINTS_PER_CAPTURE, "#FF_FORTPOINTS_CAPTUREFLAG")
  258: 		player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND, "Defending the Point" ) 
  325: 		player_attacker:AddFortPoints( damage, "Protecting the Point" ) 
  629: 			player:AddFortPoints( FORT_POINTS_PER_INITIAL_TOUCH, "Initial Point Touch" ) 
  704: 	         player:AddFortPoints( FORT_POINTS_PER_PERIOD, "Touching the Point" ) 
  301: 			player:AddFortPoints(FORTPOINTS_PER_CAPTURE, "#FF_FORTPOINTS_GOAL")
  431: 					player:AddFortPoints(fortpoints, "#FF_FORTPOINTS_CAPTUREFLAG")
  589: 		if self.status == 0 then player:AddFortPoints(FORTPOINTS_PER_INITIALTOUCH, "#FF_FORTPOINTS_INITIALTOUCH") end
  386: 		player:AddFortPoints(1, "Test")
  258: 		player_attacker:AddFortPoints( FORT_POINTS_PER_DEFEND, "Defending the Point" ) 
  325: 		player_attacker:AddFortPoints( damage, "Protecting the Point" ) 
  629: 			player:AddFortPoints( FORT_POINTS_PER_INITIAL_TOUCH, "Initial Point Touch" ) 
  704: 	         player:AddFortPoints( FORT_POINTS_PER_PERIOD, "Touching the Point" )
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote