Implemented SCRIPT_COMMAND_ORIENTATION.
--HG-- branch : trunk
This commit is contained in:
@@ -3685,6 +3685,20 @@ void Map::ScriptsProcess()
|
|||||||
pSource->PlayDirectSound(step.script->datalong,pTarget);
|
pSource->PlayDirectSound(step.script->datalong,pTarget);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case SCRIPT_COMMAND_ORIENTATION:
|
||||||
|
{
|
||||||
|
if(!source)
|
||||||
|
{
|
||||||
|
sLog.outError("SCRIPT_COMMAND_ORIENTATION call for NULL creature.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
((Creature *)source)->SetOrientation(step.script->datalong);
|
||||||
|
((Creature *)source)->SendMovementFlagUpdate();
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
sLog.outError("Unknown script command %u called.",step.script->command);
|
sLog.outError("Unknown script command %u called.",step.script->command);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -413,6 +413,10 @@ enum RealmZone
|
|||||||
#define SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT 21 // datalong scriptid, lowguid datalong2, dataint table
|
#define SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT 21 // datalong scriptid, lowguid datalong2, dataint table
|
||||||
#define SCRIPT_COMMAND_KILL 22 // datalong removecorpse
|
#define SCRIPT_COMMAND_KILL 22 // datalong removecorpse
|
||||||
|
|
||||||
|
|
||||||
|
//trinity only
|
||||||
|
#define SCRIPT_COMMAND_ORIENTATION 30 // datalong orientation
|
||||||
|
|
||||||
/// Storage class for commands issued for delayed execution
|
/// Storage class for commands issued for delayed execution
|
||||||
struct CliCommandHolder
|
struct CliCommandHolder
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user