Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
TTT: Added hooks to allow easier modification of corpse id/search behavior. #1268
I would like to propose these hook additions which would allow modders (if not just myself, others also) to easily create weapons and entities and other conditions which interrupt the ability for players to identify/search a corpse - without making changes to the corpse.lua file.
"TTTCanIdentifyCorpse" (ply, corpse, corpse_was_traitor)
"TTTCanSearchCorpse" (ply, corpse, corpse_was_traitor)
Ideally, this would be something for traitors to benefit from only( and in fair ways pertaining to the use of equipment items ), though it could be abused in ways that really ruin the gameplay - that said, if someone were determined enough to do that, they would almost certainly have done so already with or without such hooks.