Posted: Fri Oct 19, 2007 1:27 am Post subject:
deployfire on structures
Anyone know if this is possible, ive been messing about trying to get the nuke reactor to irraditate the ground if i 'deploy' it. Im sure i remember seeing the genesis 'water extractor thingy' doing this in an older version of AR2 but cant for the life of me figure out how they did it.
With this code added (stolen from the gap gen) i can get the deploy cursor to come up, and clicking it makes the gap gen area increase as it should, it also makes it fire the primary weapon. So i took out the spycamera dummy and put the radexplosion in as primary. It works fine BUT whilst clicking it again reduces the gapgen effect again, it wont stop firing, which it kind of needs to do (an emergncy release of nuclear waste is a great weapon against enemies, but not much good when you can't turn it off again and kills anything coming out your barracks). I do plan to limit the radius of the radiation so it only affects a couple of cells around the nuke plant, not 5-6 like it currently does, but still the ability to turn it on/off at will would be great. Any ideas? i'll keep working on it. QUICK_EDIT
Joined: 22 Aug 2006 Location: somewhere south of the north pole
Posted: Fri Oct 19, 2007 5:59 am Post subject:
In Alide Revenge, I think they used light to do that. Try ataching a rad-weapon to an anim (if possible, this is uotside my knowlege) _________________ This is a signature QUICK_EDIT
Clone RadEruption and add FireOnce to it? Just an idea.
That works brilliantly thanks Dcoder. Clicking deploy will cause the structure to produce an area of radiation around itself which is configurable within the limits of the weapon. However, it only fires once and then turns itself off, i was hoping to allow it to continue firing until i turned it off. Now to figure out which parts of the gapgen code are uneeded to get it to deploy.
Rattuskid wrote:
In AR2, I think that structure just provided the green glow lighting, not actual radiation.
The closest hack you can get is giving the structure an infinite range rad-weapon with AreaFire set.
I distinctly remember it being a weapon becuase it used the (currently unused in vanilla RA2) IsRadEruption= effect which is a weapon tag. This was an older version of AR2 when the extractor looked like the allied naval yard. QUICK_EDIT
I think that effect may have been permanent though e.g. a infinite range raderuption weapon so constant deploy unfortunatly. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum