Page 6 of 6

Re: [WIP] Combined custom content thread

Posted: Mon Jan 05, 2015 5:53 pm
by Drakkan
akroma222 wrote: Probably in a few days?
dont worry , I am definitely not in a rush here :d looking forward for any mighty knowledge you will share. thanks
edit: that script looks.... scarry :shock:

Re: [WIP] Combined custom content thread

Posted: Wed Feb 18, 2015 5:50 pm
by bongobeat
my version of a napalm launcher. without scripting that gives headaches :roll:
most simpler, don't use a special ammo for the napalm shoot, combined weapons of a firearm and a fire blade
SpoilerShow

Code: Select all

defineObject{
	name = "grenade_launcher",
	baseObject = "base_item",
	components = {
		{
			class = "Model",
			model = "assets/models/items/repeater.fbx",
		},
		{
			class = "Item",
			uiName = "Dragon's Fire",
			description = "A powerful Dwarvish firearm. Also known as the \"Dragon Mooth\" for its ability to throw fireballs.",
			gfxIndex = 337,
			gfxIndexPowerAttack = 97,
			impactSound = "impact_blunt",
			weight = 4.4,
			secondaryAction = "grenade",
			traits = { "firearm" },
		},
		{
			class = "FirearmAttack",
			attackPower = 120,
			cooldown = 6,
			attackSound = "gun_shot_small",
			ammo = "pellet",
			requirements = { "firearms", 5 },
			jamChance = 15,
		},
		{
			class = "CastSpell",
			name = "grenade",
			uiName = "Dragon's shoot",
			gameEffect = "Fires a deadly fireball.",
			cooldown = 5,
			spell = "fireball",
			energyCost = 25,
			power = 150,
			charges = 9,
			fullGfxIndex = 215,
			emptyGfxIndex = 216,
			requirements = { "firearms", 5, "fire_magic", 2 },
		},
	},
}