The Rockets completed the trade for veteran guard Jason Terry on Wednesday, acquiring the long-time Rockets nemesis along with two second-round picks from Sacramento.

The Rockets sent the unguaranteed contracts of Alonzo Gee and Scotty Hopson, both acquired in July’s three-team sign-and-trade for Trevor Ariza with the Wizards and Pelicans, to the Kings in the deal.

Terry, 37, did not play for the Kings last season after he was acquired in February to allow him to return to Dallas to rehab his left knee. He averaged a career-low 4.5 points in 35 games last season with the Nets.

The 2009 Sixth Man of the Year, Terry has long been recognized as a particularly vexing Rockets killer, though his play against the Rockets has largely been similar to his play overall in his career. He has shot better against the Rockets (47.4 percent) than against any opponent but the Kings, but his scoring average (15.9 points per game) and 3-point shooting (38.9 percent) are roughly his career averages.

His reputation, however, likely comes from the 2004-05 playoff series against the Rockets when the Mavericks came back after losing the first two games of the series to win in seven games. Terry averaged 18.3 points on 52 percent shooting and 60.6 percent 3-point shooting, reveling in his successes with his “Jet” pantomime after several big shots.

Terry is signed for one more season worth $5.45 million. The Rockets sought veteran help to a backcourt rebuilt since the trade of Jeremy Lin around second-year guards Isaiah Canaan and Troy Daniels and rookie Nick Johnson along with veterans Ish Smith and Francisco Garcia.