Page 1 of 1

[CLOSED]Capacitors in virtual ICX weapons

Posted: Sun Feb 13, 2011 12:47 am
by Song
Today for SW&A I made a "proactive shield". The idea came up on IRC a few days ago, and I had an idea of how to do it. Basically, the IRC idea was ICX device with a radius fragment. I turned this into a shield by making it low damage, rapid fire, and adding capacitor code to the virtual weapon, so that as it "shielded" it would lose "hitpoints" determined by how many shots it took to kill each incomming missile....however the weapon just plain doesn't fire right now.
Removing the capacitor code solves the problem entirely, but still, that negates the entire "shield" idea.

A pastebin of my code can be found HERE. I'm not ruling out an error on my part causing this, but the general opinion on IRC was that this is a bug. There's a workaround with sysCreateWeaponFire, but it's still a bug.

Re: Capacitors in virtual ICX weapons

Posted: Thu Mar 17, 2011 3:24 pm
by digdug
looks like <AutoDefenseDevice> doesn't accept a weapon with a capacitor.

more than a bug, this is a limitation. Shrike, if you want, make a ticket as a feature request.

Re: Capacitors in virtual ICX weapons

Posted: Thu Mar 17, 2011 3:26 pm
by george moromisato
Is this in 1.05? I made some changes in 1.05 to make capacitors work for auto-defense, but I haven't tested it. If it still doesn't work, write up a ticket.

Re: Capacitors in virtual ICX weapons

Posted: Fri Mar 18, 2011 12:32 am
by digdug
tested! It works well! :D
Thanks George :D