diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-01 18:45:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-01 18:45:31 +0300 |
commit | 49f27fffbe07e66a3047812a838f03d7636cc4a9 (patch) | |
tree | 68996fa1dfc002e239513af1a92d1ffd69539204 /src/commands.h | |
parent | 69108c8a2892cf87a3d425b5e82e0eadbb5f7fa9 (diff) | |
download | ManaVerse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.gz ManaVerse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.bz2 ManaVerse-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.xz ManaVerse-49f27fffbe07e66a3047812a838f03d7636cc4a9.zip |
Add chat command /testparticle for testing particle effects on player.
Command: /testparticle particle.xml - set particle effect on player.
/testparticle - remove particle effect.
Each second it check for particle file update and reloading it if need.
Diffstat (limited to 'src/commands.h')
-rw-r--r-- | src/commands.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands.h b/src/commands.h index 62f9eaead..f41a16339 100644 --- a/src/commands.h +++ b/src/commands.h @@ -123,6 +123,7 @@ namespace Commands decHandler(removeName); decHandler(disableAway); decHandler(enableAway); + decHandler(testParticle); void replaceVars(std::string &str); } // namespace Commands @@ -213,6 +214,7 @@ enum COMMAND_MOVETOHOME, COMMAND_SETHOME, COMMAND_MAGICATTACK, + COMMAND_TEST_PARTICLE, COMMAND_HACK, END_COMMANDS }; @@ -296,13 +298,13 @@ static const CommandInfo commands[] = {"", &Commands::dontRemoveName, -1, false}, {"", &Commands::removeName, -1, false}, {"disableaway", &Commands::disableAway, -1, false}, - {"enableaway", &Commands::enableAway, -1, false}, {"drop", nullptr, Input::KEY_QUICK_DROP, false}, {"dropn", nullptr, Input::KEY_QUICK_DROPN, false}, {"movetotarget", nullptr, Input::KEY_MOVE_TO_TARGET, false}, {"movetohome", nullptr, Input::KEY_MOVE_TO_HOME, false}, {"sethome", nullptr, Input::KEY_SET_HOME, false}, {"magicattack", nullptr, Input::KEY_MAGIC_ATTACK, false}, + {"testparticle", &Commands::testParticle, -1, true}, {"hack", &Commands::hack, -1, true} }; |