Joined: 22 Aug 2006 Location: somewhere south of the north pole
Posted: Wed Jul 25, 2007 9:25 pm Post subject:
Ion Storm SW NPatch 1.00 (not ion cannon)
To amke it as simple as possible:
Code:
The Ion Storm Super Weapon:
[Credits]
Code=Dupl3xxx ; The coder of this bizzar weapon
GFX=ArgCmdr ; The guy that converted the TS animations (from his "Animations Pack 1"
Idea=Anderwin ; The modder with the wish of a new SW
open RulesMD.ini
Add IONBEAM and IONRING to the [ANIMATIONS] section (at the end)
Add IonStormto the [SuperWeaponTypes] (at the end)
Find/add:
[MouseCursors]
Add the following line:
IonAction=249,10,8,517,-1,12345,12345
Go to where Superweapons are listed (search for "LightningStormSpecial" or someting like that").
Add:
[IonStorm]
UIName=Name:IonStormFromHell
Name=Ion Storm from hell
IsPowered=true
RechargeTime=2 ;25
Type=LightningStorm
Action=IonAction
SidebarImage=NEWICON ;?
ShowTimer=yes
DisableableFromShell=yes
Range=7
LineMultiplier=2
AIDefendAgainst=yes
LStormPrintText=yes
LStormText=TXT_ION_STORM
LStormText2=TXT_ION_STORM_APPROACHING
LStormDeferment=30 ;Number of frames between announcement of strike and its commencement
LStormDamage=900 ;Damage done by lightning strike
LStormStormDuration=500 ;Default lightning storm duration in frames
LStormHitDelay=20 ;How often the direct target gets hit in frames
LStormScatterDelay=8 ;Frame delay between random bolts (decreasing this might hit the performance
LStormCellSpread=20 ;How far away can random bolts go (n by n square)
LStormSeparation=1 ;Distance in cells between clouds/bolts
LStormSound=WeatherIntro ;Sound when weather controller storm starts.
LStormSounds=WeatherStrike ;Sounds for various lightning bolts.
LStormClouds=CHRONOSK ;IONBEAM;WCCLOUD1,WCCLOUD2,WCCLOUD3 ;The clouds used to show
LStormBolts=IONBEAM ;WCLBOLT1,WCLBOLT2,WCLBOLT3 ;The lightning bolts used to show
LStormBoltExplosion=IONRING ;EXPLOLB ;Bolt explosion
;LStormDisableUnits=no
;Light stuff
LightRed=30 ;amount of red
LightGreen=40 ;amount of green
LightBlue=90 ;amount of blue
;Would be kind if somebody added some proper descriptions here
LightAmbient=70 ;intensity of lighting (?)
LightGround=0 ;no idea
LightLevel=3 ;again, no clue what this does
Lighting=yes ;turns custom lighting on or off
Open ArtMD.ini
Add this somewhere (or search for WCLBOLT1 to keep it organized)
If you have done this correctly as I told you to, go to [GAWEAT]
Replace
SuperWeapon=LightningStormSpecial
with
SuperWeapon=IonStorm
Use this and the file with animations.
Use it.
If you look realy carefuly at the end of this "storm", you'll notice the "ring-effect" is played long time afterwards the storm is finnished. Is there an easy way to fix this?
Oh, and BTW, this is only for testing, pleace don't use this code in your mod (both private and public) unless Anderwin says it's OK, after all, I made it for him
Oh, and BTW, this is only for testing, pleace don't use this code in your mod (both private and public) unless Anderwin says it's OK, after all, I made it for him
Oh please, its not like the effect is any spectacular feat of coding, all you've done is create a weatherstorm clone with a chrono effect as the cloud, ion cannon beam as the bolt and the ion cannon ring as the explosion. Anyone with some understanding of the way a weatherstorm's animations are put together could create something virtually identical in no time. A meteor storm would be slightly more impressive since the effect would rely more on tags on the animations and the use of the INVISO animation. QUICK_EDIT
Joined: 22 Aug 2006 Location: somewhere south of the north pole
Posted: Fri Jul 27, 2007 5:38 pm Post subject:
so what? And no, this is not über-codeing, but it does the trick. And do you know a beter way to creat this effect?
EDIT: This is a base for a other SW I'm tesing out, with massive codeing, and so far, the only bug is in this ssection of the code, so I wanted to get help on this part _________________ This is a signature QUICK_EDIT
Oh so you want a Meteor Storm do you?
I'll see what I can do...
EDIT: Ok. I've thought about it...I can either make it a spyplane or firing superweapon...which would you want to see? _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Joined: 22 Aug 2006 Location: somewhere south of the north pole
Posted: Sat Jul 28, 2007 3:19 am Post subject:
@ wardeathfun
Perhaps, but this "tut" has a very annoying bug, therefor I placed it here, and hoped for some help I shoud have known better _________________ This is a signature QUICK_EDIT
Ah, then why didn't you say so...(oh you did, sorry )
The thing is, the Ion Beam Anim kinda stays there after it hits, so no matter what you do its gonna be a while until the ring plays. Try setting the rate to 900. Or you can do like I did on my system and add the ring to the anim. It's a little bit of work...but it looks good.
Hope that helps...
(P.S. hows the mod coming? PM me. ) _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
so what? And no, this is not über-codeing, but it does the trick. And do you know a beter way to creat this effect?
EDIT: This is a base for a other SW I'm tesing out, with massive codeing, and so far, the only bug is in this ssection of the code, so I wanted to get help on this part
No, I don't know a better way, that is my whole point :p I had nothing against you posting this, I just found your request not to use it in other mods strange and unneeded. If someone wanted to create this type of effect and knew what they were doing, this is exactly how they would do it anyway (and probably have already even before the RP by modding the original LS). I wasn't criticising your coding.
4StarGeneral, I don't actually want the code to a meteor storm, I already know how I would go about making one based on the LS if I wanted. I was just pointing out that the technique used for this one was nothing special and thus didn't need the 'don't use this in your mod'. If I wanted a similar effect it would look similar to this code and I wouldn't have needed to copy it. Just a pet peeve when people post code that is relatively easy to come up with if you know the game but then say don't copy it. Even if I didn't copy it, creating the same effect might look in code as if I did. QUICK_EDIT
Isn't there some bug anyway which stops normal weather storm from working like the pyschic dominator issue? and obviously you can't use weather storm and this ion storm which anyone could clobb together in 5 minutes _________________ QUICK_EDIT
If you use both LStrom and your Ion Strom SW, you should change Msg:LightningStormActive string also to (this is example): "Error: Activate error. Please try later." _________________ ARM forever - x86 sucks QUICK_EDIT
I actually made a perfect clone awhile back using the Lightning Storm, though it was around a year ago. I was going to post the code but I never got around to it. For the clouds I had used an invisible SHP with no art, and had an interesting explosion effect. I didn't go for a one-time-only explosion, I had this pulsating effect below the beam with tons of debris flying everywhere.
Unfortunately I lost the code when I redid PreRA2. I was just playing around in prera2 with stuff like this, it got pretty fun. Back when I was trying to find scraps of pre-retail logic like beachable units, and similar stuff. QUICK_EDIT
Shall I take it that this means Lightening Storm clones can't yet have their own customer text message?
You can't have more then one active SW with type = 2 at the same time.
This was always and will be always.
So you should change Msg:LightningStormActive, in case if someone try to activate you SW with type = 2, when another SW with type = 2 active. _________________ ARM forever - x86 sucks QUICK_EDIT
@Blade: Oh, ok nevermind then, well anyways my mod will have it in it (if I ever get to complete it) and the rules will be open for reading incase anyone wants to know then. I figure it's better than wasting time posting it.
Anyways, Ion Storm shutdown everything anyways in TS, so why not have only 1 runnable? (besides multiple storms would look weird and slow everything down.) _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Joined: 05 Sep 2007 Location: Somewhere in rulesmd.ini
Posted: Thu Sep 06, 2007 2:29 am Post subject:
Dumbass.. im i the only 1 who was worried about creat a TRUE Ion storm ?
Made For RockPatch1.10... {or all those versions who support the Lightning storm cloning feature}
Take..
Credit me if you use the concept art..
Rules for Real Ion Storm SW that shuts down any aircraft in the map
[SuperWeaponTypes]
xx=NewLSSpecial
[NewLSSpecial]
UIName=Name:NewLightningStormSpecial
Name=Ion Storm
IsPowered=true
RechargeTime=10
Type=NewLightningStorm ;NewDominator is the type for Psychic Dominator clones
Action=NewLightingStorm
SidebarImage=IONSTORMICON
ShowTimer=yes
DisableableFromShell=yes
Range=12
LineMultiplier=2
AIDefendAgainst=yes
LStormPrintText=yes
LStormText=TXT_ION_STORM
LStormText2=TXT_ION_STORM_APPROACHING
LStormDeferment=100 ;Number of frames between announcement of strike and its commencement
LStormDamage=120 ;Damage done by lightning strike
LStormStormDuration=24000 ;Default lightning storm duration in frames
LStormWarhead=IonWH ;Warhead used by lightning storm strike
LStormHitDelay=10 ;How often the direct target gets hit in frames
LStormScatterDelay=6 ;Frame delay between random bolts (decreasing this might hit the performance
LStormCellSpread=13 ;How far away can random bolts go (n by n square)
LStormSeparation=4 ;Distance in cells between clouds/bolts
LStormSound=IonStormIntro ;Sound when weather controller storm starts.
LStormSounds=IonStormStrike ;Sounds for various lightning bolts.
LStormClouds=CHRONOSK ;The clouds used to show
LStormBolts=RAIONBOLT1,RAIONBOLT2,RAIONBOLT3,RAIONBOLT4 ;The lightning bolts used to show
LStormBoltExplosion=EXPLOLB ;Bolt explosion
LStormDisableUnits=yes
AITargetingType=1
;Light stuff
LightRed=60 ;amount of red
LightGreen=60 ;amount of green
LightBlue=20 ;amount of blue
LightAmbient=90
LightGround=50
LightLevel=6
Lighting=yes
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