Page 1 of 1

Weird bug I believe I found.

Posted: Wed Nov 14, 2012 7:50 am
by zadkielmodeler
okay so I have this arrow type in my items.lua

Code: Select all


	defineObject{
		name = "huntingarrow",
		class = "Item",
		uiName = "Hunting Arrow",
		model = "assets/models/items/arrow.fbx",
		ammoType = "arrow",
		gfxIndex = 107,
		attackPower = 45,
		impactSound = "impact_arrow",
		stackable = true,
		sharpProjectile = true,
		projectileRotationY = 90,
		weight = 0.05,
	}

[code]

the thing works great when fired by a bow. pretty powerful too. But after about the 5th or 6th time it was fired and then I rested, it turned back into  a broadhead arrow. I was totally caught off guard when the character started hitting for 12 instead of 45-60.


Anyways, I would appreciate it if someone would confirm this bug for me. with their own test dungeon or something like that.

Re: Weird bug I believe I found.

Posted: Wed Nov 14, 2012 7:58 am
by zadkielmodeler
I am wondering if I change the ammotype to something else and make a bow that takes that ammo type if it will work.

Re: Weird bug I believe I found.

Posted: Wed Nov 14, 2012 12:08 pm
by Komag
I tested it and the arrows reverted to broadhead arrows after the first shot, just like an enchanted arrow does. I bet you're right about defining a new ammo type to make it permanent.

Re: Weird bug I believe I found.

Posted: Wed Nov 14, 2012 8:29 pm
by petri
That's odd. Added to the bug list. Thank you for the bug report!

Re: Weird bug I believe I found.

Posted: Thu Nov 15, 2012 2:30 am
by Komag
but it seemed sort of pike intended behavior, like how a fire arrow reverts to broadhead

Re: Weird bug I believe I found.

Posted: Thu Nov 15, 2012 2:55 am
by zadkielmodeler
I guess in a semi-related question, is there way to assign multiple ammotypes to a ranged weapon?

Re: Weird bug I believe I found.

Posted: Thu Nov 15, 2012 2:55 am
by Komag
I sorta doubt it, but you could re-define all the various ammo items to be the same ammo type!