Exemplo n.º 1
0
 // shhots projectile at 2D angle
 public static void ShootAtAngle(World world, Actor projectile, float angle, float speed)
 {
     float[] delta = ActorUtils.GetDistanceDelta(speed, angle);
     world.BroadcastInclusive(new ACDTranslateFixedMessage()
     {
         Id = 113, // needed
         ActorId = unchecked((int)projectile.DynamicID),
         Velocity = new Vector3D { X = delta[0], Y = delta[1], Z = 0 },
         Field2 = 1,
         AnimationTag = 1,//walkAnimationSNO
         Field4 = 1,
     }, projectile);
 }