You should be explaining your errors not just telling us there are errors during compilation. How would we know what errors you are experiencing? Sounds like you just copy pasted the SP code without changing the necessary gi functions to the trap equivalents. Also ent->max_health doesn't exist. Not really related to the language being used as the code you're looking at in SP for this is still C compatible despite being .cpp file. From the looks of it, the code is not broken. The functionality was implemented simply for NPCs/ICARUS it seems. And because the command didn't exist in Quake3 they didn't add it to the MP SDK or pay much attention because its a cheat after all. And yes, it should be moved most likely. This isn't a topic about OpenJK.