Page 1 of 1

[11.1] JBullet 0.1.0

Posted: Wed Nov 12, 2014 6:45 am
by JohnDowson
Image
One tank with one type of ammo?
Ha!
Current features
Planned features
Any comments are welcome.

Re: [11.1] JBullet 0.1.0

Posted: Wed Nov 12, 2014 8:07 pm
by Fisherman
Illustrations, please.

Re: [11.1] JBullet 0.1.0

Posted: Thu Nov 13, 2014 8:00 am
by Stx3
new monsters? or do you want transform monsters in children? :lol:

Re: [11.1] JBullet 0.1.0

Posted: Sun Nov 16, 2014 1:27 pm
by JohnDowson
Fisherman wrote:Illustrations, please.
Actually, currently nothing to illustrate.
Stx3 wrote:new monsters?
No.
Stx3 wrote:or do you want transform monsters in children?
Wtf i am reading?

Re: [11.1] JBullet 0.1.0

Posted: Sun Nov 16, 2014 9:01 pm
by Vuk Farkas
there was an error and this is a fix made by my friend Saberuneko who said :"Missing "(" at eof, Missing "{" at line 129, for closing "}" at line 168."

Code: Select all

data:extend(
{
  {
    type = "projectile",
    name = "cannon-20mm-projectile",
    flags = {"not-on-map"},
    collision_box = {{-0.05, -1.1}, {0.05, 1.1}},
    acceleration = 0,
    direction_only = true,
    piercing_damage = 300,
    action =
    {
      type = "direct",
      action_delivery =
      {
        type = "instant",
        target_effects =
        {
          {
            type = "create-entity",
            entity_name = "explosion-gunshot"
          },
          {
            type = "damage",
            damage = { amount = 50 , type = "physical"}
          },
          {
            type = "damage",
            damage = { amount = 5 , type = "explosion"}
          }
        }
      }
    },
    animation =
    {
      filename = "__base__/graphics/entity/bullet/bullet.png",
      frame_count = 1,
      width = 3,
      height = 50,
      priority = "high"
    },
  },
  {
    type = "projectile",
    name = "cannon-20mm-he-projectile",
    flags = {"not-on-map"},
    collision_box = {{-0.05, -1.1}, {0.05, 1.1}},
    acceleration = 0,
    direction_only = true,
    piercing_damage = 300,
    action =
    {
      type = "direct",
      action_delivery =
      {
        type = "instant",
        target_effects =
        {
          {
            type = "create-entity",
            entity_name = "explosion"
          },
		  {
            type = "nested-result",
            action =
            {
              type = "area",
              perimeter = 1,
              action_delivery =
              {
                type = "instant",
                target_effects =
                {
                  {
                    type = "damage",
                    damage = {amount = 15, type = "explosion"}
                  },
				  {
                    type = "damage",
                    damage = { amount = 15 , type = "physical"}
                  },
                  {
                    type = "create-entity",
                    entity_name = "explosion"
                  }
                }
              }
	        },
          },
		  {
            type = "nested-result",
            action =
            {
              type = "area",
              perimeter = 2.5,
              action_delivery =
              {
                type = "instant",
                target_effects =
                {
                  {
                    type = "damage",
                    damage = {amount = 15, type = "explosion"}
                  },
				  {
                    type = "damage",
                    damage = { amount = 5 , type = "physical"}
                  },
                  {
                    type = "create-entity",
                    entity_name = "explosion"
                  }
                }
              }
	        },
          }
        }
      }
    },
    animation =
    {
      filename = "__base__/graphics/entity/bullet/bullet.png",
      frame_count = 1,
      width = 3,
      height = 50,
      priority = "high"
    },
  },
  {
    type = "projectile",
    name = "cannon-20mm-belt-projectile",
    flags = {"not-on-map"},
    collision_box = {{-0.05, -1.1}, {0.05, 1.1}},
    acceleration = 0,
    direction_only = true,
    piercing_damage = 300,
    action =
    {
      type = "direct",
      action_delivery =
      {
        type = "instant",
        target_effects =
        {
          {
            type = "create-entity",
            entity_name = "explosion-gunshot"
          },
          {
            type = "damage",
            damage = { amount = 50 , type = "physical"}
          },
          {
            type = "damage",
            damage = { amount = 5 , type = "explosion"}
          }
        }
      }
    },
    animation =
    {
      filename = "__base__/graphics/entity/bullet/bullet.png",
      frame_count = 1,
      width = 3,
      height = 50,
      priority = "high"
    },
  },
}
)