I'm trying to get started to understand the code, and i decided to try to make the player to get +20 hp if it's wielding a sword, possibly with also other players getting that bonus.
I've read the code, but even if i'm familiar with c++ i'm puzzled about where the weapon switching occurs and how the player health is modified.
I've also seen often ICOMMAND(...), what does it means?
Seen that the game accepts commands from chat, i can make a command like "/kill player_name" or "/armageddon" to kill target or all?