Sounds like the game you're talking about could be 'Rick Dangerous'. It's a quintessential DOS game with a fedora-wearing adventurer, running around traps and baddies. Has both city and jungle stages. Check it out, hope it's the one you're looking for.