Dinobot is a warrior continuously driven by his code of honor. His story began in Beast Wars where he was one of the Predacons under Megatron's leadership that stole the Golden Disk.
for Dinobot) and Vermin ( for Rattrap).
Source of all images from: unicron.us/
Ignoring all the damage he took, Dinobot sacrifices himself to prevent Megatron from succeeding. Once the Maximals arrive, it is too late. His last words to his comrades are: "Tell my tale to those who ask. Tell it truly, the ill deeds along with the good, and let me be judged accordingly. The rest... is silence."
Here is a three part link to Code of Hero, the episode that shows Dinobot's heroic sacrifice: